summaryrefslogtreecommitdiff
path: root/net/coilmq
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-01-22 07:13:22 +0000
committerwiz <wiz@pkgsrc.org>2014-01-22 07:13:22 +0000
commita6e9e31f8d425c241f0a37b01fee34c2233bb39f (patch)
tree7c668ed17bc846e1a60c5fb753e098deef7d2a6f /net/coilmq
parentc16db06bc6c9b21e646e8992e3ea2952dfdccbb1 (diff)
downloadpkgsrc-a6e9e31f8d425c241f0a37b01fee34c2233bb39f.tar.gz
Convert to distutils.mk to remove some homegrown replacement code.
No effective change. Mark as not for python-3.x.
Diffstat (limited to 'net/coilmq')
-rw-r--r--net/coilmq/Makefile20
-rw-r--r--net/coilmq/PLIST16
2 files changed, 13 insertions, 23 deletions
diff --git a/net/coilmq/Makefile b/net/coilmq/Makefile
index 1ca53b398aa..1acf28fb75a 100644
--- a/net/coilmq/Makefile
+++ b/net/coilmq/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2012/10/23 17:18:15 asau Exp $
-#
+# $NetBSD: Makefile,v 1.5 2014/01/22 07:13:22 wiz Exp $
DISTNAME= CoilMQ-0.6.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -17,25 +16,14 @@ DEPENDS+= ${PYPKGPREFIX}-daemon>=1.5.5:../../devel/py-daemon
USE_LANGUAGES= # none
-REPLACE_INTERPRETER+= python
-REPLACE.python.old= python
-REPLACE.python.new= ${PYTHONBIN}
-REPLACE_FILES.python= distribute_setup.py coilmq/start.py
+REPLACE_PYTHON+= distribute_setup.py coilmq/start.py
SUBST_CLASSES+= cfg
SUBST_STAGE.cfg= post-patch
SUBST_FILES.cfg= coilmq/config/__init__.py
SUBST_SED.cfg= -e 's,/path/to/config.cfg,${PKG_SYSCONFDIR}/coilmq/defaults.cfg,'
-.include "../../lang/python/egg.mk"
-
-# setup.py has python distribute as a dependency
-.if ${_PYTHON_VERSION} < 31
-SUBST_CLASSES+= setup
-SUBST_STAGE.setup= post-patch
-SUBST_FILES.setup= setup.py
-SUBST_SED.setup= -e 's,distribute,setuptools,'
-.endif
+PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-stompclient, py-daemon
EGDIR= ${PREFIX}/share/examples/coilmq
@@ -52,4 +40,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/coilmq/config/coilmq.cfg-sample \
${DESTDIR}${EGDIR}
+.include "../../lang/python/application.mk"
+.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/coilmq/PLIST b/net/coilmq/PLIST
index 3317b843b1e..34d8cbb9f67 100644
--- a/net/coilmq/PLIST
+++ b/net/coilmq/PLIST
@@ -1,12 +1,12 @@
-@comment $NetBSD: PLIST,v 1.1 2012/08/14 15:35:00 imil Exp $
+@comment $NetBSD: PLIST,v 1.2 2014/01/22 07:13:22 wiz Exp $
bin/coilmq
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_FILE}/PKG-INFO
+${PYSITELIB}/${EGG_FILE}/SOURCES.txt
+${PYSITELIB}/${EGG_FILE}/dependency_links.txt
+${PYSITELIB}/${EGG_FILE}/entry_points.txt
+${PYSITELIB}/${EGG_FILE}/not-zip-safe
+${PYSITELIB}/${EGG_FILE}/requires.txt
+${PYSITELIB}/${EGG_FILE}/top_level.txt
${PYSITELIB}/coilmq/__init__.py
${PYSITELIB}/coilmq/__init__.pyc
${PYSITELIB}/coilmq/__init__.pyo