/[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.1 - (show annotations) (download)
Sun Jan 6 18:18:36 2008 UTC (12 years, 3 months ago) by bicatali
Branch: MAIN
Updated with gtk-2 dependency, see bug #204621. Warning: still buggy.
(Portage version: 2.1.4_rc14)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
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 KEYWORDS="~x86 ~amd64 ~ppc"
17
18 IUSE="nls"
19 LANGS="es"
20 for i in ${LANGS}; do
21 IUSE="${IUSE} linguas_${i}"
22 done
23
24
25 DEPEND="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 S2="${WORKDIR}/objects"
34
35 src_unpack() {
36 unpack ${A}
37 epatch ${DEB_PATCH}.diff
38 }
39
40 src_compile() {
41 econf \
42 --with-gtk=2 \
43 $(use_enable nls) \
44 $(use_with truetype ftgl) \
45 || die "econf failed"
46 emake || die "emake failed"
47 for i in ${LANGS}; do
48 use linguas_${i} && emake ${i}.gmo
49 done
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "emake install failed"
54 doicon src/icon.xpm
55 make_desktop_entry lightspeed lightspeed \
56 lightspeed.xpm "Science;Physics;Education"
57 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
58 newdoc debian/changelog ChangeLog.Debian || die
59 cd ${S2}
60 newdoc README objects-README || die
61 insinto /usr/share/${PN}
62 doins *.3ds *.lwo || die
63 }
64
65 pkg_postinst() {
66 elog
67 elog "Some 3d models have been placed in /usr/share/${PN}"
68 elog "You can load them in Light Speed! from the File menu."
69 elog
70 }

  ViewVC Help
Powered by ViewVC 1.1.20