/[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.14 - (hide annotations) (download)
Thu Feb 16 23:52:46 2012 UTC (8 years, 1 month ago) by bicatali
Branch: MAIN
Changes since 1.13: +10 -9 lines
Add x11-libs/libXmu dependency (thanks Piotr Szymaniak bug #403401), switched to EAPI4

(Portage version: 2.1.10.44/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20