# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-sci/xephem/xephem-3.6.ebuild,v 1.3 2004/06/24 22:21:58 agriffis Exp $ 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 ~amd64 ~ppc" IUSE="" 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 sed -e "s:CFLAGS=.*:CFLAGS=${CFLAGS} -ffast-math -Wall:" \ -i Makefile emake || die cd ../libip sed -e "s:CFLAGS=*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \ -i Makefile emake || die cd ../liblilxml sed -e "s:CFLAGS=*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \ -i Makefile emake || die cd ../libjpegd sed -e "s:CFLAGS=*:CFLAGS=${CFLAGS} -I../libastro -ffast-math -Wall:" \ -i Makefile emake || die cd ../GUI/xephem xmkmf sed -e "s:CDEBUGFLAGS = .*:CDEBUGFLAGS = ${CFLAGS} -fno-strength-reduce:" \ -i 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 <