2017-02-13 20:36:26 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2013-09-13 00:23:35 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2017-02-13 20:36:26 +03:00
|
|
|
EAPI=6
|
|
|
|
inherit git-r3 savedconfig toolchain-funcs
|
2013-09-13 00:23:35 +04:00
|
|
|
|
|
|
|
DESCRIPTION="a simple web browser based on WebKit/GTK+"
|
2017-08-31 23:48:47 +03:00
|
|
|
HOMEPAGE="https://surf.suckless.org/"
|
2017-09-11 11:37:45 +03:00
|
|
|
EGIT_REPO_URI="https://git.suckless.org/surf"
|
2017-07-23 01:18:30 +03:00
|
|
|
EGIT_BRANCH="surf-webkit2"
|
2013-09-13 00:23:35 +04:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
|
|
|
|
2013-10-07 03:44:03 +04:00
|
|
|
COMMON_DEPEND="
|
2017-09-13 12:19:40 +03:00
|
|
|
app-crypt/gcr[gtk]
|
2015-12-28 23:57:45 +03:00
|
|
|
dev-libs/glib:2
|
2013-09-13 00:23:35 +04:00
|
|
|
net-libs/libsoup
|
2017-07-23 01:18:30 +03:00
|
|
|
net-libs/webkit-gtk:4
|
2017-03-29 12:15:17 +03:00
|
|
|
x11-libs/gtk+:3
|
2013-09-13 00:23:35 +04:00
|
|
|
x11-libs/libX11
|
|
|
|
"
|
2013-10-07 03:44:03 +04:00
|
|
|
DEPEND="
|
|
|
|
${COMMON_DEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
"
|
2013-09-13 00:23:35 +04:00
|
|
|
RDEPEND="
|
|
|
|
!sci-chemistry/surf
|
2013-10-07 03:44:03 +04:00
|
|
|
${COMMON_DEPEND}
|
2013-09-13 00:23:35 +04:00
|
|
|
x11-apps/xprop
|
|
|
|
x11-misc/dmenu
|
2014-09-17 16:17:05 +04:00
|
|
|
!savedconfig? (
|
|
|
|
net-misc/curl
|
|
|
|
x11-terms/st
|
|
|
|
)
|
2013-09-13 00:23:35 +04:00
|
|
|
"
|
2017-02-13 20:36:26 +03:00
|
|
|
PATCHES=(
|
2017-07-23 01:18:30 +03:00
|
|
|
"${FILESDIR}"/${PN}-9999-gentoo.patch
|
2017-02-13 20:36:26 +03:00
|
|
|
)
|
2013-09-13 00:23:35 +04:00
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
if ! use savedconfig; then
|
|
|
|
elog "The default config.h assumes you have"
|
|
|
|
elog " net-misc/curl"
|
|
|
|
elog " x11-terms/st"
|
|
|
|
elog "installed to support the download function."
|
|
|
|
elog "Without those, downloads will fail (gracefully)."
|
|
|
|
elog "You can fix this by:"
|
|
|
|
elog "1) Installing these packages, or"
|
|
|
|
elog "2) Setting USE=savedconfig and changing config.h accordingly."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
2017-02-13 20:36:26 +03:00
|
|
|
default
|
|
|
|
|
2013-09-13 00:23:35 +04:00
|
|
|
restore_config config.h
|
2017-02-13 20:36:26 +03:00
|
|
|
|
2013-10-07 03:44:03 +04:00
|
|
|
tc-export CC PKG_CONFIG
|
2013-09-13 00:23:35 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2013-10-07 03:44:03 +04:00
|
|
|
default
|
2017-02-13 20:36:26 +03:00
|
|
|
|
2013-09-13 00:23:35 +04:00
|
|
|
save_config config.h
|
|
|
|
}
|