/[gentoo-x86]/www-client/dillo/dillo-0.8.6.ebuild
Gentoo

Contents of /www-client/dillo/dillo-0.8.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Wed Jul 15 22:22:03 2009 UTC (10 years, 3 months ago) by yngwin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Removing vulnerable versions wrt bug 276432 now that 2.1.1 is stable on all arches
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/dillo/dillo-0.8.6.ebuild,v 1.13 2008/05/19 23:41:14 truedfx Exp $
4
5 inherit flag-o-matic eutils autotools
6
7 S2=${WORKDIR}/dillo-gentoo-extras-patch4
8 DILLO_I18N_P="${P}-i18n-misc-20060625"
9
10 DESCRIPTION="Lean GTK+-based web browser"
11 HOMEPAGE="http://www.dillo.org/"
12 SRC_URI="http://www.dillo.org/download/${P}.tar.bz2
13 mirror://gentoo/dillo-gentoo-extras-patch4.tar.bz2
14 http://teki.jpn.ph/pc/software/${DILLO_I18N_P}.diff.bz2"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
19 MISC_IUSE="nls truetype"
20 IUSE="${MISC_IUSE} ipv6 ssl"
21
22 DEPEND="=x11-libs/gtk+-1.2*
23 >=media-libs/jpeg-6b
24 >=sys-libs/zlib-1.1.3
25 >=media-libs/libpng-1.2.1
26 ssl? ( dev-libs/openssl )"
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31 epatch ../${DILLO_I18N_P}.diff
32 epatch "${FILESDIR}"/${PN}-build-fix.patch
33 epatch "${FILESDIR}"/${PN}-asneeded.patch
34 epatch "${FILESDIR}"/${PN}-ac_subst.patch
35 AT_M4DIR="${S}/m4" eautoreconf
36
37 if [ "${DILLO_ICONSET}" = "kde" ]
38 then
39 einfo "Using Konqueror style icon set"
40 cp "${S2}"/pixmaps.konq.h "${S}"/src/pixmaps.h
41 elif [ "${DILLO_ICONSET}" = "gnome" ]
42 then
43 einfo "Using Ximian style icon set"
44 cp "${S2}"/pixmaps.ximian.h "${S}"/src/pixmaps.h
45 elif [ "${DILLO_ICONSET}" = "mozilla" ]
46 then
47 einfo "Using Netscape style icon set"
48 cp "${S2}"/pixmaps.netscape.h "${S}"/src/pixmaps.h
49 elif [ "${DILLO_ICONSET}" = "cobalt" ]
50 then
51 einfo "Using Cobalt style icon set"
52 cp "${S2}"/pixmaps.cobalt.h "${S}"/src/pixmaps.h
53 elif [ "${DILLO_ICONSET}" = "bold" ]
54 then
55 einfo "Using bold style icon set"
56 cp "${S2}"/pixmaps.bold.h "${S}"/src/pixmaps.h
57 elif [ "${DILLO_ICONSET}" = "trans" ]
58 then
59 einfo "Using transparent style icon set"
60 cp "${S2}"/pixmaps.trans.h "${S}"/src/pixmaps.h
61 elif [ "${DILLO_ICONSET}" = "trad" ]
62 then
63 einfo "Using the traditional icon set"
64 cp "${S2}"/pixmaps.trad.h "${S}"/src/pixmaps.h
65 else
66 einfo "Using default Dillo icon set"
67 fi
68 }
69
70 src_compile() {
71 replace-cpu-flags k6 pentium
72 is-flag -O? || append-flags "-O2"
73
74 local myconf
75
76 # misc features
77 myconf="$(use_enable nls)
78 $(use_enable truetype anti-alias)
79 --disable-gtktest
80 --disable-dlgui
81 --enable-tabs
82 --enable-meta-refresh"
83
84 myconf="${myconf}
85 $(use_enable ipv6)
86 $(use_enable ssl)"
87
88 econf ${myconf}
89 emake -j1 || die "emake failed."
90 }
91
92 src_install() {
93 dodir /etc
94 dodir /usr/share/icons/${PN}
95 emake DESTDIR="${D}" install || die "install failed"
96
97 dodoc AUTHORS ChangeLog* README NEWS
98 docinto doc
99 dodoc doc/*.txt doc/README
100
101 cp ${S2}/icons/*.png "${D}"/usr/share/icons/${PN}
102 }
103
104 pkg_postinst() {
105 elog "This ebuild for dillo comes with different toolbar icons"
106 elog "If you want mozilla style icons then try"
107 elog " DILLO_ICONSET=\"mozilla\" emerge dillo"
108 elog
109 elog "If you prefer konqueror style icons then try"
110 elog " DILLO_ICONSET=\"kde\" emerge dillo"
111 elog
112 elog "If you prefer ximian gnome style icons then try"
113 elog " DILLO_ICONSET=\"gnome\" emerge dillo"
114 elog
115 elog "If you prefer cobalt style icons then try"
116 elog " DILLO_ICONSET=\"cobalt\" emerge dillo"
117 elog
118 elog "If you prefer bold style icons then try"
119 elog " DILLO_ICONSET=\"bold\" emerge dillo"
120 elog
121 elog "If you prefer transparent style icons then try"
122 elog " DILLO_ICONSET=\"trans\" emerge dillo"
123 elog
124 elog "If you prefer the traditional icons then try"
125 elog " DILLO_ICONSET=\"trad\" emerge dillo"
126 elog
127 elog "If the DILLO_ICONSET variable is not set, you will get the"
128 elog "default iconset"
129 elog
130 elog "To see what the icons look like, please point your browser to:"
131 elog "http://dillo.auriga.wearlab.de/Icons/"
132 elog
133 }

  ViewVC Help
Powered by ViewVC 1.1.20