Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (989867c656770fee0ce2eee3936cd80cd87de0a1)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (989867c656770fee0ce2eee3936cd80cd87de0a1)
  • Date: Thu, 4 Aug 2016 23:33:35 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog |
3 +
graphics-libs/py3cairo/BUILD |
1
graphics-libs/py3cairo/DEPENDS |
2
graphics-libs/py3cairo/DETAILS |
16 +++++
graphics-libs/py3cairo/HISTORY |
6 ++
graphics-libs/py3cairo/INSTALL |
1
graphics-libs/py3cairo/PRE_BUILD |
24 ++++++++
graphics-libs/py3cairo/patches/pycairo-1.10.0-40_waf-py3_4.patch |
12 ++++
graphics-libs/py3cairo/patches/pycairo-1.10.0-70_dont-link-libpython.patch |
30 ++++++++++
graphics-libs/py3cairo/patches/pycairo-1.10.0-81_pickling-again.patch |
18 ++++++
10 files changed, 113 insertions(+)

New commits:
commit 989867c656770fee0ce2eee3936cd80cd87de0a1
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

py3cairo: new spell, Cairo bindings for Python 3

diff --git a/ChangeLog b/ChangeLog
index fb03033..e00e2c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2016-08-04 Ismael Luceno <ismael AT sourcemage.org>
+ * graphics-libs/py3cairo: new spell, Cairo bindings for Python 3
+
2016-08-03 Treeve Jelbert <treeve AT sourcemage.org>
* plasma/breeze-grub" theme for grub2

diff --git a/graphics-libs/py3cairo/BUILD b/graphics-libs/py3cairo/BUILD
new file mode 100755
index 0000000..89d9946
--- /dev/null
+++ b/graphics-libs/py3cairo/BUILD
@@ -0,0 +1 @@
+PYTHON=python3 waf_build
diff --git a/graphics-libs/py3cairo/DEPENDS b/graphics-libs/py3cairo/DEPENDS
new file mode 100755
index 0000000..76f7026
--- /dev/null
+++ b/graphics-libs/py3cairo/DEPENDS
@@ -0,0 +1,2 @@
+depends cairo &&
+depends python3
diff --git a/graphics-libs/py3cairo/DETAILS b/graphics-libs/py3cairo/DETAILS
new file mode 100755
index 0000000..68f0e9f
--- /dev/null
+++ b/graphics-libs/py3cairo/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=py3cairo
+ SPELLX=pycairo
+ VERSION=1.10.0
+ SOURCE=$SPELLX-$VERSION.tar.bz2
+
SOURCE_HASH=sha512:a03db6f04cea504985f390b0734042390f491f32ae2bee1299dabbafd369fde36bb506ebb941d22bbc11b0d008c4f758baeacf309a7336880529455092db829f
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELLX-$VERSION"
+ SOURCE_URL[0]=http://cairographics.org/releases/$SOURCE
+ SOURCE_URL[1]=http://pypi.python.org/packages/source/p/$SPELL/$SOURCE
+ LICENSE[0]=GPL
+ WEB_SITE=http://cairographics.org/pycairo/
+ ENTERED=20160804
+ KEYWORDS="graphics python libs"
+ SHORT="Cairo bindings for Python 3"
+cat << EOF
+Cairo bindings for Python 3.
+EOF
diff --git a/graphics-libs/py3cairo/HISTORY b/graphics-libs/py3cairo/HISTORY
new file mode 100644
index 0000000..6d6d3a3
--- /dev/null
+++ b/graphics-libs/py3cairo/HISTORY
@@ -0,0 +1,6 @@
+2016-08-04 Ismael Luceno <ismael AT sourcemage.org>
+ * patches/pycairo-1.10.0-70_dont-link-libpython.patch,
+ patches/pycairo-1.10.0-waf-py3_4.patch,
+ patches/pycairo-1.10.0-81_pickling-again.patch,
+ BUILD, DETAILS, DEPENDS, INSTALL, PRE_BUILD: Spell created, based on
+ pycairo.
diff --git a/graphics-libs/py3cairo/INSTALL b/graphics-libs/py3cairo/INSTALL
new file mode 100755
index 0000000..0ea15cc
--- /dev/null
+++ b/graphics-libs/py3cairo/INSTALL
@@ -0,0 +1 @@
+waf_install
diff --git a/graphics-libs/py3cairo/PRE_BUILD
b/graphics-libs/py3cairo/PRE_BUILD
new file mode 100755
index 0000000..526474f
--- /dev/null
+++ b/graphics-libs/py3cairo/PRE_BUILD
@@ -0,0 +1,24 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+# Hack taken from Gentoo
+patch -fp1 <<"!" &&
+--- a/waf
++++ b/waf
+@@ -153,6 +153,9 @@
+ return dir
+
+ wafdir = find_lib()
++if sys.argv[1:] == ['unpack']:
++ print(wafdir)
++ exit()
+ sys.path.insert(0, wafdir)
+ from waflib.Tools.c_config import MACRO_TO_DESTOS
+ MACRO_TO_DESTOS['__POWERPC__'] = 'darwin'
+!
+
+ln -s "$(./waf unpack)"/waflib . &&
+if [ -d "$SPELL_DIRECTORY/patches" ]; then
+ find "$SPELL_DIRECTORY/patches" \( -name \*.patch -o -name \*.diff \) \
+ -print0 | sort -zV | xargs -0 -n 1 patch -fp1 -i
+fi
diff --git a/graphics-libs/py3cairo/patches/pycairo-1.10.0-40_waf-py3_4.patch
b/graphics-libs/py3cairo/patches/pycairo-1.10.0-40_waf-py3_4.patch
new file mode 100644
index 0000000..d304568
--- /dev/null
+++ b/graphics-libs/py3cairo/patches/pycairo-1.10.0-40_waf-py3_4.patch
@@ -0,0 +1,12 @@
+Origin: Gentoo
+--- a/waflib/Tools/python.py
++++ b/waflib/Tools/python.py
+@@ -169,7 +169,7 @@
+
conf.find_program('python-config-%s'%num,var='PYTHON_CONFIG',mandatory=False)
+ includes=[]
+ if conf.env.PYTHON_CONFIG:
+- for incstr in
conf.cmd_and_log(conf.env.PYTHON+[conf.env.PYTHON_CONFIG,'--includes']).strip().split():
++ for incstr in
conf.cmd_and_log([conf.env.PYTHON_CONFIG,'--includes']).strip().split():
+ if(incstr.startswith('-I')or incstr.startswith('/I')):
+ incstr=incstr[2:]
+ if incstr not in includes:
diff --git
a/graphics-libs/py3cairo/patches/pycairo-1.10.0-70_dont-link-libpython.patch
b/graphics-libs/py3cairo/patches/pycairo-1.10.0-70_dont-link-libpython.patch
new file mode 100644
index 0000000..bf39345
--- /dev/null
+++
b/graphics-libs/py3cairo/patches/pycairo-1.10.0-70_dont-link-libpython.patch
@@ -0,0 +1,30 @@
+Origin: Gentoo
+Description: don't link libpython
+ This patch removes dependency to libpython
+Author: Matthias Klose <doko AT ubuntu.com>
+Origin:
http://launchpadlibrarian.net/166876566/py3cairo_1.10.0%2Bdfsg-3build2_1.10.0%2Bdfsg-3ubuntu1.diff.gz
+Bug-Debian: http://bugs.debian.org/739607
+Last-Update: 2014-02-20
+
+--- py3cairo-1.10.0+dfsg.orig/waflib/Tools/python.py
++++ py3cairo-1.10.0+dfsg/waflib/Tools/python.py
+@@ -155,8 +155,10 @@ def check_python_headers(conf):
+ if result:
+ break
+ if result:
+- env['LIBPATH_PYEMBED']=path
+- env.append_value('LIB_PYEMBED',[name])
++ # don't link libpython explicitly
++ #env['LIBPATH_PYEMBED']=path
++ #env.append_value('LIB_PYEMBED',[name])
++ pass
+ else:
+ conf.to_log("\n\n### LIB NOT FOUND\n")
+ if(sys.platform=='win32'or sys.platform.startswith('os2')or
sys.platform=='darwin'or dct['Py_ENABLE_SHARED']):
+@@ -278,4 +280,4 @@ feature('pyembed')(init_pyembed)
+ conf(get_python_variables)
+ conf(check_python_headers)
+ conf(check_python_version)
+-conf(check_python_module)
+\ No newline at end of file
++conf(check_python_module)
diff --git
a/graphics-libs/py3cairo/patches/pycairo-1.10.0-81_pickling-again.patch
b/graphics-libs/py3cairo/patches/pycairo-1.10.0-81_pickling-again.patch
new file mode 100644
index 0000000..1df83e6
--- /dev/null
+++ b/graphics-libs/py3cairo/patches/pycairo-1.10.0-81_pickling-again.patch
@@ -0,0 +1,18 @@
+Origin: Gentoo
+Description: Follow up to 80_fix-pickle.patch. Just disable pickling
+ altogether since the previous patch doesn't really fix the problem, and not
+ storing the pickle seems to have no adverse effects on the build, while
+ avoiding the observed traceback.
+Author: Barry Warsaw <barry AT debian.org>
+Forwarded: no
+
+--- a/waflib/Build.py
++++ b/waflib/Build.py
+@@ -151,6 +151,7 @@
+ f.close()
+ self.init_dirs()
+ def store(self):
++ return
+ data={}
+ for x in SAVED_ATTRS:
+ data[x]=getattr(self,x)



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (989867c656770fee0ce2eee3936cd80cd87de0a1), Ismael Luceno, 08/04/2016

Archive powered by MHonArc 2.6.24.

Top of Page