commit:     5dee949abbff6f5c5a99f0b905bfb84b4fca3b13
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri May  4 11:11:43 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri May  4 11:11:43 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dee949a

media-libs/ftgl: Don't use freetype-config.

Package-Manager: Portage-2.3.35, Repoman-2.3.9

 .../files/ftgl-2.1.3_rc5-freetype_pkgconfig.patch  | 11 +++++++
 media-libs/ftgl/files/ftgl-2.1.3_rc5-gentoo.patch  |  8 ++---
 .../ftgl/files/ftgl-2.1.3_rc5-underlink.patch      |  4 +--
 media-libs/ftgl/ftgl-2.1.3_rc5.ebuild              | 37 ++++++++++++----------
 4 files changed, 38 insertions(+), 22 deletions(-)

diff --git a/media-libs/ftgl/files/ftgl-2.1.3_rc5-freetype_pkgconfig.patch 
b/media-libs/ftgl/files/ftgl-2.1.3_rc5-freetype_pkgconfig.patch
new file mode 100644
index 00000000000..89cc4c00c41
--- /dev/null
+++ b/media-libs/ftgl/files/ftgl-2.1.3_rc5-freetype_pkgconfig.patch
@@ -0,0 +1,11 @@
+--- ftgl-2.1.3~rc5/configure.ac
++++ ftgl-2.1.3~rc5/configure.ac
+@@ -41,7 +41,7 @@
+ 
+ AC_PATH_X
+ 
+-AC_CHECK_FT2([9.0.3],[],
++PKG_CHECK_MODULES(FT2, freetype2 >= 9.0.3,,
+              [AC_MSG_ERROR([FreeType2 is required to compile this library])])
+ 
+ AC_PATH_XTRA

diff --git a/media-libs/ftgl/files/ftgl-2.1.3_rc5-gentoo.patch 
b/media-libs/ftgl/files/ftgl-2.1.3_rc5-gentoo.patch
index 945c8742c64..885051a01d4 100644
--- a/media-libs/ftgl/files/ftgl-2.1.3_rc5-gentoo.patch
+++ b/media-libs/ftgl/files/ftgl-2.1.3_rc5-gentoo.patch
@@ -1,5 +1,5 @@
---- configure.ac.old    2008-11-21 14:41:15.000000000 +0100
-+++ configure.ac        2008-11-21 14:44:19.000000000 +0100
+--- a/configure.ac
++++ b/configure.ac
 @@ -50,8 +50,7 @@
  FTGL_CHECK_GLUT
  FTGL_CHECK_FONT
@@ -31,8 +31,8 @@
  if test "x${LATEX}" != "xno"; then
    AC_MSG_CHECKING(for a4.sty and a4wide.sty)
    if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
---- Makefile.am.old    2008-11-24 22:35:16.000000000 +0100
-+++ Makefile.am        2008-11-24 22:36:32.000000000 +0100
+--- a/Makefile.am
++++ b/Makefile.am
 @@ -24,16 +24,6 @@
        m4 \
        $(NULL)

diff --git a/media-libs/ftgl/files/ftgl-2.1.3_rc5-underlink.patch 
b/media-libs/ftgl/files/ftgl-2.1.3_rc5-underlink.patch
index 30bfba04c7d..ae152ff8571 100644
--- a/media-libs/ftgl/files/ftgl-2.1.3_rc5-underlink.patch
+++ b/media-libs/ftgl/files/ftgl-2.1.3_rc5-underlink.patch
@@ -1,5 +1,5 @@
---- demo/Makefile.am.old       2011-05-20 11:13:18.822445466 +0200
-+++ demo/Makefile.am   2011-05-20 11:13:28.271042994 +0200
+--- a/demo/Makefile.am
++++ b/demo/Makefile.am
 @@ -17,7 +17,7 @@
      $(NULL)
  c_demo_CFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)

diff --git a/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild 
b/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild
index 3e89417da63..068c13cabe6 100644
--- a/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild
+++ b/media-libs/ftgl/ftgl-2.1.3_rc5.ebuild
@@ -1,13 +1,13 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils flag-o-matic autotools
+EAPI=6
+inherit autotools flag-o-matic
 
-MY_PV=${PV/_/-}
-MY_PV2=${PV/_/\~}
-MY_P=${PN}-${MY_PV}
-MY_P2=${PN}-${MY_PV2}
+MY_PV="${PV/_/-}"
+MY_PV2="${PV/_/~}"
+MY_P="${PN}-${MY_PV}"
+MY_P2="${PN}-${MY_PV2}"
 
 DESCRIPTION="library to use arbitrary fonts in OpenGL applications"
 HOMEPAGE="http://ftgl.sourceforge.net/";
@@ -22,14 +22,19 @@ DEPEND=">=media-libs/freetype-2.0.9
        virtual/opengl
        virtual/glu
        media-libs/freeglut"
-RDEPEND=${DEPEND}
+RDEPEND="${DEPEND}
+       virtual/pkgconfig"
 
-S=${WORKDIR}/${MY_P2}
+S="${WORKDIR}/${MY_P2}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-underlink.patch
+       "${FILESDIR}"/${P}-freetype_pkgconfig.patch
+)
 
 src_prepare() {
-       epatch \
-               "${FILESDIR}"/${P}-gentoo.patch \
-               "${FILESDIR}"/${P}-underlink.patch
+       default
        sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
        eautoreconf
 }
@@ -40,8 +45,8 @@ src_configure() {
 }
 
 src_install() {
-       DOCS="AUTHORS BUGS ChangeLog NEWS README TODO 
docs/projects_using_ftgl.txt" \
-               default
-       rm -rf "${D}"/usr/share/doc/ftgl || die
-       prune_libtool_files
+       local DOCS=( AUTHORS BUGS ChangeLog NEWS README TODO 
docs/projects_using_ftgl.txt)
+       default
+       rm -r "${ED%/}"/usr/share/doc/ftgl || die
+       find "${ED}" -name '*.la' -delete || die
 }

Reply via email to