1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/www/zope-simpleblog/Makefile
Martin Wilke 115ea08761 set USE_ZOPE=2.9
Submitted by:	pointyhat via kris
2006-12-04 17:15:54 +00:00

55 lines
1.3 KiB
Makefile

# New ports collection makefile for: zope-simpleblog
# Date created: 05 October 2004
# Whom: saturnero@gufi.org
#
# $FreeBSD$
#
PORTNAME= simpleblog
PORTVERSION= 1.2.1
PORTREVISION= 2
CATEGORIES= www zope
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= collective
PKGNAMEPREFIX= zope-
DISTNAME= SimpleBlog${PORTVERSION}
DIST_SUBDIR= zope
MAINTAINER= ports@FreeBSD.org
COMMENT= SimpleBlog is an easy to use Plone based weblog application
RUN_DEPENDS= ${LOCALBASE}/${SZOPEBASEDIR}/${ZOPEPRODUCTDIR}/OFS/__init__.py:${PORTSDIR}/www/plone
WRKSRC=${WRKDIR}
USE_ZOPE= 2.9
USE_PYTHON= yes
MODULES= SimpleBlog
PLIST= ${WRKDIR}/pkg-plist
do-build:
-@for m in ${MODULES}; do \
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/$$m; \
done
pre-install:
@${RM} -f ${PLIST}
@${TOUCH} ${PLIST}
@for m in ${MODULES}; do \
if [ ! -f ${ZOPEBASEDIR}/Products/$${m}/__init__.py ]; then \
cd ${WRKSRC}; \
for i in `${FIND} $${m} -type f`; do \
${ECHO_CMD} %%ZOPEBASEDIR%%/Products/$${i} >> ${PLIST}; \
done; \
for i in `${FIND} -d $${m} -type d`; do \
${ECHO_CMD} @dirrm %%ZOPEBASEDIR%%/Products/$${i} >> ${PLIST}; \
done; \
fi;\
done
do-install:
@${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}
@(cd ${WRKSRC} && ${CP} -R ${MODULES} \
${ZOPEBASEDIR}/${ZOPEPRODUCTDIR})
.include <bsd.port.mk>