From f317825bc37c42a2c6718f3d573ace628179b9ac Mon Sep 17 00:00:00 2001 From: xsa Date: Tue, 22 Mar 2005 13:15:03 +0000 Subject: [PATCH] Initial import of goopy-0.1 Google utilities written in Python. Submitted and maintained by mpech@. --- devel/goopy/Makefile | 26 +++++++++++++++++++ devel/goopy/distinfo | 4 +++ devel/goopy/patches/patch-goopy_functional_py | 12 +++++++++ devel/goopy/pkg/DESCR | 1 + devel/goopy/pkg/PLIST | 10 +++++++ 5 files changed, 53 insertions(+) create mode 100644 devel/goopy/Makefile create mode 100644 devel/goopy/distinfo create mode 100644 devel/goopy/patches/patch-goopy_functional_py create mode 100644 devel/goopy/pkg/DESCR create mode 100644 devel/goopy/pkg/PLIST diff --git a/devel/goopy/Makefile b/devel/goopy/Makefile new file mode 100644 index 00000000000..37bcfb4d119 --- /dev/null +++ b/devel/goopy/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/03/22 13:15:03 xsa Exp $ + +COMMENT= "Google utilities written in Python" + +DISTNAME= goopy-0.1 +CATEGORIES= devel +HOMEPAGE= http://goog-goopy.sourceforge.net/ + +MAINTAINER= Mike Pechkin + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=goog-goopy/} + +MODULES= lang/python + +do-regress: fake + @cd ${WRKSRC}/goopy && ${MAKE_ENV} \ + PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \ + ${MODPY_BIN} ./functional_unittest.py + +.include diff --git a/devel/goopy/distinfo b/devel/goopy/distinfo new file mode 100644 index 00000000000..daa12d74642 --- /dev/null +++ b/devel/goopy/distinfo @@ -0,0 +1,4 @@ +MD5 (goopy-0.1.tar.gz) = 2de22e1ae2697859de8c8e8a75d0c947 +RMD160 (goopy-0.1.tar.gz) = bd2e6a7f91ed6d57bb43bc4afbf4d9152b717104 +SHA1 (goopy-0.1.tar.gz) = f4613fede58816375bfe0eea27d42d34a74ffcc6 +SIZE (goopy-0.1.tar.gz) = 4529 diff --git a/devel/goopy/patches/patch-goopy_functional_py b/devel/goopy/patches/patch-goopy_functional_py new file mode 100644 index 00000000000..16dca33b81a --- /dev/null +++ b/devel/goopy/patches/patch-goopy_functional_py @@ -0,0 +1,12 @@ +$OpenBSD: patch-goopy_functional_py,v 1.1.1.1 2005/03/22 13:15:03 xsa Exp $ +--- goopy/functional.py.orig Mon Mar 21 19:26:00 2005 ++++ goopy/functional.py Mon Mar 21 19:26:07 2005 +@@ -184,7 +184,7 @@ def maximum(cmp, lst): + + for i in xrange(1, len(lst)): + v = lst[i] +- if cmp(maxval, v) <= 0: ++ if cmp(maxval, v) < 0: + maxval = v + + return maxval diff --git a/devel/goopy/pkg/DESCR b/devel/goopy/pkg/DESCR new file mode 100644 index 00000000000..c66f76b3a40 --- /dev/null +++ b/devel/goopy/pkg/DESCR @@ -0,0 +1 @@ +Python utilities that Googlers have found useful. diff --git a/devel/goopy/pkg/PLIST b/devel/goopy/pkg/PLIST new file mode 100644 index 00000000000..85840f7f876 --- /dev/null +++ b/devel/goopy/pkg/PLIST @@ -0,0 +1,10 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/03/22 13:15:03 xsa Exp $ +lib/python${MODPY_VERSION}/ +lib/python${MODPY_VERSION}/site-packages/ +lib/python${MODPY_VERSION}/site-packages/goopy/ +lib/python${MODPY_VERSION}/site-packages/goopy/__init__.py +lib/python${MODPY_VERSION}/site-packages/goopy/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/goopy/functional.py +lib/python${MODPY_VERSION}/site-packages/goopy/functional.pyc +lib/python${MODPY_VERSION}/site-packages/goopy/functional_unittest.py +lib/python${MODPY_VERSION}/site-packages/goopy/functional_unittest.pyc