From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/graphlcd-base/files/, app-misc/graphlcd-base/
Date: Sun, 8 Jul 2018 06:25:58 +0000 (UTC) [thread overview]
Message-ID: <1531031147.e5dd966c420938f1cf5c3533fdf9ac75c98b3e64.polynomial-c@gentoo> (raw)
commit: e5dd966c420938f1cf5c3533fdf9ac75c98b3e64
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 8 06:25:47 2018 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sun Jul 8 06:25:47 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5dd966c
app-misc/graphlcd-base: Use pkg-config instead of freetype-config.
Closes: https://bugs.gentoo.org/654902
Package-Manager: Portage-2.3.41, Repoman-2.3.9
.../graphlcd-base-0.1.9-freetype_pkgconfig.patch | 30 ++++++++++++++++++++++
app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild | 20 ++++++++++-----
2 files changed, 43 insertions(+), 7 deletions(-)
diff --git a/app-misc/graphlcd-base/files/graphlcd-base-0.1.9-freetype_pkgconfig.patch b/app-misc/graphlcd-base/files/graphlcd-base-0.1.9-freetype_pkgconfig.patch
new file mode 100644
index 00000000000..cbdaf1ceb59
--- /dev/null
+++ b/app-misc/graphlcd-base/files/graphlcd-base-0.1.9-freetype_pkgconfig.patch
@@ -0,0 +1,30 @@
+--- graphlcd-base-0.1.9/glcdgraphics/Makefile
++++ graphlcd-base-0.1.9/glcdgraphics/Makefile
+@@ -33,9 +33,9 @@
+ -include $(DEPFILE)
+
+ ifdef HAVE_FREETYPE2
+- ifneq ($(shell which freetype-config),)
+- INCLUDES += $(shell freetype-config --cflags)
+- LIBS += $(shell freetype-config --libs)
++ ifneq ($(shell which pkg-config),)
++ INCLUDES += $(shell pkg-config --cflags freetype2)
++ LIBS += $(shell pkg-config --libs freetype2)
+ else
+ INCLUDES += -I/usr/include/freetype -I/usr/local/include/freetype
+ LIBS += -lfreetype
+--- graphlcd-base-0.1.9/tools/genfont/Makefile
++++ graphlcd-base-0.1.9/tools/genfont/Makefile
+@@ -9,10 +9,10 @@
+ OBJS = genfont.o
+
+ INCLUDES += -I../../
+-INCLUDES += `freetype-config --cflags`
++INCLUDES += `pkg-config --cflags freetype2`
+
+ LIBDIRS += -L../../glcdgraphics/
+-LIBS += `freetype-config --libs`
++LIBS += `pkg-config --libs freetype2`
+
+ all: $(PRGNAME)
+ .PHONY: all
diff --git a/app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild b/app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild
index 8a568403957..7c3f216d977 100644
--- a/app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild
+++ b/app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -16,20 +16,26 @@ SLOT="0"
LICENSE="GPL-2"
IUSE="g15"
-DEPEND="media-libs/freetype"
-RDEPEND="g15? ( app-misc/g15daemon )
- media-libs/freetype"
+CDEPEND="media-libs/freetype"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+RDEPEND="${CDEPEND}
+ g15? ( app-misc/g15daemon )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.1.5-nostrip.patch"
+ "${FILESDIR}/${PN}-0.1.9-freetype_pkgconfig.patch"
+)
src_prepare() {
sed -i Make.config -e "s:usr\/local:usr:" -e "s:FLAGS *=:FLAGS ?=:"
- eapply "${FILESDIR}/${PN}-0.1.5-nostrip.patch"
+
+ default
sed -i glcdskin/Makefile -e "s:-shared:\$(LDFLAGS) -shared:"
#gcc-6 fix
sed -i glcddrivers/futabaMDM166A.c -e "s:0xff7f0004:(int) 0xff7f0004:"
-
- default
}
src_install() {
next reply other threads:[~2018-07-08 6:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-08 6:25 Lars Wendler [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-10-28 14:43 [gentoo-commits] repo/gentoo:master commit in: app-misc/graphlcd-base/files/, app-misc/graphlcd-base/ Joonas Niilola
2020-08-27 20:59 Conrad Kostecki
2021-01-03 21:45 Conrad Kostecki
2021-01-07 21:09 Conrad Kostecki
2022-07-24 17:45 Conrad Kostecki
2022-11-10 0:10 Conrad Kostecki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1531031147.e5dd966c420938f1cf5c3533fdf9ac75c98b3e64.polynomial-c@gentoo \
--to=polynomial-c@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox