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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 23 07:39:24 2004 UTC (13 years, 9 months ago) by phosphan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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.1.ebuild,v 1.1 2004/09/19 06:02:13 morfic 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 if [ ! -f ${DISTDIR}/${P}.tar.gz ] ; then
17 die "Please download ${P}.tar.gz from ${HOMEPAGE} and move it to ${DISTDIR}"
18 fi
19 }
20
21 src_compile() {
22
23 cd libastro
24 sed -e "s:CFLAGS=.*:CFLAGS=${CFLAGS} -ffast-math -Wall:" \
25 -i Makefile
26 emake || die
27
28 for i in libip liblilxml libjpegd; do
29 echo "going into ${i}"
30 cd ${S}/${i}
31 sed -e "s:CFLAGS=.*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \
32 -i Makefile
33 emake || die
34 done
35
36 cd ../GUI/xephem
37 xmkmf
38 sed -e "s:CDEBUGFLAGS = .*:CDEBUGFLAGS = ${CFLAGS} -fno-strength-reduce:" \
39 -i Makefile
40 emake || die
41
42 }
43
44 src_install() {
45
46 into /usr
47 dobin ${S}/GUI/xephem/xephem
48 for i in auxil catalogs fifos fits help help/png; do
49 insinto /opt/xephem/${i}
50 doins ${S}/GUI/xephem/${i}/*
51 done
52
53 cat > ${S}/XEphem <<EOT
54 XEphem.ShareDir: /opt/xephem
55 EOT
56 insinto /usr/lib/X11/app-defaults/
57 doins ${S}/XEphem
58
59 dodoc Copyright README INSTALL
60 mv ${S}/GUI/xephem/xephem.man ${S}/xephem.1
61 doman ${S}/xephem.1
62 }

  ViewVC Help
Powered by ViewVC 1.1.20