/[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.12 - (show annotations) (download)
Thu Apr 7 18:37:15 2011 UTC (9 years ago) by bicatali
Branch: MAIN
Changes since 1.11: +2 -1 lines
Fix for the GTK M4 macro checking gtk:1, thanks Alex Belykh, bug #353785

(Portage version: 2.1.9.45/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20