Skip to contentSkip to conversation

circus: new package

PATCH New yegorslists at googlemail.com 2 participants 2 messages Jul 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 circus: new package

From: Yegor Yefremov <[email protected]>

---
Changes:
v2: fix merge conflict (Maxime Hadjinlian)

 package/Config.in          |  1 +
 package/circus/Config.in   | 21 +++++++++++++++++++++
 package/circus/circus.hash |  3 +++
 package/circus/circus.mk   | 14 ++++++++++++++
 4 files changed, 39 insertions(+)
 create mode 100644 package/circus/Config.in
 create mode 100644 package/circus/circus.hash
 create mode 100644 package/circus/circus.mk
package/Config.in +1 -0
index 6cc1d3e..4d3d202 100644
@@ -1635,6 +1635,7 @@ menu "System tools"
 	source "package/attr/Config.in"
 	source "package/audit/Config.in"
 	source "package/bootutils/Config.in"
+	source "package/circus/Config.in"
 	source "package/coreutils/Config.in"
 	source "package/cpuload/Config.in"
 	source "package/dcron/Config.in"
package/circus/Config.in new file +21 -0
new file mode 100644
index 0000000..476a53e
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_CIRCUS
+	bool "circus"
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+	depends on BR2_USE_WCHAR # zeromq
+	depends on BR2_INSTALL_LIBSTDCPP # zeromq
+	depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq
+	select BR2_PACKAGE_PYTHON_IOWAIT # runtime
+	select BR2_PACKAGE_PYTHON_PSUTIL # runtime
+	select BR2_PACKAGE_PYTHON_PYZMQ # runtime
+	select BR2_PACKAGE_PYTHON_TORNADO # runtime
+	select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
+	help
+	  Circus is a program that will let you run and watch multiple
+	  processes and sockets.
+
+	  https://circus.readthedocs.org/en/latest/
+
+comment "circus needs a toolchain w/ C++, wchar, threads and Python2/3"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && \
+		BR2_TOOLCHAIN_HAS_THREADS && (BR2_PACKAGE_PYTHON || \
+		BR2_PACKAGE_PYTHON3))
package/circus/circus.hash new file +3 -0
new file mode 100644
index 0000000..728cad5
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/circus/json, sha256 locally computed
+md5	cddd4a8844907d8b6b402ca9c713d176  circus-0.13.0.tar.gz
+sha256	6201800a5fb05144b5e6c5ac9eb901b914305e8beaeb01f8edf54ab6ab1a295a  circus-0.13.0.tar.gz
package/circus/circus.mk new file +14 -0
new file mode 100644
index 0000000..a7693bd
@@ -0,0 +1,14 @@
+################################################################################
+#
+# circus
+#
+################################################################################
+
+CIRCUS_VERSION = 0.13.0
+CIRCUS_SOURCE = circus-$(CIRCUS_VERSION).tar.gz
+CIRCUS_SITE = https://pypi.python.org/packages/source/c/circus
+CIRCUS_SETUP_TYPE = setuptools
+CIRCUS_LICENSE = Apache-2.0
+CIRCUS_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
Signature · 1 line
2.8.1
#1 lore raw

PATCH v2 1/1 circus: new package

Hello,

package/circus/Config.in line 6

Quoted 4 lines · yegorslists at googlemail.com
package/circus/Config.in new file +4 -0
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
+	depends on BR2_USE_WCHAR # zeromq
+	depends on BR2_INSTALL_LIBSTDCPP # zeromq
+	depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq

zeromq is not selected anywhere in this package, so these comments where a bit confusing. Instead, I've added "# pyzmq -> zeromq" which makes it clear where the dependency comes from.

package/circus/Config.in line 21

Quoted 4 lines
package/circus/Config.in new file +4 -0
+comment "circus needs a toolchain w/ C++, wchar, threads and Python2/3"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && \
+		BR2_TOOLCHAIN_HAS_THREADS && (BR2_PACKAGE_PYTHON || \
+		BR2_PACKAGE_PYTHON3))

I've replaced this with the slightly simpler (IMO) :

comment "circus needs Python and a toolchain w/ C++, wchar, threads"

        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
                !BR2_TOOLCHAIN_HAS_THREADS || \
                !(BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com