this is an update to py-greenlet 0.4.4
all tests pass

changes:

- py3 flavor, a bit tricky because of the include file,
        i hope i got it right:

$ pkg_info -L py-greenlet
/usr/local/include/python2.7/greenlet/greenlet.h
/usr/local/lib/python2.7/site-packages/greenlet-0.4.4-py2.7.egg-info
/usr/local/lib/python2.7/site-packages/greenlet.so
/usr/local/share/doc/py-greenlet/README.rst

$ pkg_info -L py3-greenlet
/usr/local/include/python3.4m/greenlet/greenlet.h
/usr/local/lib/python3.4/site-packages/greenlet-0.4.4-py3.4.egg-info
/usr/local/lib/python3.4/site-packages/greenlet.so
/usr/local/share/doc/py3-greenlet/README.rst

please test and commit.

-f
-- 
the 4th world war will be fought with sticks and rocks.
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-greenlet/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- Makefile    11 Mar 2013 10:50:25 -0000      1.4
+++ Makefile    27 Sep 2014 14:00:03 -0000
@@ -4,13 +4,13 @@ COMMENT =     lightweight in-process concurr
 # see slp_platformselect.h
 ONLY_FOR_ARCHS =       amd64 arm i386 powerpc sparc sparc64
 
-MODPY_EGG_VERSION = 0.4.0
+MODPY_EGG_VERSION = 0.4.4
 DISTNAME =     greenlet-${MODPY_EGG_VERSION}
 PKGNAME =      py-${DISTNAME}
 EXTRACT_SUFX = .zip
 
 CATEGORIES =   devel
-HOMEPAGE =     http://pypi.python.org/pypi/greenlet
+HOMEPAGE =     https://github.com/python-greenlet/greenlet
 
 # BSD-like
 PERMIT_PACKAGE_CDROM = Yes
@@ -19,14 +19,17 @@ MASTER_SITES =      ${MASTER_SITE_PYPI:=g/gre
 
 MODULES =      lang/python
 
-MODPY_SETUPTOOLS =     Yes
-MODPY_DISTUTILS_INSTALL=       install --prefix=${LOCALBASE} \
-                               --root=${DESTDIR}
+FLAVORS =      python3
+FLAVOR ?=
+
 WANTLIB =      ${MODPY_WANTLIB}
 
+DOCS =         ${PREFIX}/share/doc/${MODPY_PY_PREFIX}greenlet
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-greenlet
-       ${INSTALL_DATA} ${WRKSRC}/README.rst \
-               ${PREFIX}/share/doc/py-greenlet
+       ${INSTALL_DATA_DIR} ${DOCS}
+       ${INSTALL_DATA} ${WRKSRC}/README.rst ${DOCS}
+
+test:
+       cd ${WRKSRC} && ${MODPY_BIN} setup.py test
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-greenlet/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 distinfo
--- distinfo    17 Jul 2012 19:24:47 -0000      1.1.1.1
+++ distinfo    27 Sep 2014 14:00:03 -0000
@@ -1,5 +1,2 @@
-MD5 (greenlet-0.4.0.zip) = h4h1cAgsqtwI+x+GcdvtcQ==
-RMD160 (greenlet-0.4.0.zip) = N1Sesw/Wse1+LC/ldRQggrV8TFA=
-SHA1 (greenlet-0.4.0.zip) = Q7ItqkSa5iIuVN3h+RIcgejX2RM=
-SHA256 (greenlet-0.4.0.zip) = P1KvA7+KiQRfwVnGp21WQjSbMPtBw98aIrErvTkgse4=
-SIZE (greenlet-0.4.0.zip) = 72790
+SHA256 (greenlet-0.4.4.zip) = k1p2t608QYRq8m4Tbi/Y7HY3lMvFtfvEt7Cdmo3h0FY=
+SIZE (greenlet-0.4.4.zip) = 76659
Index: pkg/PFRAG.no-python3
===================================================================
RCS file: pkg/PFRAG.no-python3
diff -N pkg/PFRAG.no-python3
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/PFRAG.no-python3        27 Sep 2014 14:00:03 -0000
@@ -0,0 +1,3 @@
+@comment $OpenBSD$
+include/python${MODPY_VERSION}/greenlet/
+include/python${MODPY_VERSION}/greenlet/greenlet.h
Index: pkg/PFRAG.python3
===================================================================
RCS file: pkg/PFRAG.python3
diff -N pkg/PFRAG.python3
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/PFRAG.python3   27 Sep 2014 14:00:03 -0000
@@ -0,0 +1,3 @@
+@comment $OpenBSD$
+include/python${MODPY_VERSION}m/greenlet/
+include/python${MODPY_VERSION}m/greenlet/greenlet.h
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/py-greenlet/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   17 Jul 2012 19:24:47 -0000      1.1.1.1
+++ pkg/PLIST   27 Sep 2014 14:00:03 -0000
@@ -1,6 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2012/07/17 19:24:47 landry Exp $
-include/python${MODPY_VERSION}/greenlet/
-include/python${MODPY_VERSION}/greenlet/greenlet.h
+%%python3%%
+!%%python3%%
 
lib/python${MODPY_VERSION}/site-packages/greenlet-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
 lib/python${MODPY_VERSION}/site-packages/greenlet.so
 share/doc/${MODPY_PY_PREFIX}greenlet/

Reply via email to