diff --git a/srcpkgs/python-simplejson/template b/srcpkgs/python-simplejson/template index 7bd78ab52d4..91fa6872504 100644 --- a/srcpkgs/python-simplejson/template +++ b/srcpkgs/python-simplejson/template @@ -1,19 +1,32 @@ # Template file for 'python-simplejson' pkgname=python-simplejson -version=2.5.2 -revision=2 +version=3.5.3 +revision=1 +wrksrc="${pkgname#*-}-${version}" build_style=python-module -hostmakedepends="python-devel" +python_versions="2.7 3.4" +hostmakedepends="python-devel python3.4-devel" makedepends="${hostmakedepends}" +depends="python" pycompile_module="simplejson" -short_desc="Simple, fast, extensible JSON encoder/decoder for Python" +short_desc="Simple, fast, extensible JSON encoder/decoder for Python2" maintainer="Juan RP " -homepage="http://undefined.org/python/#simplejson" -license="MIT" +homepage="https://github.com/simplejson/simplejson" +license="MIT, AFL-2.1" +distfiles="https://pypi.python.org/packages/source/s/simplejson/simplejson-${version}.tar.gz" +checksum=a80dc90320e1c1b8eaceaaa755ae2aed382d64a59321ae9f6ddbe0321c02878a -do_fetch() { - local url="git://github.com/simplejson/simplejson.git" - git clone $url $pkgname-$version - cd $pkgname-$version - git checkout v${version} +post_install() { + vlicense LICENSE.txt LICENSE +} + +python3.4-simplejson_package() { + depends="python3.4" + pycompile_version="3.4" + pycompile_module="simplejson" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense ${wrksrc}/LICENSE.txt LICENSE + } } diff --git a/srcpkgs/python3.4-simplejson b/srcpkgs/python3.4-simplejson new file mode 120000 index 00000000000..50018d41468 --- /dev/null +++ b/srcpkgs/python3.4-simplejson @@ -0,0 +1 @@ +python-simplejson \ No newline at end of file