[1/4] python3-scons-{native}: add recipe for v3.0.5

Submitted by Tim Orling on June 7, 2019, 11:47 p.m. | Patch ID: 162053

Details

Message ID 7adf2becf20aa4ef98cadca5fed36553f8e4664d.1559950879.git.timothy.t.orling@linux.intel.com
State New
Headers show

Commit Message

Tim Orling June 7, 2019, 11:47 p.m.
SCons has supported python 3 since v3.0.0
https://scons.org/tag/releases.html

Fix shebangs in scripts

[YOCTO #13381]

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
---
 meta/conf/distro/include/maintainers.inc      |  2 ++
 .../python/python3-scons-native_3.0.5.bb      |  8 +++++
 .../python/python3-scons_3.0.5.bb             | 29 +++++++++++++++++++
 3 files changed, 39 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-scons-native_3.0.5.bb
 create mode 100644 meta/recipes-devtools/python/python3-scons_3.0.5.bb

Patch hide | download patch | download mbox

diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index d6f66510e3..6ddf9f5fc7 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -604,6 +604,8 @@  RECIPE_MAINTAINER_pn-python3-pip = "Derek Straka <derek@asterius.io>"
 RECIPE_MAINTAINER_pn-python3-pycairo = "Derek Straka <derek@asterius.io>"
 RECIPE_MAINTAINER_pn-python3-pygments = "Derek Straka <derek@asterius.io>"
 RECIPE_MAINTAINER_pn-python3-pygobject = "Derek Straka <derek@asterius.io>"
+RECIPE_MAINTAINER_pn-python3-scons = "Tim Orling <timothy.t.orling@linux.intel.com>"
+RECIPE_MAINTAINER_pn-python3-scons-native = "Tim Orling <timothy.t.orling@linux.intel.como>"
 RECIPE_MAINTAINER_pn-python3-setuptools = "Derek Straka <derek@asterius.io>"
 RECIPE_MAINTAINER_pn-python3-six = "Derek Straka <derek@asterius.io>"
 RECIPE_MAINTAINER_pn-python3-smmap = "Derek Straka <derek@asterius.io>"
diff --git a/meta/recipes-devtools/python/python3-scons-native_3.0.5.bb b/meta/recipes-devtools/python/python3-scons-native_3.0.5.bb
new file mode 100644
index 0000000000..5cd5956625
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-scons-native_3.0.5.bb
@@ -0,0 +1,8 @@ 
+require python3-scons_${PV}.bb
+inherit native python3native
+DEPENDS = "python3-native"
+RDEPENDS_${PN} = ""
+
+do_install_append() {
+    create_wrapper ${D}${bindir}/scons SCONS_LIB_DIR='${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}' PYTHONNOUSERSITE='1'
+}
diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
new file mode 100644
index 0000000000..91e4a945e3
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
@@ -0,0 +1,29 @@ 
+SUMMARY = "Software Construction tool (make/autotools replacement)"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=37bb53a08e6beaea0c90e7821d731284"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/scons/scons-${PV}.tar.gz"
+SRC_URI[md5sum] = "9f9c163e8bd48cf8cd92f03e85ca6395"
+SRC_URI[sha256sum] = "df676f23dc6d4bfa384fc389d95dcd21ab907e6349d4c848958ba4befb73c73e"
+
+S = "${WORKDIR}/scons-${PV}"
+
+UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
+UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
+
+inherit setuptools3
+
+do_install_prepend() {
+    sed -i -e "s:/usr/bin/env python:/usr/bin/env python3:g" ${S}/script/*
+}
+
+RDEPENDS_${PN} = "\
+  python3-core \
+  python3-fcntl \
+  python3-io \
+  python3-json \
+  python3-shell \
+  python3-pickle \
+  python3-pprint \
+  "

Comments

Tim Orling June 8, 2019, 12:56 a.m.
On Fri, Jun 7, 2019 at 4:49 PM Tim Orling <timothy.t.orling@linux.intel.com>
wrote:

> SCons has supported python 3 since v3.0.0
> https://scons.org/tag/releases.html
>
> Fix shebangs in scripts
>
> [YOCTO #13381]
>
> Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
> ---
>  meta/conf/distro/include/maintainers.inc      |  2 ++
>  .../python/python3-scons-native_3.0.5.bb      |  8 +++++
>  .../python/python3-scons_3.0.5.bb             | 29 +++++++++++++++++++
>  3 files changed, 39 insertions(+)
>  create mode 100644 meta/recipes-devtools/python/
> python3-scons-native_3.0.5.bb
>  create mode 100644 meta/recipes-devtools/python/python3-scons_3.0.5.bb
>
> diff --git a/meta/conf/distro/include/maintainers.inc
> b/meta/conf/distro/include/maintainers.inc
> index d6f66510e3..6ddf9f5fc7 100644
> --- a/meta/conf/distro/include/maintainers.inc
> +++ b/meta/conf/distro/include/maintainers.inc
> @@ -604,6 +604,8 @@ RECIPE_MAINTAINER_pn-python3-pip = "Derek Straka <
> derek@asterius.io>"
>  RECIPE_MAINTAINER_pn-python3-pycairo = "Derek Straka <derek@asterius.io>"
>  RECIPE_MAINTAINER_pn-python3-pygments = "Derek Straka <derek@asterius.io
> >"
>  RECIPE_MAINTAINER_pn-python3-pygobject = "Derek Straka <derek@asterius.io
> >"
> +RECIPE_MAINTAINER_pn-python3-scons = "Tim Orling <
> timothy.t.orling@linux.intel.com>"
> +RECIPE_MAINTAINER_pn-python3-scons-native = "Tim Orling
> <timothy.t.orling@linux.intel.como>"


Grr. Typo.


>  RECIPE_MAINTAINER_pn-python3-setuptools = "Derek Straka <
> derek@asterius.io>"
>  RECIPE_MAINTAINER_pn-python3-six = "Derek Straka <derek@asterius.io>"
>  RECIPE_MAINTAINER_pn-python3-smmap = "Derek Straka <derek@asterius.io>"
> diff --git a/meta/recipes-devtools/python/python3-scons-native_3.0.5.bb
> b/meta/recipes-devtools/python/python3-scons-native_3.0.5.bb
> new file mode 100644
> index 0000000000..5cd5956625
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-scons-native_3.0.5.bb
> @@ -0,0 +1,8 @@
> +require python3-scons_${PV}.bb
> +inherit native python3native
> +DEPENDS = "python3-native"
> +RDEPENDS_${PN} = ""
> +
> +do_install_append() {
> +    create_wrapper ${D}${bindir}/scons
> SCONS_LIB_DIR='${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}'
> PYTHONNOUSERSITE='1'
> +}
> diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> new file mode 100644
> index 0000000000..91e4a945e3
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
> @@ -0,0 +1,29 @@
> +SUMMARY = "Software Construction tool (make/autotools replacement)"
> +SECTION = "devel/python"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM =
> "file://LICENSE.txt;md5=37bb53a08e6beaea0c90e7821d731284"
> +
> +SRC_URI = "${SOURCEFORGE_MIRROR}/scons/scons-${PV}.tar.gz"
> +SRC_URI[md5sum] = "9f9c163e8bd48cf8cd92f03e85ca6395"
> +SRC_URI[sha256sum] =
> "df676f23dc6d4bfa384fc389d95dcd21ab907e6349d4c848958ba4befb73c73e"
> +
> +S = "${WORKDIR}/scons-${PV}"
> +
> +UPSTREAM_CHECK_URI = "http://scons.org/pages/download.html"
> +UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
> +
> +inherit setuptools3
> +
> +do_install_prepend() {
> +    sed -i -e "s:/usr/bin/env python:/usr/bin/env python3:g" ${S}/script/*
> +}
> +
> +RDEPENDS_${PN} = "\
> +  python3-core \
> +  python3-fcntl \
> +  python3-io \
> +  python3-json \
> +  python3-shell \
> +  python3-pickle \
> +  python3-pprint \
> +  "
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>