diff --git a/srcpkgs/python-netifaces/template b/srcpkgs/python-netifaces/template index cbf7b625ab4..185806a3b0a 100644 --- a/srcpkgs/python-netifaces/template +++ b/srcpkgs/python-netifaces/template @@ -1,12 +1,11 @@ # Template file for 'python-netifaces' pkgname=python-netifaces version=0.10.5 -revision=1 +revision=2 wrksrc="netifaces-${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" short_desc="Python2 library to retrieve information about network interfaces" maintainer="Alessio Sergi " homepage="https://bitbucket.org/al45tair/netifaces" @@ -14,9 +13,15 @@ license="MIT" distfiles="${PYPI_SITE}/n/netifaces/netifaces-${version}.tar.gz" checksum=59d8ad52dd3116fcb6635e175751b250dc783fb011adba539558bd764e5d628b -python3.4-netifaces_package() { - short_desc="${short_desc/Python2/Python3.4}" +python3-netifaces_package() { + replaces="python3.4-netifaces>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-netifaces_package() { + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-netifaces>=${version}_${revision}" +} diff --git a/srcpkgs/python3-netifaces b/srcpkgs/python3-netifaces new file mode 120000 index 00000000000..7fd5df6f422 --- /dev/null +++ b/srcpkgs/python3-netifaces @@ -0,0 +1 @@ +python-netifaces \ No newline at end of file