Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2014 21:07:33 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r342853 - head/devel/py-aspects
Message-ID:  <201402052107.s15L7XEr043824@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Wed Feb  5 21:07:33 2014
New Revision: 342853
URL: http://svnweb.freebsd.org/changeset/ports/342853
QAT: https://qat.redports.org/buildarchive/r342853/

Log:
  - Stage support
  - Use PYDISTUTILS_AUTOPLIST

Deleted:
  head/devel/py-aspects/pkg-plist
Modified:
  head/devel/py-aspects/Makefile

Modified: head/devel/py-aspects/Makefile
==============================================================================
--- head/devel/py-aspects/Makefile	Wed Feb  5 21:05:28 2014	(r342852)
+++ head/devel/py-aspects/Makefile	Wed Feb  5 21:07:33 2014	(r342853)
@@ -14,33 +14,24 @@ COMMENT=	Lightweight aspect oriented pro
 
 LICENSE=	LGPL21
 
-USES=	gmake
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
-PYDISTUTILS_PKGNAME=	python-${PORTNAME}
+PYDISTUTILS_AUTOPLIST=	yes
 
-PKGMESSAGE=	${WRKDIR}/pkg-message
 SUB_FILES=	pkg-message
 
-EXAMPLESFILES=	httpget_example.py timeout_advice.py timeout_example.py \
+PORTEXAMPLES=	httpget_example.py timeout_advice.py timeout_example.py \
 		tracer_advice.py tracer_example.py typecheck_advice.py \
 		typecheck_example.py
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 
-NO_STAGE=	yes
-do-build:
-	@PYTHON="${PYTHON_CMD}" ${GMAKE} -C ${WRKSRC} check
+OPTIONS_DEFINE=	EXAMPLES
+
+#regression-test: extract
+#	@PYTHON="${PYTHON_CMD}" ${GMAKE} -C ${WRKSRC} check
 
-.if !defined(NOPORTEXAMPLES)
 post-install:
-	@${MKDIR} ${EXAMPLESDIR}
-.for f in ${EXAMPLESFILES}
-	@${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
-.endfor
-.endif
-
-.if !defined(BATCH)
-	@${CAT} ${PKGMESSAGE}
-.endif
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402052107.s15L7XEr043824>