From 7fec62fb26f23541a12087ffc8a2b1b9a6ff3583 Mon Sep 17 00:00:00 2001 From: bsam Date: Fri, 14 May 2010 16:56:13 +0000 Subject: comms/gammu-python: . remove CATEGORIES (it's the same with master port); . run python script to create gammu/__init__.pyc file; . bump PORTREVISION. comms/gammu: . add gammu/__init__.pyc to pkg-plist (when WITH_PYTHON_GAMMU is defined, i.e. for comms/gammu-python port). --- comms/gammu-python/Makefile | 6 +++++- comms/gammu/pkg-plist | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/comms/gammu-python/Makefile b/comms/gammu-python/Makefile index 2e320c057249..03fb243ca0c5 100644 --- a/comms/gammu-python/Makefile +++ b/comms/gammu-python/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ # -CATEGORIES= comms +PORTREVISION= 1 PKGNAMESUFFIX= -python CONFLICTS= gammu-[1-9]* gammu-devel-[1-9]* @@ -14,4 +14,8 @@ WITH_PYTHON_GAMMU= yes MASTERDIR= ${.CURDIR}/../gammu +post-install: + @${PYTHON_CMD} ${PYTHON_SITELIBDIR}/${PORTNAME}/__init__.py + + .include "${MASTERDIR}/Makefile" diff --git a/comms/gammu/pkg-plist b/comms/gammu/pkg-plist index e825fbfd8770..76bfa4849071 100644 --- a/comms/gammu/pkg-plist +++ b/comms/gammu/pkg-plist @@ -37,6 +37,7 @@ lib/libgsmsd.a libdata/pkgconfig/gammu.pc libdata/pkgconfig/gammu-smsd.pc %%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/__init__.py +%%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/__init__.pyc %%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/_gammu.so %%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Data.py %%WITH_PYTHON_GAMMU%%%%PYTHON_SITELIBDIR%%/gammu/Worker.py -- cgit