summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git/git.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/git/git.inc')
-rw-r--r--meta/recipes-devtools/git/git.inc87
1 files changed, 87 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
new file mode 100644
index 0000000000..183a93cde6
--- /dev/null
+++ b/meta/recipes-devtools/git/git.inc
@@ -0,0 +1,87 @@
1DESCRIPTION = "The git revision control system used by the Linux kernel developers"
2SECTION = "console/utils"
3LICENSE = "GPLv2"
4DEPENDS = "openssl curl zlib expat"
5
6PROVIDES_append_class-native = " git-replacement-native"
7
8SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.bz2 "
9S = "${WORKDIR}/git-${PV}"
10
11LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1"
12
13EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \
14 --without-tcltk \
15"
16
17inherit autotools perlnative
18
19EXTRA_OEMAKE = "NO_PYTHON=1"
20
21do_compile_prepend () {
22 # Remove perl/perl.mak to fix the out-of-date perl.mak error
23 # during rebuild
24 rm -f perl/perl.mak
25}
26
27do_install () {
28 oe_runmake install DESTDIR="${D}" bindir=${bindir} \
29 template_dir=${datadir}/git-core/templates \
30 GIT_PYTHON_DIR=${D}${datadir}/git-core/python
31
32 # ${libdir} is not applicable here, perl-native files are always
33 # installed to /usr/lib on both 32/64 bits targets.
34 rm -rf ${D}${exec_prefix}/lib/perl-native
35 rmdir ${D}${exec_prefix}/lib || true
36}
37
38do_install_append_class-native() {
39 create_wrapper ${D}/${bindir}/git \
40 GIT_EXEC_PATH=${libexecdir}/git-core \
41 GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates
42}
43
44do_install_append_class-nativesdk() {
45 create_wrapper ${D}/${bindir}/git \
46 GIT_EXEC_PATH=${libexecdir}/git-core \
47 GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates
48}
49
50FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/"
51FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"
52
53# Git tools requiring perl
54PACKAGES =+ "${PN}-perltools"
55FILES_${PN}-perltools += " \
56 ${libexecdir}/git-core/git-add--interactive \
57 ${libexecdir}/git-core/git-archimport \
58 ${libexecdir}/git-core/git-cvsexportcommit \
59 ${libexecdir}/git-core/git-cvsimport \
60 ${libexecdir}/git-core/git-cvsserver \
61 ${bindir}/git-cvsserver \
62 ${libexecdir}/git-core/git-difftool \
63 ${libexecdir}/git-core/git-relink \
64 ${libexecdir}/git-core/git-send-email \
65 ${libexecdir}/git-core/git-svn \
66 ${datadir}/perl \
67"
68RDEPENDS_${PN}-perltools = "${PN} perl perl-module-file-path findutils"
69
70PACKAGES =+ "${PN}-python"
71FILES_${PN}-python = "${libdir}/python*"
72
73
74# git-tk package with gitk and git-gui
75PACKAGES =+ "${PN}-tk"
76#RDEPENDS_${PN}-tk = "${PN} tk tcl"
77#EXTRA_OEMAKE = "TCL_PATH=${STAGING_BINDIR_CROSS}/tclsh"
78FILES_${PN}-tk = " \
79 ${bindir}/gitk \
80 ${datadir}/gitk \
81"
82
83PACKAGES =+ "gitweb"
84FILES_gitweb = "${datadir}/gitweb/"
85
86
87BBCLASSEXTEND = "native nativesdk"