mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
app-text/asciidoc: Sync with Gentoo
It's from Gentoo commit 0e727a3a16bc2abfd39386f10821d3e5ce89c45a.
This commit is contained in:
parent
f48096ba6c
commit
2fd91171e2
@ -1,2 +1,2 @@
|
||||
DIST asciidoc-10.2.0.tar.gz 216824 BLAKE2B 500038d655f820fe89048bbff683ae029c7044de839ae4f9ec4666b843585511c99bbc1991ec1764262f33c55b08845661fc1e62eb21bb3250d3168e369928ff SHA512 2f83c7f6d1d0a34948035347833ca59841de1271e8d008b4c4a43a7a8273b230148e6f51ee8f6e2dc702460e27c495037fbe2d6d43195b70bf3447ad86390d28
|
||||
DIST asciidoc-9.1.0.new.tar.gz 1249958 BLAKE2B 0a98f58f7604f84d704092313c38563634bad5d697d60d02760f3be1d2a78a97ee2488dda3a9918b02e0062710175c6513d600f3fbd850fe700bf3fa917a3980 SHA512 c30854a936228fe5bcf2f9305741fbc4b17ef088b2fa637d5f3b19c7803306085634fb71146f0b089c2fad01f986da71a4fae364139f520c0906525317c0c4a6
|
||||
DIST asciidoc-10.2.1.tar.gz 1280535 BLAKE2B 9e15eb5d40384fe586a6148e53e03e73a6958061841843f7b32b4209a15477f97a6547ea1cb48d23b5d4c9ee5add1bfa87d53c1bfbc14c10f31397ebeb86ba39 SHA512 02d064aab8dfb05af4ae49a7c7bd1381156c6c90f95b2494218c80f01c39987cb971d68c533b5519abade77be9832b3fab653d8ae2ca7bb682c5bb720612839f
|
||||
|
||||
@ -13,7 +13,7 @@ HOMEPAGE="https://asciidoc.org/ https://github.com/asciidoc-py/asciidoc-py/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
|
||||
RDEPEND="
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
|
||||
64
sdk_container/src/third_party/portage-stable/app-text/asciidoc/asciidoc-10.2.1.ebuild
vendored
Normal file
64
sdk_container/src/third_party/portage-stable/app-text/asciidoc/asciidoc-10.2.1.ebuild
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} pypy3 )
|
||||
inherit distutils-r1 optfeature readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="A plain text human readable/writable document format"
|
||||
HOMEPAGE="
|
||||
https://asciidoc.org/
|
||||
https://github.com/asciidoc-py/asciidoc-py/
|
||||
"
|
||||
SRC_URI="https://github.com/asciidoc-py/asciidoc-py/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
|
||||
RDEPEND="
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
>=app-text/docbook-xsl-stylesheets-1.75
|
||||
dev-libs/libxslt
|
||||
dev-libs/libxml2:2
|
||||
"
|
||||
BDEPEND="
|
||||
test? ( $(python_gen_cond_dep '
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
') )
|
||||
"
|
||||
|
||||
DOC_CONTENTS="
|
||||
If you are going to use a2x, please also look at a2x(1) under
|
||||
REQUISITES for a list of runtime dependencies.
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
# TODO: Consider using Debian patch to allow /usr/share?
|
||||
insinto /usr/share/asciidoc
|
||||
doins -r asciidoc/resources/.
|
||||
|
||||
doman doc/*.1 # bug 834835
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
|
||||
optfeature "music filter support" \
|
||||
"media-sound/lilypond virtual/imagemagick-tools"
|
||||
optfeature "source filter support" \
|
||||
"dev-util/source-highlight dev-python/pygments app-text/highlight"
|
||||
optfeature "latex filter support" \
|
||||
"dev-texlive/texlive-latex app-text/dvipng" \
|
||||
"dev-texlive/texlive-latex app-text/dvisvgm"
|
||||
optfeature "graphviz filter support" "media-gfx/graphviz"
|
||||
}
|
||||
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..10} pypy3 )
|
||||
|
||||
inherit autotools optfeature python-single-r1 readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="A plain text human readable/writable document format"
|
||||
HOMEPAGE="https://asciidoc.org/ https://github.com/asciidoc-py/asciidoc-py/"
|
||||
SRC_URI="https://github.com/asciidoc-py/asciidoc-py/releases/download/${PV}/${P}.tar.gz -> ${P}.new.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE="doc test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
>=app-text/docbook-xsl-stylesheets-1.75
|
||||
dev-libs/libxslt
|
||||
dev-libs/libxml2:2
|
||||
"
|
||||
DEPEND="
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
app-text/dvipng
|
||||
app-text/dvisvgm
|
||||
dev-texlive/texlive-latex
|
||||
dev-util/source-highlight
|
||||
media-gfx/graphviz
|
||||
media-gfx/imagemagick[png]
|
||||
media-sound/lilypond
|
||||
)"
|
||||
|
||||
DOC_CONTENTS="
|
||||
If you are going to use a2x, please also look at a2x(1) under
|
||||
REQUISITES for a list of runtime dependencies.
|
||||
"
|
||||
|
||||
DOCS=( BUGS.txt CHANGELOG.txt README.asciidoc
|
||||
docbook-xsl/asciidoc-docbook-xsl.txt dblatex/dblatex-readme.txt
|
||||
filters/code/code-filter-readme.txt )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Only needed for prefix - harmless (does nothing) otherwise
|
||||
sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \
|
||||
asciidoc.py || die
|
||||
|
||||
# enforce usage of the configured version of Python
|
||||
sed -i -e "s:python3:${EPYTHON}:" Makefile.in || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --sysconfdir="${EPREFIX}"/usr/share
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" docs
|
||||
fi
|
||||
|
||||
python_fix_shebang "${ED}"/usr/bin/*.py
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
|
||||
optfeature "\"music\" filter support" "media-sound/lilypond media-gfx/imagemagick"
|
||||
optfeature "\"source\" filter support" dev-util/source-highlight dev-python/pygments app-text/highlight
|
||||
optfeature "\"latex\" filter support" "dev-texlive/texlive-latex app-text/dvipng" "dev-texlive/texlive-latex app-text/dvisvgm"
|
||||
optfeature "\"graphviz\" filter support" media-gfx/graphviz
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user