diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-17 12:34:17 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-17 12:34:17 +0000 |
commit | da9a4640469f3109c1ba78325a5581eee2f16b1f (patch) | |
tree | 6d3856517af4ca0c80df847328e7cc8dba0aa137 /graphics/py-gdchart | |
parent | 9871f96c246521427365f693f2a7735e3a027eec (diff) | |
download | pkgsrc-da9a4640469f3109c1ba78325a5581eee2f16b1f.tar.gz |
move to canonical pkg name (pyX.Y-pkg-vers),
use variables from the python buildlink where possible,
install examples into non-conflicting locations,
remove restriction to Python-2.0 (it compiles with 2.1 and 2.2)
Diffstat (limited to 'graphics/py-gdchart')
-rw-r--r-- | graphics/py-gdchart/Makefile | 20 | ||||
-rw-r--r-- | graphics/py-gdchart/PLIST | 14 |
2 files changed, 15 insertions, 19 deletions
diff --git a/graphics/py-gdchart/Makefile b/graphics/py-gdchart/Makefile index 6f89aea37c8..0a52f8c7954 100644 --- a/graphics/py-gdchart/Makefile +++ b/graphics/py-gdchart/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.3 2001/12/08 11:09:52 jmc Exp $ +# $NetBSD: Makefile,v 1.4 2002/01/17 12:34:17 drochner Exp $ # DISTNAME= gdchart-py-0.6 -PKGNAME= py-gdchart-0.6 +PKGNAME= ${PYPKGPREFIX}-gdchart-0.6 CATEGORIES= graphics python MASTER_SITES= http://athani.pair.com/msteed/software/gdchart/ @@ -13,28 +13,24 @@ COMMENT= Python interface to GDChart BUILD_DEPENDS= gdchart-0.10.1*:../../graphics/gdchart USE_GMAKE= yes -PYTHON_VERSIONS_ACCEPTED =20 MAKE_ENV= GD_INCLUDE=${LOCALBASE}/include \ GDCHART_INCLUDE=${LOCALBASE}/include \ - PYTHON_INCLUDE=${LOCALBASE}/include/python2.0 \ + PYTHON_INCLUDE=${LOCALBASE}/${PYINC} \ LOCALBASE=${LOCALBASE} -PLIST_SUBST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} \ - EXAMPLE_DIR=${EXAMPLE_DIR:S/^${LOCALBASE}\///g} +PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX} MODULE_FILES= chart.py gdchart.so EXAMPLE_FILES= test.html test.py CHANGES -EXAMPLE_DIR= ${PREFIX}/share/examples/py-gdchart +EXAMPLE_DIR= ${PREFIX}/share/examples/${PYPKGPREFIX}-gdchart +PY_PATCHPLIST= yes do-install: .for f in ${MODULE_FILES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/python2.0/site-packages + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${PYSITELIB} .endfor -.if !defined(NO_PKGDOCS) - #${MKDIR} ${EXAMPLE_DIR} - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-gdchart + ${INSTALL_DATA_DIR} ${EXAMPLE_DIR} .for f in ${EXAMPLE_FILES} ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLE_DIR} .endfor -.endif .include "../../lang/python/extension.buildlink.mk" .include "../../mk/bsd.pkg.mk" diff --git a/graphics/py-gdchart/PLIST b/graphics/py-gdchart/PLIST index cf9d780a38e..3e00f241322 100644 --- a/graphics/py-gdchart/PLIST +++ b/graphics/py-gdchart/PLIST @@ -1,7 +1,7 @@ -@comment $NetBSD: PLIST,v 1.1 2001/10/31 23:53:36 zuntum Exp $ -lib/python2.0/site-packages/chart.py -lib/python2.0/site-packages/gdchart.so -share/examples/py-gdchart/test.html -share/examples/py-gdchart/test.py -share/examples/py-gdchart/CHANGES -@dirrm share/examples/py-gdchart +@comment $NetBSD: PLIST,v 1.2 2002/01/17 12:34:17 drochner Exp $ +${PYSITELIB}/chart.py +${PYSITELIB}/gdchart.so +share/examples/${PYPKGPREFIX}-gdchart/test.html +share/examples/${PYPKGPREFIX}-gdchart/test.py +share/examples/${PYPKGPREFIX}-gdchart/CHANGES +@dirrm share/examples/${PYPKGPREFIX}-gdchart |