x11-wm/i3: Use out-of-source eclass
authorNelo-T. Wallus <nelo@wallus.de>
Mon, 15 Jan 2018 20:00:51 +0000 (21:00 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 16 Jan 2018 00:03:32 +0000 (01:03 +0100)
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

index 1d884372499b3d847bb9cee83343426b4fb79adf..73ad789867b5fa8289db77e2075d0df951ac94dc 100644 (file)
@@ -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"