blob: aaa83b7c55138bfc1e1fc3e163a5fac6096ac04f (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/htmldoc/htmldoc-1.8.20-r1.ebuild,v 1.11 2006/04/01 14:27:53 agriffis Exp $
inherit eutils
DESCRIPTION="Convert HTML pages into a PDF document"
HOMEPAGE="http://www.easysw.com/htmldoc/"
SRC_URI="ftp://ftp.easysw.com/pub/htmldoc/1.8.20/${P}-1-source.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc ppc"
IUSE=""
DEPEND=">=dev-libs/openssl-0.9.6e
>=x11-libs/fltk-1.0.11"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/fonts.diff
## fix path for online-help:
sed -i -e "s@^#define DOCUMENTATION \"\$prefix/share/doc/htmldoc\"@#define DOCUMENTATION \"\$prefix/share/doc/${PF}/html\"@" \
configure
}
src_compile() {
econf \
--with-x \
--with-gui \
--with-openssl-libs=/usr/lib \
--with-openssl-includes=/usr/include/openssl || die "econf failed"
# Add missing -lfltk_images to LIBS
mv Makedefs Makedefs.orig
sed -e 's/-lfltk /-lfltk -lfltk_images /g' \
Makedefs.orig > Makedefs || die "failed to detect -lfltk"
make || die
}
src_install() {
einstall || die
# 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
}
|