diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-02-02 19:27:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-03 09:05:14 +0000 |
commit | c82d436201fadd74633e6b88f0a0ea540502b47d (patch) | |
tree | 648e23a40f2ab74f65686f884df71e66d8efd134 | |
parent | 177437eea2a5015ddc1ef659bb6cb7e71ba60299 (diff) | |
download | poky-c82d436201fadd74633e6b88f0a0ea540502b47d.tar.gz |
git: build manpages from source subject to manpages PACKAGECONFIG
This allows automated updates, and better aligns with how
documentation is handled in oe-core.
(From OE-Core rev: 22b267724148144d919b7281cf2250fc2e35a092)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/git/git_2.34.1.bb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/meta/recipes-devtools/git/git_2.34.1.bb b/meta/recipes-devtools/git/git_2.34.1.bb index a762ebac99..71ff6d444c 100644 --- a/meta/recipes-devtools/git/git_2.34.1.bb +++ b/meta/recipes-devtools/git/git_2.34.1.bb | |||
@@ -8,7 +8,6 @@ DEPENDS = "openssl curl zlib expat" | |||
8 | PROVIDES:append:class-native = " git-replacement-native" | 8 | PROVIDES:append:class-native = " git-replacement-native" |
9 | 9 | ||
10 | SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ | 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 \ | 11 | file://fixsort.patch \ |
13 | " | 12 | " |
14 | 13 | ||
@@ -21,6 +20,7 @@ CVE_PRODUCT = "git-scm:git" | |||
21 | PACKAGECONFIG ??= "" | 20 | PACKAGECONFIG ??= "" |
22 | PACKAGECONFIG[cvsserver] = "" | 21 | PACKAGECONFIG[cvsserver] = "" |
23 | PACKAGECONFIG[svn] = "" | 22 | PACKAGECONFIG[svn] = "" |
23 | PACKAGECONFIG[manpages] = ",,asciidoc-native xmlto-native" | ||
24 | 24 | ||
25 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | 25 | EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ |
26 | --without-tcltk \ | 26 | --without-tcltk \ |
@@ -29,7 +29,7 @@ EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \ | |||
29 | EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " | 29 | EXTRA_OECONF:append:class-nativesdk = " --with-gitconfig=/etc/gitconfig " |
30 | 30 | ||
31 | # Needs brokensep as this doesn't use automake | 31 | # Needs brokensep as this doesn't use automake |
32 | inherit autotools-brokensep perlnative bash-completion | 32 | inherit autotools-brokensep perlnative bash-completion manpages |
33 | 33 | ||
34 | EXTRA_OEMAKE = "NO_PYTHON=1 CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'" | 34 | EXTRA_OEMAKE = "NO_PYTHON=1 CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'" |
35 | EXTRA_OEMAKE += "'PERL_PATH=/usr/bin/env perl'" | 35 | EXTRA_OEMAKE += "'PERL_PATH=/usr/bin/env perl'" |
@@ -40,19 +40,22 @@ do_compile:prepend () { | |||
40 | # Remove perl/perl.mak to fix the out-of-date perl.mak error | 40 | # Remove perl/perl.mak to fix the out-of-date perl.mak error |
41 | # during rebuild | 41 | # during rebuild |
42 | rm -f perl/perl.mak | 42 | rm -f perl/perl.mak |
43 | |||
44 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'manpages', d)}" ]; then | ||
45 | oe_runmake man | ||
46 | fi | ||
43 | } | 47 | } |
44 | 48 | ||
45 | do_install () { | 49 | do_install () { |
46 | oe_runmake install DESTDIR="${D}" bindir=${bindir} \ | 50 | oe_runmake install DESTDIR="${D}" bindir=${bindir} \ |
47 | template_dir=${datadir}/git-core/templates | 51 | template_dir=${datadir}/git-core/templates |
48 | 52 | ||
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/ | 53 | install -d ${D}/${datadir}/bash-completion/completions/ |
55 | install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git | 54 | install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git |
55 | |||
56 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'manpages', d)}" ]; then | ||
57 | oe_runmake install-man DESTDIR="${D}" | ||
58 | fi | ||
56 | } | 59 | } |
57 | 60 | ||
58 | perl_native_fixup () { | 61 | perl_native_fixup () { |
@@ -146,4 +149,3 @@ EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ | |||
146 | EXTRA_OEMAKE += "NO_GETTEXT=1" | 149 | EXTRA_OEMAKE += "NO_GETTEXT=1" |
147 | 150 | ||
148 | SRC_URI[tarball.sha256sum] = "fc4eb5ecb9299db91cdd156c06cdeb41833f53adc5631ddf8c0cb13eaa2911c1" | 151 | SRC_URI[tarball.sha256sum] = "fc4eb5ecb9299db91cdd156c06cdeb41833f53adc5631ddf8c0cb13eaa2911c1" |
149 | SRC_URI[manpages.sha256sum] = "220f1ed68582caeddf79c4db15e4eaa4808ec01fd11889e19232f0a74d7f31b0" | ||