/[gentoo-x86]/www-client/surf/surf-9999.ebuild
Gentoo

Contents of /www-client/surf/surf-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Sep 16 19:23:43 2014 UTC (5 years, 1 month ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -2 lines
Add USE=-savedconfig dependencies (bug #522954 by Harley Amundsen).

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/surf/surf-9999.ebuild,v 1.2 2013/10/04 14:52:10 jer Exp $
4
5 EAPI=5
6 inherit eutils git-2 savedconfig toolchain-funcs
7
8 DESCRIPTION="a simple web browser based on WebKit/GTK+"
9 HOMEPAGE="http://surf.suckless.org/"
10 EGIT_REPO_URI="git://git.suckless.org/surf"
11
12 LICENSE="MIT"
13 SLOT="0"
14 KEYWORDS=""
15
16 COMMON_DEPEND="
17 dev-libs/glib
18 net-libs/libsoup
19 net-libs/webkit-gtk:2
20 x11-libs/gtk+:2
21 x11-libs/libX11
22 "
23 DEPEND="
24 ${COMMON_DEPEND}
25 virtual/pkgconfig
26 "
27 RDEPEND="
28 !sci-chemistry/surf
29 ${COMMON_DEPEND}
30 x11-apps/xprop
31 x11-misc/dmenu
32 !savedconfig? (
33 net-misc/curl
34 x11-terms/st
35 )
36 "
37
38 pkg_setup() {
39 if ! use savedconfig; then
40 elog "The default config.h assumes you have"
41 elog " net-misc/curl"
42 elog " x11-terms/st"
43 elog "installed to support the download function."
44 elog "Without those, downloads will fail (gracefully)."
45 elog "You can fix this by:"
46 elog "1) Installing these packages, or"
47 elog "2) Setting USE=savedconfig and changing config.h accordingly."
48 fi
49 }
50
51 src_prepare() {
52 epatch "${FILESDIR}"/${P}-gentoo.patch
53 epatch_user
54 restore_config config.h
55 tc-export CC PKG_CONFIG
56 }
57
58 src_install() {
59 default
60 save_config config.h
61 }

  ViewVC Help
Powered by ViewVC 1.1.20