* [gentoo-commits] repo/gentoo:master commit in: media-gfx/ttygif/, media-gfx/ttygif/files/
@ 2020-06-09 12:26 Patrice Clement
0 siblings, 0 replies; only message in thread
From: Patrice Clement @ 2020-06-09 12:26 UTC (permalink / raw
To: gentoo-commits
commit: 8f4c72863a37a9f29a8dbf9fae5c27fe8b8b3b43
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 9 12:25:08 2020 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Jun 9 12:26:21 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f4c7286
media-gfx/ttygif: honor CFLAGS and LDFLAGS.
Closes: https://bugs.gentoo.org/727630
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
media-gfx/ttygif/files/ldflags-support.patch | 19 +++++++++++++++++++
media-gfx/ttygif/ttygif-1.80_p20181218.ebuild | 12 ++++++++++--
2 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/media-gfx/ttygif/files/ldflags-support.patch b/media-gfx/ttygif/files/ldflags-support.patch
new file mode 100644
index 00000000000..201f72fb04a
--- /dev/null
+++ b/media-gfx/ttygif/files/ldflags-support.patch
@@ -0,0 +1,19 @@
+--- a/Makefile 2020-06-09 12:07:21.881455454 -0000
++++ b/Makefile 2020-06-09 12:08:43.984010587 -0000
+@@ -2,6 +2,7 @@
+ VERSION = '"1.4.0"'
+ CFLAGS += -O2 -Wall -DVERSION=$(VERSION)
+ PREFIX ?= /usr/local
++LDFLAGS ?= -L/usr/lib
+
+ UNAME := $(shell uname)
+ ifeq ($(UNAME), Darwin)
+@@ -14,7 +15,7 @@
+ all: ttygif
+
+ ttygif: ttygif.o io.o string_builder.o utils.o
+- $(CC) $(CFLAGS) -o ttygif ttygif.o io.o string_builder.o utils.o
++ $(CC) $(CFLAGS) -o ttygif ttygif.o io.o string_builder.o utils.o $(LDFLAGS)
+
+ install: ttygif
+ install -d $(PREFIX)/bin
diff --git a/media-gfx/ttygif/ttygif-1.80_p20181218.ebuild b/media-gfx/ttygif/ttygif-1.80_p20181218.ebuild
index 32b4aa70ac5..a88b74156eb 100644
--- a/media-gfx/ttygif/ttygif-1.80_p20181218.ebuild
+++ b/media-gfx/ttygif/ttygif-1.80_p20181218.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit vcs-snapshot
+inherit vcs-snapshot toolchain-funcs
# Commit Date: Dec 18th 2018
COMMIT="362bc381c1c2449509e732d68f07656caf46b420"
@@ -18,11 +18,19 @@ SLOT="0"
DOCS=( LICENSE README.md )
+PATCHES=( "${FILESDIR}/ldflags-support.patch" )
+
RDEPEND="
x11-apps/xwd
app-misc/ttyrec
media-gfx/imagemagick"
+src_compile() {
+ emake CC=$(tc-getCC) \
+ CFLAGS="${CFLAGS} -DVERSION='\"${PV}\"' -DOS_LINUX" \
+ LDFLAGS="${LDFLAGS}"
+}
+
src_install() {
dobin "${PN}"
einstalldocs
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-09 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09 12:26 [gentoo-commits] repo/gentoo:master commit in: media-gfx/ttygif/, media-gfx/ttygif/files/ Patrice Clement
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox