diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-physics/lightspeed |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-physics/lightspeed')
-rw-r--r-- | sci-physics/lightspeed/Manifest | 10 | ||||
-rw-r--r-- | sci-physics/lightspeed/files/lightspeed-1.2a-autoconf.patch | 16 | ||||
-rw-r--r-- | sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch | 19 | ||||
-rw-r--r-- | sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild | 80 | ||||
-rw-r--r-- | sci-physics/lightspeed/lightspeed-1.2a-r2.ebuild | 75 | ||||
-rw-r--r-- | sci-physics/lightspeed/metadata.xml | 19 |
6 files changed, 219 insertions, 0 deletions
diff --git a/sci-physics/lightspeed/Manifest b/sci-physics/lightspeed/Manifest new file mode 100644 index 000000000000..82f1656b309c --- /dev/null +++ b/sci-physics/lightspeed/Manifest @@ -0,0 +1,10 @@ +AUX lightspeed-1.2a-autoconf.patch 592 SHA256 035dba75084fcc884146fe7e60e226d6f5daa2b63e3a1ece9d6ee79f45ca4e69 SHA512 e0bf6da5617ddc59159ad07ef82f6464f495d7e3377ecdfcd1fb4144a501c8d2e6857da239e159f04b27790d921a356bf46a5322088a3bcf786a19e32a4f8e81 WHIRLPOOL 2ce966abfb156d98470c79fabad7d523be64d81d3abd4b49d6f63552e1f28138c4381a681406674c339c7fdd73861af9e8c8d35b12862ad3ba7cf062c291928a +AUX lightspeed-1.2a-libpng15.patch 579 SHA256 29f01eb148358857208152a4a648833ef9091c5fc349017ccf4f53ac363b3f70 SHA512 ca876b167e538f014176143e0b42001b90a96a3e560a5b641ef10c2080a5f86b0d786b53e975a52dee8044bce24401e5f2a2d7e6bf08946938b4dfb379cac319 WHIRLPOOL 9e473ea906045cdb5b256b0bfec9c400ef5f76fc7d19a6896155368222924a02c62eaff39a3e72f2d3924ec44266acf75b76846cb07b9e2a2adef7e3b0e6c660 +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 +EBUILD lightspeed-1.2a-r1.ebuild 1594 SHA256 bd848bfefff779d22fcbc009a031c9b2d0de08d28861e54efcdb25737a9e3536 SHA512 830bc2d5c1dbdba5b3371a27dd378190a5dcc3c353432c8345d53888d9371860648746acb1131ea0518251b54cd4e3ac3a817f3d592aef4569136712af3cf855 WHIRLPOOL 427712212decfa4e41de703b32cbba2f53dfa296f2d507b8187ac97522c22966a907a08cae60f0b401ace24d4b675bff8ac6a75533683b603f9b7f524a65c736 +EBUILD lightspeed-1.2a-r2.ebuild 1524 SHA256 414d8866f2eb2bc0523af67c5b92e09e613f78167231fae1b50cd8d497869589 SHA512 7e69381fa323b8e0689b749f0f77e720d3034d6de81b91178e543d83cd0e92dd1bdbf13b7272546a4a557fb6673f7ab4e01c8d19f82da58b86dc15fe78e6f909 WHIRLPOOL 9390c72ea6e77a216c5d7bed6359524691ee77f65930a711c05e2292f183e5d625c0a435692ffd137f83a77eb33247aeb51fe7c086a3485f665dc4e1ea3dc241 +MISC ChangeLog 2832 SHA256 ea8140b976f855a60cdd1b0d40303a20dffcc77db1504b74f98f1e4fbd64868e SHA512 42443d083a5a47da87528a0d1dfa52bb95cdbe8ff9fd07a2d3cad85165dbf40cc4428ad3e6e3f5e28c7a141acb7fe68c2e2d2b9438363e8e88d4c72e4ce43ec5 WHIRLPOOL b0d08ce4233e0feb862fd4419be0040c7cea9896a7146bec88aa61657da46ef700a297149626fac0218c9f340e31d152be77dd9eb154a6e8a174a9afd28510c3 +MISC ChangeLog-2015 3730 SHA256 400beec964bc4527ca1b37190d73e2f14b8f2b46b191a753f4812be454869d34 SHA512 24092489e610d7bcee8b51a8c17126978a925c243b89d8835eb2a566e4f3b04070a4fab7f043599e3ee0e98c094ba1bc6cc25d169bd0431bc8f2018a4b6d9796 WHIRLPOOL ae4137a5c6c5fa8abc8d12337d8dceb356bf7e8d2c46c9e7d1fe66c0194da9ea6aaa167b1b83fd7b8c2093f70c64341b7171f5cef58218f069a525b2c4786eba +MISC metadata.xml 763 SHA256 c96eda595305a44153d750c19a2c5fc6fdef6ad7b94471fa7a62ea3c959a1636 SHA512 d33c67d677850f7eaf12b4086c66a49940259b5553470a9f3c9ca56279f06a99eec12384e75815e32e7953ac3275ce01e03582d35a9fa3de21e5b3380d02d08f WHIRLPOOL cfd178fd81c49f2d59cfba6ef1c23321aa8f73a68adf40e52f5bebeb656d24a0b2e9dc7617dedb356283b225269d8faefe5e6d5376ba819899febfde23fbb0cd 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..db0d0faa1123 --- /dev/null +++ b/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch @@ -0,0 +1,19 @@ +--- a/src/snapshot.c ++++ b/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..947d85f9cfd7 --- /dev/null +++ b/sci-physics/lightspeed/lightspeed-1.2a-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/lightspeed-1.2a-r2.ebuild b/sci-physics/lightspeed/lightspeed-1.2a-r2.ebuild new file mode 100644 index 000000000000..f9e752e9767e --- /dev/null +++ b/sci-physics/lightspeed/lightspeed-1.2a-r2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 l10n_es" + +RDEPEND=" + media-libs/libpng:0= + media-libs/tiff:0 + virtual/opengl + x11-libs/gtkglext + x11-libs/gtkglarea:2 + x11-libs/gtk+:2 + x11-libs/libXmu + truetype? ( media-libs/ftgl )" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${WORKDIR}/${DEB_PATCH}.diff" + "${FILESDIR}"/${P}-autoconf.patch + "${FILESDIR}"/${P}-libpng15.patch +) + +src_prepare() { + default + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + econf \ + --with-gtk=2 \ + $(use_enable nls) \ + $(use_with truetype ftgl) +} + +src_compile() { + emake + use l10n_es && emake es.gmo +} + +src_install() { + default + newicon src/icon.xpm lightspeed.xpm + make_desktop_entry ${PN} "Light Speed! Relativistic Simulator" + newdoc debian/changelog ChangeLog.Debian + cd "${WORKDIR}/objects" || die + 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..49af49355b38 --- /dev/null +++ b/sci-physics/lightspeed/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-physics@gentoo.org</email> + <name>Gentoo Physics Project</name> + </maintainer> + <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> |