2013-12-16 17:01:26 +01:00
|
|
|
# Template file for 'python-inotify'
|
|
|
|
pkgname=python-inotify
|
|
|
|
version=0.9.4
|
2014-07-01 12:57:47 +02:00
|
|
|
revision=2
|
2014-01-01 16:10:11 +01:00
|
|
|
noarch=yes
|
2014-07-01 12:57:47 +02:00
|
|
|
wrksrc="pyinotify-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="python"
|
2014-07-01 12:57:47 +02: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 17:01:26 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="MIT"
|
2014-07-01 12:57:47 +02:00
|
|
|
distfiles="https://pypi.python.org/packages/source/p/pyinotify/pyinotify-${version}.tar.gz"
|
|
|
|
checksum=a09767e4e0610e2e1e9f9dc89483b0ee4a53764e700f5866a570bec51d003fec
|
|
|
|
|
|
|
|
pre_install() {
|
|
|
|
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pyinotify.py
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-12-16 17:01:26 +01:00
|
|
|
|
2014-07-01 12:57:47 +02: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
|
|
|
|
vinstall ${wrksrc}/COPYING 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-12-16 17:01:26 +01:00
|
|
|
}
|