* [gentoo-commits] repo/gentoo:master commit in: app-misc/vcp/, app-misc/vcp/files/
@ 2018-02-25 16:20 Jeroen Roovers
0 siblings, 0 replies; only message in thread
From: Jeroen Roovers @ 2018-02-25 16:20 UTC (permalink / raw
To: gentoo-commits
commit: d4df6c3792af4f37875e8a1a215e394e4f49b8ae
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 25 16:19:45 2018 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Feb 25 16:19:45 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4df6c37
app-misc/vcp: Fix compiling against sys-libs/ncurses[tinfo] (bug #633744).
Package-Manager: Portage-2.3.24, Repoman-2.3.6
app-misc/vcp/files/vcp-2.2-tinfo.patch | 11 +++++++++++
app-misc/vcp/vcp-2.2-r2.ebuild | 10 ++++------
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/app-misc/vcp/files/vcp-2.2-tinfo.patch b/app-misc/vcp/files/vcp-2.2-tinfo.patch
new file mode 100644
index 00000000000..715b6f1a658
--- /dev/null
+++ b/app-misc/vcp/files/vcp-2.2-tinfo.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -4,7 +4,7 @@
+ OBJS = main.o copyall.o copy.o screen.o log.o path.o misc.o color.o
+
+ all: $(OBJS)
+- $(CC) $(CFLAGS) -o vcp $(OBJS) -lcurses
++ $(CC) $(CFLAGS) $(LDFLAGS) -o vcp $(OBJS) $(shell $(PKG_CONFIG) --libs ncurses)
+
+ .c.o:
+ $(CC) $(CFLAGS) -c -I/usr/include/ -o $@ $<
diff --git a/app-misc/vcp/vcp-2.2-r2.ebuild b/app-misc/vcp/vcp-2.2-r2.ebuild
index a7d1a6493b6..469e80c56dd 100644
--- a/app-misc/vcp/vcp-2.2-r2.ebuild
+++ b/app-misc/vcp/vcp-2.2-r2.ebuild
@@ -17,15 +17,13 @@ DEPEND="sys-libs/ncurses:0="
RDEPEND="${DEPEND}"
DOCS=( Changelog README INSTALL )
-
-src_prepare() {
- default
- sed -i Makefile -e '/-o vcp/s|$(CFLAGS)|& $(LDFLAGS)|' || die "sed Makefile"
-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.2-tinfo.patch
+)
src_compile() {
filter-lfs-flags
- emake CC="$(tc-getCC)"
+ emake CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
}
src_install() {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-25 16:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-25 16:20 [gentoo-commits] repo/gentoo:master commit in: app-misc/vcp/, app-misc/vcp/files/ Jeroen Roovers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox