From b2ede75b90346cb853ed3b4bffbac0dc452f690a Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 24 Jul 2022 00:32:47 -0400 Subject: [PATCH] python3-rdflib: update to 6.2.0, remove python-rdflib. --- srcpkgs/python-rdflib/template | 43 ------------------- srcpkgs/python3-rdflib | 1 - srcpkgs/python3-rdflib/template | 28 ++++++++++++ .../{python-rdflib => python3-rdflib}/update | 0 srcpkgs/removed-packages/template | 1 + 5 files changed, 29 insertions(+), 44 deletions(-) delete mode 100644 srcpkgs/python-rdflib/template delete mode 120000 srcpkgs/python3-rdflib create mode 100644 srcpkgs/python3-rdflib/template rename srcpkgs/{python-rdflib => python3-rdflib}/update (100%) diff --git a/srcpkgs/python-rdflib/template b/srcpkgs/python-rdflib/template deleted file mode 100644 index 889ffcb7fa5..00000000000 --- a/srcpkgs/python-rdflib/template +++ /dev/null @@ -1,43 +0,0 @@ -# Template file for 'python-rdflib' -pkgname=python-rdflib -version=4.2.2 -revision=6 -wrksrc="rdflib-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-setuptools python-isodate python-parsing" -pycompile_module="rdflib" -short_desc="Python2 library for working with RDF" -maintainer="Orphaned " -homepage="https://github.com/RDFLib/rdflib" -license="3-clause-BSD" -distfiles="${PYPI_SITE}/r/rdflib/rdflib-${version}.tar.gz" -checksum=da1df14552555c5c7715d8ce71c08f404c988c58a1ecd38552d0da4fc261280d - -alternatives=" - rdflib:csv2rdf:/usr/bin/csv2rdf2 - rdflib:rdf2dot:/usr/bin/rdf2dot2 - rdflib:rdfgraphisomorphism:/usr/bin/rdfgraphisomorphism2 - rdflib:rdfpipe:/usr/bin/rdfpipe2 - rdflib:rdfs2dot:/usr/bin/rdfs2dot2" - -post_install() { - vlicense LICENSE -} - -python3-rdflib_package() { - alternatives=" - rdflib:csv2rdf:/usr/bin/csv2rdf3 - rdflib:rdf2dot:/usr/bin/rdf2dot3 - rdflib:rdfgraphisomorphism:/usr/bin/rdfgraphisomorphism3 - rdflib:rdfpipe:/usr/bin/rdfpipe3 - rdflib:rdfs2dot:/usr/bin/rdfs2dot3" - depends="python3-setuptools python3-isodate python3-parsing" - pycompile_module="rdflib" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/bin/*3 - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-rdflib b/srcpkgs/python3-rdflib deleted file mode 120000 index 22f10c1cbef..00000000000 --- a/srcpkgs/python3-rdflib +++ /dev/null @@ -1 +0,0 @@ -python-rdflib \ No newline at end of file diff --git a/srcpkgs/python3-rdflib/template b/srcpkgs/python3-rdflib/template new file mode 100644 index 00000000000..d91fc64d149 --- /dev/null +++ b/srcpkgs/python3-rdflib/template @@ -0,0 +1,28 @@ +# Template file for 'python3-rdflib' +pkgname=python3-rdflib +version=6.2.0 +revision=1 +wrksrc="${pkgname#*-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-setuptools python3-isodate python3-parsing" +depends="${makedepends}" +short_desc="Python3 library for working with RDF" +maintainer="Orphaned " +license="BSD-3-Clause" +homepage="https://github.com/RDFLib/rdflib" +changelog="https://raw.githubusercontent.com/RDFLib/rdflib/master/CHANGELOG.md" +distfiles="https://github.com/RDFLib/rdflib/archive/refs/tags/${version}.tar.gz" +checksum=d4b920f44ad0f7bc4977d0163840bb2c4d9b8ec2d1dae92b0974d0d3d8b5a126 +# pytest test collection fails +make_check=no + +post_install() { + vlicense LICENSE + # for compatibility + ln -s csv2rdf "${DESTDIR}/usr/bin/csv2rdf3" + ln -s rdf2dot "${DESTDIR}/usr/bin/rdf2dot3" + ln -s rdfgraphisomorphism "${DESTDIR}/usr/bin/rdfgraphisomorphism3" + ln -s rdfpipe "${DESTDIR}/usr/bin/rdfpipe3" + ln -s rdfs2dot "${DESTDIR}/usr/bin/rdfs2dot3" +} diff --git a/srcpkgs/python-rdflib/update b/srcpkgs/python3-rdflib/update similarity index 100% rename from srcpkgs/python-rdflib/update rename to srcpkgs/python3-rdflib/update diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 8456cb959d3..ba34f0e244d 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -322,6 +322,7 @@ replaces=" python-pystache<=0.5.4_6 python-pytest-relaxed<=1.1.2_2 python-pytz<=2021.3_2 + python-rdflib<=4.2.2_6 python-reportlab<=3.5.42_3 python-requests<=2.26.0_2 python-spambayes<=1.1b3_3