aboutsummaryrefslogtreecommitdiff
path: root/devel/py-dialog
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-12-06 15:33:30 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-12-06 15:33:30 +0000
commitf671643bfc9d1e1dbe06abf4f8446571d04b0f3d (patch)
tree7678ea517b90190f2efee748bc4c52957b62bf72 /devel/py-dialog
parent2c6d4fda1f70aec1023df1a8731dbbd87eb42081 (diff)
downloadports-f671643bfc9d1e1dbe06abf4f8446571d04b0f3d.tar.gz
ports-f671643bfc9d1e1dbe06abf4f8446571d04b0f3d.zip
Notes
Diffstat (limited to 'devel/py-dialog')
-rw-r--r--devel/py-dialog/Makefile14
-rw-r--r--devel/py-dialog/files/patch-demo.py11
-rw-r--r--devel/py-dialog/pkg-plist2
3 files changed, 23 insertions, 4 deletions
diff --git a/devel/py-dialog/Makefile b/devel/py-dialog/Makefile
index 1a1f0a0f0c97..3c6b306c0a9e 100644
--- a/devel/py-dialog/Makefile
+++ b/devel/py-dialog/Makefile
@@ -8,20 +8,26 @@
PORTNAME= dialog
PORTVERSION= 2.7
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pythondialog
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pythondialog-${PORTVERSION}
-RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog
-
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= mek@mek.uz.ua
COMMENT= Python interface to dialog(3)
+RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog
+
USE_BZIP2= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+EXAMPLESDIR= ${PREFIX}/share/examples/py-dialog
+
+post-install:
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/demo.py ${EXAMPLESDIR}
+
.include <bsd.port.mk>
diff --git a/devel/py-dialog/files/patch-demo.py b/devel/py-dialog/files/patch-demo.py
new file mode 100644
index 000000000000..aad8cfb6ddd9
--- /dev/null
+++ b/devel/py-dialog/files/patch-demo.py
@@ -0,0 +1,11 @@
+--- demo.py.old Mon Dec 5 01:13:57 2005
++++ demo.py Mon Dec 5 01:14:02 2005
+@@ -269,7 +269,7 @@
+ # If you want to use Xdialog (pathnames are also OK for the 'dialog'
+ # argument)
+ # d = dialog.Dialog(dialog="Xdialog", compat="Xdialog")
+- d = dialog.Dialog(dialog="dialog")
++ d = dialog.Dialog(dialog="cdialog")
+
+ d.add_persistent_args(["--backtitle", "pythondialog demo"])
+
diff --git a/devel/py-dialog/pkg-plist b/devel/py-dialog/pkg-plist
index 93cafd8182c3..d896c010311c 100644
--- a/devel/py-dialog/pkg-plist
+++ b/devel/py-dialog/pkg-plist
@@ -1,3 +1,5 @@
lib/%%PYTHON_VERSION%%/site-packages/dialog.py
lib/%%PYTHON_VERSION%%/site-packages/dialog.pyc
lib/%%PYTHON_VERSION%%/site-packages/dialog.pyo
+%%EXAMPLESDIR%%/demo.py
+@dirrm %%EXAMPLESDIR%%