aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-pmock
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-01-16 09:09:10 +0800
committerpav <pav@FreeBSD.org>2005-01-16 09:09:10 +0800
commit94ee431d7ea20dd3261ab22a0cf7de529d8f44fb (patch)
tree510e7968b59296e7e0ec6e8fa89fec895e4c16a5 /devel/py-pmock
parent91702fb711a08c6b2f446655d0cf1cd7397fb807 (diff)
downloadfreebsd-ports-gnome-94ee431d7ea20dd3261ab22a0cf7de529d8f44fb.tar.gz
freebsd-ports-gnome-94ee431d7ea20dd3261ab22a0cf7de529d8f44fb.tar.zst
freebsd-ports-gnome-94ee431d7ea20dd3261ab22a0cf7de529d8f44fb.zip
Inspired by the Java jMock library, pMock makes the writing of unit tests using
mock object techniques easier. PR: ports/76246 Submitted by: Piet Delport <pjd@satori.za.net>
Diffstat (limited to 'devel/py-pmock')
-rw-r--r--devel/py-pmock/Makefile34
-rw-r--r--devel/py-pmock/distinfo2
-rw-r--r--devel/py-pmock/pkg-descr5
-rw-r--r--devel/py-pmock/pkg-plist6
4 files changed, 47 insertions, 0 deletions
diff --git a/devel/py-pmock/Makefile b/devel/py-pmock/Makefile
new file mode 100644
index 000000000000..8cec085b759e
--- /dev/null
+++ b/devel/py-pmock/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: py-pmock
+# Date created: 2005-01-13
+# Whom: Piet Delport <pjd@satori.za.net>
+#
+# $FreeBSD$
+
+PORTNAME= pmock
+PORTVERSION= 0.3
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pmock
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Mock object library for Python
+
+USE_PYTHON= 2.3+
+USE_PYDISTUTILS=yes
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+CPIOFLAGS= --quiet -pdm -R ${SHAREOWN}:${SHAREGRP}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC}/doc && ${FIND} . | ${CPIO} ${CPIOFLAGS} ${DOCSDIR}
+ @${MKDIR} ${EXAMPLESDIR}
+ @cd ${WRKSRC}/examples && ${FIND} . | ${CPIO} ${CPIOFLAGS} ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/py-pmock/distinfo b/devel/py-pmock/distinfo
new file mode 100644
index 000000000000..0cc1fc6516a5
--- /dev/null
+++ b/devel/py-pmock/distinfo
@@ -0,0 +1,2 @@
+MD5 (pmock-0.3.tar.gz) = 5182497f1d765803dab2d101573d6b40
+SIZE (pmock-0.3.tar.gz) = 59524
diff --git a/devel/py-pmock/pkg-descr b/devel/py-pmock/pkg-descr
new file mode 100644
index 000000000000..83a81d27d88a
--- /dev/null
+++ b/devel/py-pmock/pkg-descr
@@ -0,0 +1,5 @@
+Inspired by the Java jMock library, pMock makes the writing of unit tests
+using mock object techniques easier.
+
+Author: Graham Carlyle (grahamcarlyle@users.sourceforge.net)
+WWW: http://pmock.sourceforge.net/
diff --git a/devel/py-pmock/pkg-plist b/devel/py-pmock/pkg-plist
new file mode 100644
index 000000000000..d0111c4553ba
--- /dev/null
+++ b/devel/py-pmock/pkg-plist
@@ -0,0 +1,6 @@
+%%PYTHON_SITELIBDIR%%/pmock.py
+%%PYTHON_SITELIBDIR%%/pmock.pyc
+%%PYTHON_SITELIBDIR%%/pmock.pyo
+%%PORTDOCS%%%%EXAMPLESDIR%%/errors.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/greeting.py
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%