diff --git a/srcpkgs/python-xmldiff/template b/srcpkgs/python-xmldiff/template deleted file mode 100644 index b8f25af9575..00000000000 --- a/srcpkgs/python-xmldiff/template +++ /dev/null @@ -1,37 +0,0 @@ -# Template file for 'python-xmldiff' -pkgname=python-xmldiff -version=2.4 -revision=1 -archs=noarch -wrksrc="xmldiff-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-lxml python-six python-setuptools" -short_desc="Python2 classes to diff XML files" -maintainer="prspkt " -license="LGPL-3.0-or-later" -homepage="https://github.com/Shoobx/xmldiff" -changelog="https://raw.githubusercontent.com/Shoobx/xmldiff/master/CHANGES.rst" -distfiles="${PYPI_SITE}/x/xmldiff/xmldiff-${version}.tar.gz" -checksum=05bea20ce1f2c9678683bcce0c3ba9981f87d92b709d190e018bcbf047eccf63 - -alternatives="xmldiff:xmldiff:/usr/bin/xmldiff2" -replaces="xmldiff>=0" - -xmldiff_package() { - archs=noarch - build_style=meta - depends="${sourcepkg}>=${version}_${revision}" - short_desc+=" (transitional dummy package)" -} - -python3-xmldiff_package() { - archs=noarch - depends="python3-lxml python3-six python3-setuptools" - short_desc="${short_desc/Python2/Python3}" - alternatives="xmldiff:xmldiff:/usr/bin/xmldiff3" - pkg_install() { - vmove usr/bin/*3 - vmove usr/lib/python3* - } -} diff --git a/srcpkgs/python3-xmldiff b/srcpkgs/python3-xmldiff index 39c18c0bfdc..cb131c58ed8 120000 --- a/srcpkgs/python3-xmldiff +++ b/srcpkgs/python3-xmldiff @@ -1 +1 @@ -python-xmldiff \ No newline at end of file +xmldiff \ No newline at end of file diff --git a/srcpkgs/xmldiff b/srcpkgs/xmldiff deleted file mode 120000 index 39c18c0bfdc..00000000000 --- a/srcpkgs/xmldiff +++ /dev/null @@ -1 +0,0 @@ -python-xmldiff \ No newline at end of file diff --git a/srcpkgs/xmldiff/template b/srcpkgs/xmldiff/template new file mode 100644 index 00000000000..7cfdb79d749 --- /dev/null +++ b/srcpkgs/xmldiff/template @@ -0,0 +1,26 @@ +# Template file for 'xmldiff' +pkgname=xmldiff +version=2.4 +revision=2 +wrksrc="xmldiff-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-lxml python3-six python3-setuptools" +short_desc="Python3 classes to diff XML files" +maintainer="prspkt " +license="LGPL-3.0-or-later" +homepage="https://github.com/Shoobx/xmldiff" +changelog="https://raw.githubusercontent.com/Shoobx/xmldiff/master/CHANGES.rst" +distfiles="${PYPI_SITE}/x/xmldiff/xmldiff-${version}.tar.gz" +checksum=05bea20ce1f2c9678683bcce0c3ba9981f87d92b709d190e018bcbf047eccf63 +conflicts="python-xmldiff>=0" + +post_patch() { + rm -f xmldiff/_diff_match_patch_py2.py +} + +python3-xmldiff_package() { + build_style=meta + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" (transitional dummy package)" +}