diff --git a/srcpkgs/python-vobject/template b/srcpkgs/python-vobject/template index c4d8576102f..b87455e7967 100644 --- a/srcpkgs/python-vobject/template +++ b/srcpkgs/python-vobject/template @@ -1,16 +1,36 @@ # Template file for 'python-vobject' pkgname=python-vobject -version=0.9.2 +version=0.9.3 revision=1 -wrksrc=vobject-${version} noarch=yes +wrksrc="vobject-${version}" build_style=python-module +python_versions="2.7 3.4" pycompile_module="vobject" -hostmakedepends="python-setuptools" -depends="python-dateutil" -short_desc="Vobject parses and creates iCalendar and vCard files in Python2" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python-setuptools python-dateutil python-six" +short_desc="Python2 package for parsing and creating iCalendar and vCard files" maintainer="Oliver Kiddle " license="Apache-2.0" -homepage="http://eventable.github.io/vobject" -distfiles="https://github.com/eventable/vobject/archive/${version}.tar.gz" -checksum=3df7a6f59a7696932b83ed1da0fc8f84228bbe7456faf395f8c0cbbd988859f0 +homepage="https://eventable.github.io/vobject" +distfiles="${PYPI_SITE}/v/vobject/vobject-${version}.tar.gz" +checksum=10b150b87ee5fffefd3aa1ea12f31aab45a7b7d010d1ce6816afaff8db726520 + +alternatives=" + vobject:change_tz:/usr/bin/change_tz2.7 + vobject:ics_diff:/usr/bin/ics_diff2.7" + +python3.4-vobject_package() { + noarch=yes + pycompile_version="3.4" + pycompile_module="vobject" + depends="python3.4-setuptools python3.4-dateutil python3.4-six" + short_desc="${short_desc/Python2/Python3.4}" + alternatives=" + vobject:change_tz:/usr/bin/change_tz3.4 + vobject:ics_diff:/usr/bin/ics_diff3.4" + pkg_install() { + vmove usr/bin/*3.4 + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/python3.4-vobject b/srcpkgs/python3.4-vobject new file mode 120000 index 00000000000..f0e84d97593 --- /dev/null +++ b/srcpkgs/python3.4-vobject @@ -0,0 +1 @@ +python-vobject \ No newline at end of file