diff options
author | Ross Burton <ross.burton@intel.com> | 2019-03-27 14:20:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-29 08:28:53 +0000 |
commit | a4208d9e2a30e7663ae66fde2c068085810918b9 (patch) | |
tree | 6ef8abf96d4cada49cb4a086f74b6e64a5f09370 /meta | |
parent | 3d05a87df7361f4b315a9f05de3a86e318585b93 (diff) | |
download | poky-a4208d9e2a30e7663ae66fde2c068085810918b9.tar.gz |
asciidoc: use Python 3 port
There's a sort-of-official port of asciidoc to Python 3. Whilst the official
replacement is asciidoctor which is rewritten in Ruby, this is a fairly trivial
swap and removes Python 2 from core-image-sato builds entirely.
Moving forward we should evaluate asciidoctor, but that can wait.
Change the RDEPENDS so that python3 is only a dependency for target and
nativesdk builds, for native this can use the host python3.
Remove redundant DESTDIR export that isn't needed.
(From OE-Core rev: 266a13139ea45e28deb167f077917f04c3bdb7e6)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb index 38164d5573..d0d15171ac 100644 --- a/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb +++ b/meta/recipes-extended/asciidoc/asciidoc_8.6.9.bb | |||
@@ -8,17 +8,20 @@ LICENSE = "GPLv2" | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ |
9 | file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069" | 9 | file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069" |
10 | 10 | ||
11 | SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz" | 11 | SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https" |
12 | SRC_URI[md5sum] = "c59018f105be8d022714b826b0be130a" | 12 | SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0" |
13 | SRC_URI[sha256sum] = "78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0" | 13 | PV .= "+py3-git${SRCPV}" |
14 | 14 | ||
15 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/asciidoc/files/" | 15 | DEPENDS = "libxml2-native libxslt-native docbook-xml-dtd4-native" |
16 | 16 | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | # Not using automake | ||
17 | inherit autotools-brokensep | 20 | inherit autotools-brokensep |
21 | CLEANBROKEN = "1" | ||
18 | 22 | ||
19 | export DESTDIR = "${D}" | 23 | # target and nativesdk needs python3, but for native we can use the host. |
20 | DEPENDS_class-native = "docbook-xml-dtd4-native" | 24 | RDEPENDS_${PN} += "python3" |
21 | RDEPENDS_${PN} += "python" | 25 | RDEPENDS_remove_class-native = "python3" |
22 | BBCLASSEXTEND = "native" | ||
23 | 26 | ||
24 | CLEANBROKEN = "1" | 27 | BBCLASSEXTEND = "native nativesdk" |