diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2013-09-30 23:43:03 +0000 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2013-09-30 23:43:03 +0000 |
commit | 57cd054ce3e1dc58b3872cbde1d3ae2bbd5e7e19 (patch) | |
tree | 47a1955fb1401c40042ff646c1a156fae4a62b1c /app-text/docbook-xsl-stylesheets | |
parent | Drop old (diff) | |
download | gentoo-2-57cd054ce3e1dc58b3872cbde1d3ae2bbd5e7e19.tar.gz gentoo-2-57cd054ce3e1dc58b3872cbde1d3ae2bbd5e7e19.tar.bz2 gentoo-2-57cd054ce3e1dc58b3872cbde1d3ae2bbd5e7e19.zip |
Add a slotted ruby rdepend
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'app-text/docbook-xsl-stylesheets')
-rw-r--r-- | app-text/docbook-xsl-stylesheets/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.78.0-r1.ebuild | 81 |
2 files changed, 88 insertions, 1 deletions
diff --git a/app-text/docbook-xsl-stylesheets/ChangeLog b/app-text/docbook-xsl-stylesheets/ChangeLog index 37eab45b057c..ba0a278822a7 100644 --- a/app-text/docbook-xsl-stylesheets/ChangeLog +++ b/app-text/docbook-xsl-stylesheets/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/docbook-xsl-stylesheets # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xsl-stylesheets/ChangeLog,v 1.137 2013/07/21 10:01:04 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xsl-stylesheets/ChangeLog,v 1.138 2013/09/30 23:43:03 mrueg Exp $ + +*docbook-xsl-stylesheets-1.78.0-r1 (30 Sep 2013) + + 30 Sep 2013; Manuel Rüger <mrueg@gentoo.org> + +docbook-xsl-stylesheets-1.78.0-r1.ebuild: + Add a slotted ruby rdepend 21 Jul 2013; Pacho Ramos <pacho@gentoo.org> metadata.xml: Cleanup due http://gentoo.2317880.n4.nabble.com/sgml-herd-has-no-maintainers- diff --git a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.78.0-r1.ebuild b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.78.0-r1.ebuild new file mode 100644 index 000000000000..d880e7b1a2f4 --- /dev/null +++ b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.78.0-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.78.0-r1.ebuild,v 1.1 2013/09/30 23:43:03 mrueg Exp $ + +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 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~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? ( || ( dev-lang/ruby:1.9 dev-lang/ruby:2.0 ) )" +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 +} |