1 |
commit: c4f70b4a13c25530e06860bb234eab86b5070367 |
2 |
Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net> |
3 |
AuthorDate: Tue Sep 27 16:44:55 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 4 19:15:22 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f70b4a |
7 |
|
8 |
sci-physics/lightspeed: EAPI bump 4 -> 6 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/2425 |
12 |
|
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
.../files/lightspeed-1.2a-libpng15.patch | 4 +- |
16 |
sci-physics/lightspeed/lightspeed-1.2a-r2.ebuild | 76 ++++++++++++++++++++++ |
17 |
2 files changed, 78 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch b/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch |
20 |
index c3909a7..db0d0faa1 100644 |
21 |
--- a/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch |
22 |
+++ b/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch |
23 |
@@ -1,5 +1,5 @@ |
24 |
---- src/snapshot.c |
25 |
-+++ src/snapshot.c |
26 |
+--- a/src/snapshot.c |
27 |
++++ b/src/snapshot.c |
28 |
@@ -26,6 +26,7 @@ |
29 |
#include "lightspeed.h" |
30 |
|
31 |
|
32 |
diff --git a/sci-physics/lightspeed/lightspeed-1.2a-r2.ebuild b/sci-physics/lightspeed/lightspeed-1.2a-r2.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000..5ff012c |
35 |
--- /dev/null |
36 |
+++ b/sci-physics/lightspeed/lightspeed-1.2a-r2.ebuild |
37 |
@@ -0,0 +1,76 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+inherit autotools eutils |
45 |
+ |
46 |
+DEB_PATCH="${PN}_${PV}-7" |
47 |
+DESCRIPTION="OpenGL interactive relativistic simulator" |
48 |
+HOMEPAGE="http://lightspeed.sourceforge.net/" |
49 |
+SRC_URI=" |
50 |
+ mirror://sourceforge/${PN}/${P}.tar.gz |
51 |
+ mirror://sourceforge/${PN}/objects-1.tar.gz |
52 |
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_PATCH}.diff.gz" |
53 |
+ |
54 |
+LICENSE="LGPL-2.1" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
57 |
+ |
58 |
+IUSE="nls truetype l10n_es" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ media-libs/libpng:0= |
62 |
+ media-libs/tiff:0 |
63 |
+ virtual/opengl |
64 |
+ x11-libs/gtkglext |
65 |
+ x11-libs/gtkglarea:2 |
66 |
+ x11-libs/gtk+:2 |
67 |
+ x11-libs/libXmu |
68 |
+ truetype? ( media-libs/ftgl )" |
69 |
+ |
70 |
+DEPEND="${RDEPEND} |
71 |
+ virtual/pkgconfig" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${WORKDIR}/${DEB_PATCH}.diff" |
75 |
+ "${FILESDIR}"/${P}-autoconf.patch |
76 |
+ "${FILESDIR}"/${P}-libpng15.patch |
77 |
+) |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ default |
81 |
+ mv configure.{in,ac} || die |
82 |
+ eautoreconf |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ econf \ |
87 |
+ --with-gtk=2 \ |
88 |
+ $(use_enable nls) \ |
89 |
+ $(use_with truetype ftgl) |
90 |
+} |
91 |
+ |
92 |
+src_compile() { |
93 |
+ emake |
94 |
+ use l10n_es && emake es.gmo |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ default |
99 |
+ newicon src/icon.xpm lightspeed.xpm |
100 |
+ make_desktop_entry ${PN} "Light Speed! Relativistic Simulator" |
101 |
+ newdoc debian/changelog ChangeLog.Debian |
102 |
+ cd "${WORKDIR}/objects" || die |
103 |
+ newdoc README objects-README |
104 |
+ insinto /usr/share/${PN} |
105 |
+ doins *.3ds *.lwo |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ elog |
110 |
+ elog "Some 3d models have been placed in /usr/share/${PN}" |
111 |
+ elog "You can load them in Light Speed! from the File menu." |
112 |
+ elog |
113 |
+} |