View | Details | Raw Unified | Return to bug 37617
Collapse All | Expand All

(-)py-paint/Makefile (-12 / +3 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	paint
8
PORTNAME=	paint
9
PORTVERSION=	0.1
9
PORTVERSION=	0.2
10
CATEGORIES=	graphics python
10
CATEGORIES=	graphics python
11
MASTER_SITES=	http://object-craft.com.au/projects/paint/
11
MASTER_SITES=	http://object-craft.com.au/projects/paint/
12
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
12
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 22-48 Link Here
22
USE_PYDISTUTILS=	yes
22
USE_PYDISTUTILS=	yes
23
PLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
23
PLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
24
		SHARE_SUBDIR=${SHARE_SUBDIR}
24
		SHARE_SUBDIR=${SHARE_SUBDIR}
25
WRKSRC=		${WRKDIR}/${PORTNAME}
26
SHARE_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}
25
SHARE_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}
27
26
28
INC_DIRS=	["${LOCALBASE}/include/freetype1","${LOCALBASE}/include","${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"]
27
INC_DIRS=	["${LOCALBASE}/include/freetype1","${LOCALBASE}/include","${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"]
29
LIB_DIRS=	["${LOCALBASE}/lib","${X11BASE}/lib"]
28
LIB_DIRS=	["${LOCALBASE}/lib","${X11BASE}/lib"]
30
REPATCH=	cd ${WRKSRC} && ${SED}
31
REPATCHSUBST=	-e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g'
32
REPATCHFILES=	setup.py
33
TMPSUFFIX=	.temp
29
TMPSUFFIX=	.temp
34
EXAMPLES=	test_bar.py test_paint.py testpie.py
30
EXAMPLES=	test_bar.py test_paint.py testpie.py
35
31
36
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
37
33
38
post-patch:
34
post-patch:
39
.if ${PYTHON_REL} >= 160
35
	${PERL} -pi -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \
40
	cd ${WRKSRC} && ${PATCH} -s <${PATCHDIR}/optpatch-aa
36
		${WRKSRC}/setup.py
41
.endif
42
.for file in ${REPATCHFILES}
43
	${REPATCH} ${REPATCHSUBST} ${file} > ${file}${TMPSUFFIX} && \
44
		${CAT} ${file}${TMPSUFFIX} > ${file}
45
.endfor
46
37
47
.if !defined(NOPORTDOCS)
38
.if !defined(NOPORTDOCS)
48
post-install:
39
post-install:
(-)py-paint/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (paint-0.1.tar.gz) = 0021c2e7bbbe82ba2f31e44192b1abfb
1
MD5 (paint-0.2.tar.gz) = 26cde298ddad845e3fb2c474b43219ad
(-)py-paint/files/optpatch-aa (-12 lines)
Lines 1-12 Link Here
1
--- paint.h.orig	Thu May 10 10:12:07 2001
2
+++ paint.h	Mon Jul  9 00:01:22 2001
3
@@ -39,6 +39,9 @@
4
 #include <libart_lgpl/art_svp_vpath_stroke.h>
5
 
6
 #include "Python.h"
7
+#define Py_Malloc(n)		PyMem_Malloc(n)
8
+#define Py_Realloc(p, n)	PyMem_Realloc((p), (n))
9
+#define Py_Free(p)		PyMem_Free(p)
10
 
11
 typedef struct {
12
     PyObject_HEAD

Return to bug 37617