/[gentoo-x86]/sci-astronomy/xephem/xephem-3.7.4-r1.ebuild
Gentoo

Contents of /sci-astronomy/xephem/xephem-3.7.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 5 14:59:38 2012 UTC (2 years, 4 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
keyword amd64-linux, x86-linux, removed old

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-astronomy/xephem/xephem-3.7.4-r1.ebuild,v 1.2 2010/11/08 17:10:14 xarthisius Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="Interactive tool for astronomical ephemeris and sky simulation"
9 HOMEPAGE="http://www.clearskyinstitute.com/xephem"
10 SRC_URI="http://97.74.56.125/free/${P}.tar.gz"
11 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
12 IUSE=""
13 SLOT=0
14 LICENSE="as-is"
15
16 DEPEND=">=x11-libs/openmotif-2.3:0
17 virtual/jpeg
18 media-libs/libpng"
19 RDEPEND="${DEPEND}"
20
21 pkg_setup() {
22 tc-export CC
23 }
24
25 src_prepare() {
26 # make sure we use system libs and respect user flags
27 epatch "${FILESDIR}"/${P}-libs-flags.patch \
28 "${FILESDIR}"/${P}-overflows.patch
29 }
30
31 src_compile() {
32 cd GUI/xephem
33 emake || die "emake failed"
34 for i in tools/{lx200xed,xedb,xephemdbd}; do
35 emake -C ${i} || die "emake ${i} failed"
36 done
37 }
38
39 src_install() {
40 into "/usr"
41 cd "${S}"/GUI/xephem
42 dobin xephem || die "dobin xephem failed"
43 doman xephem.1 || die
44 newicon XEphem.png ${PN}.png
45 insinto /usr/share/${PN}
46 for i in auxil catalogs fifos fits gallery lo; do
47 doins -r ${i} || die
48 done
49 insinto /usr/share/doc/${PF}/html
50 doins -r help/* || die
51 cd tools
52 for file in lx200xed/lx200xed xedb/xedb xephemdbd/xephemdbd; do
53 dobin ${file} || die "dobin ${file} failed"
54 done
55 for file in {xedb,lx200xed}/README; do
56 newdoc ${file} README.$(dirname ${file}) || die "newdoc ${file} failed"
57 done
58 cd xephemdbd
59 insinto /usr/share/doc/${PF}/xephemdbd
60 doins README cgi-lib.pl start-xephemdbd.pl xephemdbd.html xephemdbd.pl || die
61
62 cd "${S}"
63 echo > XEphem "XEphem.ShareDir: /usr/share/${PN}"
64 insinto /usr/share/X11/app-defaults
65 has_version '<x11-base/xorg-x11-7.0' && insinto /etc/X11/app-defaults
66 doins XEphem || die
67 echo > 99xephem "XEHELPURL=/usr/share/doc/${PF}/html/xephem.html"
68 doenvd 99xephem || die
69 dodoc Copyright README
70 make_desktop_entry xephem XEphem ${PN}
71 }
72
73 pkg_postinst() {
74 elog "See /usr/share/doc/${PF}/xephemdbd/README to set up a web interface"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20