pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/cogito on SunOS we need a grep that takes -q and...
details: https://anonhg.NetBSD.org/pkgsrc/rev/825940c4516a
branches: trunk
changeset: 530311:825940c4516a
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Fri Jun 22 21:46:14 2007 +0000
description:
on SunOS we need a grep that takes -q and an xargs that takes -0 so
stuff /usr/xpg4/bin/{f,}grep into all the scripts and get an xargs from
sysutils/findutils. Now this package seems to actually work.
diffstat:
devel/cogito/Makefile | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r 711e4f910eaa -r 825940c4516a devel/cogito/Makefile
--- a/devel/cogito/Makefile Fri Jun 22 17:46:19 2007 +0000
+++ b/devel/cogito/Makefile Fri Jun 22 21:46:14 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2007/03/10 19:09:33 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2007/06/22 21:46:14 dmcmahill Exp $
#
DISTNAME= cogito-0.18.2
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.kernel.org/pub/software/scm/cogito/
EXTRACT_SUFX= .tar.bz2
@@ -12,7 +13,30 @@
DEPENDS+= scmgit-[0-9]*:../../devel/scmgit
-USE_TOOLS+= gmake bash:run
+USE_TOOLS+= gmake bash:run fgrep:run grep:run xargs:run
MAKE_FLAGS+= prefix=${PREFIX:Q}
+.include "../../mk/bsd.prefs.mk"
+
+# we need gnu-ish versions of these. In particular, we require
+# that grep accept -q and xargs accept -0
+.if ${OPSYS} == "SunOS"
+
+DEPENDS+= findutils>=4.1:../../sysutils/findutils
+
+TOOLS_PLATFORM.xargs= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}xargs
+
+.endif
+
+post-patch:
+ for f in ${WRKSRC}/cg* ; do \
+ ${MV} $$f $$f.bak ; \
+ ${SED} -e 's;\([ ]\)fgrep\([ ]\);\1${FGREP}\2;g' \
+ -e 's;\([ ]\)grep\([ ]\);\1${GREP}\2;' \
+ -e 's;\([ ]\)xargs\([ ]\);\1${XARGS}\2;g' \
+ $$f.bak > $$f ; \
+ ${CHMOD} a+x $$f ; \
+ done
+
+
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index