summaryrefslogtreecommitdiff
path: root/app-text/docbook-xsl-ns-stylesheets
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/docbook-xsl-ns-stylesheets
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/docbook-xsl-ns-stylesheets')
-rw-r--r--app-text/docbook-xsl-ns-stylesheets/Manifest5
-rw-r--r--app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.78.0.ebuild80
-rw-r--r--app-text/docbook-xsl-ns-stylesheets/metadata.xml13
3 files changed, 98 insertions, 0 deletions
diff --git a/app-text/docbook-xsl-ns-stylesheets/Manifest b/app-text/docbook-xsl-ns-stylesheets/Manifest
new file mode 100644
index 000000000000..1e7646bf0d73
--- /dev/null
+++ b/app-text/docbook-xsl-ns-stylesheets/Manifest
@@ -0,0 +1,5 @@
+DIST docbook-xsl-ns-1.78.0.tar.bz2 4992293 SHA256 255f67ff33c879e461d7a7550be80477d1bd0b0c3406fa50e9b4037eeb8c598e SHA512 f3b9b52a4ba5670c17086cdf64674080ef82a9226f085887c23c53d2d102611d690895c71d14186cd84a25c7735b05d6c55207f4b2b9084d65889aaac7993cf3 WHIRLPOOL d0f875baddea8317eaf6b5a4d1d0e9b3e4a380fada6414a310a88c3a9ea8fc2f502c249a1862e100138030409f1fa0052514b905ba56fa084c3798d78d0a0396
+EBUILD docbook-xsl-ns-stylesheets-1.78.0.ebuild 1675 SHA256 29684a26b5a3dd7d8f429026ed712fa990fd40d8da8f8df13ce4c2b38a1da525 SHA512 a9287ad0ba9e864e761e30c254de6d2c07b08698cb5f8d52fce518fc55a9d59e23f29089c4595be9e479ec722c022a07d3ade94db31305651a1a1f4cae1436fb WHIRLPOOL c6a6ede499bba80bbedf1b17c2013402b8dcf9e03201c4cc2da74d1d34d7e5f9143772b1926ff939129cc0d9f98c901decef20744b82f92bc3e74fce839c8a91
+MISC ChangeLog 2355 SHA256 c5ec3fd1af3fa5c3332d29850cbb927ef510d70c172bbe0eaa61abf712cc1b0e SHA512 dd02e87175c6586875081eef77ff536a6e481b0f3618ed141713bb7e87e9ca3b3ee7d0b7d23e418a0f4038677391e51be79803531ff45570048fe4334450cb74 WHIRLPOOL 96a31928b4e677e3c30f46cef3b198d1afd1da7769a42135249d80c77c189a39ba9c3bc6b5cec1efff4302298e5b2dbaca6aa5eaceb9f183a7b45c9e190cc801
+MISC ChangeLog-2015 8544 SHA256 3df38476f1738954c0ddacdbce973b455c26f136a901f12876e2ded06f33917f SHA512 5ac1d93706d77443128ea46c68351c810736265a04206d63c393890eae977394422bed7b12f3da4e238d356b70231adb40361ab0aab467d5e29b0b95ac31c8cb WHIRLPOOL e05e25724e70a8e2a79933d42265bb5313deb1fbf39b22a9213aa432c4cae55fb45bc0cb3196d67ba2b112ffadba2941b3e25b2851e93cfe124e9026e8d28ddb
+MISC metadata.xml 393 SHA256 3d09f9621aa1f56dc9871233f8aa74f25c9fad076855162a204721d68f8c1fc4 SHA512 914f819cb6e1c4c3b556781e53f99209ad8b5f054be006965611bd27dce71bd0de5af8a2aa6f883bf044bfdc9a1fed63b54aaf5231f3951271803d4b9f005df3 WHIRLPOOL 301b44dce5fd20c924e4978664ab252df33dd041322ff6e73e94c7729770cd24b1c5d766c7edc294f76dfc19496d8b6de518a65bd130b98eb7031de5729f2979
diff --git a/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.78.0.ebuild b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.78.0.ebuild
new file mode 100644
index 000000000000..0d4e7fd9e01c
--- /dev/null
+++ b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.78.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DOCBOOKDIR="/usr/share/sgml/${PN/-//}"
+MY_PN="${PN%-stylesheets}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="XSL Stylesheets for Docbook"
+HOMEPAGE="http://wiki.docbook.org/topic/DocBookXslStylesheets"
+SRC_URI="mirror://sourceforge/docbook/${MY_P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="ruby"
+
+RDEPEND=">=app-text/build-docbook-catalog-1.4
+ ruby? ( dev-lang/ruby )"
+DEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+# Makefile is broken since 1.76.0
+RESTRICT=test
+
+# 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 $(find . -maxdepth 1 -mindepth 1 -type d -exec basename {} \;); do
+ [[ "$i" == "epub" ]] && ! use ruby && continue
+
+ 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
+}
diff --git a/app-text/docbook-xsl-ns-stylesheets/metadata.xml b/app-text/docbook-xsl-ns-stylesheets/metadata.xml
new file mode 100644
index 000000000000..2994e8678f23
--- /dev/null
+++ b/app-text/docbook-xsl-ns-stylesheets/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <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>