/[gentoo-x86]/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild
Gentoo

Diff of /sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20