jlec 15/03/21 09:25:25 Modified: getxbook-1.0.patch Log: Bump EAPI; respect CC and use LDFLAGS correctly for as-needed; use dobin instead of exeinto && doexe (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Revision Changes Path 1.2 app-text/getxbook/files/getxbook-1.0.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/getxbook/files/getxbook-1.0.patch?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/getxbook/files/getxbook-1.0.patch?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/getxbook/files/getxbook-1.0.patch?r1=1.1&r2=1.2 Index: getxbook-1.0.patch =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-text/getxbook/files/getxbook-1.0.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- getxbook-1.0.patch 20 Aug 2012 15:24:21 -0000 1.1 +++ getxbook-1.0.patch 21 Mar 2015 09:25:25 -0000 1.2 @@ -1,15 +1,42 @@ -diff -r -U1 getxbook-0.8.orig/Makefile getxbook-0.8/Makefile ---- getxbook-0.8.orig/Makefile 2012-02-15 05:09:56.000000000 +0700 -+++ getxbook-0.8/Makefile 2012-02-15 15:11:55.000000000 +0700 -@@ -1,3 +1,10 @@ + Makefile | 17 ++++++++++++----- + 1 file changed, 12 insertions(+), 5 deletions(-) + +diff --git a/Makefile b/Makefile +index f6507b5..d080f2b 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,5 +1,12 @@ # See COPYING file for copyright and license details. -include config.mk +VERSION = 1.0 +RELDATE = 2012-08-19 +PREFIX = /usr +MANPREFIX = $(PREFIX)/share/man -+CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror \ ++CFLAGS += -std=c99 -pedantic -Wall -Wextra \ + -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" -+CC = cc ++CC ?= cc +LD = $(CC) + NAME = getxbook + +@@ -20,16 +27,16 @@ $(BIN): util.a + + .o: + @echo LD $@ +- @$(LD) -o $@ $< util.a $(LDFLAGS) ++ $(LD) $(LDFLAGS) -o $@ $< util.a + + .c.o: + @echo CC $< +- @$(CC) -c $(CFLAGS) $< ++ $(CC) -c $(CFLAGS) $< + + util.a: $(LIB) + @echo AR $@ +- @$(AR) -r -c $@ $(LIB) +- @ranlib $@ ++ $(AR) -r -c $@ $(LIB) ++ $(RANLIB) $@ + + install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin
