summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-07-31 22:03:21 +0200
committerDavid Seifert <soap@gentoo.org>2022-07-31 22:03:21 +0200
commit00384c9045401077633e1aa82295448b2cdd1e92 (patch)
tree1f67fe8aea8bffa5178b966a3de11d2844a68878 /app-misc/cpipe/files/cpipe-3.0.3-makefile.patch
parentapp-misc/countrycodes: update EAPI 6 -> 8 (diff)
downloadgentoo-00384c9045401077633e1aa82295448b2cdd1e92.tar.gz
gentoo-00384c9045401077633e1aa82295448b2cdd1e92.tar.bz2
gentoo-00384c9045401077633e1aa82295448b2cdd1e92.zip
app-misc/cpipe: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-misc/cpipe/files/cpipe-3.0.3-makefile.patch')
-rw-r--r--app-misc/cpipe/files/cpipe-3.0.3-makefile.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-misc/cpipe/files/cpipe-3.0.3-makefile.patch b/app-misc/cpipe/files/cpipe-3.0.3-makefile.patch
new file mode 100644
index 000000000000..d68bb56f2967
--- /dev/null
+++ b/app-misc/cpipe/files/cpipe-3.0.3-makefile.patch
@@ -0,0 +1,29 @@
+--- a/makefile
++++ b/makefile
+@@ -15,14 +15,14 @@
+ MANDIR=$(prefix)/man/man1
+
+ ## Your favorite compiler flags.
+-CFLAGS = -O2 -W -Wall -pedantic
++CFLAGS += -W -Wall -pedantic
++LDLIBS = -lm
+
+ VERSION=$(shell cat .version)
+ ########################################################################
+ all: cpipe cpipe.1
+
+-cpipe: cpipe.o cmdline.o
+- $(CC) -o $@ cpipe.o cmdline.o -lm
++cpipe: cmdline.o
+
+ cpipe.1: cpipe.1.in
+ sed -e "s/|VERSION|/${VERSION}/g" <cpipe.1.in >cpipe.1
+@@ -37,7 +37,7 @@
+ install: cpipe cpipe.1
+ mkdir -p $(BINDIR) $(MANDIR)
+ cp cpipe $(BINDIR); chmod 755 $(BINDIR)/cpipe
+- cp cpipe.1 $(MANDIR); chmod 744 $(MANDIR)/cpipe.1
++ cp cpipe.1 $(MANDIR); chmod 644 $(MANDIR)/cpipe.1
+
+ uninstall:
+ -rm $(BINDIR)/cpipe