From 94ee431d7ea20dd3261ab22a0cf7de529d8f44fb Mon Sep 17 00:00:00 2001 From: pav Date: Sun, 16 Jan 2005 01:09:10 +0000 Subject: 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 --- devel/py-pmock/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/py-pmock/distinfo | 2 ++ devel/py-pmock/pkg-descr | 5 +++++ devel/py-pmock/pkg-plist | 6 ++++++ 4 files changed, 47 insertions(+) create mode 100644 devel/py-pmock/Makefile create mode 100644 devel/py-pmock/distinfo create mode 100644 devel/py-pmock/pkg-descr create mode 100644 devel/py-pmock/pkg-plist (limited to 'devel/py-pmock') 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 +# +# $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 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%% -- cgit