From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9E4D015ACFB for ; Mon, 10 Apr 2023 07:13:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3D9EE07BA; Mon, 10 Apr 2023 07:13:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9BAFE07BA for ; Mon, 10 Apr 2023 07:13:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D8E48340D54 for ; Mon, 10 Apr 2023 07:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2F7BAA19 for ; Mon, 10 Apr 2023 07:13:32 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1681110809.f6422d2919e5f3b6ea825548b5a6b6b8a3c28b9e.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/docbook-xsl-stylesheets/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r4.ebuild X-VCS-Directories: app-text/docbook-xsl-stylesheets/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: f6422d2919e5f3b6ea825548b5a6b6b8a3c28b9e X-VCS-Branch: master Date: Mon, 10 Apr 2023 07:13:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 051cac3c-6783-4393-a7f0-9693fd3241c3 X-Archives-Hash: fadb42774ed8f08a7b3a48ee985b7912 commit: f6422d2919e5f3b6ea825548b5a6b6b8a3c28b9e Author: Hans de Graaff gentoo org> AuthorDate: Mon Apr 10 07:12:41 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Apr 10 07:13:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6422d29 app-text/docbook-xsl-stylesheets: add ruby31 Signed-off-by: Hans de Graaff gentoo.org> .../docbook-xsl-stylesheets-1.79.1-r4.ebuild | 97 ++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r4.ebuild b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r4.ebuild new file mode 100644 index 000000000000..e47ba4f5bdda --- /dev/null +++ b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r4.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31" +inherit ruby-single + +DOCBOOKDIR="/usr/share/sgml/${PN/-//}" +MY_PN="${PN%-stylesheets}" +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} dev-ruby/rexml ) +" + +PATCHES=( + "${FILESDIR}"/nonrecursive-string-subst.patch +) + +src_prepare() { + default + + # Delete the unnecessary Java-related stuff and other tools as they + # bloat the stage3 tarballs massively. See bug #575818. + rm -rv extensions/ tools/ || die + find \( -name build.xml -o -name build.properties \) \ + -printf "removed %p\n" -delete || die + + if ! use ruby; then + rm -rv epub/ || die + fi +} + +# The makefile runs tests, not builds. +src_compile() { :; } + +src_test() { + emake check +} + +src_install() { + # The changelog is now zipped, and copied as the RELEASE-NOTES, so we + # don't need to install it + dodoc AUTHORS BUGS NEWS README RELEASE-NOTES.txt TODO + + insinto ${DOCBOOKDIR} + doins VERSION VERSION.xsl + + local i + for i in */; do + i=${i%/} + + for doc in ChangeLog README; do + if [[ -e ${i}/${doc} ]]; then + newdoc ${i}/${doc} ${doc}.${i} + rm ${i}/${doc} || die + fi + done + + 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 + newbin - ${cmd} <<-EOF + #!/usr/bin/env ruby + + load "${EPREFIX}${DOCBOOKDIR}/epub/bin/dbtoepub" + EOF + fi +} + +pkg_postinst() { + # See bug #816303 for rationale behind die + build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?" +} + +pkg_postrm() { + # See bug #816303 for rationale behind die + build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?" +}