summaryrefslogtreecommitdiff
path: root/graphics/py-gd
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-11-23 05:16:03 +0000
committerobache <obache@pkgsrc.org>2010-11-23 05:16:03 +0000
commit0a2f6448687a86e0156d0008f3c6d3edf3da1f46 (patch)
tree91c4a20d68167f1675b9443bf11a3e8920880356 /graphics/py-gd
parent4b9a535befb6041c17153b6b08369b192671faec (diff)
downloadpkgsrc-0a2f6448687a86e0156d0008f3c6d3edf3da1f46.tar.gz
Some improvements
* using distuils, so use pkgsrc pthon distutils framework. * LOCALBASE should not be used here, it's just for prefix of GD. * No need to depend on freetype-lib here. Bump PKGREVISION.
Diffstat (limited to 'graphics/py-gd')
-rw-r--r--graphics/py-gd/Makefile11
-rw-r--r--graphics/py-gd/PLIST3
-rw-r--r--graphics/py-gd/files/Setup.in6
3 files changed, 10 insertions, 10 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile
index 9a299520764..5d37a24dfd8 100644
--- a/graphics/py-gd/Makefile
+++ b/graphics/py-gd/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.33 2010/06/13 22:44:42 wiz Exp $
+# $NetBSD: Makefile,v 1.34 2010/11/23 05:16:03 obache Exp $
DISTNAME= gdmodule.c
PKGNAME= ${PYPKGPREFIX}-gd-1.3
-PKGREVISION= 11
+PKGREVISION= 12
CATEGORIES= graphics python
MASTER_SITES= http://starship.python.net/~richard/gdmodule/
EXTRACT_SUFX=
@@ -16,12 +16,11 @@ PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
BUILD_TARGET= default
-PYDISTUTILSPKG= yes
+EGG_NAME= ${DISTNAME:S/.c/-${PKGVERSION_NOREV}/}
post-patch:
- ${SED} 's+@LOCALBASE@+${LOCALBASE}+g' ${FILESDIR}/Setup.in > ${WRKSRC}/setup.py
+ ${SED} 's+@GD_PREFIX@+${BUILDLINK_PREFIX.gd}+g' ${FILESDIR}/Setup.in > ${WRKSRC}/setup.py
-.include "../../graphics/freetype-lib/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
-.include "../../lang/python/extension.mk"
+.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/py-gd/PLIST b/graphics/py-gd/PLIST
index b3d51aa2057..ea1f415e0fa 100644
--- a/graphics/py-gd/PLIST
+++ b/graphics/py-gd/PLIST
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.3 2004/09/01 19:17:05 darcy Exp $
+@comment $NetBSD: PLIST,v 1.4 2010/11/23 05:16:03 obache Exp $
${PYSITELIB}/gd.so
+${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}
diff --git a/graphics/py-gd/files/Setup.in b/graphics/py-gd/files/Setup.in
index a0abfb29bbe..9293229efcc 100644
--- a/graphics/py-gd/files/Setup.in
+++ b/graphics/py-gd/files/Setup.in
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# $NetBSD: Setup.in,v 1.5 2004/09/01 19:17:05 darcy Exp $
+# $NetBSD: Setup.in,v 1.6 2010/11/23 05:16:03 obache Exp $
from distutils.core import setup, Extension
@@ -12,8 +12,8 @@ setup(name = "gdmodule",
ext_modules = [Extension(
name = 'gd',
sources = ['gdmodule.c'],
- include_dirs = ['@LOCALBASE@/include/'],
- library_dirs = ['@LOCALBASE@/lib'],
+ include_dirs = ['@GD_PREFIX@/include/'],
+ library_dirs = ['@GD_PREFIX@/lib'],
libraries = ['gd'],
)],