commit:     4c4b9d9c62d1c8c46e538f2d286c3c980adcce2b
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 17 00:01:01 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Apr 17 00:04:02 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4b9d9c

app-text/asciidoc: 9.0.0_rc2 version bump, python3_8

- Replace hardcoded version in SRC_URI and S with PV
- Misc ebuild improvements (skel.ebuild)

Closes: https://bugs.gentoo.org/716976
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-text/asciidoc/Manifest                  |  1 +
 app-text/asciidoc/asciidoc-9.0.0_rc2.ebuild | 92 +++++++++++++++++++++++++++++
 2 files changed, 93 insertions(+)

diff --git a/app-text/asciidoc/Manifest b/app-text/asciidoc/Manifest
index 9821a9f8b5f..06a17938e0a 100644
--- a/app-text/asciidoc/Manifest
+++ b/app-text/asciidoc/Manifest
@@ -1,2 +1,3 @@
 DIST asciidoc-8.6.10_p20181016.tar.gz 576694 BLAKE2B 
4d255606675346d00ab03398bf48cb30d357f9f9366944e4faf66ae4c96dafce49acdd930fc848f3dbb2d704a004bb5815d17b53416a76c8368a92e4716328b2
 SHA512 
801f360b0c444e932f1c50897d446de0ec3f0fb2206080b5aa6dda396fede96065f7bb629a84c8a8e40c5d8897f305fdb1877512f04ae757f3b142fd3a7305d0
 DIST asciidoc-9.0.0_rc1.tar.gz 1143528 BLAKE2B 
97e2ee77cf7554e2e0d53e792213377e6cb233853717487b0c0ac1c70d233a5d58a08f3aa69ae840c90f98185b595f9feb7396795b2de47ff0cfc0147920bc2a
 SHA512 
965d65df18ff90596e5cd72bec8d0f7daf2f6ad585ec77af2a6ae9637569b613e2384cc7015c1823fcde99be8170107789505a543fe8b6d3273f2c75a6a92960
+DIST asciidoc-9.0.0_rc2.tar.gz 1145229 BLAKE2B 
e820a957a5e03f8b28e94fb0e9514b2beebe5b08a30357b7ab70db326894270972cfee1b44c30d51dc1c4794e91a09e36acbf9e464386d9e932ac7d32e2f8e93
 SHA512 
61ea1eb74a2e2da76f92e32ef279f8940fa4ea77a82078e15b54c7c6f134e9d177b0425c6eb8a239cfd2dc6a6f85ad5e93883a447a3e0e92850c0898747b5ea3

diff --git a/app-text/asciidoc/asciidoc-9.0.0_rc2.ebuild 
b/app-text/asciidoc/asciidoc-9.0.0_rc2.ebuild
new file mode 100644
index 00000000000..c32f51787ff
--- /dev/null
+++ b/app-text/asciidoc/asciidoc-9.0.0_rc2.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+
+inherit autotools eutils python-single-r1 readme.gentoo-r1
+
+DESCRIPTION="A plain text human readable/writable document format"
+HOMEPAGE="http://asciidoc.org/ https://github.com/asciidoc/asciidoc-py3/";
+SRC_URI="https://github.com/${PN}/${PN}-py3/archive/${PV/_/}.tar.gz -> 
${P}.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 ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples 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
+               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 )
+
+S="${WORKDIR}/${PN}-py3-${PV/_/}"
+
+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
+
+       eautoreconf
+}
+
+src_configure() {
+       econf --sysconfdir="${EPREFIX}"/usr/share
+}
+
+src_test() {
+       local -x ASCIIDOC_PY=asciidoc.py
+       "${EPYTHON}" tests/test${PN}.py run || die
+}
+
+src_install() {
+       default
+       python_fix_shebang "${ED}"/usr/bin/*.py
+
+       readme.gentoo_create_doc
+
+       # Below results in some files being installed twice in different 
locations, but they are
+       # in the right place, uncompressed, and there won't be any broken 
links. See bug #483336
+       if use examples; then
+               # examples/website is full of relative symlinks,
+               # deref them for copying, which dodoc doesn't do
+               cp -rL examples/website "${ED}"/usr/share/doc/${PF}/examples || 
die
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}
+
+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
+}

Reply via email to