diff --git a/srcpkgs/python-simplejson/template b/srcpkgs/python-simplejson/template index b2a5d9d774d..bc55f619b65 100644 --- a/srcpkgs/python-simplejson/template +++ b/srcpkgs/python-simplejson/template @@ -1,12 +1,11 @@ # Template file for 'python-simplejson' pkgname=python-simplejson version=3.8.2 -revision=1 +revision=2 wrksrc="simplejson-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" -makedepends="python-devel python3.4-devel" +hostmakedepends="python-setuptools python3-setuptools" +makedepends="python-devel python3-devel" pycompile_module="simplejson" short_desc="Simple, fast, extensible JSON encoder/decoder for Python2" maintainer="Juan RP " @@ -19,12 +18,17 @@ post_install() { vlicense LICENSE.txt LICENSE } -python3.4-simplejson_package() { - pycompile_version="3.4" +python3-simplejson_package() { pycompile_module="simplejson" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-simplejson>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* vlicense LICENSE.txt LICENSE } } +python3.4-simplejson_package() { + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-simplejson>=${version}_${revision}" +} diff --git a/srcpkgs/python3-simplejson b/srcpkgs/python3-simplejson new file mode 120000 index 00000000000..50018d41468 --- /dev/null +++ b/srcpkgs/python3-simplejson @@ -0,0 +1 @@ +python-simplejson \ No newline at end of file