/[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.3 Revision 1.10
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2010 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.3 2008/01/08 01:21:34 bicatali Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild,v 1.10 2010/12/02 20:09:48 jlec Exp $
4 4
5inherit eutils 5EAPI=2
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="~x86 ~amd64 ~ppc" 19KEYWORDS="amd64 ppc x86"
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="virtual/opengl
25 x11-libs/gtkglext 28 x11-libs/gtkglext
26 x11-libs/gtkglarea 29 x11-libs/gtkglarea
27 >=x11-libs/gtk+-2 30 >=x11-libs/gtk+-2
28 media-libs/libpng 31 media-libs/libpng
29 media-libs/tiff 32 media-libs/tiff
30 truetype? ( media-libs/ftgl )" 33 truetype? ( media-libs/ftgl )"
31 34
35DEPEND="${RDEPEND}
36 dev-util/pkgconfig"
37
32S2="${WORKDIR}/objects" 38S2="${WORKDIR}/objects"
33 39
34src_unpack() { 40src_prepare() {
35 unpack ${A}
36 epatch ${DEB_PATCH}.diff 41 epatch "${WORKDIR}/${DEB_PATCH}.diff"
42 eautoreconf
43}
44
45src_configure() {
46 econf \
47 --with-gtk=2 \
48 $(use_enable nls) \
49 $(use_with truetype ftgl)
37} 50}
38 51
39src_compile() { 52src_compile() {
40 econf \
41 --with-gtk=2 \
42 $(use_enable nls) \
43 $(use_with truetype ftgl) \
44 || die "econf failed"
45 emake || die "emake failed" 53 emake || die "emake failed"
46 for i in ${LANGS}; do 54 for i in ${LANGS}; do
47 use linguas_${i} && emake ${i}.gmo 55 use linguas_${i} && emake ${i}.gmo
48 done 56 done
49} 57}
50 58
51src_install() { 59src_install() {
52 emake DESTDIR="${D}" install || die "emake install failed" 60 emake DESTDIR="${D}" install || die "emake install failed"
53 doicon src/icon.xpm 61 newicon src/icon.xpm lightspeed.xpm
54 make_desktop_entry lightspeed lightspeed \ 62 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
55 lightspeed.xpm "Science;Physics;Education"
56 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die 63 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
57 newdoc debian/changelog ChangeLog.Debian || die 64 newdoc debian/changelog ChangeLog.Debian || die
58 cd ${S2} 65 cd ${S2}
59 newdoc README objects-README || die 66 newdoc README objects-README || die
60 insinto /usr/share/${PN} 67 insinto /usr/share/${PN}

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20