Patchwork Adding mercurial v1.8.2

login
register
mail settings
Submitter Kartik Mohta
Date April 7, 2011, 1:14 a.m.
Message ID <1302138846-5819-1-git-send-email-kartikmohta@gmail.com>
Download mbox | patch
Permalink /patch/2031/
State New, archived
Headers show

Comments

Kartik Mohta - April 7, 2011, 1:14 a.m.
Haven't updated the native version since it requires python-docutils for
which we don't have a native recipe.

Signed-off-by: Kartik Mohta <kartikmohta@gmail.com>
---
 .../mercurial/mercurial-1.8.2/python_inc_dir.patch |   11 +++++++++++
 recipes/mercurial/mercurial_1.8.2.bb               |   20 ++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 recipes/mercurial/mercurial-1.8.2/python_inc_dir.patch
 create mode 100644 recipes/mercurial/mercurial_1.8.2.bb

Patch

diff --git a/recipes/mercurial/mercurial-1.8.2/python_inc_dir.patch b/recipes/mercurial/mercurial-1.8.2/python_inc_dir.patch
new file mode 100644
index 0000000..7b651be
--- /dev/null
+++ b/recipes/mercurial/mercurial-1.8.2/python_inc_dir.patch
@@ -0,0 +1,11 @@ 
+--- mercurial-1.8.2/setup.py~	2011-04-06 20:29:35.576828632 -0400
++++ mercurial-1.8.2/setup.py	2011-04-06 20:29:07.869694480 -0400
+@@ -254,7 +254,7 @@
+                     self.py_modules.append("mercurial.pure.%s" % ext.name[10:])
+             self.distribution.ext_modules = []
+         else:
+-            if not os.path.exists(os.path.join(get_python_inc(), 'Python.h')):
++            if not os.path.exists(os.path.join(get_python_inc(plat_specific = True), 'Python.h')):
+                 raise SystemExit("Python headers are required to build Mercurial")
+ 
+     def find_modules(self):
diff --git a/recipes/mercurial/mercurial_1.8.2.bb b/recipes/mercurial/mercurial_1.8.2.bb
new file mode 100644
index 0000000..26c10aa
--- /dev/null
+++ b/recipes/mercurial/mercurial_1.8.2.bb
@@ -0,0 +1,20 @@ 
+DESCRIPTION = "The Mercurial distributed SCM"
+HOMEPAGE = "http://mercurial.selenic.com/"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+DEPENDS = "python python-docutils"
+PR = "r0"
+
+SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz;name=src \
+           file://python_inc_dir.patch \
+          "
+SRC_URI[src.md5sum] = "a1634b9b709ecc70662f3257abece2c7"
+SRC_URI[src.sha256sum] = "d326be6a5d8d9d39bfab1cadd4d8fd64937ba7c217dfbcba1f83e5026c57b041"
+
+S = "${WORKDIR}/mercurial-${PV}"
+
+inherit distutils
+
+FILES_${PN}-dbg="${libdir}/python2.6/site-packages/mercurial/.debug \
+                 ${libdir}/python2.6/site-packages/hgext/inotify/linux/.debug \
+                "