diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/git | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/git')
-rw-r--r-- | meta/recipes-devtools/git/git.inc | 99 | ||||
-rw-r--r-- | meta/recipes-devtools/git/git_1.9.0.bb | 11 |
2 files changed, 110 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..f5013f1410 --- /dev/null +++ b/meta/recipes-devtools/git/git.inc | |||
@@ -0,0 +1,99 @@ | |||
1 | SUMMARY = "Distributed version control system" | ||
2 | SECTION = "console/utils" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "openssl curl zlib expat" | ||
5 | |||
6 | PROVIDES_append_class-native = " git-replacement-native" | ||
7 | |||
8 | S = "${WORKDIR}/git-${PV}" | ||
9 | |||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1" | ||
11 | |||
12 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | ||
13 | --without-tcltk \ | ||
14 | " | ||
15 | |||
16 | inherit autotools-brokensep perlnative | ||
17 | |||
18 | EXTRA_OEMAKE = "NO_PYTHON=1 RUNTIME_PREFIX=1" | ||
19 | |||
20 | do_compile_prepend () { | ||
21 | # Remove perl/perl.mak to fix the out-of-date perl.mak error | ||
22 | # during rebuild | ||
23 | rm -f perl/perl.mak | ||
24 | } | ||
25 | |||
26 | do_install () { | ||
27 | oe_runmake install DESTDIR="${D}" bindir=${bindir} \ | ||
28 | template_dir=${datadir}/git-core/templates \ | ||
29 | GIT_PYTHON_DIR=${D}${datadir}/git-core/python | ||
30 | |||
31 | # ${libdir} is not applicable here, perl-native files are always | ||
32 | # installed to /usr/lib on both 32/64 bits targets. | ||
33 | rm -rf ${D}${exec_prefix}/lib/perl-native | ||
34 | rmdir ${D}${exec_prefix}/lib || true | ||
35 | } | ||
36 | |||
37 | PERLSEDFIXUP = " \ | ||
38 | sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \ | ||
39 | -e 's#${libdir}/perl-native/#${libdir}/#' \ | ||
40 | ${@d.getVar("PERLTOOLS", True).replace(' /',d.getVar('D', True) + '/')} \ | ||
41 | " | ||
42 | |||
43 | do_install_append_class-target () { | ||
44 | ${PERLSEDFIXUP} | ||
45 | } | ||
46 | |||
47 | do_install_append_class-nativesdk () { | ||
48 | ${PERLSEDFIXUP} | ||
49 | } | ||
50 | |||
51 | FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/" | ||
52 | FILES_${PN}-dbg += "${libexecdir}/git-core/.debug" | ||
53 | |||
54 | PERLTOOLS = " \ | ||
55 | ${libexecdir}/git-core/git-add--interactive \ | ||
56 | ${libexecdir}/git-core/git-archimport \ | ||
57 | ${libexecdir}/git-core/git-cvsexportcommit \ | ||
58 | ${libexecdir}/git-core/git-cvsimport \ | ||
59 | ${libexecdir}/git-core/git-cvsserver \ | ||
60 | ${bindir}/git-cvsserver \ | ||
61 | ${libexecdir}/git-core/git-difftool \ | ||
62 | ${libexecdir}/git-core/git-relink \ | ||
63 | ${libexecdir}/git-core/git-send-email \ | ||
64 | ${libexecdir}/git-core/git-svn \ | ||
65 | ${libexecdir}/git-core/git-instaweb \ | ||
66 | ${libexecdir}/git-core/git-submodule \ | ||
67 | ${libexecdir}/git-core/git-am \ | ||
68 | ${libexecdir}/git-core/git-request-pull \ | ||
69 | ${datadir}/gitweb/gitweb.cgi \ | ||
70 | ${datadir}/git-core/templates/hooks/prepare-commit-msg.sample \ | ||
71 | ${datadir}/git-core/templates/hooks/pre-rebase.sample \ | ||
72 | " | ||
73 | |||
74 | # Git tools requiring perl | ||
75 | PACKAGES =+ "${PN}-perltools" | ||
76 | FILES_${PN}-perltools += " \ | ||
77 | ${PERLTOOLS} \ | ||
78 | ${datadir}/perl \ | ||
79 | " | ||
80 | RDEPENDS_${PN}-perltools = "${PN} perl perl-module-file-path findutils" | ||
81 | |||
82 | PACKAGES =+ "${PN}-python" | ||
83 | FILES_${PN}-python = "${libdir}/python*" | ||
84 | |||
85 | |||
86 | # git-tk package with gitk and git-gui | ||
87 | PACKAGES =+ "${PN}-tk" | ||
88 | #RDEPENDS_${PN}-tk = "${PN} tk tcl" | ||
89 | #EXTRA_OEMAKE = "TCL_PATH=${STAGING_BINDIR_CROSS}/tclsh" | ||
90 | FILES_${PN}-tk = " \ | ||
91 | ${bindir}/gitk \ | ||
92 | ${datadir}/gitk \ | ||
93 | " | ||
94 | |||
95 | PACKAGES =+ "gitweb" | ||
96 | FILES_gitweb = "${datadir}/gitweb/" | ||
97 | |||
98 | |||
99 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-devtools/git/git_1.9.0.bb b/meta/recipes-devtools/git/git_1.9.0.bb new file mode 100644 index 0000000000..4eb6c99a30 --- /dev/null +++ b/meta/recipes-devtools/git/git_1.9.0.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require git.inc | ||
2 | |||
3 | SRC_URI = "http://git-core.googlecode.com/files/git-${PV}.tar.gz" | ||
4 | |||
5 | SRC_URI[md5sum] = "e16c14b27c644b8e0dd72bdb5ff77450" | ||
6 | SRC_URI[sha256sum] = "de3097fdc36d624ea6cf4bb853402fde781acdb860f12152c5eb879777389882" | ||
7 | |||
8 | EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no ac_cv_c_c99_format=yes \ | ||
9 | ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ | ||
10 | " | ||
11 | EXTRA_OEMAKE += "NO_GETTEXT=1" | ||