diff mbox

[v5,1/1] package/python-mwscrape2slob: new package

Message ID 20161009143144.10947-1-bernd.kuhls@t-online.de
State Accepted
Headers show

Commit Message

Bernd Kuhls Oct. 9, 2016, 2:31 p.m. UTC
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v5: fix license (rest of v4 series is kept untouched)
v4: no changes
v3: initial version

 package/Config.in                                     |  1 +
 package/python-mwscrape2slob/Config.in                | 19 +++++++++++++++++++
 .../python-mwscrape2slob/python-mwscrape2slob.hash    |  2 ++
 package/python-mwscrape2slob/python-mwscrape2slob.mk  | 13 +++++++++++++
 4 files changed, 35 insertions(+)
 create mode 100644 package/python-mwscrape2slob/Config.in
 create mode 100644 package/python-mwscrape2slob/python-mwscrape2slob.hash
 create mode 100644 package/python-mwscrape2slob/python-mwscrape2slob.mk

Comments

Thomas Petazzoni Oct. 9, 2016, 9:11 p.m. UTC | #1
Hello,

On Sun,  9 Oct 2016 16:31:44 +0200, Bernd Kuhls wrote:

> +PYTHON_MWSCRAPE2SLOB_VERSION = 0f9124ed62009dff6a230947d80340f5a61a6f49
> +PYTHON_MWSCRAPE2SLOB_SITE = $(call github,itkach,mwscrape2slob,$(PYTHON_MWSCRAPE2SLOB_VERSION))
> +PYTHON_MWSCRAPE2SLOB_LICENSE = GPLv3, Apache-2.0 (MathJax), \
> +	GPL (MediaWiki monobook style sheet)

Having this on two lines is not good, it will mess up the legal-info
generation I believe, so I've changed this to just one line, and
applied your patch.

The "GPL" with no version with the style sheet is unfortunate, but it's
indeed the only information available in the code.

Could you get in touch with upstream to ask them to add some more
precise license information, as well as a file containing the
different license texts?

Finally, since I've now applied all your pending python packages, could
you send a patch updating the DEVELOPERS file to reference you as a
developer following those packages?

Thanks!

Thomas
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index 74f506c..7cf9981 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -712,6 +712,7 @@  menu "External python modules"
 	source "package/python-msgpack/Config.in"
 	source "package/python-mwclient/Config.in"
 	source "package/python-mwscrape/Config.in"
+	source "package/python-mwscrape2slob/Config.in"
 	source "package/python-netaddr/Config.in"
 	source "package/python-netifaces/Config.in"
 	source "package/python-networkmanager/Config.in"
diff --git a/package/python-mwscrape2slob/Config.in b/package/python-mwscrape2slob/Config.in
new file mode 100644
index 0000000..799ab29
--- /dev/null
+++ b/package/python-mwscrape2slob/Config.in
@@ -0,0 +1,19 @@ 
+config BR2_PACKAGE_PYTHON_MWSCRAPE2SLOB
+	bool "python-mwscrape2slob"
+	depends on !BR2_BINFMT_FLAT # python-slob -> python-pyicu -> icu
+	depends on BR2_INSTALL_LIBSTDCPP # python-slob -> python-pyicu -> icu
+	depends on BR2_PACKAGE_PYTHON3
+	select BR2_PACKAGE_PYTHON_COUCHDB # runtime
+	select BR2_PACKAGE_PYTHON_CSSSELECT # runtime
+	select BR2_PACKAGE_PYTHON_CSSUTILS # runtime
+	select BR2_PACKAGE_PYTHON_LXML # runtime
+	select BR2_PACKAGE_PYTHON_SLOB # runtime
+	help
+	  A tool to create slob with content from a MediaWiki CouchDB
+	  created by mwscrape.
+
+	  https://github.com/itkach/mwscrape2slob
+
+comment "python-mwscrape2slob needs a toolchain w/ C++"
+	depends on BR2_PACKAGE_PYTHON3 && !BR2_BINFMT_FLAT
+	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/python-mwscrape2slob/python-mwscrape2slob.hash b/package/python-mwscrape2slob/python-mwscrape2slob.hash
new file mode 100644
index 0000000..f1f5e4f
--- /dev/null
+++ b/package/python-mwscrape2slob/python-mwscrape2slob.hash
@@ -0,0 +1,2 @@ 
+# Locally computed
+sha256 367ffc3203f7eb2cc26211f58c0693526652d9a238af48c88f936920e804faf7  python-mwscrape2slob-0f9124ed62009dff6a230947d80340f5a61a6f49.tar.gz
diff --git a/package/python-mwscrape2slob/python-mwscrape2slob.mk b/package/python-mwscrape2slob/python-mwscrape2slob.mk
new file mode 100644
index 0000000..5cd82a3
--- /dev/null
+++ b/package/python-mwscrape2slob/python-mwscrape2slob.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# python-mwscrape2slob
+#
+################################################################################
+
+PYTHON_MWSCRAPE2SLOB_VERSION = 0f9124ed62009dff6a230947d80340f5a61a6f49
+PYTHON_MWSCRAPE2SLOB_SITE = $(call github,itkach,mwscrape2slob,$(PYTHON_MWSCRAPE2SLOB_VERSION))
+PYTHON_MWSCRAPE2SLOB_LICENSE = GPLv3, Apache-2.0 (MathJax), \
+	GPL (MediaWiki monobook style sheet)
+PYTHON_MWSCRAPE2SLOB_SETUP_TYPE = distutils
+
+$(eval $(python-package))