summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-05-23 04:16:21 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-05-23 04:16:21 +0000
commitba040f6fb7f824e7e9585150fc5659f11cc576b6 (patch)
tree305dae5b975c6ff527fffe78d01194b26cc99674 /app-text/docbook-xsl-ns-stylesheets
parentMasking sys-block/megacli as it is unfetchable (diff)
downloadgentoo-2-ba040f6fb7f824e7e9585150fc5659f11cc576b6.tar.gz
gentoo-2-ba040f6fb7f824e7e9585150fc5659f11cc576b6.tar.bz2
gentoo-2-ba040f6fb7f824e7e9585150fc5659f11cc576b6.zip
Version bump; add a ruby USE flag to install dbtoepub script (or remove it).
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'app-text/docbook-xsl-ns-stylesheets')
-rw-r--r--app-text/docbook-xsl-ns-stylesheets/ChangeLog8
-rw-r--r--app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.0.ebuild80
-rw-r--r--app-text/docbook-xsl-ns-stylesheets/metadata.xml6
3 files changed, 93 insertions, 1 deletions
diff --git a/app-text/docbook-xsl-ns-stylesheets/ChangeLog b/app-text/docbook-xsl-ns-stylesheets/ChangeLog
index 9d97b6950397..f9efde095e3f 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.28 2012/02/02 16:15:44 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xsl-ns-stylesheets/ChangeLog,v 1.29 2012/05/23 04:16:21 flameeyes Exp $
+
+*docbook-xsl-ns-stylesheets-1.77.0 (23 May 2012)
+
+ 23 May 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ +docbook-xsl-ns-stylesheets-1.77.0.ebuild, metadata.xml:
+ Version bump; add a ruby USE flag to install dbtoepub script (or remove it).
02 Feb 2012; Samuli Suominen <ssuominen@gentoo.org>
docbook-xsl-ns-stylesheets-1.76.1.ebuild:
diff --git a/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.0.ebuild b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.0.ebuild
new file mode 100644
index 000000000000..558fca629d41
--- /dev/null
+++ b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.77.0.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.0.ebuild,v 1.1 2012/05/23 04:16:21 flameeyes 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
+}
diff --git a/app-text/docbook-xsl-ns-stylesheets/metadata.xml b/app-text/docbook-xsl-ns-stylesheets/metadata.xml
index 63ac5653603a..5505d8926c5b 100644
--- a/app-text/docbook-xsl-ns-stylesheets/metadata.xml
+++ b/app-text/docbook-xsl-ns-stylesheets/metadata.xml
@@ -4,4 +4,10 @@
<maintainer>
<email>flameeyes@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="ruby">
+ Install the Ruby-based dbtoepub script; requires an interpreter
+ compatible with <pkg>app-admin/eselect-ruby</pkg>.
+ </flag>
+ </use>
</pkgmetadata>