1998-06-16 15:32:45 +00:00
|
|
|
# Ports collection Makefile for: Grail
|
1999-01-10 18:52:35 +00:00
|
|
|
# Date created: 1/11/1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1998-06-16 15:32:45 +00:00
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1998-06-16 15:32:45 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= grail
|
|
|
|
PORTVERSION= 0.6
|
1999-05-28 20:52:30 +00:00
|
|
|
CATEGORIES= www python
|
|
|
|
MASTER_SITES= http://grail.cnri.reston.va.us/grail/source/
|
2000-04-10 00:07:29 +00:00
|
|
|
DISTNAME= ${PORTNAME}-06
|
1999-04-07 16:38:23 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
1998-06-16 15:32:45 +00:00
|
|
|
|
1998-07-04 22:07:35 +00:00
|
|
|
MAINTAINER= nectar@freebsd.org
|
1998-06-16 15:32:45 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
2000-04-04 09:53:12 +00:00
|
|
|
RUN_DEPENDS= ${PREFIX}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
1998-06-16 15:32:45 +00:00
|
|
|
|
1999-04-07 16:38:23 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
|
|
|
1999-05-28 20:52:30 +00:00
|
|
|
GRAILSUBDIR= share/grail
|
|
|
|
GRAILDIR= ${PREFIX}/${GRAILSUBDIR}
|
2000-06-22 14:06:24 +00:00
|
|
|
DIRS_CMD= ${SED} -e '/^@dirrm/bok' -e 'D' -e ':ok' -e 's,@dirrm ,,' < ${PLIST}
|
|
|
|
FILES_CMD= ${SED} -e '/^share\//bok' -e 'D' -e ':ok' -e 's,${GRAILSUBDIR}/,,' < ${PLIST}
|
1999-04-07 16:38:23 +00:00
|
|
|
|
1998-06-16 15:32:45 +00:00
|
|
|
FIND?=find
|
|
|
|
PYTHON?=python
|
|
|
|
|
|
|
|
do-build:
|
1999-04-07 16:38:23 +00:00
|
|
|
${PYTHON} -u -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
|
1998-06-16 15:32:45 +00:00
|
|
|
|
|
|
|
do-install:
|
1999-05-28 20:52:30 +00:00
|
|
|
@${ECHO} === Creating directories...
|
|
|
|
@for dir in `${DIRS_CMD}`; do \
|
|
|
|
${ECHO} ${PREFIX}/$$dir; \
|
|
|
|
${MKDIR} ${PREFIX}/$$dir; \
|
|
|
|
done
|
|
|
|
@${ECHO} === Installing grail files ...
|
|
|
|
@for file in `${FILES_CMD}`; do \
|
|
|
|
${ECHO} ${GRAILDIR}/$$file; \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${GRAILDIR}/$$file; \
|
|
|
|
done
|
|
|
|
@${ECHO} === Installing grail script...
|
|
|
|
@${SED} 's,%%GRAILDIR%%,${GRAILDIR},g' <${FILESDIR}/grail > \
|
1999-04-07 16:38:23 +00:00
|
|
|
${WRKDIR}/grail.tmp
|
1999-05-28 20:52:30 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/grail.tmp ${PREFIX}/bin/grail
|
|
|
|
@${RM} ${WRKDIR}/grail.tmp
|
1998-06-16 15:32:45 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|