mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 05:39:39 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3d05a87df7
commit
a4208d9e2a
@@ -8,17 +8,20 @@ LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
|
||||
file://COPYRIGHT;md5=029ad5428ba5efa20176b396222d4069"
|
||||
|
||||
SRC_URI = "http://downloads.sourceforge.net/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz"
|
||||
SRC_URI[md5sum] = "c59018f105be8d022714b826b0be130a"
|
||||
SRC_URI[sha256sum] = "78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0"
|
||||
SRC_URI = "git://github.com/asciidoc/asciidoc-py3;protocol=https"
|
||||
SRCREV = "618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
|
||||
PV .= "+py3-git${SRCPV}"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/asciidoc/files/"
|
||||
DEPENDS = "libxml2-native libxslt-native docbook-xml-dtd4-native"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# Not using automake
|
||||
inherit autotools-brokensep
|
||||
|
||||
export DESTDIR = "${D}"
|
||||
DEPENDS_class-native = "docbook-xml-dtd4-native"
|
||||
RDEPENDS_${PN} += "python"
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
# target and nativesdk needs python3, but for native we can use the host.
|
||||
RDEPENDS_${PN} += "python3"
|
||||
RDEPENDS_remove_class-native = "python3"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user