summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-05-24 22:45:42 -0400
committerMichael Sterrett <mr_bones_@gentoo.org>2016-05-24 22:46:08 -0400
commit70ba89af110593ada4ba751903ec16cde6daddbf (patch)
tree3cad789aefe162f352961a8eb8e97c4f55599124 /games-arcade
parentsys-devel/binutils-config: add prefix support. (diff)
downloadgentoo-70ba89af110593ada4ba751903ec16cde6daddbf.tar.gz
gentoo-70ba89af110593ada4ba751903ec16cde6daddbf.tar.bz2
gentoo-70ba89af110593ada4ba751903ec16cde6daddbf.zip
games-arcade/diameter: work around the hand-rolled python detection code (bug #582888)
Package-Manager: portage-2.2.28
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/diameter/diameter-0.4.0.3-r1.ebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild
index fab59946eeec..53de3872c0eb 100644
--- a/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild
+++ b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -28,16 +28,26 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/gamediameter
+pkg_setup() {
+ python-any-r1_pkg_setup
+ games_pkg_setup
+}
+
src_prepare() {
sed -i \
-e "s:gamediameter:diameter:" \
configure.in || die
mv configure.in configure.ac || die
+ sed -i \
+ -e '/for i in .*\/lib/s:".*:/usr/lib/ ; do:' \
+ -e "/AC_SUBST.*LDFLAGS/s/\".*\"/\$PYTHON_LIBS/" \
+ acinclude.m4 || die
# bug #336812
sed -i \
-e '/gui nebular3.gif/s/gui//' \
data/texture/Makefile.am || die
eautoreconf
+ python_export PYTHON PYTHON_LIBS
}
src_install() {