summaryrefslogtreecommitdiff
path: root/sysutils/watchman
diff options
context:
space:
mode:
authormef <mef>2015-04-26 05:38:18 +0000
committermef <mef>2015-04-26 05:38:18 +0000
commitc58c657185927eb6a84010227a9208f720440e58 (patch)
tree5bd76d5c1d4496de1c402aec7882dc81b5e4e4e4 /sysutils/watchman
parent63a027b206708ff8d8ab30fb32592668d016e9e1 (diff)
downloadpkgsrc-c58c657185927eb6a84010227a9208f720440e58.tar.gz
(pkgsrc)
- Convert to MASTER_SITE_GITHUB, thanks tnn - Add SUBST to set VARBASE for WATCHMAN_STATE_DIR (upstream) - Update 3.0.0 to 3.1 .. ChangeLog doesn't seem to be available
Diffstat (limited to 'sysutils/watchman')
-rw-r--r--sysutils/watchman/Makefile18
-rw-r--r--sysutils/watchman/PLIST4
-rw-r--r--sysutils/watchman/distinfo8
3 files changed, 21 insertions, 9 deletions
diff --git a/sysutils/watchman/Makefile b/sysutils/watchman/Makefile
index d0d1c43a93c..4fc5cfb2fb4 100644
--- a/sysutils/watchman/Makefile
+++ b/sysutils/watchman/Makefile
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.5 2015/03/15 15:28:24 tnn Exp $
+# $NetBSD: Makefile,v 1.6 2015/04/26 05:38:18 mef Exp $
DISTNAME= watchman-${VERSION}
-VERSION= 3.0.0
+VERSION= 3.1
+MASTER_SITES= ${MASTER_SITE_GITHUB:=facebook/}
+GITHUB_PROJECT= watchman
+GITHUB_TAG= v3.1
CATEGORIES= sysutils
-MASTER_SITES= -https://github.com/facebook/watchman/archive/v${VERSION}.tar.gz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/facebook/watchman/
@@ -17,6 +19,16 @@ CONFIGURE_ARGS+= --enable-lenient
CONFIGURE_ARGS+= --enable-conffile=${PKG_SYSCONFDIR}/watchman.json
CONFIGURE_ARGS+= --with-pcre
+BUILD_DEFS+= VARBASE
+
+SUBST_CLASSES+= varbase
+SUBST_MESSAGE.varbase= set WATCHMAN_STATE_DIR to ${VARBASE}/run/watchman
+SUBST_STAGE.varbase= pre-configure
+SUBST_FILES.varbase= configure.ac
+SUBST_SED.varbase= -e '/^WATCHMAN_STATE_DIR/s,\\$$(prefix)/var/,${DESTDIR}${VARBASE}/,'
+
+PLIST_SUBST+= API_VERSION=${PKGNAME}.0
+
pre-configure:
cd ${WRKSRC} && ${SH} autogen.sh
diff --git a/sysutils/watchman/PLIST b/sysutils/watchman/PLIST
index 2048b55116c..ab5020bed35 100644
--- a/sysutils/watchman/PLIST
+++ b/sysutils/watchman/PLIST
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2014/08/09 22:59:30 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2015/04/26 05:38:18 mef Exp $
bin/watchman
-share/doc/${PKGNAME}/README.markdown
+share/doc/${API_VERSION}/README.markdown
diff --git a/sysutils/watchman/distinfo b/sysutils/watchman/distinfo
index b3706c73009..27cf24e350f 100644
--- a/sysutils/watchman/distinfo
+++ b/sysutils/watchman/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2015/02/14 22:36:53 nros Exp $
+$NetBSD: distinfo,v 1.5 2015/04/26 05:38:18 mef Exp $
-SHA1 (watchman-3.0.0.tar.gz) = cd62a0185401536455e3b6a67c3ee146e291ac9e
-RMD160 (watchman-3.0.0.tar.gz) = 288c8262375dd5166a22c96b643d9d7fdf170148
-Size (watchman-3.0.0.tar.gz) = 199034 bytes
+SHA1 (watchman-3.1.tar.gz) = eb5572cd9cf4ce2b8e31d51ed22d5ec8cc6301ae
+RMD160 (watchman-3.1.tar.gz) = a97176d48fe81a8c187836d1ef87646d3f3cbe1d
+Size (watchman-3.1.tar.gz) = 210849 bytes