1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

graphics/py-paint: support staging

This commit is contained in:
William Grzybowski 2013-12-27 17:41:28 +00:00
parent 51d0ab59f6
commit 7eae74d82c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337766
2 changed files with 6 additions and 13 deletions

View File

@ -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>

View File

@ -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%%