mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
app-text/docbook-xsl-stylesheets: Sync with gentoo
It's from gentoo commit bad0bc11d42710957c6d6786a9db381308e55c4b.
This commit is contained in:
parent
00ebd266b5
commit
517dc824cf
@ -1,9 +1,8 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=6
|
EAPI=6
|
||||||
|
USE_RUBY="ruby25 ruby26 ruby27"
|
||||||
USE_RUBY="ruby22 ruby23 ruby24 ruby25"
|
|
||||||
|
|
||||||
inherit ruby-single
|
inherit ruby-single
|
||||||
|
|
||||||
@ -17,11 +16,13 @@ SRC_URI="mirror://sourceforge/docbook/${MY_P}.tar.bz2"
|
|||||||
|
|
||||||
LICENSE="BSD"
|
LICENSE="BSD"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-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"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~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"
|
IUSE="ruby"
|
||||||
|
|
||||||
RDEPEND=">=app-text/build-docbook-catalog-1.1
|
RDEPEND="
|
||||||
ruby? ( ${RUBY_DEPS} )"
|
>=app-text/build-docbook-catalog-1.1
|
||||||
|
ruby? ( ${RUBY_DEPS} )
|
||||||
|
"
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
@ -42,7 +43,7 @@ src_prepare() {
|
|||||||
-printf "removed %p\n" -delete || die
|
-printf "removed %p\n" -delete || die
|
||||||
|
|
||||||
if ! use ruby; then
|
if ! use ruby; then
|
||||||
rm -rv epub/ || die
|
rm -rv epub/ || die
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,19 +84,21 @@ src_install() {
|
|||||||
# we can't use a symlink or it'll look for the library in the
|
# we can't use a symlink or it'll look for the library in the
|
||||||
# wrong path.
|
# wrong path.
|
||||||
dodir /usr/bin
|
dodir /usr/bin
|
||||||
cat - > "${D}"/usr/bin/${cmd} <<EOF
|
cat - > "${ED%/}"/usr/bin/${cmd} <<EOF
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
load "${DOCBOOKDIR}/epub/bin/dbtoepub"
|
load "${EPREFIX}${DOCBOOKDIR}/epub/bin/dbtoepub"
|
||||||
EOF
|
EOF
|
||||||
fperms 0755 /usr/bin/${cmd}
|
fperms 0755 /usr/bin/${cmd}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
build-docbook-catalog
|
# See bug #816303 for rationale behind die
|
||||||
|
build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm() {
|
pkg_postrm() {
|
||||||
build-docbook-catalog
|
# See bug #816303 for rationale behind die
|
||||||
|
build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<!-- maintainer-needed -->
|
<!-- maintainer-needed -->
|
||||||
<use>
|
<use>
|
||||||
|
Loading…
Reference in New Issue
Block a user