/[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 - (show 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 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=2
6 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 KEYWORDS="amd64 ppc x86"
18
19 IUSE="nls truetype"
20 LANGS="es"
21 for i in ${LANGS}; do
22 IUSE="${IUSE} linguas_${i}"
23 done
24
25 RDEPEND="virtual/opengl
26 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 DEPEND="${RDEPEND}
34 dev-util/pkgconfig"
35
36 S2="${WORKDIR}/objects"
37
38 src_prepare() {
39 epatch "${WORKDIR}/${DEB_PATCH}.diff"
40 }
41
42 src_configure() {
43 econf \
44 --with-gtk=2 \
45 $(use_enable nls) \
46 $(use_with truetype ftgl)
47 }
48
49 src_compile() {
50 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 newicon src/icon.xpm lightspeed.xpm
59 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
60 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