1 |
commit: a68c37cf61094b4554cafcb4354183b9e5cbdfeb |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 9 05:05:37 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 9 05:28:43 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a68c37cf |
7 |
|
8 |
app-text/htmltidy: cleanup |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-text/htmltidy/htmltidy-20090325-r1.ebuild | 77 --------------------------- |
13 |
1 file changed, 77 deletions(-) |
14 |
|
15 |
diff --git a/app-text/htmltidy/htmltidy-20090325-r1.ebuild b/app-text/htmltidy/htmltidy-20090325-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 8238749..0000000 |
18 |
--- a/app-text/htmltidy/htmltidy-20090325-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,77 +0,0 @@ |
21 |
-# Copyright 1999-2012 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=4 |
26 |
- |
27 |
-MY_PN="tidy" |
28 |
-MY_P="${MY_PN}-${PV}" |
29 |
- |
30 |
-inherit eutils autotools |
31 |
- |
32 |
-DESCRIPTION="Tidy the layout and correct errors in HTML and XML documents" |
33 |
-HOMEPAGE="http://tidy.sourceforge.net/" |
34 |
-SRC_URI="mirror://gentoo/${MY_P}.tar.bz2 |
35 |
- mirror://gentoo/${MY_P}-doc.tar.bz2" |
36 |
- |
37 |
-LICENSE="GPL-2" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
40 |
-IUSE="debug doc static-libs" |
41 |
- |
42 |
-DEPEND="doc? ( app-doc/doxygen )" |
43 |
-RDEPEND="" |
44 |
- |
45 |
-S="${WORKDIR}"/${MY_P} |
46 |
- |
47 |
-src_prepare() { |
48 |
- # Required to setup the source dist for autotools |
49 |
- einfo "Setting up autotools for source build" |
50 |
- cp -R ./build/gnuauto/* . || die "could not prepare autotools environment" |
51 |
- |
52 |
- # Stop tidy from appending -O2 to our CFLAGS |
53 |
- epatch "${FILESDIR}"/htmltidy-5.10.26-strip-O2-flag.patch |
54 |
- |
55 |
- # Define /etc/tidyrc for system wide config, bug 154834 |
56 |
- epatch "${FILESDIR}"/htmltidy-20090325-tidyrc.patch |
57 |
- |
58 |
- eautoreconf |
59 |
-} |
60 |
- |
61 |
-src_compile() { |
62 |
- default |
63 |
- |
64 |
- if use doc ; then |
65 |
- doxygen htmldoc/doxygen.cfg || die "error making apidocs" |
66 |
- fi |
67 |
-} |
68 |
- |
69 |
-src_configure() { |
70 |
- econf \ |
71 |
- $(use_enable debug) \ |
72 |
- $(use_enable static-libs static) |
73 |
-} |
74 |
- |
75 |
-src_install() { |
76 |
- default |
77 |
- |
78 |
- find "${ED}" -name '*.la' -exec rm -f {} + |
79 |
- |
80 |
- # Now the man page is provided as an xsl file, which |
81 |
- # we can't use until htmltidy is merged. |
82 |
- # I have generated the man page and quickref which is on |
83 |
- # the mirrors. (bug #132429) |
84 |
- doman "${WORKDIR}"/"${MY_P}"-doc/tidy.1 |
85 |
- |
86 |
- # Fix name before installing |
87 |
- mv "${WORKDIR}"/"${MY_P}"-doc/quickref-html \ |
88 |
- "${WORKDIR}"/"${MY_P}"-doc/quickref.html |
89 |
- |
90 |
- cd "${S}"/htmldoc |
91 |
- # Install basic html documentation |
92 |
- dohtml *.html *.css *.gif "${WORKDIR}"/"${MY_P}"-doc/quickref.html |
93 |
- |
94 |
- # If use 'doc' is set, then we also want to install the |
95 |
- # api documentation |
96 |
- use doc && dohtml -r api |
97 |
-} |