/[gentoo-x86]/app-text/htmltidy/htmltidy-20090325-r1.ebuild
Gentoo

Contents of /app-text/htmltidy/htmltidy-20090325-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue May 29 17:01:06 2012 UTC (2 years, 6 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/htmltidy/htmltidy-20090325-r1.ebuild,v 1.3 2012/03/07 04:08:47 darkside Exp $
4
5 EAPI=4
6
7 MY_PN="tidy"
8 MY_P="${MY_PN}-${PV}"
9
10 inherit eutils autotools
11
12 DESCRIPTION="Tidy the layout and correct errors in HTML and XML documents"
13 HOMEPAGE="http://tidy.sourceforge.net/"
14 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2
15 mirror://gentoo/${MY_P}-doc.tar.bz2"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 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"
20 IUSE="debug doc static-libs"
21
22 DEPEND="doc? ( app-doc/doxygen )"
23 RDEPEND=""
24
25 S="${WORKDIR}"/${MY_P}
26
27 src_prepare() {
28 # Required to setup the source dist for autotools
29 einfo "Setting up autotools for source build"
30 cp -R ./build/gnuauto/* . || die "could not prepare autotools environment"
31
32 # Stop tidy from appending -O2 to our CFLAGS
33 epatch "${FILESDIR}"/htmltidy-5.10.26-strip-O2-flag.patch
34
35 # Define /etc/tidyrc for system wide config, bug 154834
36 epatch "${FILESDIR}"/htmltidy-20090325-tidyrc.patch
37
38 eautoreconf
39 }
40
41 src_compile() {
42 default
43
44 if use doc ; then
45 doxygen htmldoc/doxygen.cfg || die "error making apidocs"
46 fi
47 }
48
49 src_configure() {
50 econf \
51 $(use_enable debug) \
52 $(use_enable static-libs static)
53 }
54
55 src_install() {
56 default
57
58 find "${ED}" -name '*.la' -exec rm -f {} +
59
60 # Now the man page is provided as an xsl file, which
61 # we can't use until htmltidy is merged.
62 # I have generated the man page and quickref which is on
63 # the mirrors. (bug #132429)
64 doman "${WORKDIR}"/"${MY_P}"-doc/tidy.1
65
66 # Fix name before installing
67 mv "${WORKDIR}"/"${MY_P}"-doc/quickref-html \
68 "${WORKDIR}"/"${MY_P}"-doc/quickref.html
69
70 cd "${S}"/htmldoc
71 # Install basic html documentation
72 dohtml *.html *.css *.gif "${WORKDIR}"/"${MY_P}"-doc/quickref.html
73
74 # If use 'doc' is set, then we also want to install the
75 # api documentation
76 use doc && dohtml -r api
77 }

  ViewVC Help
Powered by ViewVC 1.1.20