summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2013-12-05 09:08:01 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-08 21:17:46 (GMT)
commit4d2cb77a529693931b7965b2b24ea0b4ab5f0a71 (patch)
tree0d20998752a3a8f6690427b109ee582b6ce9c062
parent39620852a21d1116a026933324563451e2d3452b (diff)
downloadbuildroot-4d2cb77a529693931b7965b2b24ea0b4ab5f0a71.tar.gz
buildroot-4d2cb77a529693931b7965b2b24ea0b4ab5f0a71.tar.bz2
python-dialog: add new package
[Peter: Propagate dialog dependencies, show comment if not available] Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/python-dialog/Config.in15
-rw-r--r--package/python-dialog/python-dialog.mk23
3 files changed, 39 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 4e37528..aa928ec 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -386,6 +386,7 @@ if BR2_PACKAGE_PYTHON
menu "external python modules"
source "package/python-bottle/Config.in"
source "package/python-crc16/Config.in"
+source "package/python-dialog/Config.in"
source "package/python-dpkt/Config.in"
source "package/python-id3/Config.in"
source "package/python-ipy/Config.in"
diff --git a/package/python-dialog/Config.in b/package/python-dialog/Config.in
new file mode 100644
index 0000000..8dd3fdf
--- /dev/null
+++ b/package/python-dialog/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_PYTHON_DIALOG
+ bool "python-dialog"
+ depends on BR2_PACKAGE_PYTHON
+ depends on BR2_TOOLCHAIN_HAS_THREADS # dialog
+ depends on BR2_USE_MMU # dialog
+ select BR2_PACKAGE_DIALOG
+ help
+ A Python interface to the UNIX dialog utility and
+ mostly-compatible programs.
+
+ http://pythondialog.sourceforge.net/
+
+comment "python-dialog needs a toolchain w/ threads"
+ depends on BR2_USE_MMU && BR2_PACKAGE_PYTHON
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/python-dialog/python-dialog.mk b/package/python-dialog/python-dialog.mk
new file mode 100644
index 0000000..fa496de
--- /dev/null
+++ b/package/python-dialog/python-dialog.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# python-dialog
+#
+################################################################################
+
+PYTHON_DIALOG_VERSION = 3.0.1
+PYTHON_DIALOG_SOURCE = python2-pythondialog-$(PYTHON_DIALOG_VERSION).tar.bz2
+PYTHON_DIALOG_SITE = http://downloads.sourceforge.net/project/pythondialog/pythondialog/$(PYTHON_DIALOG_VERSION)
+PYTHON_DIALOG_LICENSE = LGPLv2.1+
+PYTHON_DIALOG_LICENSE_FILES = COPYING
+
+PYTHON_DIALOG_DEPENDENCIES = python dialog
+
+define PYTHON_DIALOG_BUILD_CMDS
+ (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
+endef
+
+define PYTHON_DIALOG_INSTALL_TARGET_CMDS
+ (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
+endef
+
+$(eval $(generic-package))