1 |
commit: 3ebf0b292bf590d5b7843d2044738854c9278a29 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 5 16:42:26 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 5 16:42:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ebf0b29 |
7 |
|
8 |
app-text/docbook-xsl-stylesheets: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7 |
11 |
|
12 |
.../docbook-xsl-stylesheets-1.79.1-r1.ebuild | 95 ---------------------- |
13 |
1 file changed, 95 deletions(-) |
14 |
|
15 |
diff --git a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r1.ebuild b/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index f31e0f944d4..00000000000 |
18 |
--- a/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.79.1-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,95 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=5 |
25 |
- |
26 |
-USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
27 |
- |
28 |
-inherit ruby-single |
29 |
- |
30 |
-DOCBOOKDIR="/usr/share/sgml/${PN/-//}" |
31 |
-MY_PN="${PN%-stylesheets}" |
32 |
-MY_P="${MY_PN}-${PV}" |
33 |
- |
34 |
-DESCRIPTION="XSL Stylesheets for Docbook" |
35 |
-HOMEPAGE="http://wiki.docbook.org/DocBookXslStylesheets" |
36 |
-SRC_URI="mirror://sourceforge/docbook/${MY_P}.tar.bz2" |
37 |
- |
38 |
-LICENSE="BSD" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-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" |
41 |
-IUSE="ruby" |
42 |
- |
43 |
-RDEPEND=">=app-text/build-docbook-catalog-1.1 |
44 |
- ruby? ( ${RUBY_DEPS} )" |
45 |
- |
46 |
-S="${WORKDIR}/${MY_P}" |
47 |
- |
48 |
-# Makefile is broken since 1.76.0 |
49 |
-RESTRICT=test |
50 |
- |
51 |
-src_prepare() { |
52 |
- # Delete the unnecessary Java-related stuff and other tools as they |
53 |
- # bloat the stage3 tarballs massively. See bug #575818. |
54 |
- rm -rv extensions/ tools/ || die |
55 |
- find \( -name build.xml -o -name build.properties \) \ |
56 |
- -printf "removed %p\n" -delete || die |
57 |
- |
58 |
- if ! use ruby; then |
59 |
- rm -rv epub/ || die |
60 |
- fi |
61 |
-} |
62 |
- |
63 |
-# The makefile runs tests, not builds. |
64 |
-src_compile() { :; } |
65 |
- |
66 |
-src_test() { |
67 |
- emake check |
68 |
-} |
69 |
- |
70 |
-src_install() { |
71 |
- # The changelog is now zipped, and copied as the RELEASE-NOTES, so we |
72 |
- # don't need to install it |
73 |
- dodoc AUTHORS BUGS NEWS README RELEASE-NOTES.txt TODO |
74 |
- |
75 |
- insinto ${DOCBOOKDIR} |
76 |
- doins VERSION VERSION.xsl |
77 |
- |
78 |
- local i |
79 |
- for i in */; do |
80 |
- i=${i%/} |
81 |
- |
82 |
- cd "${S}"/${i} |
83 |
- for doc in ChangeLog README; do |
84 |
- if [ -e "$doc" ]; then |
85 |
- mv ${doc} ${doc}.${i} |
86 |
- dodoc ${doc}.${i} |
87 |
- rm ${doc}.${i} |
88 |
- fi |
89 |
- done |
90 |
- |
91 |
- doins -r "${S}"/${i} |
92 |
- done |
93 |
- |
94 |
- if use ruby; then |
95 |
- local cmd="dbtoepub${MY_PN#docbook-xsl}" |
96 |
- |
97 |
- # we can't use a symlink or it'll look for the library in the |
98 |
- # wrong path. |
99 |
- dodir /usr/bin |
100 |
- cat - > "${D}"/usr/bin/${cmd} <<EOF |
101 |
-#!/usr/bin/env ruby |
102 |
- |
103 |
-load "${DOCBOOKDIR}/epub/bin/dbtoepub" |
104 |
-EOF |
105 |
- fperms 0755 /usr/bin/${cmd} |
106 |
- fi |
107 |
-} |
108 |
- |
109 |
-pkg_postinst() { |
110 |
- build-docbook-catalog |
111 |
-} |
112 |
- |
113 |
-pkg_postrm() { |
114 |
- build-docbook-catalog |
115 |
-} |