blob: af6cb9434dd2da234c874d18c921fc45302fb3aa (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/xephem/xephem-3.5.2.ebuild,v 1.8 2002/10/14 09:44:21 aliz Exp $
S=${WORKDIR}/${P}
DESCRIPTION="XEphem is the X Windows Ephemeris, and provides a scientific-grade solar system model, star charts, sky views, plus a whole lot more."
SRC_URI="${PN}-${PV}.tar.gz"
HOMEPAGE="http://www.clearskyinstitute.com/xephem"
KEYWORDS="x86 ppc"
SLOT="0"
LICENSE="as-is"
DEPEND="x11-libs/openmotif"
RESTRICT="fetch"
pkg_setup() {
#rphillips: this stuff needs to go inside the pkg_setup() function -- drobbins
if [ ! -f ${DISTDIR}/${P}.tar.gz ] ; then
die "Please download ${P}.tar.gz from ${HOMEPAGE} and move it to ${DISTDIR}"
fi
}
src_compile() {
cd libastro
mv Makefile Makefile.orig
sed -e "s:CFLAGS=.*:CFLAGS=${CFLAGS} -ffast-math -Wall:" \
Makefile.orig > Makefile
emake || die
cd ../libip
mv Makefile Makefile.orig
sed -e "s:CFLAGS=*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \
Makefile.orig > Makefile
emake || die
cd ../GUI/xephem
xmkmf
mv Makefile Makefile.orig
sed -e "s:CDEBUGFLAGS = .*:CDEBUGFLAGS = ${CFLAGS} -fno-strength-reduce:" \
Makefile.orig > Makefile
emake || die
}
src_install() {
into /usr
dobin ${S}/GUI/xephem/xephem
insinto /opt/xephem/auxil
doins ${S}/GUI/xephem/auxil/*
insinto /opt/xephem/catalogs
doins ${S}/GUI/xephem/catalogs/*
insinto /opt/xephem/fifos
doins ${S}/GUI/xephem/fifos/*
insinto /opt/xephem/fits
doins ${S}/GUI/xephem/fits/*
cat > ${S}/XEphem <<EOT
XEphem.ShareDir: /opt/xephem
EOT
insinto /usr/lib/X11/app-defaults/
doins ${S}/XEphem
dodoc Copyright README INSTALL
mv ${S}/GUI/xephem/xephem.man ${S}/xephem.1
doman ${S}/xephem.1
}
|