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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Thu Jan 17 12:39:58 2008 UTC (11 years, 9 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.3.19)

1 # Copyright 1999-2006 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.5-r1.ebuild,v 1.12 2006/10/01 21:24:07 exg Exp $
4
5 inherit flag-o-matic eutils
6
7 S2=${WORKDIR}/dillo-gentoo-extras-patch4
8 DILLO_I18N_P="${P}-i18n-misc-20050620"
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 RDEPEND="=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 DEPEND="sys-devel/autoconf
28 sys-devel/automake
29 ${RDEPEND}"
30
31 src_unpack() {
32 unpack ${A}
33 cd ${S}
34 epatch ../${DILLO_I18N_P}.diff || die
35 epatch "${FILESDIR}"/${PN}-build-fix.patch
36 sh autogen.sh || die
37
38 if [ "${DILLO_ICONSET}" = "kde" ]
39 then
40 einfo "Using Konqueror style icon set"
41 cp ${S2}/pixmaps.konq.h ${S}/src/pixmaps.h
42 elif [ "${DILLO_ICONSET}" = "gnome" ]
43 then
44 einfo "Using Ximian style icon set"
45 cp ${S2}/pixmaps.ximian.h ${S}/src/pixmaps.h
46 elif [ "${DILLO_ICONSET}" = "mozilla" ]
47 then
48 einfo "Using Netscape style icon set"
49 cp ${S2}/pixmaps.netscape.h ${S}/src/pixmaps.h
50 elif [ "${DILLO_ICONSET}" = "cobalt" ]
51 then
52 einfo "Using Cobalt style icon set"
53 cp ${S2}/pixmaps.cobalt.h ${S}/src/pixmaps.h
54 elif [ "${DILLO_ICONSET}" = "bold" ]
55 then
56 einfo "Using bold style icon set"
57 cp ${S2}/pixmaps.bold.h ${S}/src/pixmaps.h
58 elif [ "${DILLO_ICONSET}" = "trans" ]
59 then
60 einfo "Using transparent style icon set"
61 cp ${S2}/pixmaps.trans.h ${S}/src/pixmaps.h
62 elif [ "${DILLO_ICONSET}" = "trad" ]
63 then
64 einfo "Using the traditional icon set"
65 cp ${S2}/pixmaps.trad.h ${S}/src/pixmaps.h
66 else
67 einfo "Using default Dillo icon set"
68 fi
69 }
70
71 src_compile() {
72 replace-flags "-O2 -mcpu=k6" "-O2 -mcpu=pentium"
73 append-flags "-O"
74
75 local myconf
76
77 # misc features
78 myconf="$(use_enable nls)
79 $(use_enable truetype anti-alias)
80 --enable-tabs
81 --enable-meta-refresh"
82
83 myconf="${myconf}
84 $(use_enable ipv6)
85 $(use_enable ssl)"
86
87 econf ${myconf} || die
88 emake -j1 || die
89 }
90
91 src_install() {
92 dodir /etc /usr/share/icons/${PN}
93 make DESTDIR=${D} install || die
94
95 dosed /etc/dpidrc
96
97 dodoc AUTHORS COPYING ChangeLog* INSTALL 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 einfo "This ebuild for dillo comes with different toolbar icons"
106 einfo "If you want mozilla style icons then try"
107 einfo " DILLO_ICONSET=\"mozilla\" emerge dillo"
108 einfo
109 einfo "If you prefer konqueror style icons then try"
110 einfo " DILLO_ICONSET=\"kde\" emerge dillo"
111 einfo
112 einfo "If you prefer ximian gnome style icons then try"
113 einfo " DILLO_ICONSET=\"gnome\" emerge dillo"
114 einfo
115 einfo "If you prefer cobalt style icons then try"
116 einfo " DILLO_ICONSET=\"cobalt\" emerge dillo"
117 einfo
118 einfo "If you prefer bold style icons then try"
119 einfo " DILLO_ICONSET=\"bold\" emerge dillo"
120 einfo
121 einfo "If you prefer transparent style icons then try"
122 einfo " DILLO_ICONSET=\"trans\" emerge dillo"
123 einfo
124 einfo "If you prefer the traditional icons then try"
125 einfo " DILLO_ICONSET=\"trad\" emerge dillo"
126 einfo
127 einfo "If the DILLO_ICONSET variable is not set, you will get the"
128 einfo "default iconset"
129 einfo
130 einfo "To see what the icons look like, please point your browser to:"
131 einfo "http://dillo.auriga.wearlab.de/Icons/"
132 einfo
133 }

  ViewVC Help
Powered by ViewVC 1.1.20