diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2007-06-22 21:46:14 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2007-06-22 21:46:14 +0000 |
commit | 8e06e1f62de64383bf348ab15aa65b093ad4f0c3 (patch) | |
tree | c66aaa7d5a0385d3eae005adfe78e206def0c972 /devel | |
parent | d0d2660fbb605f08935a7d3f41dfc113140bcddc (diff) | |
download | pkgsrc-8e06e1f62de64383bf348ab15aa65b093ad4f0c3.tar.gz |
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 (limited to 'devel')
-rw-r--r-- | devel/cogito/Makefile | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/devel/cogito/Makefile b/devel/cogito/Makefile index 90996394301..807ecc6c98b 100644 --- a/devel/cogito/Makefile +++ b/devel/cogito/Makefile @@ -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 @@ COMMENT= Version control system of the Linux kernel 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" |