diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-10-04 14:21:10 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-10-04 14:21:10 +0000 |
commit | 0b47a2599c3e42796b2bec9682c5c868191ba889 (patch) | |
tree | d8d7e2ad04666a0462ddd6d816e014fbb81e69b5 /www-client | |
parent | Version bump. (diff) | |
download | gentoo-2-0b47a2599c3e42796b2bec9682c5c868191ba889.tar.gz gentoo-2-0b47a2599c3e42796b2bec9682c5c868191ba889.tar.bz2 gentoo-2-0b47a2599c3e42796b2bec9682c5c868191ba889.zip |
Fix underlinking (bug #486912). Roll a patch out of the sed scripts. Set PKG_CONFIG for cross-compile fun.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/surf/ChangeLog | 7 | ||||
-rw-r--r-- | www-client/surf/files/surf-0.6-gentoo.patch | 133 | ||||
-rw-r--r-- | www-client/surf/surf-0.6-r1.ebuild | 23 |
3 files changed, 149 insertions, 14 deletions
diff --git a/www-client/surf/ChangeLog b/www-client/surf/ChangeLog index 4e620d7385c6..f18c0ae11a4d 100644 --- a/www-client/surf/ChangeLog +++ b/www-client/surf/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/surf # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/surf/ChangeLog,v 1.29 2013/09/12 15:33:09 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/surf/ChangeLog,v 1.30 2013/10/04 14:21:09 jer Exp $ + + 04 Oct 2013; Jeroen Roovers <jer@gentoo.org> surf-0.6-r1.ebuild, + +files/surf-0.6-gentoo.patch: + Fix underlinking (bug #486912). Roll a patch out of the sed scripts. Set + PKG_CONFIG for cross-compile fun. *surf-9999 (12 Sep 2013) diff --git a/www-client/surf/files/surf-0.6-gentoo.patch b/www-client/surf/files/surf-0.6-gentoo.patch new file mode 100644 index 000000000000..7fc29489834d --- /dev/null +++ b/www-client/surf/files/surf-0.6-gentoo.patch @@ -0,0 +1,133 @@ +--- a/config.mk 2013-02-10 19:40:14.000000000 +0100 ++++ b/config.mk 2013-10-04 16:11:28.773331797 +0200 +@@ -4,27 +4,27 @@ + # Customize below to fit your system + + # paths +-PREFIX = /usr/local +-MANPREFIX = ${PREFIX}/share/man ++PREFIX = /usr ++MANPREFIX = $(PREFIX)/share/man + +-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+-2.0 webkit-1.0` +-GTKLIB = `pkg-config --libs gtk+-2.0 webkit-1.0` ++GTKINC = $(shell $(PKG_CONFIG) --cflags gtk+-2.0 webkit-1.0) ++GTKLIB = $(shell $(PKG_CONFIG) --libs gtk+-2.0 webkit-1.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) -lgthread-2.0 + + # flags +-CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE +-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +-LDFLAGS = -g ${LIBS} ++CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_BSD_SOURCE ++CFLAGS += -std=c99 -pedantic -Wall $(INCS) $(CPPFLAGS) ++LDFLAGS += $(LIBS) + + # Solaris +-#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" +-#LDFLAGS = ${LIBS} ++#CFLAGS = -fast $(INCS) -DVERSION=\"$(VERSION)\" ++#LDFLAGS = $(LIBS) + + # compiler and linker +-CC = cc ++CC ?= gcc +--- a/Makefile 2013-02-10 19:40:14.000000000 +0100 ++++ b/Makefile 2013-10-04 16:05:02.230549420 +0200 +@@ -4,58 +4,58 @@ + include config.mk + + SRC = surf.c +-OBJ = ${SRC:.c=.o} ++OBJ = $(SRC:.c=.o) + + all: options surf + + options: + @echo surf build options: +- @echo "CFLAGS = ${CFLAGS}" +- @echo "LDFLAGS = ${LDFLAGS}" +- @echo "CC = ${CC}" ++ @echo "CFLAGS = $(CFLAGS)" ++ @echo "LDFLAGS = $(LDFLAGS)" ++ @echo "CC = $(CC)" + + .c.o: + @echo CC $< +- @${CC} -c ${CFLAGS} $< ++ $(CC) -c $(CFLAGS) $< + +-${OBJ}: config.h config.mk ++$(OBJ): config.h config.mk + + config.h: + @echo creating $@ from config.def.h +- @cp config.def.h $@ ++ cp config.def.h $@ + +-surf: ${OBJ} ++surf: $(OBJ) + @echo CC -o $@ +- @${CC} -o $@ surf.o ${LDFLAGS} ++ $(CC) -o $@ surf.o $(LDFLAGS) + + clean: + @echo cleaning +- @rm -f surf ${OBJ} surf-${VERSION}.tar.gz ++ rm -f surf $(OBJ) surf-$(VERSION).tar.gz + + dist: clean + @echo creating dist tarball +- @mkdir -p surf-${VERSION} +- @cp -R LICENSE Makefile config.mk config.def.h README \ ++ mkdir -p surf-$(VERSION) ++ cp -R LICENSE Makefile config.mk config.def.h README \ + surf-open.sh arg.h TODO.md surf.png \ +- surf.1 ${SRC} surf-${VERSION} +- @tar -cf surf-${VERSION}.tar surf-${VERSION} +- @gzip surf-${VERSION}.tar +- @rm -rf surf-${VERSION} ++ surf.1 $(SRC) surf-$(VERSION) ++ tar -cf surf-$(VERSION).tar surf-$(VERSION) ++ gzip surf-$(VERSION).tar ++ rm -rf surf-$(VERSION) + + 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 +- @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 ++ @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 ++ @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 + + uninstall: +- @echo removing executable file from ${DESTDIR}${PREFIX}/bin +- @rm -f ${DESTDIR}${PREFIX}/bin/surf +- @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 +- @rm -f ${DESTDIR}${MANPREFIX}/man1/surf.1 ++ @echo removing executable file from $(DESTDIR)$(PREFIX)/bin ++ rm -f $(DESTDIR)$(PREFIX)/bin/surf ++ @echo removing manual page from $(DESTDIR)$(MANPREFIX)/man1 ++ rm -f $(DESTDIR)$(MANPREFIX)/man1/surf.1 + + .PHONY: all options clean dist install uninstall diff --git a/www-client/surf/surf-0.6-r1.ebuild b/www-client/surf/surf-0.6-r1.ebuild index d71c8fd01753..5f932b693e39 100644 --- a/www-client/surf/surf-0.6-r1.ebuild +++ b/www-client/surf/surf-0.6-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/surf/surf-0.6-r1.ebuild,v 1.2 2013/09/12 15:33:09 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/surf/surf-0.6-r1.ebuild,v 1.3 2013/10/04 14:21:09 jer Exp $ EAPI=5 inherit eutils savedconfig toolchain-funcs @@ -14,18 +14,22 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" -DEPEND=" +COMMON_DEPEND=" dev-libs/glib net-libs/libsoup net-libs/webkit-gtk:2 x11-libs/gtk+:2 x11-libs/libX11 " +DEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig +" RDEPEND=" + ${COMMON_DEPEND} !sci-chemistry/surf x11-apps/xprop x11-misc/dmenu - ${DEPEND} " pkg_setup() { @@ -43,20 +47,13 @@ pkg_setup() { src_prepare() { epatch_user - sed -i \ - -e 's|{|(|g;s|}|)|g' \ - -e 's|\t@|\t|g;s|echo|@&|g' \ - -e 's|^LIBS.*|LIBS = $(GTKLIB) -lgthread-2.0|g' \ - -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \ - -e 's|^CC.*|CC ?= gcc|g' \ - -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall $(INCS) $(CPPFLAGS)|g' \ - config.mk Makefile || die + epatch "${FILESDIR}"/${P}-gentoo.patch restore_config config.h - tc-export CC + tc-export CC PKG_CONFIG } src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install + emake DESTDIR="${D}" install save_config config.h } |