pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/fromcvs Fix path to python interpreter in tohg.r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c60806ef166
branches:  trunk
changeset: 529009:9c60806ef166
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 22 19:13:49 2007 +0000

description:
Fix path to python interpreter in tohg.rb and depend on python.
Bump PKGREVISION.

diffstat:

 devel/fromcvs/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r beab00023cea -r 9c60806ef166 devel/fromcvs/Makefile
--- a/devel/fromcvs/Makefile    Tue May 22 19:04:24 2007 +0000
+++ b/devel/fromcvs/Makefile    Tue May 22 19:13:49 2007 +0000
@@ -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 @@
 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 @@
        ${INSTALL_SCRIPT} ${WRKSRC}/tohg ${PREFIX}/bin
 
 .include "../../lang/ruby/modules.mk"
+.include "../../lang/python/application.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index