Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/asciidoc/
Date: Wed, 28 Jul 2021 02:58:24
Message-Id: 1627441041.c896bb14a3f6b862be272b1769a23f928903a371.ionen@gentoo
1 commit: c896bb14a3f6b862be272b1769a23f928903a371
2 Author: Marc Joliet <marcec <AT> gmx <DOT> de>
3 AuthorDate: Wed May 5 17:30:26 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 28 02:57:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c896bb14
7
8 app-text/asciidoc: version bump 9.1.0
9
10 Bump app-text/asciidoc to version 9.1.0 and also constrain the
11 ImageMagick dependency to media-gfx/imagemagick[png].
12
13 Closes: https://bugs.gentoo.org/779322
14 Package-Manager: Portage-3.0.18, Repoman-3.0.2
15 Signed-off-by: Marc Joliet <marcec <AT> gmx.de>
16 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
17
18 app-text/asciidoc/Manifest | 1 +
19 app-text/asciidoc/asciidoc-9.1.0.ebuild | 84 +++++++++++++++++++++++++++++++++
20 2 files changed, 85 insertions(+)
21
22 diff --git a/app-text/asciidoc/Manifest b/app-text/asciidoc/Manifest
23 index 333dbd01faf..064d9296ad3 100644
24 --- a/app-text/asciidoc/Manifest
25 +++ b/app-text/asciidoc/Manifest
26 @@ -1,3 +1,4 @@
27 DIST asciidoc-9.0.2.new.tar.gz 1269444 BLAKE2B 0041073c572267628b8bbfd56258d86c35edb0e7f3a222743ce1476b405483b01144faf768ab1492fd3f378960f6cc8e17d92ef61671d84c318fbe7c1ca8cd7c SHA512 c20629001704f1c3acfef0407b82f35f6077f5b32ef754fcbeee03a5a86d4e01e374e89b79cbdb236fc2c7fc76bf47ba81efd691f2f9e1c87dc85a7111f5e030
28 DIST asciidoc-9.0.4.new.tar.gz 1233878 BLAKE2B 506a2c82d95ce0d522f45b20eee31f7ce2b114e0ad43c78bb313f34b210a7bdd282a8a3779a3ea29025e865847eb8298bd5a6ddac7ee338e4b878ae79bdf149e SHA512 59be96514d0c4c82e5842ddea412ddd6e06647ebe09e0f1828b7c07e787d890896bab4271e7566ed038eb2da6755a67c725bee07bcfbd7aa31475f39c3abc089
29 DIST asciidoc-9.0.5.new.tar.gz 1225334 BLAKE2B c3e428098dc4d71704ed13b54fd5f640b9de81d12939facb5faaf38a3123794e57201ecd9c312a22c220a2ec6b06c88a76ab47f05ffa972fc8751089b3471cfc SHA512 9125631fdee464f96f7e3c76a60fe37331905e9e55a81db27aece4065b246dc05a35db4c157dc7dbb2345eb95c153b474251d6a447d65774bf1b3f57e1883895
30 +DIST asciidoc-9.1.0.new.tar.gz 1249958 BLAKE2B 0a98f58f7604f84d704092313c38563634bad5d697d60d02760f3be1d2a78a97ee2488dda3a9918b02e0062710175c6513d600f3fbd850fe700bf3fa917a3980 SHA512 c30854a936228fe5bcf2f9305741fbc4b17ef088b2fa637d5f3b19c7803306085634fb71146f0b089c2fad01f986da71a4fae364139f520c0906525317c0c4a6
31
32 diff --git a/app-text/asciidoc/asciidoc-9.1.0.ebuild b/app-text/asciidoc/asciidoc-9.1.0.ebuild
33 new file mode 100644
34 index 00000000000..5c92ea8f1d3
35 --- /dev/null
36 +++ b/app-text/asciidoc/asciidoc-9.1.0.ebuild
37 @@ -0,0 +1,84 @@
38 +# Copyright 1999-2021 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
44 +
45 +inherit autotools optfeature python-single-r1 readme.gentoo-r1
46 +
47 +DESCRIPTION="A plain text human readable/writable document format"
48 +HOMEPAGE="https://asciidoc.org/ https://github.com/asciidoc/asciidoc-py3/"
49 +SRC_URI="https://github.com/asciidoc-py/asciidoc-py/releases/download/${PV}/${P}.tar.gz -> ${P}.new.tar.gz"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
54 +IUSE="doc test"
55 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
56 +
57 +RESTRICT="!test? ( test )"
58 +
59 +RDEPEND="${PYTHON_DEPS}
60 + app-text/docbook-xml-dtd:4.5
61 + >=app-text/docbook-xsl-stylesheets-1.75
62 + dev-libs/libxslt
63 + dev-libs/libxml2:2
64 + "
65 +DEPEND="
66 + test? (
67 + ${PYTHON_DEPS}
68 + app-text/dvipng
69 + app-text/dvisvgm
70 + dev-texlive/texlive-latex
71 + dev-util/source-highlight
72 + media-gfx/graphviz
73 + media-gfx/imagemagick[png]
74 + media-sound/lilypond
75 + )"
76 +
77 +DOC_CONTENTS="
78 +If you are going to use a2x, please also look at a2x(1) under
79 +REQUISITES for a list of runtime dependencies.
80 +"
81 +
82 +DOCS=( BUGS.txt CHANGELOG.txt README.asciidoc
83 + docbook-xsl/asciidoc-docbook-xsl.txt dblatex/dblatex-readme.txt
84 + filters/code/code-filter-readme.txt )
85 +
86 +src_prepare() {
87 + default
88 + # Only needed for prefix - harmless (does nothing) otherwise
89 + sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \
90 + asciidoc.py || die
91 +
92 + # enforce usage of the configured version of Python
93 + sed -i -e "s:python3:${EPYTHON}:" Makefile.in || die
94 +
95 + eautoreconf
96 +}
97 +
98 +src_configure() {
99 + econf --sysconfdir="${EPREFIX}"/usr/share
100 +}
101 +
102 +src_install() {
103 + default
104 +
105 + if use doc; then
106 + emake DESTDIR="${D}" docs
107 + fi
108 +
109 + python_fix_shebang "${ED}"/usr/bin/*.py
110 +
111 + readme.gentoo_create_doc
112 +}
113 +
114 +pkg_postinst() {
115 + readme.gentoo_print_elog
116 +
117 + optfeature "\"music\" filter support" "media-sound/lilypond media-gfx/imagemagick"
118 + optfeature "\"source\" filter support" dev-util/source-highlight dev-python/pygments app-text/highlight
119 + optfeature "\"latex\" filter support" "dev-texlive/texlive-latex app-text/dvipng" "dev-texlive/texlive-latex app-text/dvisvgm"
120 + optfeature "\"graphviz\" filter support" media-gfx/graphviz
121 +}