summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-physics/lightspeed
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-physics/lightspeed')
-rw-r--r--sci-physics/lightspeed/Manifest3
-rw-r--r--sci-physics/lightspeed/files/lightspeed-1.2a-autoconf.patch16
-rw-r--r--sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch19
-rw-r--r--sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild81
-rw-r--r--sci-physics/lightspeed/metadata.xml16
5 files changed, 135 insertions, 0 deletions
diff --git a/sci-physics/lightspeed/Manifest b/sci-physics/lightspeed/Manifest
new file mode 100644
index 000000000000..9c2d5531dc78
--- /dev/null
+++ b/sci-physics/lightspeed/Manifest
@@ -0,0 +1,3 @@
+DIST lightspeed-1.2a.tar.gz 163764 SHA256 a8752acce625436b699b4d3c1ab479bd4116673784f17e527a3e37374abc4f4b SHA512 d936e54fcf3f5a59b9d4f0ce7777755d8262a71634f9fca0f5f312a2fbf9f5b65d3fe6628d1547cf88ac8a02243712e838e7d84c5e61a6a318484545896b46ef WHIRLPOOL 0dd6142a32b8c16508bb0fe333683ed8c82c1f461d92f1959e466c3098b56b9f4fa07f285ea754a97b149b60736cb84ff4dde61dd375318f6aa8ec2d0cf17b20
+DIST lightspeed_1.2a-7.diff.gz 379281 SHA256 1cbc562d1ad10afb9598510537cd64fdbbb1f9bd12ac27c5180a668bbc548a58 SHA512 f0a9999750470d45f9b7b6f3339fff5d75b461f8f937e16e784905e85a29fc5587b6b203f151f0a8075ea39b255f6d48c4ca78c48703f4ab3cd2d18af7a4df50 WHIRLPOOL 3cc70f8b1f27229fd510e58b3780f4904d521f192dd9cda7f27ab7feaf70aea0684661d1addcd1482ac36a20fd697f8ce55d81cf1f1d199552a657e35a09046f
+DIST objects-1.tar.gz 767805 SHA256 dd82324796b9f114c652220d069b131321a129ea41ef99cc0b8cbdf8c666bf5b SHA512 cb8c2d5c323b92b87dfe2bfa8f7f37c46b381c4611d5ca2f645a16943339b90850615647f6edc21ae28a28792b0f071e8cac9779dbfdbf6bf928498cdd451231 WHIRLPOOL 07853e37aa761beb5a94fbdce11baeb78ef9c652dbf32c85129cf75af5fe4dae8608fc51f2ccdf0ae612e904c36713ad9a304234234a8e274ae43d09fe068884
diff --git a/sci-physics/lightspeed/files/lightspeed-1.2a-autoconf.patch b/sci-physics/lightspeed/files/lightspeed-1.2a-autoconf.patch
new file mode 100644
index 000000000000..c6b2f9fda711
--- /dev/null
+++ b/sci-physics/lightspeed/files/lightspeed-1.2a-autoconf.patch
@@ -0,0 +1,16 @@
+diff --git a/configure.in b/configure.in
+index 1cfbcba..5363c05 100644
+--- a/configure.in
++++ b/configure.in
+@@ -54,9 +54,8 @@ if test "x$with_gtk" != "x1" -a "$gtkmorph_gtk" = "" ; then
+ AC_MSG_NOTICE([ Testing for GTK 2 skipped])
+ fi
+ if test "x$with_gtk" != "x2" -a "$version_of_gtk" = "" ; then
+- AM_PATH_GTK(1.0.1, , [AC_MSG_ERROR([Cannot find proper GTK+ version])])
+- version_of_gtk=gtk1
+- AC_DEFINE(HAVE_GTK1,1,"compiled with GTK 1 and GtkGLArea ")
++ AC_MSG_ERROR([Cannot find proper GTK+ version])
++ exit 1
+ fi
+
+ AM_CONDITIONAL(COND_GTK1, test "$version_of_gtk" = "gtk1" )
diff --git a/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch b/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch
new file mode 100644
index 000000000000..c3909a7b4dac
--- /dev/null
+++ b/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch
@@ -0,0 +1,19 @@
+--- src/snapshot.c
++++ src/snapshot.c
+@@ -26,6 +26,7 @@
+ #include "lightspeed.h"
+
+ #ifdef HAVE_LIBPNG
++#include <zlib.h>
+ #include <png.h>
+ static int write_png( int message, const void *data );
+ #endif
+@@ -305,7 +306,7 @@
+ return -1;
+ png_write_s = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
+ png_info_s = png_create_info_struct( png_write_s );
+- if (setjmp( png_write_s->jmpbuf )) {
++ if (setjmp( png_jmpbuf( png_write_s ) )) {
+ /* Error writing file */
+ png_destroy_write_struct( &png_write_s, &png_info_s );
+ fclose( png_fp );
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..44edb8d913a8
--- /dev/null
+++ b/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit autotools 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="amd64 ppc x86 ~amd64-linux ~x86-linux"
+
+IUSE="nls truetype"
+LANGS="es"
+for i in ${LANGS}; do
+ IUSE="${IUSE} linguas_${i}"
+done
+
+RDEPEND="
+ media-libs/libpng
+ media-libs/tiff
+ virtual/opengl
+ x11-libs/gtkglext
+ x11-libs/gtkglarea:2
+ x11-libs/gtk+:2
+ x11-libs/libXmu
+ truetype? ( media-libs/ftgl )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S2="${WORKDIR}/objects"
+
+src_prepare() {
+ epatch "${WORKDIR}/${DEB_PATCH}.diff"
+ epatch \
+ "${FILESDIR}"/${P}-autoconf.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-gtk=2 \
+ $(use_enable nls) \
+ $(use_with truetype ftgl)
+}
+
+src_compile() {
+ emake
+ local i
+ for i in ${LANGS}; do
+ use linguas_${i} && emake ${i}.gmo
+ done
+}
+
+src_install() {
+ default
+ newicon src/icon.xpm lightspeed.xpm
+ make_desktop_entry ${PN} "Light Speed! Relativistic Simulator"
+ newdoc debian/changelog ChangeLog.Debian
+ cd ${S2}
+ newdoc README objects-README
+ insinto /usr/share/${PN}
+ doins *.3ds *.lwo
+}
+
+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
new file mode 100644
index 000000000000..bbdc6a250095
--- /dev/null
+++ b/sci-physics/lightspeed/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-physics</herd>
+ <longdescription lang="en">
+ Light Speed! is an OpenGL-based program developed to illustrate the
+ effects of special relativity on the appearance of moving
+ 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>
+ <upstream>
+ <remote-id type="sourceforge">lightspeed</remote-id>
+ </upstream>
+</pkgmetadata>