2013-12-16 16:01:26 +00:00
|
|
|
# Template file for 'python-inotify'
|
|
|
|
pkgname=python-inotify
|
2015-01-24 18:35:35 +00:00
|
|
|
version=0.9.5
|
|
|
|
revision=1
|
2014-01-01 15:10:11 +00:00
|
|
|
noarch=yes
|
2014-07-01 10:57:47 +00:00
|
|
|
wrksrc="pyinotify-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="python"
|
2014-07-01 10:57:47 +00:00
|
|
|
pycompile_module="pyinotify.py"
|
|
|
|
short_desc="Monitoring filesystems events with inotify on Linux (Python2)"
|
|
|
|
homepage="https://github.com/seb-m/pyinotify/"
|
2013-12-16 16:01:26 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="MIT"
|
2015-01-24 18:35:35 +00:00
|
|
|
distfiles="${PYPI_SITE}/p/pyinotify/pyinotify-${version}.tar.gz"
|
|
|
|
checksum=e7c52a9f36cee27c5d0931ecf92959cd022317b00901bd34ef05ece4a2a5cb1b
|
2014-07-01 10:57:47 +00:00
|
|
|
|
|
|
|
pre_install() {
|
|
|
|
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pyinotify.py
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2015-01-24 18:35:35 +00:00
|
|
|
vlicense COPYING
|
2014-07-01 10:57:47 +00:00
|
|
|
}
|
2013-12-16 16:01:26 +00:00
|
|
|
|
2014-07-01 10:57:47 +00:00
|
|
|
python3.4-inotify_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="python3.4"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="pyinotify.py"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
2015-01-24 18:35:35 +00:00
|
|
|
vlicense ${wrksrc}/COPYING
|
2014-07-01 10:57:47 +00:00
|
|
|
}
|
2013-12-16 16:01:26 +00:00
|
|
|
}
|