diff --git a/srcpkgs/python-watchman/template b/srcpkgs/python-watchman/template new file mode 100644 index 0000000000..e853eede76 --- /dev/null +++ b/srcpkgs/python-watchman/template @@ -0,0 +1,39 @@ +# Template file for 'python-watchman' +pkgname=python-watchman +version=1.4.1 +revision=1 +wrksrc="pywatchman-${version}" +build_style=python-module +pycompile_module="pywatchman" +hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools" +makedepends="python-devel python3-devel" +depends="watchman" +short_desc="Connect and query Watchman to discover file changes (Python2)" +maintainer="Hoang Nguyen " +license="BSD-3-Clause" +homepage="https://facebook.github.io/watchman/" +distfiles="${PYPI_SITE}/p/pywatchman/pywatchman-${version}.tar.gz + https://raw.githubusercontent.com/facebook/watchman/master/python/LICENSE>LICENSE.txt" +checksum="d0047eb275deafb0011eda0a1a815fbd9742478c3d2b5ad6956d300e447dc2f9 + d96f8d0b74d194c021f153c562307697128da61143515c947580b2489a341980" +alternatives=" + watchman-make:watchman-make:/usr/bin/watchman-make2 + watchman-wait:watchman-wait:/usr/bin/watchman-wait2" + +post_install() { + vlicense ../LICENSE.txt +} + +python3-watchman_package() { + short_desc="${short_desc/Python2/Python3}" + pycompile_module="pywatchman" + depends="watchman" + alternatives=" + watchman-make:watchman-make:/usr/bin/watchman-make3 + watchman-wait:watchman-wait:/usr/bin/watchman-wait3" + pkg_install() { + vmove usr/bin/watchman-make3 + vmove usr/bin/watchman-wait3 + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-watchman b/srcpkgs/python3-watchman new file mode 120000 index 0000000000..44c4d43b20 --- /dev/null +++ b/srcpkgs/python3-watchman @@ -0,0 +1 @@ +python-watchman \ No newline at end of file