pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc *: Replace custom tool setup with new ggrep.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d982eb5d6a01
branches:  trunk
changeset: 324371:d982eb5d6a01
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Oct 17 08:39:13 2018 +0000

description:
*: Replace custom tool setup with new ggrep.

diffstat:

 lang/compiler-rt/Makefile |  10 ++--------
 lang/rust/Makefile        |   6 ++----
 misc/xdg-utils/Makefile   |  12 +++---------
 x11/gtk2/Makefile         |  11 ++---------
 x11/gtk3/Makefile         |  10 ++--------
 5 files changed, 11 insertions(+), 38 deletions(-)

diffs (159 lines):

diff -r 603b06112c9f -r d982eb5d6a01 lang/compiler-rt/Makefile
--- a/lang/compiler-rt/Makefile Wed Oct 17 08:30:43 2018 +0000
+++ b/lang/compiler-rt/Makefile Wed Oct 17 08:39:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2018/08/10 15:57:54 jperkin Exp $
+# $NetBSD: Makefile,v 1.4 2018/10/17 08:39:13 jperkin Exp $
 
 DISTNAME=      compiler-rt-6.0.1.src
 PKGNAME=       ${DISTNAME:S/.src//}
@@ -13,6 +13,7 @@
 
 USE_LANGUAGES= c99 c++11
 USE_CMAKE=     yes
+USE_TOOLS+=    ggrep
 GCC_REQD+=     4.8
 SSP_SUPPORTED= no
 
@@ -40,13 +41,6 @@
 post-extract:
        ${RUN} mkdir -p ${WRKDIR}/build
 
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "SunOS"
-BUILD_DEPENDS+=                grep>=0:../../textproc/grep
-TOOLS_PATH.grep=       ${PREFIX}/bin/ggrep
-.endif
-
 .include "../../devel/googletest/buildlink3.mk"
 .include "../../lang/llvm/buildlink3.mk"
 .include "../../lang/python/tool.mk"
diff -r 603b06112c9f -r d982eb5d6a01 lang/rust/Makefile
--- a/lang/rust/Makefile        Wed Oct 17 08:30:43 2018 +0000
+++ b/lang/rust/Makefile        Wed Oct 17 08:39:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2018/10/15 11:22:23 he Exp $
+# $NetBSD: Makefile,v 1.59 2018/10/17 08:39:13 jperkin Exp $
 
 DISTNAME=      rustc-1.29.1-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -14,7 +14,7 @@
 USE_GCC_RUNTIME=       yes
 USE_LANGUAGES=         c c++11
 USE_LIBTOOL=           yes
-USE_TOOLS+=            bash gmake perl:build pkg-config
+USE_TOOLS+=            bash ggrep gmake perl:build pkg-config
 # For internal llvm
 BUILD_DEPENDS+=                cmake-[0-9]*:../../devel/cmake
 
@@ -230,9 +230,7 @@
 .endif
 
 .if ${OPSYS} == "SunOS"
-BUILD_DEPENDS+=                grep>=0:../../textproc/grep
 BUILD_DEPENDS+=                coreutils>=0:../../sysutils/coreutils
-TOOLS_PATH.grep=       ${PREFIX}/bin/ggrep
 TOOLS_CREATE+=         md5sum
 TOOLS_PATH.md5sum=     ${PREFIX}/bin/gmd5sum
 .endif
diff -r 603b06112c9f -r d982eb5d6a01 misc/xdg-utils/Makefile
--- a/misc/xdg-utils/Makefile   Wed Oct 17 08:30:43 2018 +0000
+++ b/misc/xdg-utils/Makefile   Wed Oct 17 08:39:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2018/08/20 00:43:33 leot Exp $
+# $NetBSD: Makefile,v 1.15 2018/10/17 08:39:13 jperkin Exp $
 
 DISTNAME=      xdg-utils-1.1.3
 PKGREVISION=   1
@@ -15,14 +15,14 @@
 
 GNU_CONFIGURE= yes
 USE_LANGUAGES= # none
-USE_TOOLS+=    bash:run gmake grep:run gsed:run
+USE_TOOLS+=    bash:run gmake ggrep:run gsed:run
 
 SUBST_CLASSES+=                gsed
 SUBST_FILES.gsed=      scripts/xdg-*.in
 SUBST_STAGE.gsed=      pre-configure
 SUBST_MESSAGE.gsed=    Use GNU grep/sed instead of grep/sed.
 SUBST_SED.gsed+=       -e "s, sed , ${TOOLS_PATH.gsed} ,g"
-SUBST_SED.gsed+=       -e "s, grep , ${TOOLS_PATH.grep} ,g"
+SUBST_SED.gsed+=       -e "s, grep , ${TOOLS_PATH.ggrep} ,g"
 
 SUBST_CLASSES+=                paths
 SUBST_FILES.paths=     scripts/xdg-*.in
@@ -34,10 +34,4 @@
 # "foo > /dev/null 2> /dev/null" gives "foo: not found" with NetBSD's sh
 REPLACE_BASH+= scripts/xdg-*
 
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "SunOS"
-TOOLS_PLATFORM.grep=   # use pkgsrc ggrep
-.endif
-
 .include "../../mk/bsd.pkg.mk"
diff -r 603b06112c9f -r d982eb5d6a01 x11/gtk2/Makefile
--- a/x11/gtk2/Makefile Wed Oct 17 08:30:43 2018 +0000
+++ b/x11/gtk2/Makefile Wed Oct 17 08:39:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.299 2018/08/22 09:48:01 wiz Exp $
+# $NetBSD: Makefile,v 1.300 2018/10/17 08:39:13 jperkin Exp $
 
 DISTNAME=      gtk+-2.24.32
 PKGNAME=       ${DISTNAME:S/gtk/gtk2/}
@@ -21,7 +21,7 @@
 SUPERSEDES=            gail-[0-9]*
 
 USE_PKGLOCALEDIR=      yes
-USE_TOOLS+=            gmake msgfmt perl pkg-config
+USE_TOOLS+=            ggrep gmake msgfmt perl pkg-config
 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
 PTHREAD_AUTO_VARS=     yes
@@ -59,13 +59,6 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-# gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms
-# which do not have it.
-.if ${OPSYS} == "SunOS"
-BUILD_DEPENDS+=                grep-[0-9]*:../../textproc/grep
-TOOLS_PATH.grep=       ${PREFIX}/bin/ggrep
-.endif
-
 CPPFLAGS+=             -DPREFIX="\"${PREFIX}\""
 
 #SUBST_CLASSES+=               pthread
diff -r 603b06112c9f -r d982eb5d6a01 x11/gtk3/Makefile
--- a/x11/gtk3/Makefile Wed Oct 17 08:30:43 2018 +0000
+++ b/x11/gtk3/Makefile Wed Oct 17 08:39:13 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.118 2018/08/22 09:48:01 wiz Exp $
+# $NetBSD: Makefile,v 1.119 2018/10/17 08:39:13 jperkin Exp $
 
 DISTNAME=      gtk+-3.22.30
 PKGNAME=       ${DISTNAME:S/gtk/gtk3/}
@@ -13,7 +13,7 @@
 LICENSE=       gnu-lgpl-v2.1
 
 USE_PKGLOCALEDIR=      yes
-USE_TOOLS+=            gmake perl pkg-config bash xgettext msgmerge
+USE_TOOLS+=            ggrep gmake perl pkg-config bash xgettext msgmerge
 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
 PTHREAD_AUTO_VARS=     yes
@@ -47,12 +47,6 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-# gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms
-# which do not have it.
-.if ${OPSYS} == "SunOS"
-BUILD_DEPENDS+=                grep-[0-9]*:../../textproc/grep
-TOOLS_PATH.grep=       ${PREFIX}/bin/ggrep
-.endif
 # isnan and isinf are part of libc, not libm on DragonFly
 # conf tests fail detection due to conflicting definitions, just skip them
 CONFIGURE_ENV.DragonFly+=      ac_cv_func_isinf=yes



Home | Main Index | Thread Index | Old Index