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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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-r1.ebuild,v 1.1 2008/10/28 14:56:08 matsuu Exp $
4
5 inherit flag-o-matic eutils autotools
6
7 S2="${WORKDIR}/dillo-gentoo-extras-patch4"
8 DILLO_I18N_P="${P}-i18n-misc-20070916"
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} fltk ipv6 ssl"
21 IUSE="${MISC_IUSE} ipv6 ssl"
22
23 DEPEND="=x11-libs/gtk+-1.2*
24 >=media-libs/jpeg-6b
25 >=sys-libs/zlib-1.1.3
26 >=media-libs/libpng-1.2.1
27 ssl? ( dev-libs/openssl )"
28 # fltk? ( >=x11-libs/fltk-2 )
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33 epatch ../${DILLO_I18N_P}.diff
34 epatch "${FILESDIR}"/${PN}-build-fix.patch
35 epatch "${FILESDIR}"/${PN}-asneeded.patch
36 epatch "${FILESDIR}"/${PN}-ac_subst.patch
37 epatch "${FILESDIR}"/${P}-gentoo.patch
38
39 AT_M4DIR="${S}/m4" eautoreconf
40
41 if [ "${DILLO_ICONSET}" = "kde" ]
42 then
43 einfo "Using Konqueror style icon set"
44 cp "${S2}"/pixmaps.konq.h "${S}"/src/pixmaps.h
45 elif [ "${DILLO_ICONSET}" = "gnome" ]
46 then
47 einfo "Using Ximian style icon set"
48 cp "${S2}"/pixmaps.ximian.h "${S}"/src/pixmaps.h
49 elif [ "${DILLO_ICONSET}" = "mozilla" ]
50 then
51 einfo "Using Netscape style icon set"
52 cp "${S2}"/pixmaps.netscape.h "${S}"/src/pixmaps.h
53 elif [ "${DILLO_ICONSET}" = "cobalt" ]
54 then
55 einfo "Using Cobalt style icon set"
56 cp "${S2}"/pixmaps.cobalt.h "${S}"/src/pixmaps.h
57 elif [ "${DILLO_ICONSET}" = "bold" ]
58 then
59 einfo "Using bold style icon set"
60 cp "${S2}"/pixmaps.bold.h "${S}"/src/pixmaps.h
61 elif [ "${DILLO_ICONSET}" = "trans" ]
62 then
63 einfo "Using transparent style icon set"
64 cp "${S2}"/pixmaps.trans.h "${S}"/src/pixmaps.h
65 elif [ "${DILLO_ICONSET}" = "trad" ]
66 then
67 einfo "Using the traditional icon set"
68 cp "${S2}"/pixmaps.trad.h "${S}"/src/pixmaps.h
69 else
70 einfo "Using default Dillo icon set"
71 fi
72 }
73
74 src_compile() {
75 replace-cpu-flags k6 pentium
76 is-flag -O? || append-flags "-O2"
77
78 local myconf
79
80 # misc features
81 myconf="$(use_enable nls)
82 $(use_enable truetype anti-alias)
83 --disable-gtktest
84 --disable-dlgui
85 --enable-tabs
86 --enable-meta-refresh"
87
88 myconf="${myconf}
89 $(use_enable ipv6)
90 $(use_enable ssl)"
91 # $(use_enable fltk dlgui)
92
93 econf ${myconf} || die
94 emake -j1 || die "emake failed."
95 }
96
97 src_install() {
98 dodir /etc
99 dodir /usr/share/icons/${PN}
100 emake -j1 DESTDIR="${D}" install || die "install failed"
101
102 dodoc AUTHORS ChangeLog* README NEWS
103 docinto doc
104 dodoc doc/*.txt doc/README
105
106 insinto /usr/share/icons/${PN}
107 doins "${S2}"/icons/*.png
108 }
109
110 pkg_postinst() {
111 elog "This ebuild for dillo comes with different toolbar icons"
112 elog "If you want mozilla style icons then try"
113 elog " DILLO_ICONSET=\"mozilla\" emerge dillo"
114 elog
115 elog "If you prefer konqueror style icons then try"
116 elog " DILLO_ICONSET=\"kde\" emerge dillo"
117 elog
118 elog "If you prefer ximian gnome style icons then try"
119 elog " DILLO_ICONSET=\"gnome\" emerge dillo"
120 elog
121 elog "If you prefer cobalt style icons then try"
122 elog " DILLO_ICONSET=\"cobalt\" emerge dillo"
123 elog
124 elog "If you prefer bold style icons then try"
125 elog " DILLO_ICONSET=\"bold\" emerge dillo"
126 elog
127 elog "If you prefer transparent style icons then try"
128 elog " DILLO_ICONSET=\"trans\" emerge dillo"
129 elog
130 elog "If you prefer the traditional icons then try"
131 elog " DILLO_ICONSET=\"trad\" emerge dillo"
132 elog
133 elog "If the DILLO_ICONSET variable is not set, you will get the"
134 elog "default iconset"
135 elog
136 elog "To see what the icons look like, please point your browser to:"
137 elog "http://dillo.auriga.wearlab.de/Icons/"
138 elog
139 }

  ViewVC Help
Powered by ViewVC 1.1.20