aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2020-03-24 17:39:42 +0900
committerLei Maohui <leimaohui@cn.fujitsu.com>2020-03-24 17:39:42 +0900
commite302035685bcf26b0fdeb056eeb3600785a66362 (patch)
tree020a95bb88b1f111851693653e352240ea470e82
parent9a2392d61de70fca1adccf860eacb95be5d0d9c0 (diff)
downloadmeta-spdxscanner-e302035685bcf26b0fdeb056eeb3600785a66362.tar.gz
meta-spdxscanner-e302035685bcf26b0fdeb056eeb3600785a66362.tar.bz2
meta-spdxscanner-e302035685bcf26b0fdeb056eeb3600785a66362.zip
scancode-toolkit-native: Make it work under python3.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
-rw-r--r--recipes-devtools/scancode-toolkit/scancode-toolkit-native_3.1.1.bb16
1 files changed, 8 insertions, 8 deletions
diff --git a/recipes-devtools/scancode-toolkit/scancode-toolkit-native_3.1.1.bb b/recipes-devtools/scancode-toolkit/scancode-toolkit-native_3.1.1.bb
index 8f6f466..375c1b3 100644
--- a/recipes-devtools/scancode-toolkit/scancode-toolkit-native_3.1.1.bb
+++ b/recipes-devtools/scancode-toolkit/scancode-toolkit-native_3.1.1.bb
@@ -8,21 +8,21 @@ SECTION = "devel"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://NOTICE;md5=8aedb84647f637c585e71f8f2e96e5c8"
-EXTRANATIVEPATH_remove = "python-native"
+inherit native
-inherit setuptools pypi distutils native
-
-DEPENDS = "python-setuptools-native xz-native zlib-native libxml2-native \
+DEPENDS = "xz-native zlib-native libxml2-native \
libxslt-native bzip2-native \
"
-SRC_URI = "git://github.com/nexB/scancode-toolkit;branch=master \
+SRC_URI = "git://github.com/nexB/scancode-toolkit;branch=develop \
"
-SRCREV = "1af5ac8449cbb1ce98a0b461a6d9a5ad42a5d248"
-
+SRCREV = "4a5c596a2f02bb69e7764a8e2641286f5625d85e"
S = "${WORKDIR}/git"
+B = "${S}"
+
+export PYTHON_EXE="${HOSTTOOLS_DIR}/python3"
do_configure(){
./scancode --help
@@ -34,7 +34,7 @@ do_install_append(){
install -d ${D}${bindir}/local
install ${S}/scancode ${D}${bindir}/
- install ${S}/bin/* ${D}${bindir}/bin/
+ cp -rf ${S}/bin/* ${D}${bindir}/bin/
mv ${S}/include/* ${D}${bindir}/include/
}