Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2019 00:56:44 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512380 - in head/devel: . py-dialog3 py-dialog3/files
Message-ID:  <201909200056.x8K0uivq080854@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Fri Sep 20 00:56:43 2019
New Revision: 512380
URL: https://svnweb.freebsd.org/changeset/ports/512380

Log:
  pythondialog 3 is a Python 3 wrapper for the dialog utility originally
  written by Savio Lam, and later rewritten by Thomas E. Dickey.  Its purpose
  is to provide an easy to use, pythonic and comprehensive Python 3 interface
  to dialog.  This allows one to make simple text-mode user interfaces on
  Unix-like systems.
  
  WWW: http://pythondialog.sourceforge.net/

Added:
  head/devel/py-dialog3/
  head/devel/py-dialog3/Makefile   (contents, props changed)
  head/devel/py-dialog3/distinfo   (contents, props changed)
  head/devel/py-dialog3/files/
  head/devel/py-dialog3/files/patch-dialog.py   (contents, props changed)
  head/devel/py-dialog3/files/patch-doc_intro_example.py   (contents, props changed)
  head/devel/py-dialog3/files/patch-doc_intro_intro.rst   (contents, props changed)
  head/devel/py-dialog3/files/patch-examples_demo.py   (contents, props changed)
  head/devel/py-dialog3/files/patch-examples_simple__example.py   (contents, props changed)
  head/devel/py-dialog3/files/patch-examples_with-autowidgetsize_demo.py   (contents, props changed)
  head/devel/py-dialog3/files/patch-examples_with-autowidgetsize_simple__example.py   (contents, props changed)
  head/devel/py-dialog3/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu Sep 19 23:51:02 2019	(r512379)
+++ head/devel/Makefile	Fri Sep 20 00:56:43 2019	(r512380)
@@ -4370,6 +4370,7 @@
     SUBDIR += py-deprecation
     SUBDIR += py-dexml
     SUBDIR += py-dialog
+    SUBDIR += py-dialog3
     SUBDIR += py-diazo
     SUBDIR += py-dill
     SUBDIR += py-dirspec

Added: head/devel/py-dialog3/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/Makefile	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME=	dialog
+PORTVERSION=	3.4.0
+CATEGORIES=	devel python
+MASTER_SITES=	SF/python${PORTNAME}/python${PORTNAME}/${PORTVERSION} \
+		LOCAL/jkim
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	3
+DISTNAME=	python3-pythondialog-${PORTVERSION}
+
+MAINTAINER=	jkim@FreeBSD.org
+COMMENT=	Python 3 interface to dialog(3)
+
+LICENSE=	LGPL20
+
+RUN_DEPENDS=	cdialog:devel/cdialog
+
+USES=		python:3.6 tar:bz2
+USE_PYTHON=	autoplist concurrent distutils pythonprefix
+PYDISTUTILS_PKGNAME=	python${PORTNAME}
+
+WRKSRC=		"${WRKDIR}/${DISTNAME:C/^python3-//}"
+
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	EXAMPLES
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/examples/ && \
+	    ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name *\.orig"
+
+.include <bsd.port.mk>

Added: head/devel/py-dialog3/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/distinfo	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1568933548
+SHA256 (python3-pythondialog-3.4.0.tar.bz2) = 019cdbffe3f61d32d6fb158ce48a767478af2aac2f31fb40460b39aefae604fe
+SIZE (python3-pythondialog-3.4.0.tar.bz2) = 1415324

Added: head/devel/py-dialog3/files/patch-dialog.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/files/patch-dialog.py	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,11 @@
+--- dialog.py.orig	2016-05-07 16:38:28 UTC
++++ dialog.py
+@@ -878,7 +878,7 @@ class Dialog:
+         # wants to know the (integer) error exit status, here it is...
+         return self._DIALOG_ERROR
+ 
+-    def __init__(self, dialog="dialog", DIALOGRC=None,
++    def __init__(self, dialog="cdialog", DIALOGRC=None,
+                  compat="dialog", use_stdout=None, *, autowidgetsize=False,
+                  pass_args_via_file=None):
+         """Constructor for :class:`Dialog` instances.

Added: head/devel/py-dialog3/files/patch-doc_intro_example.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/files/patch-doc_intro_example.py	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,11 @@
+--- doc/intro/example.py.orig	2015-04-04 09:43:57 UTC
++++ doc/intro/example.py
+@@ -35,7 +35,7 @@ from dialog import Dialog
+ # This is almost always a good thing to do at the beginning of your programs.
+ locale.setlocale(locale.LC_ALL, '')
+ 
+-d = Dialog(dialog="dialog")
++d = Dialog(dialog="cdialog")
+ 
+ button_names = {d.OK:     "OK",
+                 d.CANCEL: "Cancel",

Added: head/devel/py-dialog3/files/patch-doc_intro_intro.rst
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/files/patch-doc_intro_intro.rst	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,20 @@
+--- doc/intro/intro.rst.orig	2015-04-04 09:43:57 UTC
++++ doc/intro/intro.rst
+@@ -8,7 +8,7 @@ A minimal program using pythondialog starts with the c
+ 
+   from dialog import Dialog
+ 
+-  d = Dialog(dialog="dialog")
++  d = Dialog(dialog="cdialog")
+ 
+ The *dialog* parameter indicates the executable to use to invoke the backend
+ (which must be compatible with dialog_). For instance, one might use something
+@@ -181,7 +181,7 @@ improve readability, we obtain the code for our exampl
+   # This is almost always a good thing to do at the beginning of your programs.
+   locale.setlocale(locale.LC_ALL, '')
+ 
+-  d = Dialog(dialog="dialog")
++  d = Dialog(dialog="cdialog")
+ 
+   button_names = {d.OK:     "OK",
+                   d.CANCEL: "Cancel",

Added: head/devel/py-dialog3/files/patch-examples_demo.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/files/patch-examples_demo.py	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,11 @@
+--- examples/demo.py.orig	2016-05-07 16:38:28 UTC
++++ examples/demo.py
+@@ -335,7 +335,7 @@ class MyApp:
+         # If you want to use Xdialog (pathnames are also OK for the 'dialog'
+         # argument), you can use:
+         #   dialog.Dialog(dialog="Xdialog", compat="Xdialog")
+-        self.Dialog_instance = dialog.Dialog(dialog="dialog")
++        self.Dialog_instance = dialog.Dialog(dialog="cdialog")
+         # See the module docstring at the top of the file to understand the
+         # purpose of MyDialog.
+         d = MyDialog(self.Dialog_instance)

Added: head/devel/py-dialog3/files/patch-examples_simple__example.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/files/patch-examples_simple__example.py	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,11 @@
+--- examples/simple_example.py.orig	2016-05-07 16:38:28 UTC
++++ examples/simple_example.py
+@@ -13,7 +13,7 @@ from dialog import Dialog
+ locale.setlocale(locale.LC_ALL, '')
+ 
+ # Initialize a dialog.Dialog instance
+-d = Dialog(dialog="dialog")
++d = Dialog(dialog="cdialog")
+ d.set_background_title("A Simple Example")
+ 
+ 

Added: head/devel/py-dialog3/files/patch-examples_with-autowidgetsize_demo.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/files/patch-examples_with-autowidgetsize_demo.py	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,11 @@
+--- examples/with-autowidgetsize/demo.py.orig	2016-05-07 16:38:28 UTC
++++ examples/with-autowidgetsize/demo.py
+@@ -340,7 +340,7 @@ class MyApp:
+         # widget-producing methods behave as if width=0, height=0, etc. had
+         # been passed, except where these parameters are explicitely specified
+         # with different values.
+-        self.Dialog_instance = dialog.Dialog(dialog="dialog",
++        self.Dialog_instance = dialog.Dialog(dialog="cdialog",
+                                              autowidgetsize=True)
+         # See the module docstring at the top of the file to understand the
+         # purpose of MyDialog.

Added: head/devel/py-dialog3/files/patch-examples_with-autowidgetsize_simple__example.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/files/patch-examples_with-autowidgetsize_simple__example.py	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,11 @@
+--- examples/with-autowidgetsize/simple_example.py.orig	2016-05-07 16:38:28 UTC
++++ examples/with-autowidgetsize/simple_example.py
+@@ -17,7 +17,7 @@ locale.setlocale(locale.LC_ALL, '')
+ # With the 'autowidgetsize' option enabled, pythondialog's widget-producing
+ # methods behave as if width=0, height=0, etc. had been passed, except where
+ # these parameters are explicitely specified with different values.
+-d = Dialog(dialog="dialog", autowidgetsize=True)
++d = Dialog(dialog="cdialog", autowidgetsize=True)
+ d.set_background_title("A Simple Example")
+ 
+ 

Added: head/devel/py-dialog3/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-dialog3/pkg-descr	Fri Sep 20 00:56:43 2019	(r512380)
@@ -0,0 +1,7 @@
+pythondialog 3 is a Python 3 wrapper for the dialog utility originally
+written by Savio Lam, and later rewritten by Thomas E. Dickey.  Its purpose
+is to provide an easy to use, pythonic and comprehensive Python 3 interface
+to dialog.  This allows one to make simple text-mode user interfaces on
+Unix-like systems.
+
+WWW: http://pythondialog.sourceforge.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909200056.x8K0uivq080854>