| 1 |
jer |
1.1 |
# Copyright 1999-2011 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/www-client/dillo/dillo-3.0.1.ebuild,v 1.5 2011/10/12 15:47:41 jer Exp $ |
| 4 |
|
|
|
| 5 |
|
|
EAPI="4" |
| 6 |
|
|
|
| 7 |
|
|
inherit eutils flag-o-matic multilib |
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Lean FLTK based web browser" |
| 10 |
|
|
HOMEPAGE="http://www.dillo.org/" |
| 11 |
|
|
SRC_URI="http://www.dillo.org/download/${P}.tar.bz2 |
| 12 |
|
|
mirror://gentoo/dillo.png" |
| 13 |
|
|
|
| 14 |
|
|
LICENSE="GPL-3" |
| 15 |
|
|
SLOT="0" |
| 16 |
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
| 17 |
|
|
IUSE="doc +gif ipv6 +jpeg +png ssl" |
| 18 |
|
|
|
| 19 |
|
|
RDEPEND="=x11-libs/fltk-1.3*[-cairo] |
| 20 |
|
|
sys-libs/zlib |
| 21 |
|
|
jpeg? ( virtual/jpeg ) |
| 22 |
|
|
png? ( media-libs/libpng ) |
| 23 |
|
|
ssl? ( dev-libs/openssl )" |
| 24 |
|
|
DEPEND="${RDEPEND} |
| 25 |
|
|
doc? ( app-doc/doxygen )" |
| 26 |
|
|
|
| 27 |
|
|
src_prepare() { |
| 28 |
|
|
epatch "${FILESDIR}"/dillo2-inbuf.patch |
| 29 |
|
|
} |
| 30 |
|
|
|
| 31 |
|
|
src_configure() { |
| 32 |
|
|
append-ldflags "-L/usr/$(get_libdir)/fltk" |
| 33 |
|
|
econf \ |
| 34 |
|
|
$(use_enable gif) \ |
| 35 |
|
|
$(use_enable ipv6) \ |
| 36 |
|
|
$(use_enable jpeg) \ |
| 37 |
|
|
$(use_enable png) \ |
| 38 |
|
|
$(use_enable ssl) |
| 39 |
|
|
} |
| 40 |
|
|
|
| 41 |
|
|
src_compile() { |
| 42 |
|
|
default |
| 43 |
|
|
if use doc ; then |
| 44 |
|
|
doxygen Doxyfile || die "doxygen failed" |
| 45 |
|
|
fi |
| 46 |
|
|
} |
| 47 |
|
|
|
| 48 |
|
|
src_install() { |
| 49 |
|
|
dodir /etc |
| 50 |
|
|
default |
| 51 |
|
|
|
| 52 |
|
|
if use doc; then |
| 53 |
|
|
dohtml html/* |
| 54 |
|
|
fi |
| 55 |
|
|
dodoc AUTHORS ChangeLog README NEWS |
| 56 |
|
|
docinto doc |
| 57 |
|
|
dodoc doc/*.txt doc/README |
| 58 |
|
|
|
| 59 |
|
|
doicon "${DISTDIR}"/dillo.png |
| 60 |
|
|
make_desktop_entry dillo Dillo dillo |
| 61 |
|
|
} |
| 62 |
|
|
|
| 63 |
|
|
pkg_postinst() { |
| 64 |
|
|
elog "Dillo has installed a default configuration into /etc/dillo/dillorc" |
| 65 |
|
|
elog "You can copy this to ~/.dillo/ and customize it" |
| 66 |
|
|
} |