/[gentoo-x86]/app-sci/xephem/xephem-3.6.ebuild
Gentoo

Contents of /app-sci/xephem/xephem-3.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Dec 23 07:39:24 2004 UTC (13 years, 11 months ago) by phosphan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Cleaning up, removing fetch restriction.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/xephem/xephem-3.6.ebuild,v 1.3 2004/06/24 22:21:58 agriffis Exp $
4
5 DESCRIPTION="XEphem is the X Windows Ephemeris, and provides a scientific-grade solar system model, star charts, sky views, plus a whole lot more."
6 SRC_URI="${PN}-${PV}.tar.gz"
7 HOMEPAGE="http://www.clearskyinstitute.com/xephem"
8 KEYWORDS="~x86 ~amd64 ~ppc"
9 IUSE=""
10 SLOT="0"
11 LICENSE="as-is"
12 DEPEND="x11-libs/openmotif"
13 RESTRICT="fetch"
14
15 pkg_setup() {
16 #rphillips: this stuff needs to go inside the pkg_setup() function -- drobbins
17 if [ ! -f ${DISTDIR}/${P}.tar.gz ] ; then
18 die "Please download ${P}.tar.gz from ${HOMEPAGE} and move it to ${DISTDIR}"
19 fi
20 }
21
22 src_compile() {
23
24 cd libastro
25 sed -e "s:CFLAGS=.*:CFLAGS=${CFLAGS} -ffast-math -Wall:" \
26 -i Makefile
27 emake || die
28 cd ../libip
29 sed -e "s:CFLAGS=*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \
30 -i Makefile
31 emake || die
32 cd ../liblilxml
33 sed -e "s:CFLAGS=*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \
34 -i Makefile
35 emake || die
36 cd ../libjpegd
37 sed -e "s:CFLAGS=*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \
38 -i Makefile
39 emake || die
40 cd ../GUI/xephem
41 xmkmf
42 sed -e "s:CDEBUGFLAGS = .*:CDEBUGFLAGS = ${CFLAGS} -fno-strength-reduce:" \
43 -i Makefile
44 emake || die
45
46 }
47
48 src_install() {
49
50 into /usr
51 dobin ${S}/GUI/xephem/xephem
52 insinto /opt/xephem/auxil
53 doins ${S}/GUI/xephem/auxil/*
54 insinto /opt/xephem/catalogs
55 doins ${S}/GUI/xephem/catalogs/*
56 insinto /opt/xephem/fifos
57 doins ${S}/GUI/xephem/fifos/*
58 insinto /opt/xephem/fits
59 doins ${S}/GUI/xephem/fits/*
60
61 cat > ${S}/XEphem <<EOT
62 XEphem.ShareDir: /opt/xephem
63 EOT
64 insinto /usr/lib/X11/app-defaults/
65 doins ${S}/XEphem
66
67 dodoc Copyright README INSTALL
68 mv ${S}/GUI/xephem/xephem.man ${S}/xephem.1
69 doman ${S}/xephem.1
70 }

  ViewVC Help
Powered by ViewVC 1.1.20