Update and switch to upstream's standard install target. It now uses
pledge, so add a marker to the Makefile.  Ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/the_silver_searcher/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- Makefile    9 Oct 2015 12:48:22 -0000       1.19
+++ Makefile    17 May 2016 07:51:20 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =      code searching tool, with a focus on speed (ag)
 
-DISTNAME =     the_silver_searcher-0.31.0
+DISTNAME =     the_silver_searcher-0.32.0
 CATEGORIES =   textproc
 
 HOMEPAGE =     https://github.com/ggreer/the_silver_searcher
@@ -11,6 +11,7 @@ MAINTAINER =  Florian Stinglmayr <florian
 # Apache 2.0
 PERMIT_PACKAGE_CDROM = Yes
 
+# uses pledge()
 WANTLIB += c lzma pcre pthread z
 
 MASTER_SITES = http://geoff.greer.fm/ag/releases/
@@ -19,18 +20,11 @@ LIB_DEPENDS =       archivers/xz \
                devel/pcre
 
 CONFIGURE_STYLE =      gnu
+SEPARATE_BUILD =       Yes
 CONFIGURE_ENV =                CPPFLAGS="-I${LOCALBASE}/include"
+FAKE_FLAGS =           bashcompdir=${PREFIX}/share/bash-completion/completions
 
-# referenced in Makefile, but apparently included in distfile
+# not included in distfile, only in repository. requires cram.
 NO_TEST =      YES
-
-pre-configure:
-       sed -i "s,-O2,,g" ${WRKSRC}/configure
-
-do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/ag ${PREFIX}/bin/ag
-       ${INSTALL_MAN} ${WRKSRC}/doc/ag.1 ${PREFIX}/man/man1
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions
-       ${INSTALL_DATA} ${WRKSRC}/ag.bashcomp.sh 
${PREFIX}/share/bash-completion/completions/ag
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/the_silver_searcher/distinfo,v
retrieving revision 1.17
diff -u -p -r1.17 distinfo
--- distinfo    18 Sep 2015 14:54:15 -0000      1.17
+++ distinfo    17 May 2016 07:51:20 -0000
@@ -1,2 +1,2 @@
-SHA256 (the_silver_searcher-0.31.0.tar.gz) = 
K1VtYacC0E4mOFMqugi8zxeFI7ajhGSiUwVWNYGCMnE=
-SIZE (the_silver_searcher-0.31.0.tar.gz) = 177903
+SHA256 (the_silver_searcher-0.32.0.tar.gz) = 
lEynfkmPNEsr+9jfbV2N97vBx+CAtQwLqz0amlUVG2A=
+SIZE (the_silver_searcher-0.32.0.tar.gz) = 179724
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/the_silver_searcher/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   20 Sep 2013 14:40:09 -0000      1.2
+++ pkg/PLIST   17 May 2016 07:51:20 -0000
@@ -3,4 +3,4 @@
 @man man/man1/ag.1
 share/bash-completion/
 share/bash-completion/completions/
-share/bash-completion/completions/ag
+share/bash-completion/completions/ag.bashcomp.sh

Reply via email to