diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/git/git.inc | 141 | ||||
-rw-r--r-- | meta/recipes-devtools/git/git_2.34.1.bb | 142 |
2 files changed, 141 insertions, 142 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc deleted file mode 100644 index 1d74270fdd..0000000000 --- a/meta/recipes-devtools/git/git.inc +++ /dev/null | |||
@@ -1,141 +0,0 @@ | |||
1 | SUMMARY = "Distributed version control system" | ||
2 | HOMEPAGE = "http://git-scm.com" | ||
3 | DESCRIPTION = "Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency." | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv2" | ||
6 | DEPENDS = "openssl curl zlib expat" | ||
7 | |||
8 | PROVIDES:append:class-native = " git-replacement-native" | ||
9 | |||
10 | SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ | ||
11 | ${KERNELORG_MIRROR}/software/scm/git/git-manpages-${PV}.tar.gz;name=manpages \ | ||
12 | file://fixsort.patch \ | ||
13 | " | ||
14 | |||
15 | S = "${WORKDIR}/git-${PV}" | ||
16 | |||
17 | LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1" | ||
18 | |||
19 | CVE_PRODUCT = "git-scm:git" | ||
20 | |||
21 | PACKAGECONFIG ??= "" | ||
22 | PACKAGECONFIG[cvsserver] = "" | ||
23 | PACKAGECONFIG[svn] = "" | ||
24 | |||
25 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | ||
26 | --without-tcltk \ | ||
27 | --without-iconv \ | ||
28 | " | ||
29 | EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " | ||
30 | |||
31 | # Needs brokensep as this doesn't use automake | ||
32 | inherit autotools-brokensep perlnative bash-completion | ||
33 | |||
34 | EXTRA_OEMAKE = "NO_PYTHON=1 CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'" | ||
35 | EXTRA_OEMAKE += "'PERL_PATH=/usr/bin/env perl'" | ||
36 | EXTRA_OEMAKE += "COMPUTE_HEADER_DEPENDENCIES=no" | ||
37 | EXTRA_OEMAKE:append:class-native = " NO_CROSS_DIRECTORY_HARDLINKS=1" | ||
38 | |||
39 | do_compile:prepend () { | ||
40 | # Remove perl/perl.mak to fix the out-of-date perl.mak error | ||
41 | # during rebuild | ||
42 | rm -f perl/perl.mak | ||
43 | } | ||
44 | |||
45 | do_install () { | ||
46 | oe_runmake install DESTDIR="${D}" bindir=${bindir} \ | ||
47 | template_dir=${datadir}/git-core/templates | ||
48 | |||
49 | for section in man1 man5 man7; do | ||
50 | install -d ${D}/${mandir}/$section | ||
51 | install -t ${D}/${mandir}/$section ${WORKDIR}/$section/* | ||
52 | done | ||
53 | |||
54 | install -d ${D}/${datadir}/bash-completion/completions/ | ||
55 | install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git | ||
56 | } | ||
57 | |||
58 | perl_native_fixup () { | ||
59 | sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \ | ||
60 | -e 's#${libdir}/perl-native/#${libdir}/#' \ | ||
61 | ${@d.getVar("PERLTOOLS").replace(' /',d.getVar('D') + '/')} | ||
62 | |||
63 | if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'cvsserver', d)}" ]; then | ||
64 | # Only install the git cvsserver command if explicitly requested | ||
65 | # as it requires the DBI Perl module, which does not exist in | ||
66 | # OE-Core. | ||
67 | rm ${D}${libexecdir}/git-core/git-cvsserver \ | ||
68 | ${D}${bindir}/git-cvsserver | ||
69 | fi | ||
70 | |||
71 | if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'svn', d)}" ]; then | ||
72 | # Only install the git svn command and all Git::SVN Perl modules | ||
73 | # if explicitly requested as they require the SVN::Core Perl | ||
74 | # module, which does not exist in OE-Core. | ||
75 | rm -r ${D}${libexecdir}/git-core/git-svn \ | ||
76 | ${D}${datadir}/perl5/Git/SVN* | ||
77 | fi | ||
78 | } | ||
79 | |||
80 | REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" | ||
81 | REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" | ||
82 | |||
83 | do_install:append:class-target () { | ||
84 | perl_native_fixup | ||
85 | } | ||
86 | |||
87 | do_install:append:class-native() { | ||
88 | create_wrapper ${D}${bindir}/git \ | ||
89 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | ||
90 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | ||
91 | } | ||
92 | |||
93 | do_install:append:class-nativesdk() { | ||
94 | create_wrapper ${D}${bindir}/git \ | ||
95 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | ||
96 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | ||
97 | perl_native_fixup | ||
98 | } | ||
99 | |||
100 | FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/" | ||
101 | |||
102 | PERLTOOLS = " \ | ||
103 | ${bindir}/git-cvsserver \ | ||
104 | ${libexecdir}/git-core/git-add--interactive \ | ||
105 | ${libexecdir}/git-core/git-archimport \ | ||
106 | ${libexecdir}/git-core/git-cvsexportcommit \ | ||
107 | ${libexecdir}/git-core/git-cvsimport \ | ||
108 | ${libexecdir}/git-core/git-cvsserver \ | ||
109 | ${libexecdir}/git-core/git-send-email \ | ||
110 | ${libexecdir}/git-core/git-svn \ | ||
111 | ${libexecdir}/git-core/git-instaweb \ | ||
112 | ${datadir}/gitweb/gitweb.cgi \ | ||
113 | ${datadir}/git-core/templates/hooks/prepare-commit-msg.sample \ | ||
114 | ${datadir}/git-core/templates/hooks/pre-rebase.sample \ | ||
115 | ${datadir}/git-core/templates/hooks/fsmonitor-watchman.sample \ | ||
116 | " | ||
117 | |||
118 | # Git tools requiring perl | ||
119 | PACKAGES =+ "${PN}-perltools" | ||
120 | FILES:${PN}-perltools += " \ | ||
121 | ${PERLTOOLS} \ | ||
122 | ${libdir}/perl \ | ||
123 | ${datadir}/perl5 \ | ||
124 | " | ||
125 | |||
126 | RDEPENDS:${PN}-perltools = "${PN} perl perl-module-file-path findutils" | ||
127 | |||
128 | # git-tk package with gitk and git-gui | ||
129 | PACKAGES =+ "${PN}-tk" | ||
130 | #RDEPENDS_${PN}-tk = "${PN} tk tcl" | ||
131 | #EXTRA_OEMAKE = "TCL_PATH=${STAGING_BINDIR_CROSS}/tclsh" | ||
132 | FILES:${PN}-tk = " \ | ||
133 | ${bindir}/gitk \ | ||
134 | ${datadir}/gitk \ | ||
135 | " | ||
136 | |||
137 | PACKAGES =+ "gitweb" | ||
138 | FILES:gitweb = "${datadir}/gitweb/" | ||
139 | RDEPENDS:gitweb = "perl" | ||
140 | |||
141 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta/recipes-devtools/git/git_2.34.1.bb b/meta/recipes-devtools/git/git_2.34.1.bb index 24081764a2..a762ebac99 100644 --- a/meta/recipes-devtools/git/git_2.34.1.bb +++ b/meta/recipes-devtools/git/git_2.34.1.bb | |||
@@ -1,4 +1,144 @@ | |||
1 | require git.inc | 1 | SUMMARY = "Distributed version control system" |
2 | HOMEPAGE = "http://git-scm.com" | ||
3 | DESCRIPTION = "Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency." | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv2" | ||
6 | DEPENDS = "openssl curl zlib expat" | ||
7 | |||
8 | PROVIDES:append:class-native = " git-replacement-native" | ||
9 | |||
10 | SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ | ||
11 | ${KERNELORG_MIRROR}/software/scm/git/git-manpages-${PV}.tar.gz;name=manpages \ | ||
12 | file://fixsort.patch \ | ||
13 | " | ||
14 | |||
15 | S = "${WORKDIR}/git-${PV}" | ||
16 | |||
17 | LIC_FILES_CHKSUM = "file://COPYING;md5=7c0d7ef03a7eb04ce795b0f60e68e7e1" | ||
18 | |||
19 | CVE_PRODUCT = "git-scm:git" | ||
20 | |||
21 | PACKAGECONFIG ??= "" | ||
22 | PACKAGECONFIG[cvsserver] = "" | ||
23 | PACKAGECONFIG[svn] = "" | ||
24 | |||
25 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | ||
26 | --without-tcltk \ | ||
27 | --without-iconv \ | ||
28 | " | ||
29 | EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " | ||
30 | |||
31 | # Needs brokensep as this doesn't use automake | ||
32 | inherit autotools-brokensep perlnative bash-completion | ||
33 | |||
34 | EXTRA_OEMAKE = "NO_PYTHON=1 CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'" | ||
35 | EXTRA_OEMAKE += "'PERL_PATH=/usr/bin/env perl'" | ||
36 | EXTRA_OEMAKE += "COMPUTE_HEADER_DEPENDENCIES=no" | ||
37 | EXTRA_OEMAKE:append:class-native = " NO_CROSS_DIRECTORY_HARDLINKS=1" | ||
38 | |||
39 | do_compile:prepend () { | ||
40 | # Remove perl/perl.mak to fix the out-of-date perl.mak error | ||
41 | # during rebuild | ||
42 | rm -f perl/perl.mak | ||
43 | } | ||
44 | |||
45 | do_install () { | ||
46 | oe_runmake install DESTDIR="${D}" bindir=${bindir} \ | ||
47 | template_dir=${datadir}/git-core/templates | ||
48 | |||
49 | for section in man1 man5 man7; do | ||
50 | install -d ${D}/${mandir}/$section | ||
51 | install -t ${D}/${mandir}/$section ${WORKDIR}/$section/* | ||
52 | done | ||
53 | |||
54 | install -d ${D}/${datadir}/bash-completion/completions/ | ||
55 | install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git | ||
56 | } | ||
57 | |||
58 | perl_native_fixup () { | ||
59 | sed -i -e 's#${STAGING_BINDIR_NATIVE}/perl-native/#${bindir}/#' \ | ||
60 | -e 's#${libdir}/perl-native/#${libdir}/#' \ | ||
61 | ${@d.getVar("PERLTOOLS").replace(' /',d.getVar('D') + '/')} | ||
62 | |||
63 | if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'cvsserver', d)}" ]; then | ||
64 | # Only install the git cvsserver command if explicitly requested | ||
65 | # as it requires the DBI Perl module, which does not exist in | ||
66 | # OE-Core. | ||
67 | rm ${D}${libexecdir}/git-core/git-cvsserver \ | ||
68 | ${D}${bindir}/git-cvsserver | ||
69 | fi | ||
70 | |||
71 | if [ ! "${@bb.utils.filter('PACKAGECONFIG', 'svn', d)}" ]; then | ||
72 | # Only install the git svn command and all Git::SVN Perl modules | ||
73 | # if explicitly requested as they require the SVN::Core Perl | ||
74 | # module, which does not exist in OE-Core. | ||
75 | rm -r ${D}${libexecdir}/git-core/git-svn \ | ||
76 | ${D}${datadir}/perl5/Git/SVN* | ||
77 | fi | ||
78 | } | ||
79 | |||
80 | REL_GIT_EXEC_PATH = "${@os.path.relpath(libexecdir, bindir)}/git-core" | ||
81 | REL_GIT_TEMPLATE_DIR = "${@os.path.relpath(datadir, bindir)}/git-core/templates" | ||
82 | |||
83 | do_install:append:class-target () { | ||
84 | perl_native_fixup | ||
85 | } | ||
86 | |||
87 | do_install:append:class-native() { | ||
88 | create_wrapper ${D}${bindir}/git \ | ||
89 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | ||
90 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | ||
91 | } | ||
92 | |||
93 | do_install:append:class-nativesdk() { | ||
94 | create_wrapper ${D}${bindir}/git \ | ||
95 | GIT_EXEC_PATH='`dirname $''realpath`'/${REL_GIT_EXEC_PATH} \ | ||
96 | GIT_TEMPLATE_DIR='`dirname $''realpath`'/${REL_GIT_TEMPLATE_DIR} | ||
97 | perl_native_fixup | ||
98 | } | ||
99 | |||
100 | FILES:${PN} += "${datadir}/git-core ${libexecdir}/git-core/" | ||
101 | |||
102 | PERLTOOLS = " \ | ||
103 | ${bindir}/git-cvsserver \ | ||
104 | ${libexecdir}/git-core/git-add--interactive \ | ||
105 | ${libexecdir}/git-core/git-archimport \ | ||
106 | ${libexecdir}/git-core/git-cvsexportcommit \ | ||
107 | ${libexecdir}/git-core/git-cvsimport \ | ||
108 | ${libexecdir}/git-core/git-cvsserver \ | ||
109 | ${libexecdir}/git-core/git-send-email \ | ||
110 | ${libexecdir}/git-core/git-svn \ | ||
111 | ${libexecdir}/git-core/git-instaweb \ | ||
112 | ${datadir}/gitweb/gitweb.cgi \ | ||
113 | ${datadir}/git-core/templates/hooks/prepare-commit-msg.sample \ | ||
114 | ${datadir}/git-core/templates/hooks/pre-rebase.sample \ | ||
115 | ${datadir}/git-core/templates/hooks/fsmonitor-watchman.sample \ | ||
116 | " | ||
117 | |||
118 | # Git tools requiring perl | ||
119 | PACKAGES =+ "${PN}-perltools" | ||
120 | FILES:${PN}-perltools += " \ | ||
121 | ${PERLTOOLS} \ | ||
122 | ${libdir}/perl \ | ||
123 | ${datadir}/perl5 \ | ||
124 | " | ||
125 | |||
126 | RDEPENDS:${PN}-perltools = "${PN} perl perl-module-file-path findutils" | ||
127 | |||
128 | # git-tk package with gitk and git-gui | ||
129 | PACKAGES =+ "${PN}-tk" | ||
130 | #RDEPENDS_${PN}-tk = "${PN} tk tcl" | ||
131 | #EXTRA_OEMAKE = "TCL_PATH=${STAGING_BINDIR_CROSS}/tclsh" | ||
132 | FILES:${PN}-tk = " \ | ||
133 | ${bindir}/gitk \ | ||
134 | ${datadir}/gitk \ | ||
135 | " | ||
136 | |||
137 | PACKAGES =+ "gitweb" | ||
138 | FILES:gitweb = "${datadir}/gitweb/" | ||
139 | RDEPENDS:gitweb = "perl" | ||
140 | |||
141 | BBCLASSEXTEND = "native nativesdk" | ||
2 | 142 | ||
3 | EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ | 143 | EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ |
4 | ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ | 144 | ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ |