summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-12-27 17:41:28 +0000
committerwg <wg@FreeBSD.org>2013-12-27 17:41:28 +0000
commit07313cc67fdb104f40ae4bea39c5ab6e4ad5f087 (patch)
tree836905f7465cfcab8cfee2b9457e101828f8397d
parentc7d96306c7355302419e2c02cbe99dd3dee503eb (diff)
downloadFreeBSD-ports-07313cc67fdb104f40ae4bea39c5ab6e4ad5f087.zip
FreeBSD-ports-07313cc67fdb104f40ae4bea39c5ab6e4ad5f087.tar.gz
graphics/py-paint: support staging
-rw-r--r--graphics/py-paint/Makefile14
-rw-r--r--graphics/py-paint/pkg-plist5
2 files changed, 6 insertions, 13 deletions
diff --git a/graphics/py-paint/Makefile b/graphics/py-paint/Makefile
index 41a41a1..da11b89 100644
--- a/graphics/py-paint/Makefile
+++ b/graphics/py-paint/Makefile
@@ -12,11 +12,12 @@ DISTNAME= pypaint-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple and flexible painting adaptor to libart for Python
-LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
- ttf:${PORTSDIR}/print/freetype
+LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
+ libttf.so:${PORTSDIR}/print/freetype
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
USE_GNOME= libartlgpl2
NO_WRKSUBDIR= yes
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 \
@@ -24,16 +25,13 @@ CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 \
LDFLAGS+= -L${LOCALBASE}/lib
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+PORTEXAMPLES= *
-NO_STAGE= yes
-.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s,art_lgpl,art_lgpl_2," ${WRKSRC}/setup.py
-.if ${PORT_OPTIONS:MEXAMPLES}
post-install:
- @${MKDIR} ${EXAMPLESDIR}
- ${CP} ${WRKSRC}/test* ${EXAMPLESDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${CP} ${WRKSRC}/test* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/graphics/py-paint/pkg-plist b/graphics/py-paint/pkg-plist
deleted file mode 100644
index b5e9f0d..0000000
--- a/graphics/py-paint/pkg-plist
+++ /dev/null
@@ -1,5 +0,0 @@
-%%PYTHON_SITELIBDIR%%/paint.so
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_bar.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_paint.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/testpie.py
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
OpenPOWER on IntegriCloud