python-rdflib: SPARQLWrapper is optional

This commit is contained in:
Alessio Sergi 2014-11-11 22:54:46 +01:00
parent 17ea528f46
commit 2e64238618

View file

@ -1,21 +1,18 @@
# Template file for 'python-rdflib' # Template file for 'python-rdflib'
pkgname=python-rdflib pkgname=python-rdflib
version=4.1.2 version=4.1.2
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="${pkgname#*-}-${version}" wrksrc="rdflib-${version}"
build_style=python-module
python_versions="2.7 3.4" python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools" hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-isodate python3.4-isodate python-parsing python3.4-parsing depends="python-isodate python-parsing"
python-SPARQLWrapper python3.4-SPARQLWrapper"
depends="python python-isodate python-parsing python-SPARQLWrapper"
pycompile_module="rdflib" pycompile_module="rdflib"
short_desc="Python2 library for working with RDF" short_desc="Python2 library for working with RDF"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://github.com/RDFLib/rdflib" homepage="https://github.com/RDFLib/rdflib"
license="BSD" license="BSD"
distfiles="https://pypi.python.org/packages/source/r/rdflib/rdflib-${version}.tar.gz" distfiles="${PYPI_SITE}/r/rdflib/rdflib-${version}.tar.gz"
checksum=3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f checksum=3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f
post_extract() { post_extract() {
@ -52,7 +49,7 @@ do_install() {
python3.4-rdflib_package() { python3.4-rdflib_package() {
noarch=yes noarch=yes
depends="python3.4 python3.4-isodate python3.4-parsing python3.4-SPARQLWrapper" depends="python3.4-isodate python3.4-parsing"
pycompile_version="3.4" pycompile_version="3.4"
pycompile_module="rdflib" pycompile_module="rdflib"
short_desc="${short_desc/Python2/Python3.4}" short_desc="${short_desc/Python2/Python3.4}"