diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-26 12:53:33 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-27 20:07:10 -0800 |
commit | 8b21e77502055c8078132cdac57a4736108b3a5a (patch) | |
tree | 4fbd10b53a1ba3b0b81e899746dbf441c069dabe /meta-oe/recipes-devtools/mercurial | |
parent | b18be1a48d4a0e6ddc220f0ecea074059cf2ad9f (diff) | |
download | meta-openembedded-8b21e77502055c8078132cdac57a4736108b3a5a.tar.gz |
mercurial: Upgrade to 5.2 and switch to py3
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/mercurial')
-rw-r--r-- | meta-oe/recipes-devtools/mercurial/mercurial_5.2.bb (renamed from meta-oe/recipes-devtools/mercurial/mercurial_4.6.1.bb) | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/meta-oe/recipes-devtools/mercurial/mercurial_4.6.1.bb b/meta-oe/recipes-devtools/mercurial/mercurial_5.2.bb index 13710aaea3..0fec4d1f17 100644 --- a/meta-oe/recipes-devtools/mercurial/mercurial_4.6.1.bb +++ b/meta-oe/recipes-devtools/mercurial/mercurial_5.2.bb | |||
@@ -3,29 +3,33 @@ HOMEPAGE = "http://mercurial.selenic.com/" | |||
3 | SECTION = "console/utils" | 3 | SECTION = "console/utils" |
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
6 | DEPENDS = "python python-native" | ||
7 | DEPENDS_class-native = "python-native" | ||
8 | RDEPENDS_${PN} = "python python-modules" | ||
9 | 6 | ||
10 | inherit python-dir | 7 | DEPENDS = "python3 python3-native" |
8 | RDEPENDS_${PN} = "python3 python3-modules" | ||
9 | |||
10 | inherit python3native | ||
11 | 11 | ||
12 | SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz" | 12 | SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz" |
13 | SRC_URI[md5sum] = "f9b2e4a3b5901ef744fa3abe4196e97e" | 13 | SRC_URI[md5sum] = "9ba9d59157c002db8d8cab680de08eb5" |
14 | SRC_URI[sha256sum] = "89fa8ecbc8aa6e48e98f9803a1683ba91367124295dba2407b28c34ca621108d" | 14 | SRC_URI[sha256sum] = "ff030e923f03ee15c91191996fcb099bfcfa60c7df263be227f67b6a65d36194" |
15 | 15 | ||
16 | S = "${WORKDIR}/mercurial-${PV}" | 16 | S = "${WORKDIR}/mercurial-${PV}" |
17 | 17 | ||
18 | BBCLASSEXTEND = "native" | 18 | BBCLASSEXTEND = "native" |
19 | 19 | ||
20 | export LDSHARED="${CCLD} -shared" | ||
21 | |||
20 | EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ | 22 | EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ |
21 | PREFIX=${prefix}" | 23 | PREFIX=${prefix}" |
22 | 24 | ||
23 | do_configure_append () { | 25 | do_configure_append () { |
24 | sed -i -e 's:PYTHON=python:PYTHON=${STAGING_BINDIR_NATIVE}/python-native/python:g' ${S}/Makefile | 26 | sed -i -e 's:PYTHON?=python:PYTHON=python3:g' ${S}/Makefile |
25 | } | 27 | } |
26 | 28 | ||
27 | do_install () { | 29 | do_install () { |
28 | oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix} | 30 | oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix} |
31 | sed -i -e 's:${STAGING_BINDIR_NATIVE}/python3-native/python3:${USRBINPATH}/env python3:g' ${D}${bindir}/hg | ||
29 | } | 32 | } |
30 | 33 | ||
31 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}" | 34 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}" |
35 | |||