* [Buildroot] [PATCH v2 1/2] python-markdown: add new package
@ 2014-12-20 11:17 Gwenhael Goavec-Merou
2014-12-20 11:17 ` [Buildroot] [PATCH v2 2/2] python-cheetah: " Gwenhael Goavec-Merou
0 siblings, 1 reply; 4+ messages in thread
From: Gwenhael Goavec-Merou @ 2014-12-20 11:17 UTC (permalink / raw)
To: buildroot
From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
---
Changes v1 -> v2:
- Change license
package/Config.in | 1 +
package/python-markdown/Config.in | 6 ++++++
package/python-markdown/python-markdown.mk | 15 +++++++++++++++
3 files changed, 22 insertions(+)
create mode 100644 package/python-markdown/Config.in
create mode 100644 package/python-markdown/python-markdown.mk
diff --git a/package/Config.in b/package/Config.in
index 81bb9e3..51630ba 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -511,6 +511,7 @@ menu "external python modules"
source "package/python-keyring/Config.in"
source "package/python-libconfig/Config.in"
source "package/python-mad/Config.in"
+ source "package/python-markdown/Config.in"
source "package/python-markupsafe/Config.in"
source "package/python-meld3/Config.in"
source "package/python-msgpack/Config.in"
diff --git a/package/python-markdown/Config.in b/package/python-markdown/Config.in
new file mode 100644
index 0000000..e5e164e
--- /dev/null
+++ b/package/python-markdown/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_MARKDOWN
+ bool "python-markdown"
+ help
+ This is a Python implementation of John Gruber's Markdown
+
+ https://pypi.python.org/pypi/Markdown
diff --git a/package/python-markdown/python-markdown.mk b/package/python-markdown/python-markdown.mk
new file mode 100644
index 0000000..05783a0
--- /dev/null
+++ b/package/python-markdown/python-markdown.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-markdown
+#
+################################################################################
+
+PYTHON_MARKDOWN_VERSION = 2.5.2
+PYTHON_MARKDOWN_SOURCE = Markdown-$(PYTHON_MARKDOWN_VERSION).tar.gz
+PYTHON_MARKDOWN_SITE = http://pypi.python.org/packages/source/M/Markdown
+PYTHON_MARKDOWN_LICENSE = BSD-3c
+PYTHON_MARKDOWN_LICENSE_FILES = LICENSE.md
+PYTHON_MARKDOWN_SETUP_TYPE = distutils
+
+$(eval $(python-package))
+$(eval $(host-python-package))
--
2.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] python-cheetah: add new package
2014-12-20 11:17 [Buildroot] [PATCH v2 1/2] python-markdown: add new package Gwenhael Goavec-Merou
@ 2014-12-20 11:17 ` Gwenhael Goavec-Merou
2014-12-20 12:59 ` Samuel Martin
0 siblings, 1 reply; 4+ messages in thread
From: Gwenhael Goavec-Merou @ 2014-12-20 11:17 UTC (permalink / raw)
To: buildroot
From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
---
Changes v1 -> v2:
- Add python-cheetah patch
package/Config.in | 1 +
package/python-cheetah/Config.in | 12 ++++++++++++
package/python-cheetah/python-cheetah.mk | 14 ++++++++++++++
3 files changed, 27 insertions(+)
create mode 100644 package/python-cheetah/Config.in
create mode 100644 package/python-cheetah/python-cheetah.mk
diff --git a/package/Config.in b/package/Config.in
index 51630ba..3324f17 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -489,6 +489,7 @@ menu "external python modules"
source "package/python-bottle/Config.in"
source "package/python-certifi/Config.in"
source "package/python-cffi/Config.in"
+ source "package/python-cheetah/Config.in"
source "package/python-configobj/Config.in"
source "package/python-configshell-fb/Config.in"
source "package/python-crc16/Config.in"
diff --git a/package/python-cheetah/Config.in b/package/python-cheetah/Config.in
new file mode 100644
index 0000000..732da6a
--- /dev/null
+++ b/package/python-cheetah/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_CHEETAH
+ bool "python-cheetah"
+ depends on BR2_PACKAGE_PYTHON_MARKDOWN
+ help
+ Cheetah is an open source template engine and code generation tool.
+
+ It can be used standalone or combined with other tools and frameworks.
+ Web development is its principle use, but Cheetah is very flexible
+ and is also being used to generate C++ game code, Java, sql, form
+ emails and even Python code.
+
+ https://pypi.python.org/pypi/Cheetah/
diff --git a/package/python-cheetah/python-cheetah.mk b/package/python-cheetah/python-cheetah.mk
new file mode 100644
index 0000000..523ad26
--- /dev/null
+++ b/package/python-cheetah/python-cheetah.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-cheetah
+#
+################################################################################
+
+PYTHON_CHEETAH_VERSION = 2.4.4
+PYTHON_CHEETAH_SOURCE = Cheetah-$(PYTHON_CHEETAH_VERSION).tar.gz
+PYTHON_CHEETAH_SITE = http://pypi.python.org/packages/source/C/Cheetah
+PYTHON_CHEETAH_LICENSE = MIT
+PYTHON_CHEETAH_SETUP_TYPE = setuptools
+PYTHON_CHEETAH_DEPENDENCIES += host-python-markdown
+
+$(eval $(python-package))
--
2.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] python-cheetah: add new package
2014-12-20 11:17 ` [Buildroot] [PATCH v2 2/2] python-cheetah: " Gwenhael Goavec-Merou
@ 2014-12-20 12:59 ` Samuel Martin
2014-12-20 15:07 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Samuel Martin @ 2014-12-20 12:59 UTC (permalink / raw)
To: buildroot
Hi Gwenhael,
On Sat, Dec 20, 2014 at 12:17 PM, Gwenhael Goavec-Merou
<gwenj@trabucayre.com> wrote:
> From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
>
> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
> ---
> Changes v1 -> v2:
> - Add python-cheetah patch
>
> package/Config.in | 1 +
> package/python-cheetah/Config.in | 12 ++++++++++++
> package/python-cheetah/python-cheetah.mk | 14 ++++++++++++++
> 3 files changed, 27 insertions(+)
> create mode 100644 package/python-cheetah/Config.in
> create mode 100644 package/python-cheetah/python-cheetah.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 51630ba..3324f17 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -489,6 +489,7 @@ menu "external python modules"
> source "package/python-bottle/Config.in"
> source "package/python-certifi/Config.in"
> source "package/python-cffi/Config.in"
> + source "package/python-cheetah/Config.in"
> source "package/python-configobj/Config.in"
> source "package/python-configshell-fb/Config.in"
> source "package/python-crc16/Config.in"
> diff --git a/package/python-cheetah/Config.in b/package/python-cheetah/Config.in
> new file mode 100644
> index 0000000..732da6a
> --- /dev/null
> +++ b/package/python-cheetah/Config.in
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_PYTHON_CHEETAH
> + bool "python-cheetah"
> + depends on BR2_PACKAGE_PYTHON_MARKDOWN
Why do you depends on python-markdown here, but not in the *.mk file?
If it is just because of the dependency on host-python-markdown, this
statement is not needed.
If you mean: "target python-cheetah needs target python-markdown
package", we usually use "select ...", and don't forget to add this
dependency in the *.mk file too.
> + help
> + Cheetah is an open source template engine and code generation tool.
> +
> + It can be used standalone or combined with other tools and frameworks.
> + Web development is its principle use, but Cheetah is very flexible
> + and is also being used to generate C++ game code, Java, sql, form
> + emails and even Python code.
> +
> + https://pypi.python.org/pypi/Cheetah/
> diff --git a/package/python-cheetah/python-cheetah.mk b/package/python-cheetah/python-cheetah.mk
> new file mode 100644
> index 0000000..523ad26
> --- /dev/null
> +++ b/package/python-cheetah/python-cheetah.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# python-cheetah
> +#
> +################################################################################
> +
> +PYTHON_CHEETAH_VERSION = 2.4.4
> +PYTHON_CHEETAH_SOURCE = Cheetah-$(PYTHON_CHEETAH_VERSION).tar.gz
> +PYTHON_CHEETAH_SITE = http://pypi.python.org/packages/source/C/Cheetah
> +PYTHON_CHEETAH_LICENSE = MIT
> +PYTHON_CHEETAH_SETUP_TYPE = setuptools
> +PYTHON_CHEETAH_DEPENDENCIES += host-python-markdown
> +
> +$(eval $(python-package))
> --
> 2.0.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Regards,
--
Samuel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] python-cheetah: add new package
2014-12-20 12:59 ` Samuel Martin
@ 2014-12-20 15:07 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-12-20 15:07 UTC (permalink / raw)
To: buildroot
Dear Samuel Martin,
On Sat, 20 Dec 2014 13:59:36 +0100, Samuel Martin wrote:
> If you mean: "target python-cheetah needs target python-markdown
> package", we usually use "select ...", and don't forget to add this
> dependency in the *.mk file too.
Unless it's a runtime dependency, which is very often the case for
Python modules. In this case, having a select in Config.in is
sufficient, there is no need to have a dependency in the .mk file.
However, in such cases, we clarify things by doing:
# runtime dependency only
select BR2_PACKAGE_<foobar>
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-20 15:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20 11:17 [Buildroot] [PATCH v2 1/2] python-markdown: add new package Gwenhael Goavec-Merou
2014-12-20 11:17 ` [Buildroot] [PATCH v2 2/2] python-cheetah: " Gwenhael Goavec-Merou
2014-12-20 12:59 ` Samuel Martin
2014-12-20 15:07 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox