/[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.8 - (hide annotations) (download)
Sun Dec 14 23:50:54 2008 UTC (11 years, 3 months ago) by maekke
Branch: MAIN
Changes since 1.7: +2 -2 lines
amd64/x86 stable, bug #250360
(Portage version: 2.1.6.1/cvs/Linux 2.6.27.8 x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20