General cleanups. The old starship site is gone. Get from NetBSD.org now. Change homepage to a working one. Add license. Note that the only license reference I could find was "It is distributed for free under a BSD-style license" which I took to mean "original-bsd." Doesn't work under Python 3. Since it is deprecated in favour of the py-imaging module there is no point in struggling with it. Added comment to patch and regenerated distinfo. No PKGREVISION bump since there are no changes to any code that ever built.diff -r1.36 -r1.37 pkgsrc/graphics/py-gd/Makefile
(darcy)
@@ -1,26 +1,28 @@ | @@ -1,26 +1,28 @@ | |||
1 | # $NetBSD: Makefile,v 1.36 2011/11/01 06:01:43 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.37 2011/11/29 16:26:57 darcy Exp $ | |
2 | 2 | |||
3 | DISTNAME= gdmodule.c | 3 | DISTNAME= gdmodule.c | |
4 | PKGNAME= ${PYPKGPREFIX}-gd-1.3 | 4 | PKGNAME= ${PYPKGPREFIX}-gd-1.3 | |
5 | PKGREVISION= 14 | 5 | PKGREVISION= 14 | |
6 | CATEGORIES= graphics python | 6 | CATEGORIES= graphics python | |
7 | MASTER_SITES= http://starship.python.net/~richard/gdmodule/ | 7 | MASTER_SITES= # on ftp.NetBSD.org | |
8 | EXTRACT_SUFX= | 8 | EXTRACT_SUFX= | |
9 | 9 | |||
10 | MAINTAINER= darcy@NetBSD.org | 10 | MAINTAINER= darcy@NetBSD.org | |
11 | HOMEPAGE= http://starship.python.net/~richard/gdmodule/ | 11 | HOMEPAGE= http://newcenturycomputers.net/projects/gdmodule.html | |
12 | COMMENT= Python interface to gd graphics library | 12 | COMMENT= Python interface to gd graphics library | |
13 | LICENSE= original-bsd | |||
13 | 14 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 15 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | PYTHON_VERSIONS_ACCEPTED= 27 26 25 | |||
15 | 17 | |||
16 | WRKSRC= ${WRKDIR} | 18 | WRKSRC= ${WRKDIR} | |
17 | BUILD_TARGET= default | 19 | BUILD_TARGET= default | |
18 | 20 | |||
19 | EGG_NAME= ${DISTNAME:S/.c/-${PKGVERSION_NOREV}/} | 21 | EGG_NAME= ${DISTNAME:S/.c/-${PKGVERSION_NOREV}/} | |
20 | 22 | |||
21 | post-patch: | 23 | post-patch: | |
22 | ${SED} 's+@GD_PREFIX@+${BUILDLINK_PREFIX.gd}+g' ${FILESDIR}/Setup.in > ${WRKSRC}/setup.py | 24 | ${SED} 's+@GD_PREFIX@+${BUILDLINK_PREFIX.gd}+g' ${FILESDIR}/Setup.in > ${WRKSRC}/setup.py | |
23 | 25 | |||
24 | .include "../../graphics/gd/buildlink3.mk" | 26 | .include "../../graphics/gd/buildlink3.mk" | |
25 | .include "../../lang/python/distutils.mk" | 27 | .include "../../lang/python/distutils.mk" | |
26 | .include "../../mk/bsd.pkg.mk" | 28 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2005/12/19 16:01:34 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.5 2011/11/29 16:26:57 darcy Exp $ | |
2 | 2 | |||
3 | SHA1 (gdmodule.c) = 1173fcd1e8dbe06d250d7c501317b5d5fe30fc68 | 3 | SHA1 (gdmodule.c) = 1173fcd1e8dbe06d250d7c501317b5d5fe30fc68 | |
4 | RMD160 (gdmodule.c) = a07e85accbee1664f4aeb0d0beef494efde22f40 | 4 | RMD160 (gdmodule.c) = a07e85accbee1664f4aeb0d0beef494efde22f40 | |
5 | Size (gdmodule.c) = 27972 bytes | 5 | Size (gdmodule.c) = 27972 bytes | |
6 | SHA1 (patch-aa) = 680c50b4e515f9abc407769d67e1f1ccfacc6884 | 6 | SHA1 (patch-aa) = 2349484cc6a150e2feef9b51eb9d481dc24410db |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-aa,v 1.2 2005/12/19 16:01:34 joerg Exp $ | 1 | $NetBSD: patch-aa,v 1.3 2011/11/29 16:26:57 darcy Exp $ | |
2 | ||||
3 | To work with PNG files instead of GIF. | |||
2 | 4 | |||
3 | --- gdmodule.c.orig 2005-12-19 15:53:23.000000000 +0000 | 5 | --- gdmodule.c.orig 2005-12-19 15:53:23.000000000 +0000 | |
4 | +++ gdmodule.c | 6 | +++ gdmodule.c | |
5 | @@ -28,14 +28,13 @@ version 0.22 | 7 | @@ -28,14 +28,13 @@ version 0.22 | |
6 | #include <errno.h> | 8 | #include <errno.h> | |
7 | 9 | |||
8 | static PyObject *ErrorObject; | 10 | static PyObject *ErrorObject; | |
9 | -extern int errno; | 11 | -extern int errno; | |
10 | 12 | |||
11 | /* DOCSTRING */ | 13 | /* DOCSTRING */ | |
12 | static char *gdModuleDocString = "GD module is an interface to the GD library written by Thomas Bouttel.\n\ | 14 | static char *gdModuleDocString = "GD module is an interface to the GD library written by Thomas Bouttel.\n\ | |
13 | \'It allows your code to quickly draw images complete with lines, arcs,\n\ | 15 | \'It allows your code to quickly draw images complete with lines, arcs,\n\ | |
14 | text, multiple colors, cut and paste from other images, and flood fills,\n\ | 16 | text, multiple colors, cut and paste from other images, and flood fills,\n\ |