summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-03-29 06:11:13 +0200
committerJeroen Roovers <jer@gentoo.org>2017-03-29 06:11:13 +0200
commit7bb150ecfd14b7e6404f4758e53fa8a453a87a17 (patch)
tree12c8ca758721391d22f63262122402e7209c297c /www-client/surf
parentnet-analyzer/fail2ban: Old. (diff)
downloadgentoo-7bb150ecfd14b7e6404f4758e53fa8a453a87a17.tar.gz
gentoo-7bb150ecfd14b7e6404f4758e53fa8a453a87a17.tar.bz2
gentoo-7bb150ecfd14b7e6404f4758e53fa8a453a87a17.zip
www-client/surf: Version bump (bug #584190).
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'www-client/surf')
-rw-r--r--www-client/surf/Manifest1
-rw-r--r--www-client/surf/files/surf-2.0-gentoo.patch85
-rw-r--r--www-client/surf/surf-2.0.ebuild75
3 files changed, 161 insertions, 0 deletions
diff --git a/www-client/surf/Manifest b/www-client/surf/Manifest
index 18ff0ada747c..71847fc85d17 100644
--- a/www-client/surf/Manifest
+++ b/www-client/surf/Manifest
@@ -1,2 +1,3 @@
DIST surf-0.6.tar.gz 14781 SHA256 fdc1ccfaee5c4f008eeb8fe5f9200d3ad71296e8d7af52bdd6a771f111866805 SHA512 f3550535351e37296280d33d229998e1f00aa605d0dab4a58944cf213721e823a1cfd9134b7bca2a4d61e265122a30d5dc917a290163ed8af2b24cd75d41a100 WHIRLPOOL 2a163d450b47b4964ce3686d76bf6e3a747984f0e86f84e2dccfa9d3e885bc26adf0100cdef48ae19d91f34a2d14d6c4950d2a7db7d333612e2b1fc48b077f99
DIST surf-0.7.tar.gz 18792 SHA256 95608546fb64d01c7a8153c356be0e284ebe120c3c596a94eb3f3ad47e1c494a SHA512 a6a0e172d99f8ce5a7eb63bd34ef3e55ae26059cc94148cf7c50ac665a5e64d90f4a6b1e71b73c1fa763dfaef9b50aaae79e924724f564b2ddf2b8aef4268ff6 WHIRLPOOL 6dbda75a102e108fb0d2910018b0b622189d3729326ba7ce69c4995c599f0d041bc5add771bdd27444752b6e627fcff6c546259e8605189f465e825578a9949b
+DIST surf-2.0.tar.gz 19056 SHA256 7de852bacd6169b74bcde909e7a4fa2785dc5a6cf0be770fa0ce3729d657f735 SHA512 8788aa56a03114172ad4517a9d52adff62c0cfbbeef38e84b45ee66a411cd92b0ab17ba5432654a277303f98332ab02873d4cbcb7a110139f9130bac5eb46e8d WHIRLPOOL 4f63c914813c6929c317b5405440c9cb8146d42f36bc50c81f853a44e9c56adbc69fbfd5bbd387135ee87b153c9a4a29bfe2cca68bd0e8b966c1512371a7a2d3
diff --git a/www-client/surf/files/surf-2.0-gentoo.patch b/www-client/surf/files/surf-2.0-gentoo.patch
new file mode 100644
index 000000000000..07aa6568f55c
--- /dev/null
+++ b/www-client/surf/files/surf-2.0-gentoo.patch
@@ -0,0 +1,85 @@
+--- a/config.mk
++++ b/config.mk
+@@ -4,28 +4,28 @@
+ # Customize below to fit your system
+
+ # paths
+-PREFIX = /usr/local
++PREFIX = /usr
+ MANPREFIX = ${PREFIX}/share/man
+ LIBPREFIX = ${PREFIX}/lib/surf
+
+-X11INC = /usr/X11R6/include
+-X11LIB = /usr/X11R6/lib
++X11INC = $(shell $(PKG_CONFIG) --cflags x11)
++X11LIB = $(shell $(PKG_CONFIG) --libs x11)
+
+-GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
+-GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
++GTKINC = $(shell $(PKG_CONFIG) --cflags gtk+-3.0 gthread-2.0 webkit2gtk-4.0)
++GTKLIB = $(shell $(PKG_CONFIG) --libs gtk+-3.0 gthread-2.0 webkit2gtk-4.0)
+
+ # includes and libs
+-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
+-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
++INCS = -I. -I/usr/include ${X11INC} ${GTKINC}
++LIBS = ${X11LIB} ${GTKLIB}
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
+-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+-LDFLAGS = -s ${LIBS}
++CFLAGS = -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
++LDFLAGS = ${LIBS}
+
+ # Solaris
+ #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++CC ?= cc
+--- a/Makefile
++++ b/Makefile
+@@ -15,18 +15,16 @@
+ @echo "CC = ${CC}"
+
+ .c.o:
+- @echo CC $<
+- @${CC} -c ${CFLAGS} $<
++ ${CC} -c ${CFLAGS} $<
+
+ ${OBJ}: config.h config.mk
+
+ config.h:
+ @echo creating $@ from config.def.h
+- @cp config.def.h $@
++ cp config.def.h $@
+
+ surf: ${OBJ}
+- @echo CC -o $@
+- @${CC} -o $@ surf.o ${LDFLAGS}
++ ${CC} -o $@ surf.o ${LDFLAGS}
+
+ clean:
+ @echo cleaning
+@@ -44,13 +42,13 @@
+
+ install: all
+ @echo installing executable file to ${DESTDIR}${PREFIX}/bin
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f surf ${DESTDIR}${PREFIX}/bin
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/surf
++ mkdir -p ${DESTDIR}${PREFIX}/bin
++ cp -f surf ${DESTDIR}${PREFIX}/bin
++ chmod 755 ${DESTDIR}${PREFIX}/bin/surf
+ @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @sed "s/VERSION/${VERSION}/g" < surf.1 > ${DESTDIR}${MANPREFIX}/man1/surf.1
+- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/surf.1
++ mkdir -p ${DESTDIR}${MANPREFIX}/man1
++ sed "s/VERSION/${VERSION}/g" < surf.1 > ${DESTDIR}${MANPREFIX}/man1/surf.1
++ chmod 644 ${DESTDIR}${MANPREFIX}/man1/surf.1
+
+ uninstall:
+ @echo removing executable file from ${DESTDIR}${PREFIX}/bin
diff --git a/www-client/surf/surf-2.0.ebuild b/www-client/surf/surf-2.0.ebuild
new file mode 100644
index 000000000000..870673e2ef4d
--- /dev/null
+++ b/www-client/surf/surf-2.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="a simple web browser based on WebKit/GTK+"
+HOMEPAGE="http://surf.suckless.org/"
+SRC_URI="
+ http://dl.suckless.org/${PN}/${P}.tar.gz
+ http://git.suckless.org/${PN}/snapshot/${P}.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+COMMON_DEPEND="
+ dev-libs/glib:2
+ net-libs/libsoup
+ net-libs/webkit-gtk:3
+ 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}-2.0-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
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 0.4.1-r1 ]]; then
+ ewarn "Please correct the permissions of your \$HOME/.surf/ directory"
+ ewarn "and its contents to no longer be world readable (see bug #404983)"
+ fi
+}