public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/asciidoc/
Date: Wed, 18 Oct 2017 20:54:14 +0000 (UTC)	[thread overview]
Message-ID: <1508358907.cfcaf34bf2f32132c9f6669bd2b9a50402a144d1.mgorny@gentoo> (raw)

commit:     cfcaf34bf2f32132c9f6669bd2b9a50402a144d1
Author:     Marc Joliet <marcec <AT> gmx <DOT> de>
AuthorDate: Mon Sep 18 14:46:08 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 18 20:35:07 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfcaf34b

app-text/asciidoc: synchronise with 8.6.9-r5

Package-Manager: Portage-2.3.8, Repoman-2.3.1

 app-text/asciidoc/asciidoc-9999.ebuild | 86 +++++++++++++++++-----------------
 1 file changed, 44 insertions(+), 42 deletions(-)

diff --git a/app-text/asciidoc/asciidoc-9999.ebuild b/app-text/asciidoc/asciidoc-9999.ebuild
index 39a4499e545..8577a4a0e1a 100644
--- a/app-text/asciidoc/asciidoc-9999.ebuild
+++ b/app-text/asciidoc/asciidoc-9999.ebuild
@@ -6,43 +6,47 @@ EAPI=6
 PYTHON_COMPAT=( python2_7 pypy )
 
 [ "$PV" == "9999" ] && inherit git-r3 autotools
-inherit readme.gentoo-r1 python-single-r1
+inherit python-single-r1 readme.gentoo-r1
 
 DESCRIPTION="AsciiDoc is a plain text human readable/writable document format"
-HOMEPAGE="http://www.methods.co.nz/asciidoc/"
+HOMEPAGE="http://asciidoc.org/"
 if [ "$PV" == "9999" ]; then
 	EGIT_REPO_URI="https://github.com/asciidoc/asciidoc.git"
 	SRC_URI=""
 	KEYWORDS=""
 else
 	SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz"
-	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
 
 LICENSE="GPL-2"
 SLOT="0"
 IUSE="examples graphviz highlight test"
-
-REQUIRED_USE="highlight? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND=">=app-text/docbook-xsl-stylesheets-1.75
-		dev-libs/libxslt
-		graphviz? ( media-gfx/graphviz )
-		app-text/docbook-xml-dtd:4.5
-		highlight? ( || ( dev-util/source-highlight \
-			dev-python/pygments[${PYTHON_USEDEP}] \
-			app-text/highlight )
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+	app-text/docbook-xml-dtd:4.5
+	>=app-text/docbook-xsl-stylesheets-1.75
+	dev-libs/libxslt
+	${PYTHON_DEPS}
+	graphviz? ( media-gfx/graphviz )
+	highlight? (
+		|| (
+			dev-util/source-highlight
+			dev-python/pygments[${PYTHON_USEDEP}]
+			app-text/highlight
 		)
+	)"
+DEPEND="
+	test? (
+		app-text/dvipng
+		dev-texlive/texlive-latex
+		dev-util/source-highlight
+		media-gfx/graphviz
+		media-gfx/imagemagick
+		media-sound/lilypond
 		${PYTHON_DEPS}
-"
-DEPEND="test? ( dev-util/source-highlight
-			media-sound/lilypond
-			media-gfx/imagemagick
-			dev-texlive/texlive-latex
-			app-text/dvipng
-			media-gfx/graphviz
-			${PYTHON_DEPS} )
-"
+	)"
 
 DOC_CONTENTS="
 If you are going to use a2x, please also look at a2x(1) under
@@ -51,13 +55,12 @@ REQUISITES for a list of runtime dependencies.
 
 if [ "$PV" == "9999" ]; then
 	DEPEND="${DEPEND}
-		www-client/lynx
-		dev-util/source-highlight"
+		dev-util/source-highlight
+		www-client/lynx"
 fi
 
 src_prepare() {
 	default
-
 	# Only needed for prefix - harmless (does nothing) otherwise
 	sed -i -e "s:^CONF_DIR=.*:CONF_DIR='${EPREFIX}/etc/asciidoc':" \
 		"${S}/asciidoc.py" || die
@@ -82,29 +85,28 @@ src_compile() {
 	fi
 }
 
+src_test() {
+	local -x ASCIIDOC_PY=asciidoc.py
+	"${EPYTHON}" tests/test${PN}.py update || die
+	"${EPYTHON}" tests/test${PN}.py run || die
+}
+
 src_install() {
-	emake DESTDIR="${D}" install
+	default
+	python_fix_shebang "${ED%/}"/usr/bin/*.py
 
-	python_fix_shebang "${ED}"/usr/bin/*.py
+	readme.gentoo_create_doc
+	dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \
+		dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt
 
+	# 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
-		# This is a symlink to a directory
-		rm examples/website/images || die
-
-		dodoc -r examples
+		# 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
-		dosym ../../../asciidoc/images /usr/share/doc/${PF}/examples
 	fi
-
-	readme.gentoo_create_doc
-	dodoc BUGS CHANGELOG README docbook-xsl/asciidoc-docbook-xsl.txt \
-			dblatex/dblatex-readme.txt filters/code/code-filter-readme.txt
-}
-
-src_test() {
-	local -x ASCIIDOC_PY=asciidoc.py
-	"${PYTHON}" tests/test${PN}.py update || die
-	"${PYTHON}" tests/test${PN}.py run || die
 }
 
 pkg_postinst() {


             reply	other threads:[~2017-10-18 20:54 UTC|newest]

Thread overview: 141+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-18 20:54 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-15 12:47 [gentoo-commits] repo/gentoo:master commit in: app-text/asciidoc/ Arthur Zamarin
2024-10-09  5:46 Sam James
2024-10-08 20:37 Arthur Zamarin
2024-10-07  7:28 Sam James
2024-10-07  7:28 Sam James
2024-10-07  7:28 Sam James
2024-09-06 10:12 Petr Vaněk
2024-09-06 10:12 Petr Vaněk
2024-09-06 10:12 Petr Vaněk
2023-11-06 11:58 Andrew Ammerlaan
2022-12-18 19:59 Arthur Zamarin
2022-12-18 12:20 Sam James
2022-12-18 12:11 Sam James
2022-12-18 11:44 Sam James
2022-12-18 11:30 Sam James
2022-12-18 11:29 Sam James
2022-11-29  0:17 Ionen Wolkens
2022-10-17 23:56 Sam James
2022-08-26 12:04 Sam James
2022-06-21  7:00 Florian Schmaus
2022-05-05 10:17 WANG Xuerui
2022-04-21  7:54 Florian Schmaus
2022-02-23 13:32 Sam James
2022-02-20 23:33 Sam James
2022-01-02  0:04 Sam James
2022-01-01 11:07 Sam James
2021-12-31 10:49 Sam James
2021-12-30 21:01 Arthur Zamarin
2021-12-29  6:40 Arthur Zamarin
2021-12-29  6:40 Arthur Zamarin
2021-12-29  6:40 Arthur Zamarin
2021-12-29  6:00 Sam James
2021-12-29  5:58 Sam James
2021-12-29  5:35 Sam James
2021-12-29  3:19 Sam James
2021-12-29  3:14 Sam James
2021-12-29  1:58 Sam James
2021-12-29  1:58 Sam James
2021-12-29  1:58 Sam James
2021-08-16 22:34 Louis Sautier
2021-08-15 23:39 Louis Sautier
2021-07-28  2:58 Ionen Wolkens
2021-07-28  2:58 Ionen Wolkens
2021-05-16 18:56 Sam James
2021-05-14  6:42 Agostino Sarubbo
2021-05-14  6:42 Agostino Sarubbo
2021-05-07 18:56 Sergei Trofimovich
2021-05-07 13:31 Sam James
2021-05-07 13:30 Sam James
2021-05-07 13:29 Sam James
2021-05-06 21:21 Sam James
2021-03-29 20:59 Sam James
2021-03-12  8:36 Joonas Niilola
2021-03-12  8:36 Joonas Niilola
2021-02-14  5:37 Sam James
2021-02-10 16:29 Sergei Trofimovich
2021-02-09 21:30 Sam James
2021-02-09  9:48 Sam James
2021-02-09  8:23 Sam James
2021-02-09  6:16 Sam James
2020-12-17 15:04 Joonas Niilola
2020-09-23 11:07 Michał Górny
2020-09-23 10:29 Agostino Sarubbo
2020-09-18  8:11 Agostino Sarubbo
2020-09-18  7:54 Agostino Sarubbo
2020-09-16 17:48 Sergei Trofimovich
2020-08-25 13:59 Sam James
2020-08-25 12:35 Sam James
2020-08-24  1:57 Sam James
2020-08-19  3:55 Matt Turner
2020-06-28 20:51 Aaron Bauman
2020-05-27 20:38 Andreas Sturmlechner
2020-04-17  0:04 Andreas Sturmlechner
2020-02-18 13:28 Joonas Niilola
2020-02-18 13:21 Joonas Niilola
2020-02-18  8:49 Joonas Niilola
2019-11-02  8:09 Michał Górny
2019-11-02  8:03 Mikle Kolyada
2019-11-02  8:03 Mikle Kolyada
2019-08-29 11:39 David Seifert
2019-07-29  8:53 Mikle Kolyada
2019-07-29  8:53 Mikle Kolyada
2019-07-29  8:53 Mikle Kolyada
2019-07-23  0:42 Aaron Bauman
2019-07-18 18:35 Sergei Trofimovich
2019-07-18 13:10 Agostino Sarubbo
2019-07-18 11:45 Agostino Sarubbo
2019-07-18 10:01 Agostino Sarubbo
2019-07-18  9:57 Agostino Sarubbo
2019-07-17 14:03 Agostino Sarubbo
2019-07-10 20:44 Sergei Trofimovich
2019-07-08 12:10 Thomas Deutschmann
2019-07-08 11:05 Agostino Sarubbo
2019-05-04 14:43 Andreas K. Hüttel
2019-04-28 20:32 Mikle Kolyada
2019-04-20  6:46 Michał Górny
2019-04-14 14:37 Aaron Bauman
2019-04-12  7:06 Sergei Trofimovich
2018-06-23 14:25 Mikle Kolyada
2018-03-22  6:07 Markus Meier
2018-02-11 10:25 Michał Górny
2018-02-01 20:37 Thomas Deutschmann
2018-01-29 15:51 Tobias Klausmann
2018-01-08 16:35 Patrice Clement
2017-12-24 11:25 Sergei Trofimovich
2017-12-24  9:59 Sergei Trofimovich
2017-12-19 21:48 Sergei Trofimovich
2017-12-19 12:08 Jason Zaman
2017-11-04  7:42 Michael Palimaka
2017-11-04  7:42 Michael Palimaka
2017-10-18 20:54 Michał Górny
2017-06-27 12:30 Michael Palimaka
2017-03-18 12:22 David Seifert
2017-03-11 12:57 David Seifert
2017-03-10 18:05 David Seifert
2017-02-03 20:01 Jeroen Roovers
2017-01-24 10:09 Fabian Groffen
2017-01-22  9:23 Tobias Klausmann
2016-12-12 16:27 Michał Górny
2016-12-12 16:27 Michał Górny
2016-12-12 16:27 Michał Górny
2016-12-12 16:27 Michał Górny
2016-12-12 16:27 Michał Górny
2016-04-01 19:17 Markus Meier
2016-03-24 19:58 Patrice Clement
2016-03-22 14:32 Agostino Sarubbo
2015-12-21 22:28 Patrice Clement
2015-11-23 15:02 Patrice Clement
2015-11-23 13:13 Patrice Clement
2015-11-17 10:29 Patrice Clement
2015-11-17  6:00 Ian Delaney
2015-11-17  6:00 Ian Delaney
2015-11-17  6:00 Ian Delaney
2015-11-14 15:36 Ian Delaney
2015-11-14 15:36 Ian Delaney
2015-11-14 15:36 Ian Delaney
2015-11-14 15:36 Ian Delaney
2015-11-14 15:36 Ian Delaney
2015-11-14 15:36 Ian Delaney
2015-11-14 15:36 Ian Delaney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1508358907.cfcaf34bf2f32132c9f6669bd2b9a50402a144d1.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox