mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
app-text/docbook-xsl-stylesheets: re-add package
This was removed by mistake in 243bd3d4dfdf90f8daf47aae1267cda09ae2a4dd Re-add the new version of it.
This commit is contained in:
parent
4cd7dbe3de
commit
4c9fd6419a
1
sdk_container/src/third_party/portage-stable/app-text/docbook-xsl-stylesheets/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/app-text/docbook-xsl-stylesheets/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST docbook-xsl-1.79.1.tar.bz2 21967928 SHA256 725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968 SHA512 83325cbaf1545da6b9b8b77f5f0e6fdece26e3c455164b300a1aa3d19e3bd29ae71fd563553a714a5394968d1a65684c6c7987c77524469358d18b8c227025c7 WHIRLPOOL 3bd03072aba15cda9e7a18cb6c1edfc91cdb706811fd07d5aa69df1ffd5a48394848079cf63c67360104f0c0ec89920268b49d358c62bf5f61d6030938be0a0f
|
@ -0,0 +1,95 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||||
|
|
||||||
|
inherit ruby-single
|
||||||
|
|
||||||
|
DOCBOOKDIR="/usr/share/sgml/${PN/-//}"
|
||||||
|
MY_PN="${PN%-stylesheets}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="XSL Stylesheets for Docbook"
|
||||||
|
HOMEPAGE="http://wiki.docbook.org/DocBookXslStylesheets"
|
||||||
|
SRC_URI="mirror://sourceforge/docbook/${MY_P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="ruby"
|
||||||
|
|
||||||
|
RDEPEND=">=app-text/build-docbook-catalog-1.1
|
||||||
|
ruby? ( ${RUBY_DEPS} )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
# Makefile is broken since 1.76.0
|
||||||
|
RESTRICT=test
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# 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%/}
|
||||||
|
|
||||||
|
cd "${S}"/${i}
|
||||||
|
for doc in ChangeLog README; do
|
||||||
|
if [ -e "$doc" ]; then
|
||||||
|
mv ${doc} ${doc}.${i}
|
||||||
|
dodoc ${doc}.${i}
|
||||||
|
rm ${doc}.${i}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
doins -r "${S}"/${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 - > "${D}"/usr/bin/${cmd} <<EOF
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
load "${DOCBOOKDIR}/epub/bin/dbtoepub"
|
||||||
|
EOF
|
||||||
|
fperms 0755 /usr/bin/${cmd}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
build-docbook-catalog
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
build-docbook-catalog
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||||
|
|
||||||
|
inherit ruby-single
|
||||||
|
|
||||||
|
DOCBOOKDIR="/usr/share/sgml/${PN/-//}"
|
||||||
|
MY_PN="${PN%-stylesheets}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="XSL Stylesheets for Docbook"
|
||||||
|
HOMEPAGE="http://wiki.docbook.org/DocBookXslStylesheets"
|
||||||
|
SRC_URI="mirror://sourceforge/docbook/${MY_P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="ruby"
|
||||||
|
|
||||||
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
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%/}
|
||||||
|
|
||||||
|
cd "${S}"/${i}
|
||||||
|
for doc in ChangeLog README; do
|
||||||
|
if [ -e "$doc" ]; then
|
||||||
|
mv ${doc} ${doc}.${i}
|
||||||
|
dodoc ${doc}.${i}
|
||||||
|
rm ${doc}.${i}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
doins -r "${S}"/${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 - > "${D}"/usr/bin/${cmd} <<EOF
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
load "${DOCBOOKDIR}/epub/bin/dbtoepub"
|
||||||
|
EOF
|
||||||
|
fperms 0755 /usr/bin/${cmd}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
build-docbook-catalog
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
build-docbook-catalog
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
Description: use EXSLT "replace" function when available
|
||||||
|
A recursive implementation of string.subst is problematic,
|
||||||
|
long strings with many matches will cause stack overflows.
|
||||||
|
Author: Peter De Wachter <pdewacht@gmail.com>
|
||||||
|
Bug-Debian: https://bugs.debian.org/750593
|
||||||
|
|
||||||
|
--- a/lib/lib.xsl
|
||||||
|
+++ b/lib/lib.xsl
|
||||||
|
@@ -10,7 +10,10 @@
|
||||||
|
This module implements DTD-independent functions
|
||||||
|
|
||||||
|
******************************************************************** -->
|
||||||
|
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||||
|
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
+ xmlns:str="http://exslt.org/strings"
|
||||||
|
+ exclude-result-prefixes="str"
|
||||||
|
+ version="1.0">
|
||||||
|
|
||||||
|
<xsl:template name="dot.count">
|
||||||
|
<!-- Returns the number of "." characters in a string -->
|
||||||
|
@@ -56,6 +59,9 @@
|
||||||
|
<xsl:param name="replacement"/>
|
||||||
|
|
||||||
|
<xsl:choose>
|
||||||
|
+ <xsl:when test="function-available('str:replace')">
|
||||||
|
+ <xsl:value-of select="str:replace($string, string($target), string($replacement))"/>
|
||||||
|
+ </xsl:when>
|
||||||
|
<xsl:when test="contains($string, $target)">
|
||||||
|
<xsl:variable name="rest">
|
||||||
|
<xsl:call-template name="string.subst">
|
14
sdk_container/src/third_party/portage-stable/app-text/docbook-xsl-stylesheets/metadata.xml
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/app-text/docbook-xsl-stylesheets/metadata.xml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<!-- maintainer-needed -->
|
||||||
|
<use>
|
||||||
|
<flag name="ruby">
|
||||||
|
Install the Ruby-based dbtoepub script; requires an interpreter
|
||||||
|
compatible with <pkg>app-eselect/eselect-ruby</pkg>.
|
||||||
|
</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="sourceforge">docbook</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,13 @@
|
|||||||
|
DEFINED_PHASES=compile install postinst postrm prepare test
|
||||||
|
DESCRIPTION=XSL Stylesheets for Docbook
|
||||||
|
EAPI=5
|
||||||
|
HOMEPAGE=http://wiki.docbook.org/DocBookXslStylesheets
|
||||||
|
IUSE=ruby
|
||||||
|
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||||
|
LICENSE=BSD
|
||||||
|
RDEPEND=>=app-text/build-docbook-catalog-1.1 ruby? ( || ( dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.3 ) virtual/rubygems )
|
||||||
|
RESTRICT=test
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=mirror://sourceforge/docbook/docbook-xsl-1.79.1.tar.bz2
|
||||||
|
_eclasses_=ruby-single af6ea0a8fe4c4faf733f4dbafae9e233 ruby-utils 453e0fe0dd06baac93b584c91528cc62
|
||||||
|
_md5_=8d41a94c1ac9dec1814564ee70dba3e6
|
@ -0,0 +1,13 @@
|
|||||||
|
DEFINED_PHASES=compile install postinst postrm prepare test
|
||||||
|
DESCRIPTION=XSL Stylesheets for Docbook
|
||||||
|
EAPI=6
|
||||||
|
HOMEPAGE=http://wiki.docbook.org/DocBookXslStylesheets
|
||||||
|
IUSE=ruby
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||||
|
LICENSE=BSD
|
||||||
|
RDEPEND=>=app-text/build-docbook-catalog-1.1 ruby? ( || ( dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.3 ) virtual/rubygems )
|
||||||
|
RESTRICT=test
|
||||||
|
SLOT=0
|
||||||
|
SRC_URI=mirror://sourceforge/docbook/docbook-xsl-1.79.1.tar.bz2
|
||||||
|
_eclasses_=ruby-single af6ea0a8fe4c4faf733f4dbafae9e233 ruby-utils 453e0fe0dd06baac93b584c91528cc62
|
||||||
|
_md5_=6c40eedb399b7270c0020c5e3d9310ff
|
Loading…
Reference in New Issue
Block a user