From 23d81a47784bde091518f679ced7e9e6195f973d Mon Sep 17 00:00:00 2001 From: zangrc Date: Mon, 13 Jan 2020 11:02:30 +0800 Subject: python-lesscpy: Add python3 version Signed-off-by: Zang Ruochen Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-lesscpy.inc | 18 ++++++++++++++++++ .../recipes-devtools/python/python-lesscpy_0.10.2.bb | 20 ++------------------ .../python/python3-lesscpy_0.10.2.bb | 2 ++ 3 files changed, 22 insertions(+), 18 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-lesscpy.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-lesscpy_0.10.2.bb diff --git a/meta-openstack/recipes-devtools/python/python-lesscpy.inc b/meta-openstack/recipes-devtools/python/python-lesscpy.inc new file mode 100644 index 0000000..c10b0b8 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-lesscpy.inc @@ -0,0 +1,18 @@ +DESCRIPTION = "Python lesscpy: Python LESS Compiler" +HOMEPAGE = "https://pypi.python.org/pypi/lesscpy" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a01aae31681ac25b4c46f98d627b9b5d" + +DEPENDS += "${PYTHON_PN}-ply" +RDEPENDS_${PN} += "${PYTHON_PN}-ply" + +SRC_URI[md5sum] = "fedbad1f4eb19c3af37f09560156246d" +SRC_URI[sha256sum] = "ccad1ad2a89ced1875c5ca4e16e5478b791d31fb187fe29f1541859318ed9055" + +inherit pypi + +DISTUTILS_INSTALL_ARGS = "--root=${D} \ + --prefix=${prefix} \ + --install-lib=${PYTHON_SITEPACKAGES_DIR} \ + --install-data=${datadir}" diff --git a/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb b/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb index ca27cb5..43d7ff8 100644 --- a/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb +++ b/meta-openstack/recipes-devtools/python/python-lesscpy_0.10.2.bb @@ -1,18 +1,2 @@ -DESCRIPTION = "Python lesscpy: Python LESS Compiler" -HOMEPAGE = "https://pypi.python.org/pypi/lesscpy" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=a01aae31681ac25b4c46f98d627b9b5d" - -DEPENDS += "python-ply" -RDEPENDS_${PN} += "python-ply" - -SRC_URI[md5sum] = "fedbad1f4eb19c3af37f09560156246d" -SRC_URI[sha256sum] = "ccad1ad2a89ced1875c5ca4e16e5478b791d31fb187fe29f1541859318ed9055" - -inherit setuptools pypi - -DISTUTILS_INSTALL_ARGS = "--root=${D} \ - --prefix=${prefix} \ - --install-lib=${PYTHON_SITEPACKAGES_DIR} \ - --install-data=${datadir}" +require python-lesscpy.inc +inherit setuptools diff --git a/meta-openstack/recipes-devtools/python/python3-lesscpy_0.10.2.bb b/meta-openstack/recipes-devtools/python/python3-lesscpy_0.10.2.bb new file mode 100644 index 0000000..167b970 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-lesscpy_0.10.2.bb @@ -0,0 +1,2 @@ +require python-lesscpy.inc +inherit setuptools3 -- cgit v1.2.3-54-g00ecf