Introduce zope module and make zope-* ports use it.
From: Xavier Santolaria <xavier@santolaria.net>
This commit is contained in:
parent
e87fb06eff
commit
66353942fb
1
infrastructure/mk/zope.port.mk
Normal file
1
infrastructure/mk/zope.port.mk
Normal file
@ -0,0 +1 @@
|
||||
.include "${PORTSDIR}/www/zope/files/zope.port.mk"
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/06/04 21:59:14 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2003/07/17 15:11:38 naddy Exp $
|
||||
|
||||
COMMENT= "insert randomly-selected fortunes in your documents"
|
||||
|
||||
@ -18,23 +18,17 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
RUN_DEPENDS= ::www/zope
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
MODULES= zope
|
||||
|
||||
WRKDIST= ${WRKDIR}/lib/python/Products/Fortune
|
||||
|
||||
ZOPEHOME= ${PREFIX}/lib/zope
|
||||
PRODUCTSDIR= ${ZOPEHOME}/lib/python/Products
|
||||
|
||||
FORTUNEITEMS= FortuneTag.py fortunesetup.py README.txt __init__.py
|
||||
FORTUNEITEMS= FortuneTag fortunesetup __init__
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PRODUCTSDIR}/Fortune
|
||||
for p in ${FORTUNEITEMS}; do \
|
||||
cp ${WRKDIST}/$$p ${PRODUCTSDIR}/Fortune; \
|
||||
done
|
||||
chown -R ${LIBOWN}:${LIBGRP} ${PRODUCTSDIR}
|
||||
${INSTALL_DATA_DIR} ${MODZOPE_PRODUCTSDIR}/Fortune
|
||||
.for f in ${FORTUNEITEMS}
|
||||
${INSTALL_DATA} ${WRKDIST}/$f.{py,pyc} ${MODZOPE_PRODUCTSDIR}/Fortune
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKDIST}/README.txt ${MODZOPE_PRODUCTSDIR}/Fortune
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/06/04 21:59:14 naddy Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2003/07/17 15:11:38 naddy Exp $
|
||||
lib/zope/lib/python/Products/Fortune/FortuneTag.py
|
||||
lib/zope/lib/python/Products/Fortune/FortuneTag.pyc
|
||||
lib/zope/lib/python/Products/Fortune/README.txt
|
||||
lib/zope/lib/python/Products/Fortune/__init__.py
|
||||
lib/zope/lib/python/Products/Fortune/__init__.pyc
|
||||
lib/zope/lib/python/Products/Fortune/fortunesetup.py
|
||||
lib/zope/lib/python/Products/Fortune/fortunesetup.pyc
|
||||
@dirrm lib/zope/lib/python/Products/Fortune
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/06/18 01:31:30 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2003/07/17 15:11:38 naddy Exp $
|
||||
|
||||
COMMENT= "web page hit counter for Zope"
|
||||
|
||||
@ -19,29 +19,23 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
RUN_DEPENDS= ::www/zope
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
MODULES= zope
|
||||
|
||||
WRKDIST= ${WRKDIR}/FSCounter
|
||||
|
||||
ZOPEHOME= ${PREFIX}/lib/zope
|
||||
PRODUCTSDIR= ${ZOPEHOME}/lib/python/Products
|
||||
|
||||
INSTALL_LOC= ${PRODUCTSDIR}/FSCounter
|
||||
INSTALL_LOC= ${MODZOPE_PRODUCTSDIR}/FSCounter
|
||||
P_SUBDIRS= www
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${INSTALL_LOC}
|
||||
${INSTALL_DATA} ${WRKDIST}/*.dtml ${INSTALL_LOC}
|
||||
${INSTALL_DATA} ${WRKDIST}/*.py ${INSTALL_LOC}
|
||||
${INSTALL_DATA} ${WRKDIST}/*.pyc ${INSTALL_LOC}
|
||||
${INSTALL_DATA} ${WRKDIST}/*.txt ${INSTALL_LOC}
|
||||
.for i in ${P_SUBDIRS}
|
||||
${INSTALL_DATA_DIR} ${INSTALL_LOC}/$i
|
||||
${INSTALL_DATA} `find ${WRKDIST}/$i -maxdepth 1 -type f` \
|
||||
${INSTALL_LOC}/$i
|
||||
.endfor
|
||||
chown -R ${LIBOWN}:${LIBGRP} ${PRODUCTSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,9 +1,11 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/06/18 01:31:30 naddy Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2003/07/17 15:11:38 naddy Exp $
|
||||
lib/zope/lib/python/Products/FSCounter/FSCounter.py
|
||||
lib/zope/lib/python/Products/FSCounter/FSCounter.pyc
|
||||
lib/zope/lib/python/Products/FSCounter/FSCounterAdd.dtml
|
||||
lib/zope/lib/python/Products/FSCounter/FSCounterEdit.dtml
|
||||
lib/zope/lib/python/Products/FSCounter/FSCounterHelp.dtml
|
||||
lib/zope/lib/python/Products/FSCounter/__init__.py
|
||||
lib/zope/lib/python/Products/FSCounter/__init__.pyc
|
||||
lib/zope/lib/python/Products/FSCounter/changes.txt
|
||||
lib/zope/lib/python/Products/FSCounter/refresh.txt
|
||||
lib/zope/lib/python/Products/FSCounter/version.txt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2003/06/30 17:44:12 jolan Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2003/07/17 15:11:38 naddy Exp $
|
||||
|
||||
COMMENT= "logging product for Zope"
|
||||
|
||||
@ -19,23 +19,18 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
RUN_DEPENDS= :zope->=2.1:www/zope
|
||||
MODULES= zope
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
WRKDIST= ${WRKDIR}/Logger
|
||||
|
||||
WRKSRC= ${WRKDIR}/Logger
|
||||
|
||||
ZOPEHOME= ${PREFIX}/lib/zope
|
||||
PRODUCTSDIR= ${ZOPEHOME}/lib/python/Products
|
||||
|
||||
LOGGERITEMS= Logger.py README.txt __init__.py
|
||||
INSTALL_LOC= ${MODZOPE_PRODUCTSDIR}/Logger
|
||||
LOGGERITEMS= Logger __init__
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PRODUCTSDIR}/Logger
|
||||
for p in ${LOGGERITEMS}; do \
|
||||
cp ${WRKSRC}/$$p ${PRODUCTSDIR}/Logger; \
|
||||
done
|
||||
chown -R ${LIBOWN}:${LIBGRP} ${PRODUCTSDIR}
|
||||
${INSTALL_DATA_DIR} ${INSTALL_LOC}
|
||||
.for f in ${LOGGERITEMS}
|
||||
${INSTALL_DATA} ${WRKDIST}/$f.{py,pyc} ${INSTALL_LOC}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKDIST}/README.txt ${INSTALL_LOC}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/05/29 23:25:11 naddy Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2003/07/17 15:11:38 naddy Exp $
|
||||
lib/zope/lib/python/Products/Logger/Logger.py
|
||||
lib/zope/lib/python/Products/Logger/Logger.pyc
|
||||
lib/zope/lib/python/Products/Logger/README.txt
|
||||
lib/zope/lib/python/Products/Logger/__init__.py
|
||||
lib/zope/lib/python/Products/Logger/__init__.pyc
|
||||
@dirrm lib/zope/lib/python/Products/Logger
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/06/04 22:00:39 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2003/07/17 15:11:38 naddy Exp $
|
||||
|
||||
COMMENT= "insert random 'Zippy the Pinhead' quotes in your documents"
|
||||
|
||||
@ -21,23 +21,19 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
RUN_DEPENDS= ::www/zope
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
MODULES= zope
|
||||
|
||||
WRKDIST= ${WRKDIR}/lib/python/Products/Zippy
|
||||
|
||||
ZOPEHOME= ${PREFIX}/lib/zope
|
||||
PRODUCTSDIR= ${ZOPEHOME}/lib/python/Products
|
||||
|
||||
ITEMS= README.txt ZippyTag.py __init__.py yow.lines
|
||||
INSTALL_LOC= ${MODZOPE_PRODUCTSDIR}/Zippy
|
||||
ITEMS= ZippyTag __init__
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PRODUCTSDIR}/Zippy
|
||||
for p in ${ITEMS}; do \
|
||||
cp ${WRKDIST}/$$p ${PRODUCTSDIR}/Zippy; \
|
||||
done
|
||||
chown -R ${LIBOWN}:${LIBGRP} ${PRODUCTSDIR}
|
||||
${INSTALL_DATA_DIR} ${INSTALL_LOC}
|
||||
.for f in ${ITEMS}
|
||||
${INSTALL_DATA} ${WRKDIST}/$f.{py,pyc} ${INSTALL_LOC}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKDIST}/README.txt ${INSTALL_LOC}
|
||||
${INSTALL_DATA} ${WRKDIST}/yow.lines ${INSTALL_LOC}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/06/04 22:00:39 naddy Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2003/07/17 15:11:38 naddy Exp $
|
||||
lib/zope/lib/python/Products/Zippy/README.txt
|
||||
lib/zope/lib/python/Products/Zippy/ZippyTag.py
|
||||
lib/zope/lib/python/Products/Zippy/ZippyTag.pyc
|
||||
lib/zope/lib/python/Products/Zippy/__init__.py
|
||||
lib/zope/lib/python/Products/Zippy/__init__.pyc
|
||||
lib/zope/lib/python/Products/Zippy/yow.lines
|
||||
@dirrm lib/zope/lib/python/Products/Zippy
|
||||
|
21
www/zope/files/zope.port.mk
Normal file
21
www/zope/files/zope.port.mk
Normal file
@ -0,0 +1,21 @@
|
||||
# $OpenBSD: zope.port.mk,v 1.1 2003/07/17 15:11:38 naddy Exp $
|
||||
|
||||
MODZOPE_PYTHON_VERSION= 2.1
|
||||
|
||||
BUILD_DEPENDS+= :python->=${MODZOPE_PYTHON_VERSION},<2.2:lang/python/${MODZOPE_PYTHON_VERSION}
|
||||
RUN_DEPENDS+= ::www/zope
|
||||
|
||||
MODZOPE_HOME= ${PREFIX}/lib/zope
|
||||
MODZOPE_PRODUCTSDIR= ${MODZOPE_HOME}/lib/python/Products
|
||||
|
||||
PYTHON_BIN= ${LOCALBASE}/bin/python${MODZOPE_PYTHON_VERSION}
|
||||
PYTHON_LIBDIR= ${LOCALBASE}/lib/python${MODZOPE_PYTHON_VERSION}
|
||||
PYTHON_INCLUDEDIR= ${LOCALBASE}/include/python${MODZOPE_PYTHON_VERSION}
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-build:
|
||||
${PYTHON_BIN} ${PYTHON_LIBDIR}/compileall.py ${WRKDIST}
|
||||
|
||||
post-install:
|
||||
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${MODZOPE_PRODUCTSDIR}
|
Loading…
Reference in New Issue
Block a user