aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2016-05-18 14:11:14 -0600
committerDan McGregor <dan.mcgregor@usask.ca>2017-05-09 13:02:30 -0600
commit81e815349c75129da34b60e5aae8b8f8f1fba778 (patch)
treea3242d8571d4aa50b4588e4bcce2e9f9f112dda0
parentfc5e3318b67d90813cf3f8c484ceed6d439482a2 (diff)
downloadmeta-openembedded-contrib-81e815349c75129da34b60e5aae8b8f8f1fba778.tar.gz
meta-openembedded-contrib-81e815349c75129da34b60e5aae8b8f8f1fba778.tar.bz2
meta-openembedded-contrib-81e815349c75129da34b60e5aae8b8f8f1fba778.zip
mercurial: make target recipe
Make the recipe build for the target so it can be installed as part of an sdk. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
-rw-r--r--meta-oe/recipes-devtools/mercurial/mercurial-native_4.0.1.bb26
-rw-r--r--meta-oe/recipes-devtools/mercurial/mercurial_4.0.1.bb63
2 files changed, 63 insertions, 26 deletions
diff --git a/meta-oe/recipes-devtools/mercurial/mercurial-native_4.0.1.bb b/meta-oe/recipes-devtools/mercurial/mercurial-native_4.0.1.bb
deleted file mode 100644
index 028bb4232d..0000000000
--- a/meta-oe/recipes-devtools/mercurial/mercurial-native_4.0.1.bb
+++ /dev/null
@@ -1,26 +0,0 @@
-SUMMARY = "The Mercurial distributed SCM"
-HOMEPAGE = "http://mercurial.selenic.com/"
-SECTION = "console/utils"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-DEPENDS = "python-native"
-
-SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz"
-SRC_URI[md5sum] = "22a9b1d7c0c06a53f0ae5b386d536d08"
-SRC_URI[sha256sum] = "6aa4ade93c1b5e11937820880a466ebf1c824086d443cd799fc46e2617250d40"
-
-S = "${WORKDIR}/mercurial-${PV}"
-
-inherit native
-
-EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
- PREFIX=${prefix}"
-
-do_configure_append () {
- sed -i -e 's:PYTHON=python:PYTHON=${STAGING_BINDIR_NATIVE}/python-native/python:g' ${S}/Makefile
-}
-
-do_install () {
- oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix}
-}
-
diff --git a/meta-oe/recipes-devtools/mercurial/mercurial_4.0.1.bb b/meta-oe/recipes-devtools/mercurial/mercurial_4.0.1.bb
new file mode 100644
index 0000000000..5decd84502
--- /dev/null
+++ b/meta-oe/recipes-devtools/mercurial/mercurial_4.0.1.bb
@@ -0,0 +1,63 @@
+SUMMARY = "The Mercurial distributed SCM"
+HOMEPAGE = "http://mercurial.selenic.com/"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz"
+SRC_URI[md5sum] = "22a9b1d7c0c06a53f0ae5b386d536d08"
+SRC_URI[sha256sum] = "6aa4ade93c1b5e11937820880a466ebf1c824086d443cd799fc46e2617250d40"
+
+S = "${WORKDIR}/mercurial-${PV}"
+
+inherit distutils
+
+DEPENDS += "python-docutils-native"
+
+RDEPENDS_${PN} += " \
+ python-codecs \
+ python-contextlib \
+ python-crypt \
+ python-debugger \
+ python-io \
+ python-lang \
+ python-mime \
+ python-netclient \
+ python-re \
+ python-readline \
+ python-shell \
+ python-stringold \
+ python-textutils \
+ python-threading \
+ python-unixadmin \
+ python-xml \
+"
+
+RDEPENDS_${PN}_class-native = ""
+
+do_compile_append_class-target() {
+ oe_runmake -C doc PREFIX=${prefix}
+}
+
+do_install_append() {
+ oe_runmake -C doc install DESTDIR=${D} PREFIX=${prefix}
+
+ install -m 755 ${S}/contrib/hg-ssh ${D}${bindir}
+ install -m 755 ${S}/hgeditor ${D}${bindir}
+
+ mkdir -p ${D}${docdir}/${BPN}
+ install -m 644 ${S}/CONTRIBUTORS ${D}${docdir}/${BPN}
+ install -m 644 ${S}/COPYING ${D}${docdir}/${BPN}
+ install -m 644 ${S}/doc/*1.txt ${D}${docdir}/${BPN}
+ install -m 644 ${S}/doc/*5.txt ${D}${docdir}/${BPN}
+ install -m 644 ${S}/doc/*.html ${D}${docdir}/${BPN}
+ install -m 644 ${S}/doc/style.css ${D}${docdir}/${BPN}
+ install -m 644 ${S}/contrib/logo-droplets.svg ${D}${docdir}/${BPN}
+
+ mkdir -p ${D}${docdir}/${BPN}/examples
+ install -m 755 ${S}/hgweb.cgi ${D}${docdir}/${BPN}/examples
+ install -m 755 ${S}/contrib/hgweb.fcgi ${D}${docdir}/${BPN}/examples
+ install -m 644 ${S}/contrib/hgweb.wsgi ${D}${docdir}/${BPN}/examples
+}
+
+BBCLASSEXTEND = "native nativesdk"