python-inotify: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 04:57:10 +02:00
parent c019f234b4
commit d096664069
2 changed files with 15 additions and 13 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-inotify' # Template file for 'python-inotify'
pkgname=python-inotify pkgname=python-inotify
version=0.9.6 version=0.9.6
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="pyinotify-${version}" wrksrc="pyinotify-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4" hostmakedepends="python-setuptools python3-setuptools"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python" depends="python"
pycompile_module="pyinotify.py" pycompile_module="pyinotify.py"
short_desc="Monitoring filesystems events with inotify on Linux (Python2)" short_desc="Monitoring filesystems events with inotify on Linux (Python2)"
@ -16,22 +15,24 @@ license="MIT"
distfiles="${PYPI_SITE}/p/pyinotify/pyinotify-${version}.tar.gz" distfiles="${PYPI_SITE}/p/pyinotify/pyinotify-${version}.tar.gz"
checksum=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4 checksum=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4
pre_install() {
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pyinotify.py
}
post_install() { post_install() {
vlicense COPYING vlicense COPYING
} }
python3-inotify_package() {
noarch=yes
depends="python3"
pycompile_module="pyinotify.py"
replaces="python3.4-inotify>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING
}
}
python3.4-inotify_package() { python3.4-inotify_package() {
noarch=yes noarch=yes
depends="python3.4" build_style=meta
pycompile_version="3.4" short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
pycompile_module="pyinotify.py" depends="python3-inotify>=${version}_${revision}"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense ${wrksrc}/COPYING
}
} }

1
srcpkgs/python3-inotify Symbolic link
View File

@ -0,0 +1 @@
python-inotify