Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/asciidoc/
Date: Sat, 20 Apr 2019 23:20:31
Message-Id: 1555742768.eeef837c0a177d8e42e754b2f29b8d29c351da05.mgorny@gentoo
1 commit: eeef837c0a177d8e42e754b2f29b8d29c351da05
2 Author: Marc Joliet <marcec <AT> gmx <DOT> de>
3 AuthorDate: Fri Apr 5 17:41:26 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 20 06:46:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeef837c
7
8 app-text/asciidoc-8.6.10_p20181016: new snapshot
9
10 Add a new snapshot ebuild based on the latest commit of Asciidoc-Py3.
11 Also add dev-libs/libxml2 to $RDEPEND because a2x uses xmllint directly,
12 as recommended by Mart Raudsepp in Gentoo bug #671668.
13
14 Closes: https://bugs.gentoo.org/661662
15 Package-Manager: Portage-2.3.62, Repoman-2.3.11
16 Signed-off-by: Marc Joliet <marcec <AT> gmx.de>
17 Closes: https://github.com/gentoo/gentoo/pull/11602
18 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
19
20 app-text/asciidoc/Manifest | 1 +
21 app-text/asciidoc/asciidoc-8.6.10_p20181016.ebuild | 92 ++++++++++++++++++++++
22 2 files changed, 93 insertions(+)
23
24 diff --git a/app-text/asciidoc/Manifest b/app-text/asciidoc/Manifest
25 index 81acc843cdf..31865ddc706 100644
26 --- a/app-text/asciidoc/Manifest
27 +++ b/app-text/asciidoc/Manifest
28 @@ -1,2 +1,3 @@
29 DIST asciidoc-8.6.10.tar.gz 577208 BLAKE2B 320724c3e2306e14212a4e32f09fb735861f9b0126ce86695c6b5840b69f94d0e5befbbfc355006a10d13d34e8ed3582f0bfb678744654a7d2040555016b1681 SHA512 6ecc86977baaf1c756691e3f661e43ef2bb24e606898f6075bfa6f174d1fdc5e77d00853ffe014847e295364349d6ad34f3b8209cb97870e0233012fc38a281a
30 +DIST asciidoc-8.6.10_p20181016.tar.gz 576694 BLAKE2B 4d255606675346d00ab03398bf48cb30d357f9f9366944e4faf66ae4c96dafce49acdd930fc848f3dbb2d704a004bb5815d17b53416a76c8368a92e4716328b2 SHA512 801f360b0c444e932f1c50897d446de0ec3f0fb2206080b5aa6dda396fede96065f7bb629a84c8a8e40c5d8897f305fdb1877512f04ae757f3b142fd3a7305d0
31 DIST asciidoc-8.6.9.tar.gz 907253 BLAKE2B 45db42abd9ec73f6d3b20fc755bdd501eab1503bd8d5d6bb6b7d66c442cf8bcd47ee4325dbb572bdcfd01168ef1bccc3430ee7c545e7b3a6715b8ebf09516ad9 SHA512 1984482010dbd35c3a1def67f4915ce83ecfc29a7463f84aa312107d7a9ff647978f57615462c65e885bea424eed89a212df728cc3acd3c63df1c763dfa5e955
32
33 diff --git a/app-text/asciidoc/asciidoc-8.6.10_p20181016.ebuild b/app-text/asciidoc/asciidoc-8.6.10_p20181016.ebuild
34 new file mode 100644
35 index 00000000000..ab711abd29a
36 --- /dev/null
37 +++ b/app-text/asciidoc/asciidoc-8.6.10_p20181016.ebuild
38 @@ -0,0 +1,92 @@
39 +# Copyright 1999-2019 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +PYTHON_COMPAT=( python3_{4,5,6,7} pypy3 )
45 +
46 +inherit autotools python-single-r1 readme.gentoo-r1
47 +
48 +DESCRIPTION="A plain text human readable/writable document format"
49 +HOMEPAGE="http://asciidoc.org/ https://github.com/asciidoc/asciidoc-py3/"
50 +MY_COMMIT="618f6e6f6b558ed1e5f2588cd60a5a6b4f881ca0"
51 +SRC_URI="https://github.com/${PN}/${PN}-py3/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE="examples graphviz highlight test"
57 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
58 +
59 +RDEPEND="
60 + app-text/docbook-xml-dtd:4.5
61 + >=app-text/docbook-xsl-stylesheets-1.75
62 + dev-libs/libxslt
63 + dev-libs/libxml2
64 + ${PYTHON_DEPS}
65 + graphviz? ( media-gfx/graphviz )
66 + highlight? (
67 + || (
68 + dev-util/source-highlight
69 + dev-python/pygments[${PYTHON_USEDEP}]
70 + app-text/highlight
71 + )
72 + )"
73 +DEPEND="
74 + test? (
75 + app-text/dvipng
76 + dev-texlive/texlive-latex
77 + dev-util/source-highlight
78 + media-gfx/graphviz
79 + media-gfx/imagemagick
80 + media-sound/lilypond
81 + ${PYTHON_DEPS}
82 + )"
83 +
84 +DOC_CONTENTS="
85 +If you are going to use a2x, please also look at a2x(1) under
86 +REQUISITES for a list of runtime dependencies.
87 +"
88 +
89 +S="${WORKDIR}/${PN}-py3-${MY_COMMIT}"
90 +
91 +src_prepare() {
92 + default
93 + # Only needed for prefix - harmless (does nothing) otherwise
94 + sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \
95 + "${S}/asciidoc.py" || die
96 +
97 + eautoreconf
98 +}
99 +
100 +src_configure() {
101 + econf --sysconfdir="${EPREFIX}"/usr/share
102 +}
103 +
104 +src_test() {
105 + local -x ASCIIDOC_PY=asciidoc.py
106 + "${EPYTHON}" tests/test${PN}.py update || die
107 + "${EPYTHON}" tests/test${PN}.py run || die
108 +}
109 +
110 +src_install() {
111 + default
112 + python_fix_shebang "${ED}"/usr/bin/*.py
113 +
114 + readme.gentoo_create_doc
115 + dodoc BUGS.txt CHANGELOG.txt README.asciidoc docbook-xsl/asciidoc-docbook-xsl.txt \
116 + dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt
117 +
118 + # Below results in some files being installed twice in different locations, but they are
119 + # in the right place, uncompressed, and there won't be any broken links. See bug #483336
120 + if use examples; then
121 + # examples/website is full of relative symlinks,
122 + # deref them for copying, which dodoc doesn't do
123 + cp -rL examples/website "${ED%/}"/usr/share/doc/${PF}/examples || die
124 + docompress -x /usr/share/doc/${PF}/examples
125 + fi
126 +}
127 +
128 +pkg_postinst() {
129 + readme.gentoo_print_elog
130 +}