From d096664069bfb7ef70a452bea84892fad2bf97b1 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 04:57:10 +0200 Subject: [PATCH] python-inotify: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-inotify/template | 27 ++++++++++++++------------- srcpkgs/python3-inotify | 1 + 2 files changed, 15 insertions(+), 13 deletions(-) create mode 120000 srcpkgs/python3-inotify diff --git a/srcpkgs/python-inotify/template b/srcpkgs/python-inotify/template index f2cd9ba0ce1..82fbfc7ed68 100644 --- a/srcpkgs/python-inotify/template +++ b/srcpkgs/python-inotify/template @@ -1,12 +1,11 @@ # Template file for 'python-inotify' pkgname=python-inotify version=0.9.6 -revision=1 +revision=2 noarch=yes wrksrc="pyinotify-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="pyinotify.py" 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" checksum=9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4 -pre_install() { - sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pyinotify.py -} - post_install() { vlicense COPYING } -python3.4-inotify_package() { +python3-inotify_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="pyinotify.py" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-inotify>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 - vlicense ${wrksrc}/COPYING + vmove usr/lib/python3* + vlicense COPYING } } +python3.4-inotify_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-inotify>=${version}_${revision}" +} diff --git a/srcpkgs/python3-inotify b/srcpkgs/python3-inotify new file mode 120000 index 00000000000..cddf3ff670b --- /dev/null +++ b/srcpkgs/python3-inotify @@ -0,0 +1 @@ +python-inotify \ No newline at end of file