/[gentoo-x86]/app-text/htmldoc/htmldoc-1.8.27-r3.ebuild
Gentoo

Contents of /app-text/htmldoc/htmldoc-1.8.27-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun May 6 11:40:05 2012 UTC (2 years, 2 months ago) by xarthisius
Branch: MAIN
Changes since 1.7: +2 -2 lines
ppc64 stable wrt #219373, drop old

(Portage version: 2.2.0_alpha100/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/htmldoc/htmldoc-1.8.27-r3.ebuild,v 1.7 2012/04/16 19:23:42 ranger Exp $
4
5 EAPI="4"
6 inherit eutils
7
8 DESCRIPTION="Convert HTML pages into a PDF document"
9 SRC_URI="mirror://easysw/htmldoc/${PV}/${P}-source.tar.bz2"
10 HOMEPAGE="http://www.easysw.com/htmldoc/"
11
12 IUSE="fltk ssl"
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86"
16
17 DEPEND=">=media-libs/libpng-1.4
18 virtual/jpeg
19 fltk? ( x11-libs/fltk:1 )
20 ssl? ( >=dev-libs/openssl-0.9.6e )"
21 RDEPEND="${DEPEND}"
22
23 # this needs to be figured out, since htmldoc looks for all three libs
24 # right now there's no virtual/ssl
25 #
26 # --enable-openssl use OpenSSL for SSL/TLS support, default=yes
27 # --enable-gnutls use GNU TLS for SSL/TLS support, default=yes
28 # --enable-cdsassl use CDSA for SSL/TLS support, default=yes
29
30 src_prepare() {
31 # make sure not to use the libs htmldoc ships with
32 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
33
34 epatch \
35 "${FILESDIR}"/${PN}-sscanf-overflows.patch \
36 "${FILESDIR}"/${PN}-fortify-fail.patch \
37 "${FILESDIR}"/${PN}-libpng15.patch \
38 "${FILESDIR}"/${P}-crash.patch
39
40 sed -i "s:^#define DOCUMENTATION \"\$prefix/share/doc/htmldoc\":#define DOCUMENTATION \"\$prefix/share/doc/${PF}/html\":" \
41 configure || die
42 }
43
44 src_configure() {
45 local myconf="$(use_enable ssl openssl) $(use_with fltk gui)"
46 econf ${myconf}
47 # Add missing -lfltk_images to LIBS
48 if use fltk; then
49 sed -i 's:-lfltk :-lfltk -lfltk_images :g' Makedefs || die
50 fi
51 }
52
53 src_install() {
54 einstall bindir="${D}/usr/bin"
55
56 # Minor cleanups
57 mv "${D}/usr/share/doc/htmldoc" "${D}/usr/share/doc/${PF}"
58 dodir /usr/share/doc/${PF}/html
59 mv "${D}"/usr/share/doc/${PF}/*.html "${D}/usr/share/doc/${PF}/html"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20