diff --git a/srcpkgs/fonttools/template b/srcpkgs/fonttools/template new file mode 100644 index 00000000000..dc7d013e993 --- /dev/null +++ b/srcpkgs/fonttools/template @@ -0,0 +1,34 @@ +# Template file for 'fonttools' +pkgname=fonttools +version=4.1.0 +revision=2 +archs=noarch +build_style=python3-module +pycompile_module="fonttools" +hostmakedepends="python3-devel python3-setuptools" +depends="python3" +short_desc="Library to manipulate font files from Python" +maintainer="svenper " +license="MIT, OFL-1.1, BSD-3-Clause" +homepage="https://github.com/fonttools/fonttools" +distfiles="https://github.com/fonttools/fonttools/archive/${version}.tar.gz" +checksum=8c1919e11c3152446ec8de8283a6f43fffde6acdcab81b468d7fd6ad4b54e798 +replaces="python-fonttools>=0 python3-fonttools>=0" +provides="python-fonttools>=${version}_${revision} python3-fonttools>=${version}_${revision}" + +post_install() { + vlicense LICENSE + vlicense LICENSE.external +} + +python-fonttools_package() { + depends="fontools>=${version}_${revision}" + build_style=meta + short_desc+=" (transitional dummy package Python 2)" +} + +python3-fonttools_package() { + depends="fontools>=${version}_${revision}" + build_style=meta + short_desc+=" (transitional dummy package Python 3)" +} diff --git a/srcpkgs/python-fonttools b/srcpkgs/python-fonttools new file mode 120000 index 00000000000..d10c4b7e084 --- /dev/null +++ b/srcpkgs/python-fonttools @@ -0,0 +1 @@ +fonttools \ No newline at end of file diff --git a/srcpkgs/python-fonttools/template b/srcpkgs/python-fonttools/template deleted file mode 100644 index 6a222e87482..00000000000 --- a/srcpkgs/python-fonttools/template +++ /dev/null @@ -1,31 +0,0 @@ -# Template file for 'python-fonttools' -pkgname=python-fonttools -version=3.44.0 -revision=4 -wrksrc="${pkgname#python-}-${version}" -build_style=python2-module -pycompile_module="fonttools" -hostmakedepends="python-devel python-setuptools" -makedepends="${hostmakedepends}" -short_desc="Library to manipulate font files from Python2" -maintainer="svenper " -license="MIT, OFL-1.1, BSD-3-Clause" -homepage="https://github.com/fonttools/fonttools" -distfiles="https://github.com/fonttools/fonttools/archive/${version}.tar.gz" -checksum=9dadbca88a5a841d821f6892fa9f4715ec03afd53980aaf4d61bd4be345b24ed -alternatives=" - fonttools:fonttools:/usr/bin/fonttools2 - fonttools:pyftmerge:/usr/bin/pyftmerge2 - fonttools:pyftsubset:/usr/bin/pyftsubset2 - fonttools:ttx:/usr/bin/ttx2 - fonttools:ttx.1:/usr/share/man/man1/ttx2.1" - -post_install() { - mv ${DESTDIR}/usr/bin/fonttools{,2} - mv ${DESTDIR}/usr/bin/pyftmerge{,2} - mv ${DESTDIR}/usr/bin/pyftsubset{,2} - mv ${DESTDIR}/usr/bin/ttx{,2} - mv ${DESTDIR}/usr/share/man/man1/ttx{,2}.1 - vlicense LICENSE - vlicense LICENSE.external -} diff --git a/srcpkgs/python-fonttools/update b/srcpkgs/python-fonttools/update deleted file mode 100644 index 2927cb964bf..00000000000 --- a/srcpkgs/python-fonttools/update +++ /dev/null @@ -1,3 +0,0 @@ -# "The v4.x version series only supports Python 3.6 or greater. -# You can keep using fonttools 3.x if you need support for Python 2." -ignore="[4-9].* [1-9][0-9]*.*" diff --git a/srcpkgs/python3-fonttools b/srcpkgs/python3-fonttools new file mode 120000 index 00000000000..d10c4b7e084 --- /dev/null +++ b/srcpkgs/python3-fonttools @@ -0,0 +1 @@ +fonttools \ No newline at end of file diff --git a/srcpkgs/python3-fonttools/template b/srcpkgs/python3-fonttools/template deleted file mode 100644 index cfdfde93a22..00000000000 --- a/srcpkgs/python3-fonttools/template +++ /dev/null @@ -1,31 +0,0 @@ -# Template file for 'python3-fonttools' -pkgname=python3-fonttools -version=4.1.0 -revision=1 -wrksrc="${pkgname#python3-}-${version}" -build_style=python3-module -pycompile_module="fonttools" -hostmakedepends="python3-devel python3-setuptools" -makedepends="${hostmakedepends}" -short_desc="Library to manipulate font files from Python3" -maintainer="svenper " -license="MIT, OFL-1.1, BSD-3-Clause" -homepage="https://github.com/fonttools/fonttools" -distfiles="https://github.com/fonttools/fonttools/archive/${version}.tar.gz" -checksum=8c1919e11c3152446ec8de8283a6f43fffde6acdcab81b468d7fd6ad4b54e798 -alternatives=" - fonttools:fonttools:/usr/bin/fonttools3 - fonttools:pyftmerge:/usr/bin/pyftmerge3 - fonttools:pyftsubset:/usr/bin/pyftsubset3 - fonttools:ttx:/usr/bin/ttx3 - fonttools:ttx.1:/usr/share/man/man1/ttx3.1" - -post_install() { - mv ${DESTDIR}/usr/bin/fonttools{,3} - mv ${DESTDIR}/usr/bin/pyftmerge{,3} - mv ${DESTDIR}/usr/bin/pyftsubset{,3} - mv ${DESTDIR}/usr/bin/ttx{,3} - mv ${DESTDIR}/usr/share/man/man1/ttx{,3}.1 - vlicense LICENSE - vlicense LICENSE.external -}