1 |
commit: 70ba89af110593ada4ba751903ec16cde6daddbf |
2 |
Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 25 02:45:42 2016 +0000 |
4 |
Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 25 02:46:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70ba89af |
7 |
|
8 |
games-arcade/diameter: work around the hand-rolled python detection code (bug #582888) |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
games-arcade/diameter/diameter-0.4.0.3-r1.ebuild | 12 +++++++++++- |
13 |
1 file changed, 11 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild |
16 |
index fab5994..53de387 100644 |
17 |
--- a/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild |
18 |
+++ b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2015 Gentoo Foundation |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
@@ -28,16 +28,26 @@ DEPEND="${RDEPEND} |
26 |
|
27 |
S=${WORKDIR}/gamediameter |
28 |
|
29 |
+pkg_setup() { |
30 |
+ python-any-r1_pkg_setup |
31 |
+ games_pkg_setup |
32 |
+} |
33 |
+ |
34 |
src_prepare() { |
35 |
sed -i \ |
36 |
-e "s:gamediameter:diameter:" \ |
37 |
configure.in || die |
38 |
mv configure.in configure.ac || die |
39 |
+ sed -i \ |
40 |
+ -e '/for i in .*\/lib/s:".*:/usr/lib/ ; do:' \ |
41 |
+ -e "/AC_SUBST.*LDFLAGS/s/\".*\"/\$PYTHON_LIBS/" \ |
42 |
+ acinclude.m4 || die |
43 |
# bug #336812 |
44 |
sed -i \ |
45 |
-e '/gui nebular3.gif/s/gui//' \ |
46 |
data/texture/Makefile.am || die |
47 |
eautoreconf |
48 |
+ python_export PYTHON PYTHON_LIBS |
49 |
} |
50 |
|
51 |
src_install() { |