From 6c51fe70fa40c4d3456541101869cbd6055a17b7 Mon Sep 17 00:00:00 2001 From: wangmy Date: Sun, 10 Apr 2022 23:07:00 +0800 Subject: mercurial: upgrade 5.5 -> 6.1 Changelog from 5.5 to 6.1: https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_6.1_.282022-03-01.29_to_6.1.1_.282022-04-05.29 Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../recipes-devtools/mercurial/mercurial_5.5.bb | 38 ---------------------- .../recipes-devtools/mercurial/mercurial_6.1.bb | 37 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 38 deletions(-) delete mode 100644 meta-oe/recipes-devtools/mercurial/mercurial_5.5.bb create mode 100644 meta-oe/recipes-devtools/mercurial/mercurial_6.1.bb diff --git a/meta-oe/recipes-devtools/mercurial/mercurial_5.5.bb b/meta-oe/recipes-devtools/mercurial/mercurial_5.5.bb deleted file mode 100644 index 8049434109..0000000000 --- a/meta-oe/recipes-devtools/mercurial/mercurial_5.5.bb +++ /dev/null @@ -1,38 +0,0 @@ -SUMMARY = "The Mercurial distributed SCM" -HOMEPAGE = "http://mercurial.selenic.com/" -SECTION = "console/utils" -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" - -DEPENDS = "python3 python3-native" -RDEPENDS:${PN} = "python3 python3-modules" - -inherit python3native - -SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz" -SRC_URI[md5sum] = "17b21729cbc61dda80b2e3dfc046319f" -SRC_URI[sha256sum] = "c1ed28e1534304a7a4981ed59905286d1c56acd5b75755eedd184171a4a782b4" - -S = "${WORKDIR}/mercurial-${PV}" - -BBCLASSEXTEND = "native" - -export LDSHARED="${CCLD} -shared" - -EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ - PREFIX=${prefix}" - -do_configure:append () { - sed -i -e 's:PYTHON?=python:PYTHON=python3:g' ${S}/Makefile -} - -do_install () { - oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix} - sed -i -e 's:${STAGING_BINDIR_NATIVE}/python3-native/python3:${USRBINPATH}/env python3:g' ${D}${bindir}/hg -} -PACKAGES =+ "${PN}-python" - -FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" - -FILES:${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}" - diff --git a/meta-oe/recipes-devtools/mercurial/mercurial_6.1.bb b/meta-oe/recipes-devtools/mercurial/mercurial_6.1.bb new file mode 100644 index 0000000000..3abecc3054 --- /dev/null +++ b/meta-oe/recipes-devtools/mercurial/mercurial_6.1.bb @@ -0,0 +1,37 @@ +SUMMARY = "The Mercurial distributed SCM" +HOMEPAGE = "http://mercurial.selenic.com/" +SECTION = "console/utils" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +DEPENDS = "python3 python3-native" +RDEPENDS:${PN} = "python3 python3-modules" + +inherit python3native + +SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz" +SRC_URI[sha256sum] = "86f98645e4565a9256991dcde22b77b8e7d22ca6fbb60c1f4cdbd8469a38cc1f" + +S = "${WORKDIR}/mercurial-${PV}" + +BBCLASSEXTEND = "native" + +export LDSHARED="${CCLD} -shared" + +EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ + PREFIX=${prefix}" + +do_configure:append () { + sed -i -e 's:PYTHON?=python:PYTHON=python3:g' ${S}/Makefile +} + +do_install () { + oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix} + sed -i -e 's:${STAGING_BINDIR_NATIVE}/python3-native/python3:${USRBINPATH}/env python3:g' ${D}${bindir}/hg +} +PACKAGES =+ "${PN}-python" + +FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" + +FILES:${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}" + -- cgit v1.2.3-54-g00ecf