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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 usata 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.2 # $Header: /var/cvsroot/gentoo-x86/www-client/dillo/dillo-0.8.5-r3.ebuild,v 1.1 2006/03/24 12:46:13 usata Exp $
4 usata 1.1
5     inherit flag-o-matic eutils
6    
7     S2=${WORKDIR}/dillo-gentoo-extras-patch4
8     DILLO_I18N_P="${P}-i18n-misc-20060104"
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     sh autogen.sh || die
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-flags "-O2 -mcpu=k6" "-O2 -mcpu=pentium"
72     append-flags "-O"
73    
74     local myconf
75    
76     # misc features
77     myconf="$(use_enable nls)
78     $(use_enable truetype anti-alias)
79     --enable-tabs
80     --enable-meta-refresh"
81    
82     myconf="${myconf}
83     $(use_enable ipv6)
84     $(use_enable ssl)"
85    
86     econf ${myconf} || die
87     emake -j1 || die
88     }
89    
90     src_install() {
91     dodir /etc /usr/share/icons/${PN}
92     make DESTDIR=${D} install || die
93    
94     dosed /etc/dpidrc
95    
96     dodoc AUTHORS COPYING ChangeLog* INSTALL README NEWS
97     docinto doc
98     dodoc doc/*.txt doc/README
99    
100     cp ${S2}/icons/*.png ${D}/usr/share/icons/${PN}
101     }
102    
103     pkg_postinst() {
104     einfo "This ebuild for dillo comes with different toolbar icons"
105     einfo "If you want mozilla style icons then try"
106     einfo " DILLO_ICONSET=\"mozilla\" emerge dillo"
107     einfo
108     einfo "If you prefer konqueror style icons then try"
109     einfo " DILLO_ICONSET=\"kde\" emerge dillo"
110     einfo
111     einfo "If you prefer ximian gnome style icons then try"
112     einfo " DILLO_ICONSET=\"gnome\" emerge dillo"
113     einfo
114     einfo "If you prefer cobalt style icons then try"
115     einfo " DILLO_ICONSET=\"cobalt\" emerge dillo"
116     einfo
117     einfo "If you prefer bold style icons then try"
118     einfo " DILLO_ICONSET=\"bold\" emerge dillo"
119     einfo
120     einfo "If you prefer transparent style icons then try"
121     einfo " DILLO_ICONSET=\"trans\" emerge dillo"
122     einfo
123     einfo "If you prefer the traditional icons then try"
124     einfo " DILLO_ICONSET=\"trad\" emerge dillo"
125     einfo
126     einfo "If the DILLO_ICONSET variable is not set, you will get the"
127     einfo "default iconset"
128     einfo
129     einfo "To see what the icons look like, please point your browser to:"
130     einfo "http://dillo.auriga.wearlab.de/Icons/"
131     einfo
132     }

  ViewVC Help
Powered by ViewVC 1.1.20