From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- www-client/surf/surf-9999.ebuild | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 www-client/surf/surf-9999.ebuild (limited to 'www-client/surf/surf-9999.ebuild') diff --git a/www-client/surf/surf-9999.ebuild b/www-client/surf/surf-9999.ebuild new file mode 100644 index 000000000000..c21a83052259 --- /dev/null +++ b/www-client/surf/surf-9999.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit git-r3 savedconfig toolchain-funcs + +DESCRIPTION="a simple web browser based on WebKit/GTK+" +HOMEPAGE="https://surf.suckless.org/" +EGIT_REPO_URI="https://git.suckless.org/surf" +EGIT_BRANCH="surf-webkit2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" + +COMMON_DEPEND=" + app-crypt/gcr[gtk] + dev-libs/glib:2 + net-libs/libsoup + net-libs/webkit-gtk:4 + x11-libs/gtk+:3 + x11-libs/libX11 +" +DEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig +" +RDEPEND=" + !sci-chemistry/surf + ${COMMON_DEPEND} + x11-apps/xprop + x11-misc/dmenu + !savedconfig? ( + net-misc/curl + x11-terms/st + ) +" +PATCHES=( + "${FILESDIR}"/${PN}-9999-gentoo.patch +) + +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() { + default + + restore_config config.h + + tc-export CC PKG_CONFIG +} + +src_install() { + default + + save_config config.h +} -- cgit v1.2.3