aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-ruledispatch
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2014-04-14 10:29:55 +0800
committernivit <nivit@FreeBSD.org>2014-04-14 10:29:55 +0800
commit136c44e55155ee95c6708fcba068a3d53c0ba34e (patch)
tree02dd21d550175f880edb9fb63b5e1b0588e5725f /devel/py-ruledispatch
parent744499f5e3549d961a8df5a01b01f3413e76bca1 (diff)
downloadfreebsd-ports-gnome-136c44e55155ee95c6708fcba068a3d53c0ba34e.tar.gz
freebsd-ports-gnome-136c44e55155ee95c6708fcba068a3d53c0ba34e.tar.zst
freebsd-ports-gnome-136c44e55155ee95c6708fcba068a3d53c0ba34e.zip
- Update to 0.5.a1.r2717
- Remove files/* - Update MASTER_SITES - Add LICENSE - Stagify [1] - Don't install a (zipped) Python egg anymore - Add pre-build and pre-install targets to strip dynamic library - Improve description of the port - Add WWW field [1], and remove Author: from pkg-descr PR: ports/188559 [1] Submitted by: Bartek Rutkowski <ports@robakdesign.com>
Diffstat (limited to 'devel/py-ruledispatch')
-rw-r--r--devel/py-ruledispatch/Makefile32
-rw-r--r--devel/py-ruledispatch/distinfo4
-rw-r--r--devel/py-ruledispatch/files/patch-src-dispatch___init__.py20
-rw-r--r--devel/py-ruledispatch/files/patch-src-dispatch_predicates.py29
-rw-r--r--devel/py-ruledispatch/pkg-descr7
5 files changed, 27 insertions, 65 deletions
diff --git a/devel/py-ruledispatch/Makefile b/devel/py-ruledispatch/Makefile
index efce65eaaf09..343e3dc0f97f 100644
--- a/devel/py-ruledispatch/Makefile
+++ b/devel/py-ruledispatch/Makefile
@@ -2,26 +2,34 @@
# $FreeBSD$
PORTNAME= RuleDispatch
-PORTVERSION= 0.5.a1.r2506
-PORTREVISION= 2
+PORTVERSION= 0.5.a1.r2717
+PORTREVISION= 0
CATEGORIES= devel python
-MASTER_SITES= http://nivi.interfree.it/distfiles/${PORTNAME}/ \
- http://peak.telecommunity.com/snapshots/
+MASTER_SITES= http://peak.telecommunity.com/snapshots/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= ${PORTNAME}-0.5a1.dev-r2506
+DISTNAME= ${PORTNAME}-0.5a1.dev-r2717
MAINTAINER= nivit@FreeBSD.org
COMMENT= Rule-based Dispatching and Generic Functions
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}PyProtocols>=1.0.a0.r2302:${PORTSDIR}/devel/py-protocols-devel \
- ${PYTHON_PKGNAMEPREFIX}Extremes>=1.1:${PORTSDIR}/devel/py-extremes
+LICENSE= PSFL ZPL21
+LICENSE_COMB= dual
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Extremes>=1.1:${PORTSDIR}/devel/py-extremes \
+ ${PYTHON_PKGNAMEPREFIX}PyProtocols>=1.0.a0.r2302:${PORTSDIR}/devel/py-protocols-devel
+
+PYDISTUTILS_AUTOPLIST= yes
+PYDISTUTILS_PKGVERSION= 0.5a1.dev_r2717
+
+USE_PYDISTUTILS= yes
USE_PYTHON= yes
-USE_PYDISTUTILS= easy_install
-PYDISTUTILS_PKGVERSION= 0.5a1.dev_r2506
-PYEASYINSTALL_ARCHDEP= yes
-PLIST_FILES+= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
+# to have a platform/release indipendent directory (necessary for strip cmd)
+pre-build:
+ @(cd ${BUILD_WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} setopt -c build -o build-platlib -s FreeBSD.build)
+
+pre-install:
+ @${STRIP_CMD} ${WRKSRC}/FreeBSD.build/dispatch/_d_speedups.so
-NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/devel/py-ruledispatch/distinfo b/devel/py-ruledispatch/distinfo
index 49ed1236779a..f79059b06135 100644
--- a/devel/py-ruledispatch/distinfo
+++ b/devel/py-ruledispatch/distinfo
@@ -1,2 +1,2 @@
-SHA256 (RuleDispatch-0.5a1.dev-r2506.tar.gz) = 80bc61d3ff5928b3ab95231f32a2404ad71610b3029f4f038e1a34d68ab014c7
-SIZE (RuleDispatch-0.5a1.dev-r2506.tar.gz) = 95616
+SHA256 (RuleDispatch-0.5a1.dev-r2717.tar.gz) = acbb5f1bcc98c87d5ba6d23a4a01a283fbf35ebc4acc850476cc85dcdceca773
+SIZE (RuleDispatch-0.5a1.dev-r2717.tar.gz) = 96361
diff --git a/devel/py-ruledispatch/files/patch-src-dispatch___init__.py b/devel/py-ruledispatch/files/patch-src-dispatch___init__.py
deleted file mode 100644
index 58ce9f28ffd6..000000000000
--- a/devel/py-ruledispatch/files/patch-src-dispatch___init__.py
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/dispatch/__init__.py.orig 2009-05-14 22:55:09.000000000 +0200
-+++ src/dispatch/__init__.py 2009-05-14 22:55:45.000000000 +0200
-@@ -95,7 +95,7 @@
- return decorate_assignment(callback)
-
-
--def as(*decorators):
-+def fas(*decorators):
- """Use Python 2.4 decorators w/Python 2.2+
-
- Example:
-@@ -103,7 +103,7 @@
- import dispatch
-
- class Foo(object):
-- [dispatch.as(classmethod)]
-+ [dispatch.fas(classmethod)]
- def something(cls,etc):
- \"""This is a classmethod\"""
- """
diff --git a/devel/py-ruledispatch/files/patch-src-dispatch_predicates.py b/devel/py-ruledispatch/files/patch-src-dispatch_predicates.py
deleted file mode 100644
index 645e1a10157b..000000000000
--- a/devel/py-ruledispatch/files/patch-src-dispatch_predicates.py
+++ /dev/null
@@ -1,29 +0,0 @@
---- src/dispatch/predicates.py.orig 2009-05-14 22:55:57.000000000 +0200
-+++ src/dispatch/predicates.py 2009-05-14 22:56:15.000000000 +0200
-@@ -236,7 +236,7 @@
-
- return or_, (EXPR_GETTER_ID,)
-
-- [as(classmethod)]
-+ [fas(classmethod)]
- def immediate(klass,seq):
- for item in seq:
- if item:
-@@ -260,7 +260,7 @@
-
- return and_, (EXPR_GETTER_ID,)
-
-- [as(classmethod)]
-+ [fas(classmethod)]
- def immediate(klass,seq):
- for item in seq:
- if not item:
-@@ -278,7 +278,7 @@
- return get(argIds[2])
- return ifelse, (EXPR_GETTER_ID,)
-
-- [as(classmethod)]
-+ [fas(classmethod)]
- def immediate(klass,seq):
- if seq[1]: return seq[0]
- return seq[2]
diff --git a/devel/py-ruledispatch/pkg-descr b/devel/py-ruledispatch/pkg-descr
index c235896341af..3f466a209ce1 100644
--- a/devel/py-ruledispatch/pkg-descr
+++ b/devel/py-ruledispatch/pkg-descr
@@ -1,3 +1,6 @@
-Rule-based Dispatching and Generic Functions
+RuleDispatch is a prototype implementation of the Chambers and Chen
+"efficient multiple and predicate dispatch" algorithm for Python.
+It lets youspecify a function in terms of a collection of arbitrary
+rules, including Lisp-style "before/after/around" methods.
-Author: Phillip J. Eby <peak@eby-sarna.com>
+WWW: http://peak.telecommunity.com/