]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python-mako: use pypi.bbclass
authorTim Orling <timothy.t.orling@linux.intel.com>
Mon, 27 Nov 2017 15:34:24 +0000 (07:34 -0800)
committerTim Orling <timothy.t.orling@linux.intel.com>
Mon, 27 Nov 2017 15:34:24 +0000 (07:34 -0800)
* Simplify python3-mako by using pypi.bbclass
* Avoid duplication by using PYTHON_PN in .inc

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
meta/recipes-devtools/python/python-mako.inc
meta/recipes-devtools/python/python3-mako_1.0.7.bb

index 1c83af6a239edd433ea769e9e88720230b7d9559..7adae6161e8c225e3fcf009e0e30994cdc111572 100644 (file)
@@ -4,13 +4,17 @@ SECTION = "devel/python"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=1bb21fa2d2f7a534c884b990430a6863"
 
-SRC_URI = "https://files.pythonhosted.org/packages/source/M/Mako/Mako-${PV}.tar.gz"
+PYPI_PACKAGE = "Mako"
+
+inherit pypi
 
 SRC_URI[md5sum] = "5836cc997b1b773ef389bf6629c30e65"
 SRC_URI[sha256sum] = "4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae"
 
-UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/mako/"
-UPSTREAM_CHECK_REGEX = "/Mako/(?P<pver>(\d+[\.\-_]*)+)"
-
-S = "${WORKDIR}/Mako-${PV}"
+RDEPENDS_${PN}_class-target += " \
+  ${PYTHON_PN}-html \
+  ${PYTHON_PN}-netclient \
+  ${PYTHON_PN}-threading \
+  "
 
+BBCLASSEXTEND = "native nativesdk"
index 2b50ffd08ade45846e3e4dfa7c6cb96aff2545cb..156d4f16829f0a5772cda0aa80e5bc887a07d9b2 100644 (file)
@@ -1,11 +1,2 @@
 require python-mako.inc
-
 inherit setuptools3
-
-RDEPENDS_${PN} = "python3-threading \
-                  python3-netclient \
-                  python3-html \
-"
-RDEPENDS_${PN}_class-native = ""
-
-BBCLASSEXTEND = "native nativesdk"