[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / cogito

File: [cvs.NetBSD.org] / pkgsrc / devel / cogito / Makefile (download)

Revision 1.21, Sat Jul 9 06:38:05 2016 UTC (7 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3
Changes since 1.20: +2 -2 lines

Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.

# $NetBSD: Makefile,v 1.21 2016/07/09 06:38:05 wiz Exp $

DISTNAME=		cogito-0.18.2
MASTER_SITES=		http://www.kernel.org/pub/software/scm/cogito/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://git.or.cz/cogito/
COMMENT=		Version control system of the Linux kernel

DEPENDS+=		git-[0-9]*:../../devel/git

USE_TOOLS+=		gmake bash:run perl:run
USE_TOOLS+=		fgrep:run grep:run mktemp:run xargs:run
MAKE_FLAGS+=		prefix=${PREFIX:Q}

REPLACE_BASH+=		cg cg-Xlib cg-Xmergefile cg-add cg-admin-cat
REPLACE_BASH+=		cg-admin-ls cg-admin-lsobj cg-admin-rewritehist
REPLACE_BASH+=		cg-admin-setuprepo cg-admin-uncommit cg-branch-add
REPLACE_BASH+=		cg-branch-chg cg-branch-ls cg-clean cg-clone
REPLACE_BASH+=		cg-commit cg-diff cg-export cg-fetch cg-help cg-init
REPLACE_BASH+=		cg-log cg-merge cg-mkpatch cg-mv cg-object-id cg-patch
REPLACE_BASH+=		cg-push cg-reset cg-restore cg-rm cg-seek cg-status
REPLACE_BASH+=		cg-switch cg-tag cg-tag-ls cg-tag-show cg-update
REPLACE_BASH+=		cg-version.in

REPLACE_PERL+=		cg-Xfetchprogress
REPLACE_PERL+=		cg-Xfollowrenames

.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/gxargs


	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 ; \

.include "../../mk/bsd.pkg.mk"