gnustep-base/mknfonts: use pkg-config to find freetype

Closes: https://bugs.gentoo.org/659374
Package-Manager: Portage-2.3.41, Repoman-2.3.9
This commit is contained in:
Bernard Cafarelli
2018-06-29 11:39:04 +02:00
parent 62dd04c565
commit e226d8a9fe
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
diff -Naur mknfonts-0.5.orig/GNUmakefile mknfonts-0.5/GNUmakefile
--- mknfonts-0.5.orig/GNUmakefile 2002-09-28 12:27:26.000000000 +0200
+++ mknfonts-0.5/GNUmakefile 2018-06-29 11:27:01.871588321 +0200
@@ -9,8 +9,8 @@
ADDITIONAL_OBJCFLAGS += -Wall -O2
-ADDITIONAL_INCLUDE_DIRS += `freetype-config --cflags`
-ADDITIONAL_LDFLAGS += `freetype-config --libs`
+ADDITIONAL_INCLUDE_DIRS += `pkg-config --cflags freetype2`
+ADDITIONAL_LDFLAGS += `pkg-config --libs freetype2`
mknfonts_OBJC_FILES = mknfonts.m

View File

@@ -0,0 +1,31 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit gnustep-base
DESCRIPTION="A tool to create .nfont packages for use with gnustep-back-art"
HOMEPAGE="https://packages.debian.org/mknfonts.tool"
SRC_URI="mirror://debian/pool/main/m/${PN}.tool/${PN}.tool_${PV}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
IUSE=""
RDEPEND="gnustep-base/gnustep-gui
>=media-libs/freetype-2.1"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-rename.patch
"${FILESDIR}"/${P}-pkgconfig.patch
)
src_prepare() {
default
# Correct link command for --as-needed
sed -i -e "s/ADDITIONAL_LDFLAGS/ADDITIONAL_TOOL_LIBS/" GNUmakefile || die
}