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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Dec 24 04:26:45 2004 UTC (13 years, 10 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Moving to sci-astronomy/xephem

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

  ViewVC Help
Powered by ViewVC 1.1.20