aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-paint
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-08-08 12:31:47 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-08-08 12:31:47 +0000
commit6e71444f69182b3108815e0506762d71f3a7cd2e (patch)
treeeabd368da5b6cb07bdee93dad2ad7a4ff75467d5 /graphics/py-paint
parentd792b86aabcbcdce7b980a595e576474c97b7f89 (diff)
downloadports-6e71444f69182b3108815e0506762d71f3a7cd2e.tar.gz
ports-6e71444f69182b3108815e0506762d71f3a7cd2e.zip
Notes
Diffstat (limited to 'graphics/py-paint')
-rw-r--r--graphics/py-paint/Makefile38
-rw-r--r--graphics/py-paint/distinfo4
-rw-r--r--graphics/py-paint/pkg-plist8
3 files changed, 22 insertions, 28 deletions
diff --git a/graphics/py-paint/Makefile b/graphics/py-paint/Makefile
index 5a13d21442e4..fd0b5b0e31bc 100644
--- a/graphics/py-paint/Makefile
+++ b/graphics/py-paint/Makefile
@@ -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}
-
-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
+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"
-.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>
diff --git a/graphics/py-paint/distinfo b/graphics/py-paint/distinfo
index 5b71d232dc04..2d28d959eaea 100644
--- a/graphics/py-paint/distinfo
+++ b/graphics/py-paint/distinfo
@@ -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
diff --git a/graphics/py-paint/pkg-plist b/graphics/py-paint/pkg-plist
index c6b01fa807aa..7043947e266d 100644
--- a/graphics/py-paint/pkg-plist
+++ b/graphics/py-paint/pkg-plist
@@ -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%%