diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2016-03-07 20:10:50 -0600 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2016-03-07 20:11:57 -0600 |
commit | c28560d3da197cb22026c308aab16a56b87ed4f1 (patch) | |
tree | 19398749d001d90adc2a0d95c259b97c16feb755 /x11-wm/i3/i3-4.12.ebuild | |
parent | x11-wm/awesome: bump. (diff) | |
download | gentoo-c28560d3da197cb22026c308aab16a56b87ed4f1.tar.gz gentoo-c28560d3da197cb22026c308aab16a56b87ed4f1.tar.bz2 gentoo-c28560d3da197cb22026c308aab16a56b87ed4f1.zip |
x11-wm/i3: fix build without cairo/pango, correct dep on cairo version
Fixes bug #576664
Reported-by: Coacher <itumaykin+gentoo@gmail.com>
Package-Manager: portage-2.2.27
Diffstat (limited to 'x11-wm/i3/i3-4.12.ebuild')
-rw-r--r-- | x11-wm/i3/i3-4.12.ebuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/x11-wm/i3/i3-4.12.ebuild b/x11-wm/i3/i3-4.12.ebuild index eabd399c705b..361c0a9f5b66 100644 --- a/x11-wm/i3/i3-4.12.ebuild +++ b/x11-wm/i3/i3-4.12.ebuild @@ -13,7 +13,8 @@ SRC_URI="http://i3wm.org/downloads/${P}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" -IUSE="+pango" +IUSE="+cairo +pango" +REQUIRED_USE="pango? ( cairo )" CDEPEND="dev-libs/libev dev-libs/libpcre @@ -25,9 +26,11 @@ CDEPEND="dev-libs/libev x11-libs/xcb-util-cursor x11-libs/xcb-util-keysyms x11-libs/xcb-util-wm + cairo? ( + >=x11-libs/cairo-1.14.4[X,xcb] + ) pango? ( >=x11-libs/pango-1.30.0[X] - >=x11-libs/cairo-1.12.2[X,xcb] )" DEPEND="${CDEPEND} virtual/pkgconfig" @@ -39,8 +42,18 @@ RDEPEND="${CDEPEND} DOCS=( RELEASE-NOTES-${PV} ) src_prepare() { + epatch "${FILESDIR}"/${P}-pango.patch + if ! use pango; then - sed -i common.mk -e '/PANGO/d' || die + sed -e '/^PANGO_.*pangocairo/d' \ + -e '/PANGO_SUPPORT/ s/1/0/g' \ + -i common.mk || die + fi + + if ! use cairo; then + sed -e '/^PANGO_.*cairo/d' \ + -e '/CAIRO_SUPPORT/ s/1/0/g' \ + -i common.mk || die fi cat <<- EOF > "${T}"/i3wm |