/[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.1 Revision 1.9
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2009 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.1 2008/01/06 18:18:36 bicatali Exp $ 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 $
4 4
5EAPI=2
5inherit eutils 6inherit eutils
6 7
7DEB_PATCH="${PN}_${PV}-7" 8DEB_PATCH="${PN}_${PV}-7"
8DESCRIPTION="OpenGL interactive relativistic simulator" 9DESCRIPTION="OpenGL interactive relativistic simulator"
9HOMEPAGE="http://lightspeed.sourceforge.net/" 10HOMEPAGE="http://lightspeed.sourceforge.net/"
11 mirror://sourceforge/${PN}/objects-1.tar.gz 12 mirror://sourceforge/${PN}/objects-1.tar.gz
12 mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_PATCH}.diff.gz" 13 mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_PATCH}.diff.gz"
13 14
14LICENSE="LGPL-2.1" 15LICENSE="LGPL-2.1"
15SLOT="0" 16SLOT="0"
16KEYWORDS="~x86 ~amd64 ~ppc" 17KEYWORDS="amd64 ppc x86"
17 18
18IUSE="nls" 19IUSE="nls truetype"
19LANGS="es" 20LANGS="es"
20for i in ${LANGS}; do 21for i in ${LANGS}; do
21 IUSE="${IUSE} linguas_${i}" 22 IUSE="${IUSE} linguas_${i}"
22done 23done
23 24
24
25DEPEND="virtual/opengl 25RDEPEND="virtual/opengl
26 x11-libs/gtkglext 26 x11-libs/gtkglext
27 x11-libs/gtkglarea 27 x11-libs/gtkglarea
28 >=x11-libs/gtk+-2 28 >=x11-libs/gtk+-2
29 media-libs/libpng 29 media-libs/libpng
30 media-libs/tiff 30 media-libs/tiff
31 truetype? ( media-libs/ftgl )" 31 truetype? ( media-libs/ftgl )"
32 32
33DEPEND="${RDEPEND}
34 dev-util/pkgconfig"
35
33S2="${WORKDIR}/objects" 36S2="${WORKDIR}/objects"
34 37
35src_unpack() { 38src_prepare() {
36 unpack ${A}
37 epatch ${DEB_PATCH}.diff 39 epatch "${WORKDIR}/${DEB_PATCH}.diff"
40}
41
42src_configure() {
43 econf \
44 --with-gtk=2 \
45 $(use_enable nls) \
46 $(use_with truetype ftgl)
38} 47}
39 48
40src_compile() { 49src_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" 50 emake || die "emake failed"
47 for i in ${LANGS}; do 51 for i in ${LANGS}; do
48 use linguas_${i} && emake ${i}.gmo 52 use linguas_${i} && emake ${i}.gmo
49 done 53 done
50} 54}
51 55
52src_install() { 56src_install() {
53 emake DESTDIR="${D}" install || die "emake install failed" 57 emake DESTDIR="${D}" install || die "emake install failed"
54 doicon src/icon.xpm 58 newicon src/icon.xpm lightspeed.xpm
55 make_desktop_entry lightspeed lightspeed \ 59 make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
56 lightspeed.xpm "Science;Physics;Education"
57 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die 60 dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
58 newdoc debian/changelog ChangeLog.Debian || die 61 newdoc debian/changelog ChangeLog.Debian || die
59 cd ${S2} 62 cd ${S2}
60 newdoc README objects-README || die 63 newdoc README objects-README || die
61 insinto /usr/share/${PN} 64 insinto /usr/share/${PN}

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

  ViewVC Help
Powered by ViewVC 1.1.20