summaryrefslogtreecommitdiff
path: root/www/grail/Makefile
diff options
context:
space:
mode:
authorDonald Burr <dburr@FreeBSD.org>1998-06-16 15:32:45 +0000
committerDonald Burr <dburr@FreeBSD.org>1998-06-16 15:32:45 +0000
commitdce036209a9b9ebf87f9e19bcbb2cb1e7345a551 (patch)
tree057b95bccf71f57930e0aaf65312fab0de1a5971 /www/grail/Makefile
parentI don't know why this one was still marked RESTRICTED. While I'm (diff)
PR: ports/6923
Submitted by: Jacques Vidrine <n@nectar.com> New port www/grail, a free, fully customizable and extendable WWW browser written entirely in Python.
Notes
Notes: svn path=/head/; revision=11455
Diffstat (limited to 'www/grail/Makefile')
-rw-r--r--www/grail/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/www/grail/Makefile b/www/grail/Makefile
new file mode 100644
index 000000000000..0437020e4fdf
--- /dev/null
+++ b/www/grail/Makefile
@@ -0,0 +1,53 @@
+# Ports collection Makefile for: Grail
+# Version required: 0.4
+# Date created: 6/11/1998
+# Whom: n@nectar.com
+#
+# $Id$
+#
+
+DISTNAME= grail_04
+PKGNAME= grail-0.4
+CATEGORIES= www
+MASTER_SITES= http://monty.cnri.reston.va.us/grail-0.4/source/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= n@nectar.com
+
+BUILD_DEPENDS= python:${PORTSDIR}/lang/python
+RUN_DEPENDS= python:${PORTSDIR}/lang/python
+LIB_DEPENDS= tk80\\.1:${PORTSDIR}/x11/tk80
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+NO_CONFIGURE= YES
+
+CHOWN?=chown
+CHMOD?=chmod
+FIND?=find
+PYTHON?=python
+GREP?=grep
+
+do-build:
+ ${PYTHON} -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
+
+post-extract:
+ (cd ${WRKSRC} && find . -name '.cvsignore' -delete)
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/grail && \
+ ${CHOWN} ${BINOWN}.${BINGRP} ${PREFIX}/lib/grail && \
+ ${CHMOD} 0555 ${PREFIX}/lib/grail
+ (cd ${WRKSRC} && tar cf - .) | (cd ${PREFIX}/lib/grail && tar xf -)
+ (${ECHO} "#!/bin/sh"; \
+ ${ECHO} 'exec python ${PREFIX}/lib/grail/grail.py $${1+"$$@"}') \
+ >/tmp/grail.$$$$ && \
+ ${INSTALL_SCRIPT} \
+ /tmp/grail.$$$$ ${PREFIX}/bin/grail
+
+post-install:
+ ${CHOWN} -R ${BINOWN}.${BINGRP} ${PREFIX}/lib/grail
+ ${FIND} ${PREFIX}/lib/grail -type f -exec ${CHMOD} 0444 {} \;
+ ${FIND} ${PREFIX}/lib/grail -type d -exec ${CHMOD} 0555 {} \;
+
+.include <bsd.port.mk>