diff options
Diffstat (limited to 'meta/recipes-devtools/git/git.inc')
-rw-r--r-- | meta/recipes-devtools/git/git.inc | 87 |
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 @@ | |||
1 | DESCRIPTION = "The git revision control system used by the Linux kernel developers" | ||
2 | SECTION = "console/utils" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "openssl curl zlib expat" | ||
5 | |||
6 | PROVIDES_append_class-native = " git-replacement-native" | ||
7 | |||
8 | SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.bz2 " | ||
9 | S = "${WORKDIR}/git-${PV}" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1" | ||
12 | |||
13 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | ||
14 | --without-tcltk \ | ||
15 | " | ||
16 | |||
17 | inherit autotools perlnative | ||
18 | |||
19 | EXTRA_OEMAKE = "NO_PYTHON=1" | ||
20 | |||
21 | do_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 | |||
27 | do_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 | |||
38 | do_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 | |||
44 | do_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 | |||
50 | FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/" | ||
51 | FILES_${PN}-dbg += "${libexecdir}/git-core/.debug" | ||
52 | |||
53 | # Git tools requiring perl | ||
54 | PACKAGES =+ "${PN}-perltools" | ||
55 | FILES_${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 | " | ||
68 | RDEPENDS_${PN}-perltools = "${PN} perl perl-module-file-path findutils" | ||
69 | |||
70 | PACKAGES =+ "${PN}-python" | ||
71 | FILES_${PN}-python = "${libdir}/python*" | ||
72 | |||
73 | |||
74 | # git-tk package with gitk and git-gui | ||
75 | PACKAGES =+ "${PN}-tk" | ||
76 | #RDEPENDS_${PN}-tk = "${PN} tk tcl" | ||
77 | #EXTRA_OEMAKE = "TCL_PATH=${STAGING_BINDIR_CROSS}/tclsh" | ||
78 | FILES_${PN}-tk = " \ | ||
79 | ${bindir}/gitk \ | ||
80 | ${datadir}/gitk \ | ||
81 | " | ||
82 | |||
83 | PACKAGES =+ "gitweb" | ||
84 | FILES_gitweb = "${datadir}/gitweb/" | ||
85 | |||
86 | |||
87 | BBCLASSEXTEND = "native nativesdk" | ||