From 0638fde9cda95796b87283cf001d3b57da9f0022 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 13 Jul 2014 11:37:06 +0200 Subject: [PATCH 1/3] New package: python-SPARQLWrapper-1.6.0 with python3.4 subpkg SPARQL Endpoint interface to Python. --- srcpkgs/python-SPARQLWrapper/template | 34 +++++++++++++++++++++++++++ srcpkgs/python3.4-SPARQLWrapper | 1 + 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/python-SPARQLWrapper/template create mode 120000 srcpkgs/python3.4-SPARQLWrapper diff --git a/srcpkgs/python-SPARQLWrapper/template b/srcpkgs/python-SPARQLWrapper/template new file mode 100644 index 0000000000..f5d7a4369c --- /dev/null +++ b/srcpkgs/python-SPARQLWrapper/template @@ -0,0 +1,34 @@ +# Template file for 'python-SPARQLWrapper' +pkgname=python-SPARQLWrapper +version=1.6.0 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="${hostmakedepends}" +depends="python" +pycompile_module="SPARQLWrapper" +short_desc="SPARQL Endpoint interface to Python (Python2)" +maintainer="Juan RP " +homepage="https://rdflib.github.io/sparqlwrapper/" +license="W3C" +distfiles="https://pypi.python.org/packages/source/S/SPARQLWrapper/SPARQLWrapper-${version}.tar.gz" +checksum=dadcbf190dd090d90325ca4126e96f262d620c45c4693ee9f168cf39af2fa373 + +post_install() { + vlicense LICENSE.txt LICENSE +} + +python3.4-SPARQLWrapper_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="SPARQLWrapper" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense ${wrksrc}/LICENSE.txt LICENSE + } +} diff --git a/srcpkgs/python3.4-SPARQLWrapper b/srcpkgs/python3.4-SPARQLWrapper new file mode 120000 index 0000000000..da43e69100 --- /dev/null +++ b/srcpkgs/python3.4-SPARQLWrapper @@ -0,0 +1 @@ +python-SPARQLWrapper \ No newline at end of file From ca37408980c92df83d3c47d01a0290cdcd6b1ba9 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 13 Jul 2014 11:42:49 +0200 Subject: [PATCH 2/3] python-rdflib: update to 4.1.2; add python3.4 subpkg --- srcpkgs/python-rdflib/template | 72 ++++++++++++++++++++++++++++------ srcpkgs/python3.4-rdflib | 1 + 2 files changed, 62 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3.4-rdflib diff --git a/srcpkgs/python-rdflib/template b/srcpkgs/python-rdflib/template index 0bd81bdce6..07db421430 100644 --- a/srcpkgs/python-rdflib/template +++ b/srcpkgs/python-rdflib/template @@ -1,17 +1,67 @@ # Template file for 'python-rdflib' pkgname=python-rdflib -version=3.2.2 -revision=2 -wrksrc="rdflib-${version}" +version=4.1.2 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" build_style=python-module -hostmakedepends="python-setuptools" -makedepends="python-devel python-isodate" -noarch="yes" +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-isodate python3.4-isodate python-parsing python3.4-parsing + python-SPARQLWrapper python3.4-SPARQLWrapper" +depends="python python-isodate python-parsing python-SPARQLWrapper" pycompile_module="rdflib" -depends="python>=2.7<3.0 python-isodate" -short_desc="Python library for working with RDF" +short_desc="Python2 library for working with RDF" maintainer="Juan RP " +homepage="https://github.com/RDFLib/rdflib" license="BSD" -homepage="http://rdflib.net/" -distfiles="https://github.com/downloads/RDFLib/rdflib/rdflib-${version}.tar.gz" -checksum=996b5c10b3303b10f155665066174c0b4cb1a6b756f8124eb92eb63dfc9a6a05 +distfiles="https://pypi.python.org/packages/source/r/rdflib/rdflib-${version}.tar.gz" +checksum=3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f + +post_extract() { + cp -a ${wrksrc} /tmp/python2.7-build + cp -a ${wrksrc} /tmp/python3.4-build + mv /tmp/python{2.7,3.4}-build ${wrksrc} +} + +pre_build() { + cd ${wrksrc}/python3.4-build + sed -i -e 's,csv2rdf =,csv2rdf3 =,' \ + -e 's,rdf2dot =,rdf2dot3 =,' \ + -e 's,rdfgraphisomorphism =,rdfgraphisomorphism3 =,' \ + -e 's,rdfpipe =,rdfpipe3 =,' \ + -e 's,rdfs2dot =,rdfs2dot3 =,' setup.py + find . -name '*.py' -exec sed -i -e 's,#!/usr/bin/env python,&3.4,' {} + +} + +do_build() { + cd ${wrksrc}/python2.7-build + python setup.py build + + cd ${wrksrc}/python3.4-build + python3.4 setup.py build +} + +do_install() { + cd ${wrksrc}/python2.7-build + python setup.py install --root=${DESTDIR} + + cd ${wrksrc}/python3.4-build + python3.4 setup.py install --root=${DESTDIR} +} + +python3.4-rdflib_package() { + noarch=yes + depends="python3.4 python3.4-isodate python3.4-parsing python3.4-SPARQLWrapper" + pycompile_version="3.4" + pycompile_module="rdflib" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/bin/csv2rdf3 + vmove usr/bin/rdf2dot3 + vmove usr/bin/rdfgraphisomorphism3 + vmove usr/bin/rdfpipe3 + vmove usr/bin/rdfs2dot3 + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-rdflib b/srcpkgs/python3.4-rdflib new file mode 120000 index 0000000000..22f10c1cbe --- /dev/null +++ b/srcpkgs/python3.4-rdflib @@ -0,0 +1 @@ +python-rdflib \ No newline at end of file From d4e5169592d7dacf320ba9865653d011577ae4ee Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 13 Jul 2014 11:47:48 +0200 Subject: [PATCH 3/3] xbps-git: revbump (implemented support to check free space on disk). --- srcpkgs/xbps-git/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/xbps-git/template b/srcpkgs/xbps-git/template index 7a61306fd0..01459922b2 100644 --- a/srcpkgs/xbps-git/template +++ b/srcpkgs/xbps-git/template @@ -1,7 +1,7 @@ # Template file for 'xbps-git' pkgname=xbps-git version=20140713 -revision=1 +revision=2 short_desc="The XBPS package system (development branch)" maintainer="Juan RP " homepage="http://www.voidlinux.eu/xbps"