From 8f74772e20fb2992a0fd19ec5b08fe09c7418908 Mon Sep 17 00:00:00 2001 From: "Nelo-T. Wallus" Date: Mon, 15 Jan 2018 21:00:51 +0100 Subject: [PATCH] x11-wm/i3: Use out-of-source eclass Package-Manager: Portage-2.3.19, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/6873 --- x11-wm/i3/i3-4.14.1.ebuild | 39 +++++++++----------------------------- 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/x11-wm/i3/i3-4.14.1.ebuild b/x11-wm/i3/i3-4.14.1.ebuild index 1d884372499b..73ad789867b5 100644 --- a/x11-wm/i3/i3-4.14.1.ebuild +++ b/x11-wm/i3/i3-4.14.1.ebuild @@ -1,15 +1,16 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 AEVER=0.17 -inherit autotools virtualx +inherit autotools out-of-source DESCRIPTION="An improved dynamic tiling window manager" HOMEPAGE="https://i3wm.org/" SRC_URI="https://i3wm.org/downloads/${P}.tar.bz2" + LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" @@ -53,29 +54,10 @@ RDEPEND="${CDEPEND} # in type-punned pointers - which in turn causes test failures. REQUIRED_USE="test? ( debug )" -DOCS=( - "RELEASE-NOTES-${PV}" - docs -) PATCHES=( "${FILESDIR}/${PN}-musl-GLOB_TILDE.patch" ) -# https://github.com/i3/i3/issues/3013 -RESTRICT="test" - -src_test() { - emake -C "${CBUILD}" \ - test.commands_parser \ - test.config_parser \ - test.inject_randr15 - - virtx perl \ - -I "${S}/testcases/lib" \ - -I "${CBUILD}/testcases/lib" \ - "${CBUILD}/testcases/complete-run.pl" -} - src_prepare() { default @@ -87,22 +69,19 @@ src_prepare() { eautoreconf } -src_configure() { +my_src_configure() { local myeconfargs=( $(use_enable debug) ) econf "${myeconfargs[@]}" } -src_compile() { - emake -C "${CBUILD}" -} - -src_install() { - emake -C "${CBUILD}" DESTDIR="${D}" install - doman "${S}"/man/*.1 +my_src_install() { + emake install + doman man/*.1 - use doc && einstalldocs + einstalldocs + use docs && dodoc -r docs "RELEASE-NOTES-${PV}" exeinto /etc/X11/Sessions doexe "${T}/i3wm" -- 2.26.2