/[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.8 Revision 1.16
1# Copyright 1999-2008 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.8 2008/12/14 23:50:54 maekke Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild,v 1.16 2012/08/07 17:35:36 bicatali Exp $
4 4
5inherit eutils 5EAPI=4
6
7inherit autotools eutils
6 8
7DEB_PATCH="${PN}_${PV}-7" 9DEB_PATCH="${PN}_${PV}-7"
8DESCRIPTION="OpenGL interactive relativistic simulator" 10DESCRIPTION="OpenGL interactive relativistic simulator"
9HOMEPAGE="http://lightspeed.sourceforge.net/" 11HOMEPAGE="http://lightspeed.sourceforge.net/"
12SRC_URI="
10SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz 13 mirror://sourceforge/${PN}/${P}.tar.gz
11 mirror://sourceforge/${PN}/objects-1.tar.gz 14 mirror://sourceforge/${PN}/objects-1.tar.gz
12 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"
13 16
14LICENSE="LGPL-2.1" 17LICENSE="LGPL-2.1"
15SLOT="0" 18SLOT="0"
16KEYWORDS="amd64 ppc x86" 19KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
17 20
18IUSE="nls truetype" 21IUSE="nls truetype"
19LANGS="es" 22LANGS="es"
20for i in ${LANGS}; do 23for i in ${LANGS}; do
21 IUSE="${IUSE} linguas_${i}" 24 IUSE="${IUSE} linguas_${i}"
22done 25done
23 26
24DEPEND="virtual/opengl 27RDEPEND="
25 x11-libs/gtkglext
26 x11-libs/gtkglarea
27 >=x11-libs/gtk+-2
28 media-libs/libpng 28 media-libs/libpng
29 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
30 truetype? ( media-libs/ftgl )" 35 truetype? ( media-libs/ftgl )"
36
37DEPEND="${RDEPEND}
38 virtual/pkgconfig"
31 39
32S2="${WORKDIR}/objects" 40S2="${WORKDIR}/objects"
33 41
34src_unpack() { 42src_prepare() {
35 unpack ${A}
36 epatch ${DEB_PATCH}.diff 43 epatch "${WORKDIR}/${DEB_PATCH}.diff"
44 epatch \
45 "${FILESDIR}"/${P}-autoconf.patch \
46 "${FILESDIR}"/${P}-libpng15.patch
47 eautoreconf
37} 48}
38 49
39src_compile() { 50src_configure() {
40 econf \ 51 econf \
41 --with-gtk=2 \ 52 --with-gtk=2 \
42 $(use_enable nls) \ 53 $(use_enable nls) \
43 $(use_with truetype ftgl) 54 $(use_with truetype ftgl)
44 emake || die "emake failed" 55}
56
57src_compile() {
58 emake
59 local i
45 for i in ${LANGS}; do 60 for i in ${LANGS}; do
46 use linguas_${i} && emake ${i}.gmo 61 use linguas_${i} && emake ${i}.gmo
47 done 62 done
48} 63}
49 64
50src_install() { 65src_install() {
51 emake DESTDIR="${D}" install || die "emake install failed" 66 default
52 newicon src/icon.xpm lightspeed.xpm 67 newicon src/icon.xpm lightspeed.xpm
53 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator" 68 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
54 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
55 newdoc debian/changelog ChangeLog.Debian || die 69 newdoc debian/changelog ChangeLog.Debian
56 cd ${S2} 70 cd ${S2}
57 newdoc README objects-README || die 71 newdoc README objects-README
58 insinto /usr/share/${PN} 72 insinto /usr/share/${PN}
59 doins *.3ds *.lwo || die 73 doins *.3ds *.lwo
60} 74}
61 75
62pkg_postinst() { 76pkg_postinst() {
63 elog 77 elog
64 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.8  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20