summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-05-11 23:28:43 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-05-11 23:28:57 +0200
commitc1ba5292f5bf1434770d5aea9abfc80b225a3a62 (patch)
tree1789944faa0a18a17f081319879f97c4e8232c3e /x11-misc/piedock
parentapp-admin/mcelog: Version bump to 157 (diff)
downloadgentoo-c1ba5292f5bf1434770d5aea9abfc80b225a3a62.tar.gz
gentoo-c1ba5292f5bf1434770d5aea9abfc80b225a3a62.tar.bz2
gentoo-c1ba5292f5bf1434770d5aea9abfc80b225a3a62.zip
x11-misc/piedock: Use pkg-config to find freetype.
Bug: https://bugs.gentoo.org/655530 Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'x11-misc/piedock')
-rw-r--r--x11-misc/piedock/files/piedock-1.6.9-freetype_pkgconfig.patch45
-rw-r--r--x11-misc/piedock/piedock-1.6.9.ebuild30
2 files changed, 67 insertions, 8 deletions
diff --git a/x11-misc/piedock/files/piedock-1.6.9-freetype_pkgconfig.patch b/x11-misc/piedock/files/piedock-1.6.9-freetype_pkgconfig.patch
new file mode 100644
index 000000000000..dc6dd41bccb6
--- /dev/null
+++ b/x11-misc/piedock/files/piedock-1.6.9-freetype_pkgconfig.patch
@@ -0,0 +1,45 @@
+From 3f37592025333532e98bbe96c2b0903bb881b9c0 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Fri, 11 May 2018 23:21:33 +0200
+Subject: [PATCH] Use pkg-config to find freetype
+
+As of freetype-2.9.1 the freetype-config file no longer gets installed
+by default.
+---
+ configure.ac | 13 ++++---------
+ 1 file changed, 4 insertions(+), 9 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0c452ad..96a51e9 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -12,6 +12,7 @@ AC_LANG_CPLUSPLUS
+ AC_PROG_CXX
+ AC_PROG_CC
+ AC_PROG_INSTALL
++PKG_PROG_PKG_CONFIG
+
+ # Checks for mandatory libraries
+ AC_CHECK_LIB([X11], [XOpenDisplay], , AC_MSG_ERROR([libX11 not found]))
+@@ -47,15 +48,9 @@ AC_ARG_ENABLE(
+
+ # Checks for Freetype
+ if test "x$XFT" = "xtrue"; then
+- AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
+-
+- if test x$FREETYPE_CONFIG = xno; then
+- AC_MSG_ERROR([*** freetype-config not found])
+- fi
+-
+- FREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags`"
+- FREETYPE_LIBS="`$FREETYPE_CONFIG --libs`"
+- CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS"
++ PKG_CHECK_MODULES(FREETYPE, freetype2, [
++ CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS"
++ ], AC_MSG_ERROR([Cannot find freetype]))
+ fi
+
+ # Checks for Xrender
+--
+2.17.0
+
diff --git a/x11-misc/piedock/piedock-1.6.9.ebuild b/x11-misc/piedock/piedock-1.6.9.ebuild
index 01ba6137e9ee..8a2ea62a1509 100644
--- a/x11-misc/piedock/piedock-1.6.9.ebuild
+++ b/x11-misc/piedock/piedock-1.6.9.ebuild
@@ -3,6 +3,8 @@
EAPI=6
+inherit autotools
+
DESCRIPTION="A little bit like the famous OS X dock but in shape of a pie menu"
HOMEPAGE="
http://markusfisch.de/PieDock
@@ -30,19 +32,31 @@ RDEPEND="
x11-libs/gtk+:2
)
"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
DOCS=( res/${PN}rc.sample AUTHORS ChangeLog NEWS )
+
PATCHES=(
"${FILESDIR}"/${PN}-1.6.1-signals.patch
+ "${FILESDIR}"/${PN}-1.6.9-freetype_pkgconfig.patch
)
-S=${WORKDIR}/PieDock-${PV}
+
+S="${WORKDIR}/PieDock-${PV}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
src_configure() {
- econf \
- $(use_enable gtk) \
- --disable-kde \
- --bindir="${EPREFIX}"/usr/bin \
- --enable-xft \
- --enable-xmu \
+ local myeconfargs=(
+ $(use_enable gtk)
+ --disable-kde
+ --bindir="${EPREFIX}"/usr/bin
+ --enable-xft
+ --enable-xmu
--enable-xrender
+ )
+ econf "${myeconfargs[@]}"
}