public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/docbook-xsl-stylesheets/
Date: Thu, 23 Jun 2022 20:12:41 +0000 (UTC)	[thread overview]
Message-ID: <1656015139.aa22ce0a3223734c223d8b28ba10a1f9f8354555.soap@gentoo> (raw)

commit:     aa22ce0a3223734c223d8b28ba10a1f9f8354555
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 23 20:12:19 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Jun 23 20:12:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa22ce0a

app-text/docbook-xsl-stylesheets: update EAPI 6 -> 8

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...ld => docbook-xsl-stylesheets-1.79.1-r3.ebuild} | 35 +++++++++-------------
 1 file changed, 14 insertions(+), 21 deletions(-)

diff --git a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r3.ebuild
similarity index 81%
rename from app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild
rename to app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r3.ebuild
index ba35adf04592..82ed385947cd 100644
--- a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r2.ebuild
+++ b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r3.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-USE_RUBY="ruby25 ruby26 ruby27"
+EAPI=8
 
+USE_RUBY="ruby26 ruby27"
 inherit ruby-single
 
 DOCBOOKDIR="/usr/share/sgml/${PN/-//}"
@@ -13,22 +13,20 @@ MY_P="${MY_PN}-${PV}"
 DESCRIPTION="XSL Stylesheets for Docbook"
 HOMEPAGE="https://github.com/docbook/wiki/wiki"
 SRC_URI="mirror://sourceforge/docbook/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
 
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="ruby"
+# Makefile is broken since 1.76.0
+RESTRICT="test"
 
 RDEPEND="
 	>=app-text/build-docbook-catalog-1.1
 	ruby? ( ${RUBY_DEPS} )
 "
 
-S="${WORKDIR}/${MY_P}"
-
-# Makefile is broken since 1.76.0
-RESTRICT=test
-
 PATCHES=(
 	"${FILESDIR}"/nonrecursive-string-subst.patch
 )
@@ -66,30 +64,25 @@ src_install() {
 	for i in */; do
 		i=${i%/}
 
-		cd "${S}"/${i}
 		for doc in ChangeLog README; do
-			if [ -e "$doc" ]; then
-				mv ${doc} ${doc}.${i}
-				dodoc ${doc}.${i}
-				rm ${doc}.${i}
+			if [[ -e ${i}/${doc} ]]; then
+				newdoc ${i}/${doc} ${doc}.${i}
+				rm ${i}/${doc} || die
 			fi
 		done
 
-		doins -r "${S}"/${i}
+		doins -r ${i}
 	done
 
 	if use ruby; then
 		local cmd="dbtoepub${MY_PN#docbook-xsl}"
 
-		# we can't use a symlink or it'll look for the library in the
-		# wrong path.
-		dodir /usr/bin
-		cat - > "${ED%/}"/usr/bin/${cmd} <<EOF
-#!/usr/bin/env ruby
+		# we can't use a symlink or it'll look for the library in the wrong path
+		newbin - ${cmd} <<-EOF
+			#!/usr/bin/env ruby
 
-load "${EPREFIX}${DOCBOOKDIR}/epub/bin/dbtoepub"
-EOF
-		fperms 0755 /usr/bin/${cmd}
+			load "${EPREFIX}${DOCBOOKDIR}/epub/bin/dbtoepub"
+		EOF
 	fi
 }
 


             reply	other threads:[~2022-06-23 20:12 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23 20:12 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-07  9:24 [gentoo-commits] repo/gentoo:master commit in: app-text/docbook-xsl-stylesheets/ Sam James
2024-04-05 15:27 Arthur Zamarin
2023-06-12  4:08 Sam James
2023-06-12  4:08 Sam James
2023-05-16 18:04 Arthur Zamarin
2023-05-16 16:53 Sam James
2023-05-13  9:47 Arthur Zamarin
2023-05-13  9:02 Arthur Zamarin
2023-05-13  8:37 Arthur Zamarin
2023-05-13  8:37 Arthur Zamarin
2023-05-13  8:37 Arthur Zamarin
2023-05-13  8:37 Arthur Zamarin
2023-04-10  7:13 Hans de Graaff
2022-12-17  8:37 Hans de Graaff
2021-10-07  2:48 Sam James
2021-07-18  5:59 Hans de Graaff
2020-12-27 14:01 Fabian Groffen
2020-07-22  9:02 Hans de Graaff
2019-05-04 14:43 Andreas K. Hüttel
2019-03-01 11:22 Michael Haubenwallner
2019-02-24 10:53 Pacho Ramos
2018-03-22  6:50 Hans de Graaff
2017-12-05 16:42 Mike Gilbert
2017-12-05 16:42 Mike Gilbert
2017-12-04 14:41 Agostino Sarubbo
2017-12-03 18:08 Sergei Trofimovich
2017-11-25 19:55 David Seifert
2017-04-12 19:30 Mike Frysinger
2017-04-08 12:25 James Le Cuirot
2017-04-07  9:14 Jeroen Roovers
2017-02-24  0:13 Michael Weber
2017-02-18 14:44 Agostino Sarubbo
2017-02-17 10:56 Agostino Sarubbo
2017-02-15 13:49 Tobias Klausmann
2017-02-12 17:01 Agostino Sarubbo
2017-02-12 15:44 Agostino Sarubbo
2017-02-07 11:28 Agostino Sarubbo
2016-12-09 20:16 Mike Frysinger
2016-12-03  9:27 Hans de Graaff
2016-03-13 21:28 James Le Cuirot
2016-02-29  8:46 Stephen Klimaszewski
2016-01-24  7:51 Jeroen Roovers
2016-01-11  9:07 Agostino Sarubbo
2016-01-10 10:34 Agostino Sarubbo
2016-01-09  6:43 Agostino Sarubbo
2016-01-07 20:38 Markus Meier
2015-12-27 11:28 Lars Wendler
2015-12-26 10:36 Agostino Sarubbo
2015-12-25 16:20 Agostino Sarubbo
2015-12-14 14:12 Agostino Sarubbo
2015-12-14 12:11 Lars Wendler
2015-10-19 20:04 Lars Wendler

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=1656015139.aa22ce0a3223734c223d8b28ba10a1f9f8354555.soap@gentoo \
    --to=soap@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