/[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.16 - (show annotations) (download)
Tue Aug 7 17:35:36 2012 UTC (2 years ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +2 -2 lines
keyword amd64-linux, x86-linux

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.15 2012/05/04 07:55:34 jdhore Exp $
4
5 EAPI=4
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 ~amd64-linux ~x86-linux"
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 x11-libs/libXmu
35 truetype? ( media-libs/ftgl )"
36
37 DEPEND="${RDEPEND}
38 virtual/pkgconfig"
39
40 S2="${WORKDIR}/objects"
41
42 src_prepare() {
43 epatch "${WORKDIR}/${DEB_PATCH}.diff"
44 epatch \
45 "${FILESDIR}"/${P}-autoconf.patch \
46 "${FILESDIR}"/${P}-libpng15.patch
47 eautoreconf
48 }
49
50 src_configure() {
51 econf \
52 --with-gtk=2 \
53 $(use_enable nls) \
54 $(use_with truetype ftgl)
55 }
56
57 src_compile() {
58 emake
59 local i
60 for i in ${LANGS}; do
61 use linguas_${i} && emake ${i}.gmo
62 done
63 }
64
65 src_install() {
66 default
67 newicon src/icon.xpm lightspeed.xpm
68 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
69 newdoc debian/changelog ChangeLog.Debian
70 cd ${S2}
71 newdoc README objects-README
72 insinto /usr/share/${PN}
73 doins *.3ds *.lwo
74 }
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