summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-01-06 18:18:37 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-01-06 18:18:37 +0000
commitda4a984ef7e49dafe9f220ed5eadc6301c788ad3 (patch)
tree8b7a3fb6ba80b04e8b7a561e6f91b8aa1215463f
parentmasked lightspeed for broken launch of application (diff)
downloadgentoo-2-da4a984ef7e49dafe9f220ed5eadc6301c788ad3.tar.gz
gentoo-2-da4a984ef7e49dafe9f220ed5eadc6301c788ad3.tar.bz2
gentoo-2-da4a984ef7e49dafe9f220ed5eadc6301c788ad3.zip
Updated with gtk-2 dependency, see bug #204621. Warning: still buggy.
(Portage version: 2.1.4_rc14)
-rw-r--r--sci-physics/lightspeed/ChangeLog8
-rw-r--r--sci-physics/lightspeed/files/digest-lightspeed-1.2a-r19
-rw-r--r--sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild70
-rw-r--r--sci-physics/lightspeed/metadata.xml5
4 files changed, 90 insertions, 2 deletions
diff --git a/sci-physics/lightspeed/ChangeLog b/sci-physics/lightspeed/ChangeLog
index 4c855a13d5d6..2f236fa07f42 100644
--- a/sci-physics/lightspeed/ChangeLog
+++ b/sci-physics/lightspeed/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-physics/lightspeed
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/lightspeed/ChangeLog,v 1.6 2008/01/06 16:51:11 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/lightspeed/ChangeLog,v 1.7 2008/01/06 18:18:36 bicatali Exp $
+
+*lightspeed-1.2a-r1 (06 Jan 2008)
+
+ 06 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml,
+ +lightspeed-1.2a-r1.ebuild:
+ Updated with gtk-2 dependency, see bug #204621. Warning: still buggy.
06 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml,
lightspeed-1.2a.ebuild:
diff --git a/sci-physics/lightspeed/files/digest-lightspeed-1.2a-r1 b/sci-physics/lightspeed/files/digest-lightspeed-1.2a-r1
new file mode 100644
index 000000000000..d33eca2eef2b
--- /dev/null
+++ b/sci-physics/lightspeed/files/digest-lightspeed-1.2a-r1
@@ -0,0 +1,9 @@
+MD5 d6162f8b200db8ebfade791a71a439c0 lightspeed-1.2a.tar.gz 163764
+RMD160 8d52ec115db8d27ebe501df7fff11447750d1f6e lightspeed-1.2a.tar.gz 163764
+SHA256 a8752acce625436b699b4d3c1ab479bd4116673784f17e527a3e37374abc4f4b lightspeed-1.2a.tar.gz 163764
+MD5 6f42193e8b22e97f8175f1844ba63be5 lightspeed_1.2a-7.diff.gz 379281
+RMD160 1713bff69c3cbf19a4d80ae1025834f2c6f5f93b lightspeed_1.2a-7.diff.gz 379281
+SHA256 1cbc562d1ad10afb9598510537cd64fdbbb1f9bd12ac27c5180a668bbc548a58 lightspeed_1.2a-7.diff.gz 379281
+MD5 93a5cc2601f6eead110d933f2bd452f0 objects-1.tar.gz 767805
+RMD160 874b6f72a4e94789df62d40e63d89aeb0741d71b objects-1.tar.gz 767805
+SHA256 dd82324796b9f114c652220d069b131321a129ea41ef99cc0b8cbdf8c666bf5b objects-1.tar.gz 767805
diff --git a/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild b/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild
new file mode 100644
index 000000000000..21597ce80fea
--- /dev/null
+++ b/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild,v 1.1 2008/01/06 18:18:36 bicatali Exp $
+
+inherit eutils
+
+DEB_PATCH="${PN}_${PV}-7"
+DESCRIPTION="OpenGL interactive relativistic simulator"
+HOMEPAGE="http://lightspeed.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://sourceforge/${PN}/objects-1.tar.gz
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_PATCH}.diff.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+
+IUSE="nls"
+LANGS="es"
+for i in ${LANGS}; do
+ IUSE="${IUSE} linguas_${i}"
+done
+
+
+DEPEND="virtual/opengl
+ x11-libs/gtkglext
+ x11-libs/gtkglarea
+ >=x11-libs/gtk+-2
+ media-libs/libpng
+ media-libs/tiff
+ truetype? ( media-libs/ftgl )"
+
+S2="${WORKDIR}/objects"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${DEB_PATCH}.diff
+}
+
+src_compile() {
+ econf \
+ --with-gtk=2 \
+ $(use_enable nls) \
+ $(use_with truetype ftgl) \
+ || die "econf failed"
+ emake || die "emake failed"
+ for i in ${LANGS}; do
+ use linguas_${i} && emake ${i}.gmo
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ doicon src/icon.xpm
+ make_desktop_entry lightspeed lightspeed \
+ lightspeed.xpm "Science;Physics;Education"
+ dodoc AUTHORS ChangeLog MATH NEWS README TODO || die
+ newdoc debian/changelog ChangeLog.Debian || die
+ cd ${S2}
+ newdoc README objects-README || die
+ insinto /usr/share/${PN}
+ doins *.3ds *.lwo || die
+}
+
+pkg_postinst() {
+ elog
+ elog "Some 3d models have been placed in /usr/share/${PN}"
+ elog "You can load them in Light Speed! from the File menu."
+ elog
+}
diff --git a/sci-physics/lightspeed/metadata.xml b/sci-physics/lightspeed/metadata.xml
index 9217894fa48a..28884f87f0b8 100644
--- a/sci-physics/lightspeed/metadata.xml
+++ b/sci-physics/lightspeed/metadata.xml
@@ -5,6 +5,9 @@
<longdescription lang="en">
Light Speed! is an OpenGL-based program developed to illustrate the
effects of special relativity on the appearance of moving
- objects.
+ objects. The moving object is, by default, a geometric lattice. 3D
+ Studio and LightWave 3D objects may be imported as well. Best of
+ all, the simulator is completely interactive, rendering the exotic
+ distortions in real-time.
</longdescription>
</pkgmetadata>