/[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.10 - (show annotations) (download)
Thu Dec 2 20:09:48 2010 UTC (9 years, 4 months ago) by jlec
Branch: MAIN
Changes since 1.9: +7 -4 lines
Reintroduced eautoreconf to avoid maintainer mode, 339739

(Portage version: 2.2.0_alpha6/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.9 2009/09/09 21:38:48 bicatali 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="virtual/opengl
28 x11-libs/gtkglext
29 x11-libs/gtkglarea
30 >=x11-libs/gtk+-2
31 media-libs/libpng
32 media-libs/tiff
33 truetype? ( media-libs/ftgl )"
34
35 DEPEND="${RDEPEND}
36 dev-util/pkgconfig"
37
38 S2="${WORKDIR}/objects"
39
40 src_prepare() {
41 epatch "${WORKDIR}/${DEB_PATCH}.diff"
42 eautoreconf
43 }
44
45 src_configure() {
46 econf \
47 --with-gtk=2 \
48 $(use_enable nls) \
49 $(use_with truetype ftgl)
50 }
51
52 src_compile() {
53 emake || die "emake failed"
54 for i in ${LANGS}; do
55 use linguas_${i} && emake ${i}.gmo
56 done
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install || die "emake install failed"
61 newicon src/icon.xpm lightspeed.xpm
62 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
63 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
64 newdoc debian/changelog ChangeLog.Debian || die
65 cd ${S2}
66 newdoc README objects-README || die
67 insinto /usr/share/${PN}
68 doins *.3ds *.lwo || die
69 }
70
71 pkg_postinst() {
72 elog
73 elog "Some 3d models have been placed in /usr/share/${PN}"
74 elog "You can load them in Light Speed! from the File menu."
75 elog
76 }

  ViewVC Help
Powered by ViewVC 1.1.20