1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Update to 0.3

PR:		70000 (!)
Submitted by:	ijliao
This commit is contained in:
Hye-Shik Chang 2004-08-08 12:31:47 +00:00
parent d792b86aab
commit 6e71444f69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115625
3 changed files with 22 additions and 28 deletions

View File

@ -6,42 +6,36 @@
#
PORTNAME= paint
PORTVERSION= 0.2
PORTVERSION= 0.3
CATEGORIES= graphics python
MASTER_SITES= http://object-craft.com.au/projects/paint/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pypaint
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pypaint-${PORTVERSION}
MAINTAINER= perky@FreeBSD.org
COMMENT= Simple and flexible painting adaptor to libart for Python
BUILD_DEPENDS= ${PYDISTUTILS}
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
art_lgpl.5:${PORTSDIR}/graphics/libart
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_FREETYPE= yes
USE_REINPLACE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
SHARE_SUBDIR=${SHARE_SUBDIR}
SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
USE_FREETYPE= yes
USE_GNOME= libartlgpl2
NO_WRKSUBDIR= yes
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 -I${LOCALBASE}/include/freetype1
MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
INC_DIRS= ["${LOCALBASE}/include/freetype1","${LOCALBASE}/include", \
"${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"]
LIB_DIRS= ["${LOCALBASE}/lib","${X11BASE}/lib"]
TMPSUFFIX= .temp
EXAMPLES= test_bar.py test_paint.py testpie.py
.include <bsd.port.pre.mk>
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
post-patch:
${REINPLACE_CMD} -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},\
library_dirs=${LIB_DIRS},@g' ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e "s,art_lgpl,art_lgpl_2," ${WRKSRC}/setup.py
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${PREFIX}/share/examples/${SHARE_SUBDIR}
@${MKDIR} ${EXAMPLESDIR}
${CP} ${WRKSRC}/test* ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (paint-0.2.tar.gz) = 26cde298ddad845e3fb2c474b43219ad
SIZE (paint-0.2.tar.gz) = 15156
MD5 (pypaint-0.3.tar.gz) = b100930b6f6031de594cf249fb2c0af7
SIZE (pypaint-0.3.tar.gz) = 17266

View File

@ -1,5 +1,5 @@
%%PYTHON_SITELIBDIR%%/paint.so
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_bar.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_paint.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/testpie.py
%%PORTDOCS%%@dirrm share/examples/%%SHARE_SUBDIR%%
%%PORTDOCS%%%%EXAMPLESDIR%%/test_bar.py
%%PORTDOCS%%%%EXAMPLESDIR%%/test_paint.py
%%PORTDOCS%%%%EXAMPLESDIR%%/testpie.py
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%