2018-10-18 22:28:44 +02:00
|
|
|
# Template file for 'python-xmldiff'
|
2018-08-20 01:33:47 +02:00
|
|
|
pkgname=python-xmldiff
|
2018-10-18 22:28:44 +02:00
|
|
|
version=2.2
|
2018-08-20 01:33:47 +02:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="xmldiff-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="xmldiff"
|
2018-10-18 22:28:44 +02:00
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
|
|
depends="python-lxml python-six python-setuptools"
|
2018-08-20 01:33:47 +02:00
|
|
|
short_desc="Python2 classes to diff XML files"
|
|
|
|
maintainer="prspkt <prspkt@protonmail.com>"
|
|
|
|
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"
|
2018-10-18 22:28:44 +02:00
|
|
|
checksum=aad7b8b00a49eeef7cd69757b2c548b88d4d7c584b95ac4ea9c0f08e167bc5a0
|
2018-08-20 01:33:47 +02:00
|
|
|
replaces="xmldiff>=0"
|
2018-10-18 22:28:44 +02:00
|
|
|
alternatives="xmldiff:xmldiff:/usr/bin/xmldiff2"
|
2018-08-20 01:33:47 +02:00
|
|
|
|
|
|
|
xmldiff_package() {
|
|
|
|
noarch=yes
|
|
|
|
build_style=meta
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" (transitional dummy package)"
|
|
|
|
}
|
|
|
|
|
|
|
|
python3-xmldiff_package() {
|
|
|
|
noarch=yes
|
|
|
|
pycompile_module="xmldiff"
|
2018-10-18 22:28:44 +02:00
|
|
|
depends="python3-lxml python3-six python3-setuptools"
|
2018-08-20 01:33:47 +02:00
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
2018-10-18 22:28:44 +02:00
|
|
|
alternatives="xmldiff:xmldiff:/usr/bin/xmldiff3"
|
2018-08-20 01:33:47 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/*3
|
|
|
|
vmove usr/lib/python3*
|
|
|
|
}
|
|
|
|
}
|