git: fix building of git 1.5.2.3
authorHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 3 Aug 2007 20:44:20 +0000 (20:44 +0000)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 3 Aug 2007 20:44:20 +0000 (20:44 +0000)
* remove git.inc because 2 files are enough
* let git-native require git
* override RDEPENDS in git-native
* switch to autotools
* add files/autotools.patch so we can crosscompile
* adding expat and zlib to the DEPENDS

packages/git/files/.mtn2git_empty [new file with mode: 0644]
packages/git/files/autotools.patch [new file with mode: 0644]
packages/git/git-native_1.5.2.3.bb
packages/git/git.inc [deleted file]
packages/git/git_1.5.2.3.bb

diff --git a/packages/git/files/.mtn2git_empty b/packages/git/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/git/files/autotools.patch b/packages/git/files/autotools.patch
new file mode 100644 (file)
index 0000000..7625a0d
--- /dev/null
@@ -0,0 +1,14 @@
+Index: git-1.5.2.3/configure.ac
+===================================================================
+--- git-1.5.2.3.orig/configure.ac      2007-07-02 10:11:39.000000000 +0200
++++ git-1.5.2.3/configure.ac   2007-08-03 22:14:10.000000000 +0200
+@@ -235,7 +235,8 @@
+               else if (strcmp(buf, "12345"))
+                 exit(2);]])],
+       [ac_cv_c_c99_format=yes],
+-      [ac_cv_c_c99_format=no])
++      [ac_cv_c_c99_format=no],
++      [ac_cv_c_c99_format=yes])
+ ])
+ if test $ac_cv_c_c99_format = no; then
+       NO_C99_FORMAT=YesPlease
index f91fd03..7ddfee0 100644 (file)
@@ -1,3 +1,6 @@
-require git.inc
+
 inherit native
-DEPENDS = "openssl-native curl-native"
+require git_${PV}.bb
+
+DEPENDS = "openssl-native curl-native zlib-native expat-native"
+RDEPENDS = ""
diff --git a/packages/git/git.inc b/packages/git/git.inc
deleted file mode 100644 (file)
index 384dfaa..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-DESCRIPTION = "The git revision control system used by the Linux kernel developers"
-SECTION = "console/utils"
-LICENSE = "GPL"
-
-SRC_URI = "http://www.kernel.org/pub/software/scm/git/git-${PV}.tar.bz2"
-S = "${WORKDIR}/git-${PV}"
-
-do_install () {
-       oe_runmake install prefix=${D} bindir=${D}${bindir} \
-               template_dir=${D}${datadir}/git-core/templates \
-               GIT_PYTHON_DIR=${D}${datadir}/git-core/python
-}
-
-FILES_${PN} += "${datadir}/git-core"
-
index e6a1117..f70d840 100644 (file)
@@ -1,11 +1,26 @@
-require git.inc
-DEPENDS = "openssl curl"
+DESCRIPTION = "The git revision control system used by the Linux kernel developers"
+SECTION = "console/utils"
+LICENSE = "GPL"
+PR="r3"
+
+inherit autotools
+
+SRC_URI = "http://www.kernel.org/pub/software/scm/git/git-${PV}.tar.bz2 \
+          file://autotools.patch;patch=1 \
+         "
+
+S = "${WORKDIR}/git-${PV}"
+
+DEPENDS = "openssl curl zlib expat"
 RDEPENDS = "perl perl-module-file-path cpio findutils sed"
 
-PR="r2"
+EXTRA_OEMAKE = "NO_TCLTK=1 LDFLAGS=${LDFLAGS}"
 
 do_install() {
        oe_runmake install DESTDIR="${D}" bindir="${bindir}" \
                template_dir="${datadir}/git-core/templates" \
                GIT_PYTHON_DIR="${datadir}/git-core/python"
 }
+
+FILES_${PN} += "${datadir}/git-core"
+