From 31edef4d8f66a8e0fdbcc758e0b1378e3d9a9938 Mon Sep 17 00:00:00 2001 From: obache Date: Sun, 5 Feb 2012 13:19:32 +0000 Subject: [PATCH] distutils pkg, use python/distutils.mk, then register egg-info. Bump PKGREVISION. --- textproc/py-yamcha/Makefile | 8 +++++--- textproc/py-yamcha/PLIST | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/textproc/py-yamcha/Makefile b/textproc/py-yamcha/Makefile index 34d71d0f792f..9476f39c2eca 100644 --- a/textproc/py-yamcha/Makefile +++ b/textproc/py-yamcha/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.1.1.1 2010/05/19 12:10:10 obache Exp $ +# $NetBSD: Makefile,v 1.2 2012/02/05 13:19:32 obache Exp $ # .include "../../textproc/yamcha/Makefile.common" PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +PKGREVISION= 1 CATEGORIES+= python COMMENT= YamCha python module @@ -12,10 +13,11 @@ PKG_DESTDIR_SUPPORT= user-destdir USE_LANGUAGES= c c++ -PYDISTUTILSPKG= yes PYSETUPSUBDIR= python +EGG_NAME= ${DISTNAME:S/-/_python-/} + BUILDLINK_API_DEPENDS.yamcha+= yamcha>=${PKGVERSION_NOREV} .include "../../textproc/yamcha/buildlink3.mk" -.include "../../lang/python/extension.mk" +.include "../../lang/python/distutils.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-yamcha/PLIST b/textproc/py-yamcha/PLIST index 2fefc065f4a8..25b683923502 100644 --- a/textproc/py-yamcha/PLIST +++ b/textproc/py-yamcha/PLIST @@ -1,5 +1,6 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2010/05/19 12:10:10 obache Exp $ +@comment $NetBSD: PLIST,v 1.2 2012/02/05 13:19:32 obache Exp $ ${PYSITELIB}/YamCha.py ${PYSITELIB}/YamCha.pyc ${PYSITELIB}/YamCha.pyo ${PYSITELIB}/_YamCha.so +${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}