aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--comms/gammu-python/Makefile6
-rw-r--r--comms/gammu/pkg-plist1
2 files changed, 6 insertions, 1 deletions
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