Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnustep-base/mknfonts/files/, gnustep-base/mknfonts/
Date: Fri, 29 Jun 2018 09:40:18
Message-Id: 1530265161.e226d8a9feaade6b86d586ab3524fe007e88191c.voyageur@gentoo
1 commit: e226d8a9feaade6b86d586ab3524fe007e88191c
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 29 09:39:04 2018 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 29 09:39:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e226d8a9
7
8 gnustep-base/mknfonts: use pkg-config to find freetype
9
10 Closes: https://bugs.gentoo.org/659374
11 Package-Manager: Portage-2.3.41, Repoman-2.3.9
12
13 .../mknfonts/files/mknfonts-0.5-pkgconfig.patch | 14 ++++++++++
14 gnustep-base/mknfonts/mknfonts-0.5-r3.ebuild | 31 ++++++++++++++++++++++
15 2 files changed, 45 insertions(+)
16
17 diff --git a/gnustep-base/mknfonts/files/mknfonts-0.5-pkgconfig.patch b/gnustep-base/mknfonts/files/mknfonts-0.5-pkgconfig.patch
18 new file mode 100644
19 index 00000000000..e73bac5c1dd
20 --- /dev/null
21 +++ b/gnustep-base/mknfonts/files/mknfonts-0.5-pkgconfig.patch
22 @@ -0,0 +1,14 @@
23 +diff -Naur mknfonts-0.5.orig/GNUmakefile mknfonts-0.5/GNUmakefile
24 +--- mknfonts-0.5.orig/GNUmakefile 2002-09-28 12:27:26.000000000 +0200
25 ++++ mknfonts-0.5/GNUmakefile 2018-06-29 11:27:01.871588321 +0200
26 +@@ -9,8 +9,8 @@
27 +
28 + ADDITIONAL_OBJCFLAGS += -Wall -O2
29 +
30 +-ADDITIONAL_INCLUDE_DIRS += `freetype-config --cflags`
31 +-ADDITIONAL_LDFLAGS += `freetype-config --libs`
32 ++ADDITIONAL_INCLUDE_DIRS += `pkg-config --cflags freetype2`
33 ++ADDITIONAL_LDFLAGS += `pkg-config --libs freetype2`
34 +
35 + mknfonts_OBJC_FILES = mknfonts.m
36 +
37
38 diff --git a/gnustep-base/mknfonts/mknfonts-0.5-r3.ebuild b/gnustep-base/mknfonts/mknfonts-0.5-r3.ebuild
39 new file mode 100644
40 index 00000000000..af495777114
41 --- /dev/null
42 +++ b/gnustep-base/mknfonts/mknfonts-0.5-r3.ebuild
43 @@ -0,0 +1,31 @@
44 +# Copyright 1999-2018 Gentoo Foundation
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=7
48 +inherit gnustep-base
49 +
50 +DESCRIPTION="A tool to create .nfont packages for use with gnustep-back-art"
51 +HOMEPAGE="https://packages.debian.org/mknfonts.tool"
52 +SRC_URI="mirror://debian/pool/main/m/${PN}.tool/${PN}.tool_${PV}.orig.tar.gz"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
57 +IUSE=""
58 +
59 +RDEPEND="gnustep-base/gnustep-gui
60 + >=media-libs/freetype-2.1"
61 +DEPEND="${RDEPEND}
62 + virtual/pkgconfig"
63 +
64 +PATCHES=(
65 + "${FILESDIR}"/${PN}-rename.patch
66 + "${FILESDIR}"/${P}-pkgconfig.patch
67 +)
68 +
69 +src_prepare() {
70 + default
71 +
72 + # Correct link command for --as-needed
73 + sed -i -e "s/ADDITIONAL_LDFLAGS/ADDITIONAL_TOOL_LIBS/" GNUmakefile || die
74 +}