1998-06-16 11:32:45 -04:00
|
|
|
# Ports collection Makefile for: Grail
|
1999-01-10 13:52:35 -05:00
|
|
|
# Date created: 1/11/1999
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: nectar@FreeBSD.org
|
1998-06-16 11:32:45 -04:00
|
|
|
#
|
1999-08-30 22:43:35 -04:00
|
|
|
# $FreeBSD$
|
1998-06-16 11:32:45 -04:00
|
|
|
#
|
|
|
|
|
2000-11-23 13:45:28 -05:00
|
|
|
PORTNAME= grail
|
2001-02-05 10:33:58 -05:00
|
|
|
PORTVERSION= 0.6
|
2000-11-23 13:45:28 -05:00
|
|
|
CATEGORIES= www python
|
2000-12-07 13:15:38 -05:00
|
|
|
MASTER_SITES= ftp://ftp.python.org/pub/grail/
|
2000-11-23 13:45:28 -05:00
|
|
|
DISTFILES= ${PORTNAME}-06.tgz
|
|
|
|
|
|
|
|
MAINTAINER= nectar@freebsd.org
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
|
2000-12-07 13:15:38 -05:00
|
|
|
USE_PYTHON= yes
|
2000-11-23 13:45:28 -05:00
|
|
|
GRAILSUBDIR= share/grail
|
|
|
|
GRAILDIR= ${PREFIX}/${GRAILSUBDIR}
|
|
|
|
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 12:38:23 -04:00
|
|
|
|
1998-06-16 11:32:45 -04:00
|
|
|
FIND?=find
|
|
|
|
PYTHON?=python
|
|
|
|
|
|
|
|
do-build:
|
1999-04-07 12:38:23 -04:00
|
|
|
${PYTHON} -u -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
|
1998-06-16 11:32:45 -04:00
|
|
|
|
|
|
|
do-install:
|
1999-05-28 16:52:30 -04: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 12:38:23 -04:00
|
|
|
${WRKDIR}/grail.tmp
|
1999-05-28 16:52:30 -04:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/grail.tmp ${PREFIX}/bin/grail
|
|
|
|
@${RM} ${WRKDIR}/grail.tmp
|
1998-06-16 11:32:45 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|