summaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorIsmael Luceno2021-08-24 19:19:49 +0200
committerIsmael Luceno2021-08-24 20:14:45 +0200
commitb8d65681a97d847bd204b57a8b89ae175de43b17 (patch)
tree79a4d96b51753ca3568bb7e814752dee94851d0e /x11-toolkits
parentdd7faf620e925a47c3aff594234681c7b8d34a2a (diff)
pygtk2: Fix build and installation issues
Diffstat (limited to 'x11-toolkits')
-rwxr-xr-xx11-toolkits/pygtk2/BUILD2
-rwxr-xr-xx11-toolkits/pygtk2/DEPENDS5
-rwxr-xr-xx11-toolkits/pygtk2/DETAILS3
-rw-r--r--x11-toolkits/pygtk2/HISTORY9
-rwxr-xr-xx11-toolkits/pygtk2/PRE_BUILD3
5 files changed, 16 insertions, 6 deletions
diff --git a/x11-toolkits/pygtk2/BUILD b/x11-toolkits/pygtk2/BUILD
index f302b4f291..d4d731b6eb 100755
--- a/x11-toolkits/pygtk2/BUILD
+++ b/x11-toolkits/pygtk2/BUILD
@@ -1,2 +1,2 @@
-OPTS="$OPTS --enable-thread PYTHON=/usr/bin/python2" &&
+OPTS+=' --enable-thread' &&
default_build
diff --git a/x11-toolkits/pygtk2/DEPENDS b/x11-toolkits/pygtk2/DEPENDS
index 30ae1a3c44..2d4c1ec844 100755
--- a/x11-toolkits/pygtk2/DEPENDS
+++ b/x11-toolkits/pygtk2/DEPENDS
@@ -1,10 +1,11 @@
-depends python &&
+depends python PYTHON=python2 &&
depends atk &&
depends pango &&
depends pygobject &&
depends gtk+2 &&
depends libglade2 &&
-depends pycairo &&
+# XXX dead dependency; not worth making a spell for py2
+#depends pycairo &&
optional_depends numpy \
"" \
diff --git a/x11-toolkits/pygtk2/DETAILS b/x11-toolkits/pygtk2/DETAILS
index c2edc1adf5..b54d49a439 100755
--- a/x11-toolkits/pygtk2/DETAILS
+++ b/x11-toolkits/pygtk2/DETAILS
@@ -1,9 +1,8 @@
SPELL=pygtk2
VERSION=2.24.0
SOURCE_HASH=sha512:64f4344fcf7636e0b2016ffd5310250b5c02a1bf87e44aef39b5d4cf4a5fc50d27cb4f030d4c6802cff61fffb88dee7752821e3d8a4cd1c34dc3745d9ff2f0da
- BRANCH=`echo $VERSION|cut -d . -f 1,2`
SOURCE=pygtk-$VERSION.tar.bz2
- SOURCE_URL[0]=$GNOME_URL/sources/pygtk/$BRANCH/$SOURCE
+ SOURCE_URL[0]=$GNOME_URL/sources/pygtk/${VERSION%.*}/$SOURCE
# SOURCE_GPG="gurus.gpg:${SOURCE}.sig:UPSTREAM_HASH"
SOURCE_DIRECTORY="$BUILD_DIRECTORY/pygtk-$VERSION"
WEB_SITE=http://www.pygtk.org/
diff --git a/x11-toolkits/pygtk2/HISTORY b/x11-toolkits/pygtk2/HISTORY
index e7a726f807..0eb6632a01 100644
--- a/x11-toolkits/pygtk2/HISTORY
+++ b/x11-toolkits/pygtk2/HISTORY
@@ -1,4 +1,11 @@
-2020-12-25 Ismael Luceno <ismael@iodev.co.uk>
+2021-08-24 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS: moved PYTHON var to DEPENDS
+ * DETAILS: removed var BRANCH
+ * DEPENDS: removed pycairo
+ * PRE_BUILD: disabled examples to fix installation failure
+ forcibly add gtk dir for pygtk headers (due to missing pycairo)
+
+2020-12-25 Ismael Luceno <ismael@sourcemage.org>
* PRE_BUILD: Fixed building against newer pango versions
Fixed building against musl
diff --git a/x11-toolkits/pygtk2/PRE_BUILD b/x11-toolkits/pygtk2/PRE_BUILD
index 17d5fe99f2..fcda85dc83 100755
--- a/x11-toolkits/pygtk2/PRE_BUILD
+++ b/x11-toolkits/pygtk2/PRE_BUILD
@@ -1,5 +1,8 @@
default_pre_build &&
cd "$SOURCE_DIRECTORY" &&
+# XXX disable examples, causes build failures
+# XXX forcibly add gtk due to missing pycairo
+sedit '/^SUBDIRS =/{s/ examples / gtk /}' Makefile.in &&
# Adapt to APIs removed from Pango (taken from BLFS)
sedit '1394,1402 d' pango.defs &&
# Fix config.sub for musl