blob: 088cf61ccabfcffa4ff0e5e8ba025f344e4625b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/htmldoc/htmldoc-1.8.27-r1.ebuild,v 1.6 2009/08/25 13:40:32 armin76 Exp $
inherit eutils
DESCRIPTION="Convert HTML pages into a PDF document"
SRC_URI="mirror://easysw/htmldoc/${PV}/${P}-source.tar.bz2"
HOMEPAGE="http://www.easysw.com/htmldoc/"
IUSE="fltk ssl"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 ~hppa ia64 ppc ~ppc64 sparc x86"
DEPEND="media-libs/jpeg
media-libs/libpng
fltk? ( >=x11-libs/fltk-1.0.11 )
ssl? ( >=dev-libs/openssl-0.9.6e )"
RDEPEND="${DEPEND}"
# this needs to be figured out, since htmldoc looks for all three libs
# right now there's no virtual/ssl
#
# --enable-openssl use OpenSSL for SSL/TLS support, default=yes
# --enable-gnutls use GNU TLS for SSL/TLS support, default=yes
# --enable-cdsassl use CDSA for SSL/TLS support, default=yes
src_unpack() {
unpack ${A}
cd "${S}"
# make sure not to use the libs htmldoc ships with
mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
epatch "${FILESDIR}/${PN}-sscanf-overflows.patch"
sed -i "s:^#define DOCUMENTATION \"\$prefix/share/doc/htmldoc\":#define DOCUMENTATION \"\$prefix/share/doc/${PF}/html\":" \
configure
}
src_compile() {
local myconf="$(use_enable ssl openssl) $(use_with fltk gui)"
econf ${myconf} || die "econf failed"
# Add missing -lfltk_images to LIBS
use fltk && sed -i 's:-lfltk :-lfltk -lfltk_images :g' Makedefs
emake || die "make failed"
}
src_install() {
einstall bindir="${D}/usr/bin" || die "einstall failed"
# Minor cleanups
mv "${D}/usr/share/doc/htmldoc" "${D}/usr/share/doc/${PF}"
dodir /usr/share/doc/${PF}/html
mv "${D}"/usr/share/doc/${PF}/*.html "${D}/usr/share/doc/${PF}/html"
}
|