diff options
author | pat <pat@FreeBSD.org> | 2002-05-05 02:08:18 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-05-05 02:08:18 +0800 |
commit | 275954de320579a5c5fca7b8e49e21e23e3838d6 (patch) | |
tree | 91e58aea06e08ba0109eeed44282046b42861655 /graphics/py-paint | |
parent | 5ebc621a1124f0ef4a17960f125a890d4e052f0d (diff) | |
download | freebsd-ports-gnome-275954de320579a5c5fca7b8e49e21e23e3838d6.tar.gz freebsd-ports-gnome-275954de320579a5c5fca7b8e49e21e23e3838d6.tar.zst freebsd-ports-gnome-275954de320579a5c5fca7b8e49e21e23e3838d6.zip |
Update to 0.2
PR: 37617
Submitted by: maintainer
Diffstat (limited to 'graphics/py-paint')
-rw-r--r-- | graphics/py-paint/Makefile | 15 | ||||
-rw-r--r-- | graphics/py-paint/distinfo | 2 | ||||
-rw-r--r-- | graphics/py-paint/files/optpatch-aa | 12 |
3 files changed, 4 insertions, 25 deletions
diff --git a/graphics/py-paint/Makefile b/graphics/py-paint/Makefile index 1f4c4f085108..341a76721755 100644 --- a/graphics/py-paint/Makefile +++ b/graphics/py-paint/Makefile @@ -6,7 +6,7 @@ # PORTNAME= paint -PORTVERSION= 0.1 +PORTVERSION= 0.2 CATEGORIES= graphics python MASTER_SITES= http://object-craft.com.au/projects/paint/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -22,27 +22,18 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ SHARE_SUBDIR=${SHARE_SUBDIR} -WRKSRC= ${WRKDIR}/${PORTNAME} SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} INC_DIRS= ["${LOCALBASE}/include/freetype1","${LOCALBASE}/include","${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"] LIB_DIRS= ["${LOCALBASE}/lib","${X11BASE}/lib"] -REPATCH= cd ${WRKSRC} && ${SED} -REPATCHSUBST= -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' -REPATCHFILES= setup.py TMPSUFFIX= .temp EXAMPLES= test_bar.py test_paint.py testpie.py .include <bsd.port.pre.mk> post-patch: -.if ${PYTHON_REL} >= 160 - cd ${WRKSRC} && ${PATCH} -s <${PATCHDIR}/optpatch-aa -.endif -.for file in ${REPATCHFILES} - ${REPATCH} ${REPATCHSUBST} ${file} > ${file}${TMPSUFFIX} && \ - ${CAT} ${file}${TMPSUFFIX} > ${file} -.endfor + ${PERL} -pi -e 's@^(.*libraries.*)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \ + ${WRKSRC}/setup.py .if !defined(NOPORTDOCS) post-install: diff --git a/graphics/py-paint/distinfo b/graphics/py-paint/distinfo index f5cb901b8de5..cbffcd8d1d8f 100644 --- a/graphics/py-paint/distinfo +++ b/graphics/py-paint/distinfo @@ -1 +1 @@ -MD5 (paint-0.1.tar.gz) = 0021c2e7bbbe82ba2f31e44192b1abfb +MD5 (paint-0.2.tar.gz) = 26cde298ddad845e3fb2c474b43219ad diff --git a/graphics/py-paint/files/optpatch-aa b/graphics/py-paint/files/optpatch-aa deleted file mode 100644 index 2fadcd45df3a..000000000000 --- a/graphics/py-paint/files/optpatch-aa +++ /dev/null @@ -1,12 +0,0 @@ ---- paint.h.orig Thu May 10 10:12:07 2001 -+++ paint.h Mon Jul 9 00:01:22 2001 -@@ -39,6 +39,9 @@ - #include <libart_lgpl/art_svp_vpath_stroke.h> - - #include "Python.h" -+#define Py_Malloc(n) PyMem_Malloc(n) -+#define Py_Realloc(p, n) PyMem_Realloc((p), (n)) -+#define Py_Free(p) PyMem_Free(p) - - typedef struct { - PyObject_HEAD |