diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-07-03 14:14:33 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-07-03 14:14:33 +0000 |
commit | 7032e886b7ab6b86264c19a2b52f8a98c83096e0 (patch) | |
tree | c9419d67a66d2e8461f495964370846cc90776d2 /app-text/docbook-xsl-ns-stylesheets | |
parent | I will give it love to check elfutils' insanity (diff) | |
download | gentoo-2-7032e886b7ab6b86264c19a2b52f8a98c83096e0.tar.gz gentoo-2-7032e886b7ab6b86264c19a2b52f8a98c83096e0.tar.bz2 gentoo-2-7032e886b7ab6b86264c19a2b52f8a98c83096e0.zip |
Version bump for bug 423861.
(Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
Diffstat (limited to 'app-text/docbook-xsl-ns-stylesheets')
-rw-r--r-- | app-text/docbook-xsl-ns-stylesheets/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.1.ebuild | 80 |
2 files changed, 87 insertions, 2 deletions
diff --git a/app-text/docbook-xsl-ns-stylesheets/ChangeLog b/app-text/docbook-xsl-ns-stylesheets/ChangeLog index f9efde095e3f..b8977e9ac619 100644 --- a/app-text/docbook-xsl-ns-stylesheets/ChangeLog +++ b/app-text/docbook-xsl-ns-stylesheets/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/docbook-xsl-ns-stylesheets # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xsl-ns-stylesheets/ChangeLog,v 1.29 2012/05/23 04:16:21 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xsl-ns-stylesheets/ChangeLog,v 1.30 2012/07/03 14:14:33 floppym Exp $ + +*docbook-xsl-ns-stylesheets-1.77.1 (03 Jul 2012) + + 03 Jul 2012; Mike Gilbert <floppym@gentoo.org> + +docbook-xsl-ns-stylesheets-1.77.1.ebuild: + Version bump for bug 423861. *docbook-xsl-ns-stylesheets-1.77.0 (23 May 2012) @@ -142,4 +148,3 @@ 22 Sep 2008; Diego Pettenò <flameeyes@gentoo.org> +metadata.xml, +docbook-xsl-ns-stylesheets-1.74.0.ebuild: Initial import of XSL-NS stylesheets for use with DocBook 5. - diff --git a/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.1.ebuild b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.1.ebuild new file mode 100644 index 000000000000..2e4e3d8207f5 --- /dev/null +++ b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.1.ebuild,v 1.1 2012/07/03 14:14:33 floppym Exp $ + +EAPI=4 + +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 dev-lang/ruby-enterprise ) )" + +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 || die "test failed" +} + +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 + + 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 +} |