summaryrefslogtreecommitdiff
path: root/devel/fromcvs
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-05-22 19:13:49 +0000
committerwiz <wiz@pkgsrc.org>2007-05-22 19:13:49 +0000
commitac801fb21ecf81d5b9cfbdb62d1f310fcbe8af34 (patch)
tree453adbce45f22a689df4e1445b6e2e0a05d17450 /devel/fromcvs
parent5e13adf1630ee5f3070875792c22137ec6334f0a (diff)
downloadpkgsrc-ac801fb21ecf81d5b9cfbdb62d1f310fcbe8af34.tar.gz
Fix path to python interpreter in tohg.rb and depend on python.
Bump PKGREVISION.
Diffstat (limited to 'devel/fromcvs')
-rw-r--r--devel/fromcvs/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/fromcvs/Makefile b/devel/fromcvs/Makefile
index 9f3766cd471..503d9b94907 100644
--- a/devel/fromcvs/Makefile
+++ b/devel/fromcvs/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2007/05/13 01:34:27 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2007/05/22 19:13:49 wiz Exp $
DISTNAME= 7a1ad0af8464
# Last part of PKGNAME is changeset number
PKGNAME= fromcvs-0.0.0.99
+PKGREVISION= 1
CATEGORIES= devel scm
MASTER_SITES= http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/archive/
EXTRACT_SUFX= .tar.bz2
@@ -20,6 +21,12 @@ LICENSE= corecode-license
WRKSRC= ${WRKDIR}/fromcvs-${DISTNAME}
DIST_SUBDIR= fromcvs
+SUBST_CLASSES+= python
+SUBST_FILES.python+= tohg.rb
+SUBST_MESSAGE.python+= Fixing path to Python interpreter.
+SUBST_SED.python+= -e "s!'python'!'${PYTHONBIN}'!"
+SUBST_STAGE.python+= pre-build
+
do-build:
${ECHO} "#!/bin/sh" > ${WRKSRC}/togit
${ECHO} "${RUBY} -I${PREFIX}/share/fromcvs ${PREFIX}/share/fromcvs/togit.rb \"\$$@\"" >> ${WRKSRC}/togit
@@ -39,4 +46,5 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tohg ${PREFIX}/bin
.include "../../lang/ruby/modules.mk"
+.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"