/[gentoo-x86]/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild
Gentoo

Contents of /sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Wed Sep 9 21:38:48 2009 UTC (10 years, 6 months ago) by bicatali
Branch: MAIN
Changes since 1.8: +13 -7 lines
Cleaned and removed the eautoreconf since the Debian patch already applied it
(Portage version: 2.2_rc40/cvs/Linux x86_64)

1 bicatali 1.9 # Copyright 1999-2009 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 bicatali 1.9 # $Header: $
4 bicatali 1.1
5 bicatali 1.9 EAPI=2
6 bicatali 1.1 inherit eutils
7    
8     DEB_PATCH="${PN}_${PV}-7"
9     DESCRIPTION="OpenGL interactive relativistic simulator"
10     HOMEPAGE="http://lightspeed.sourceforge.net/"
11     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
12     mirror://sourceforge/${PN}/objects-1.tar.gz
13     mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_PATCH}.diff.gz"
14    
15     LICENSE="LGPL-2.1"
16     SLOT="0"
17 maekke 1.8 KEYWORDS="amd64 ppc x86"
18 bicatali 1.1
19 bicatali 1.3 IUSE="nls truetype"
20 bicatali 1.1 LANGS="es"
21     for i in ${LANGS}; do
22     IUSE="${IUSE} linguas_${i}"
23     done
24    
25 bicatali 1.9 RDEPEND="virtual/opengl
26 bicatali 1.1 x11-libs/gtkglext
27     x11-libs/gtkglarea
28     >=x11-libs/gtk+-2
29     media-libs/libpng
30     media-libs/tiff
31     truetype? ( media-libs/ftgl )"
32    
33 bicatali 1.9 DEPEND="${RDEPEND}
34     dev-util/pkgconfig"
35    
36 bicatali 1.1 S2="${WORKDIR}/objects"
37    
38 bicatali 1.9 src_prepare() {
39     epatch "${WORKDIR}/${DEB_PATCH}.diff"
40 bicatali 1.1 }
41    
42 bicatali 1.9 src_configure() {
43 bicatali 1.1 econf \
44     --with-gtk=2 \
45     $(use_enable nls) \
46 bicatali 1.6 $(use_with truetype ftgl)
47 bicatali 1.9 }
48    
49     src_compile() {
50 bicatali 1.1 emake || die "emake failed"
51     for i in ${LANGS}; do
52     use linguas_${i} && emake ${i}.gmo
53     done
54     }
55    
56     src_install() {
57     emake DESTDIR="${D}" install || die "emake install failed"
58 drac 1.4 newicon src/icon.xpm lightspeed.xpm
59 bicatali 1.6 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
60 bicatali 1.1 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
61     newdoc debian/changelog ChangeLog.Debian || die
62     cd ${S2}
63     newdoc README objects-README || die
64     insinto /usr/share/${PN}
65     doins *.3ds *.lwo || die
66     }
67    
68     pkg_postinst() {
69     elog
70     elog "Some 3d models have been placed in /usr/share/${PN}"
71     elog "You can load them in Light Speed! from the File menu."
72     elog
73     }

  ViewVC Help
Powered by ViewVC 1.1.20