summaryrefslogtreecommitdiff
blob: 2c4dc3f6a1a6a79f9d4779762f388c5b21b70b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cfitsio/cfitsio-2.490.ebuild,v 1.2 2004/07/31 03:03:52 squinky86 Exp $

IUSE=""

DESCRIPTION="C and Fortran library for manipulating FITS files"
HOMEPAGE="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
SRC_URI="ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/${PN}${PV//.}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

DEPEND="virtual/libc"

S=${WORKDIR}/${PN}

src_compile() {
	econf || die
	emake || die
}

src_install () {
	dodir /usr/lib /usr/include

	sed -i -e "s:CFITSIO_LIB =	/usr/lib:CFITSIO_LIB = ${D}/usr/lib:g" \
	-e "s:CFITSIO_INCLUDE =	/usr/include:CFITSIO_INCLUDE = ${D}/usr/include:g" \
	Makefile

	make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		FTOOLS_LIB=${D}usr/lib \
		FTOOLS_INCLUDE=${D}usr/include \
		install || die

	dodoc changes.txt README
}