summaryrefslogtreecommitdiff
path: root/www/grail
diff options
context:
space:
mode:
authordrochner <drochner>2002-01-29 19:25:53 +0000
committerdrochner <drochner>2002-01-29 19:25:53 +0000
commit3dc12a9847bbfc5ecefff8e795417ffc001a885e (patch)
tree2372c9c5ce0a9cc0bca8a6626d45ff06c318c4ee /www/grail
parentbe6efa180429c7b56821fc5118d83d29af69a276 (diff)
downloadpkgsrc-3dc12a9847bbfc5ecefff8e795417ffc001a885e.tar.gz
we have Python-1.5, so we can enable it again
Diffstat (limited to 'www/grail')
-rw-r--r--www/grail/Makefile17
-rw-r--r--www/grail/files/grail4
2 files changed, 11 insertions, 10 deletions
diff --git a/www/grail/Makefile b/www/grail/Makefile
index 11d86e26792..6d4ab0b8e70 100644
--- a/www/grail/Makefile
+++ b/www/grail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2002/01/05 21:35:39 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2002/01/29 19:25:53 drochner Exp $
#
DISTNAME= grail-06
@@ -11,10 +11,6 @@ MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://grail.sourceforge.net/
COMMENT= Grail(TM) is a web browser written in Python
-DEPENDS+= py-Tk-2.0*:../../x11/py-Tk
-
-BROKEN= "Awaiting new release compatible with Python 2.x"
-
USE_X11= yes
NO_CONFIGURE= yes
NO_BUILD= yes
@@ -22,17 +18,22 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/grail-0.6
GRAILDIR= share/misc/grail-0.6
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+PYTHON_VERSIONS_ACCEPTED= 15
do-install:
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
- ${SED} -e "s,@PREFIX@,${PREFIX}," -e "s,@GRAILDIR@,${GRAILDIR}," \
+ ${SED} -e "s,@PREFIX@,${PREFIX}," \
+ -e "s,@GRAILDIR@,${GRAILDIR}," \
+ -e "s,@PYTHONBIN@,${PYTHONBIN}," \
<${FILESDIR}/grail >${PREFIX}/bin/grail
${CHMOD} 555 ${PREFIX}/bin/grail
${CP} -R ${WRKSRC} ${PREFIX}/${GRAILDIR}
- ${PREFIX}/bin/python \
- ${PREFIX}/lib/python2.0/compileall.py ${PREFIX}/${GRAILDIR}
+ ${PYTHONBIN} ${PREFIX}/lib/python${PYVERSSUFFIX}/compileall.py \
+ ${PREFIX}/${GRAILDIR}
(cd ${PREFIX}; ${FIND} ${GRAILDIR} -type f -print >>${PLIST_SRC})
(cd ${PREFIX}; ${FIND} -d ${GRAILDIR} -type d -print | \
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
+.include "../../lang/python/application.buildlink.mk"
+.include "../../x11/py-Tk/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/grail/files/grail b/www/grail/files/grail
index 327a40cc667..a53e32db0a8 100644
--- a/www/grail/files/grail
+++ b/www/grail/files/grail
@@ -1,4 +1,4 @@
#! /bin/sh
-# $NetBSD: grail,v 1.1 1998/07/22 01:58:19 tsarna Exp $
-exec @PREFIX@/bin/python \
+# $NetBSD: grail,v 1.2 2002/01/29 19:25:54 drochner Exp $
+exec @PYTHONBIN@ \
@PREFIX@/@GRAILDIR@/grail.pyc ${1+"$@"}