blob: 6dedb02aa3e19ef8a7aa2f72c9a341b811e6f8b7 [file] [log] [blame]
Brad Bishop996bc452019-12-02 13:05:15 -05001SUMMARY = "The Mercurial distributed SCM"
2HOMEPAGE = "http://mercurial.selenic.com/"
3SECTION = "console/utils"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7DEPENDS = "python3 python3-native"
8RDEPENDS_${PN} = "python3 python3-modules"
9
10inherit python3native
11
12SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz"
13SRC_URI[md5sum] = "9ba9d59157c002db8d8cab680de08eb5"
14SRC_URI[sha256sum] = "ff030e923f03ee15c91191996fcb099bfcfa60c7df263be227f67b6a65d36194"
15
16S = "${WORKDIR}/mercurial-${PV}"
17
18BBCLASSEXTEND = "native"
19
20export LDSHARED="${CCLD} -shared"
21
22EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
23 PREFIX=${prefix}"
24
25do_configure_append () {
26 sed -i -e 's:PYTHON?=python:PYTHON=python3:g' ${S}/Makefile
27}
28
29do_install () {
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
32}
Brad Bishope42b3e32020-01-15 22:08:42 -050033PACKAGES =+ "${PN}-python"
Brad Bishop996bc452019-12-02 13:05:15 -050034
35FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}"
36
Brad Bishope42b3e32020-01-15 22:08:42 -050037FILES_${PN}-python = "${nonarch_libdir}/${PYTHON_DIR}"
38