summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/echinus/echinus-0.4.9.ebuild')
-rw-r--r--x11-wm/echinus/echinus-0.4.9.ebuild32
1 files changed, 16 insertions, 16 deletions
diff --git a/x11-wm/echinus/echinus-0.4.9.ebuild b/x11-wm/echinus/echinus-0.4.9.ebuild
index 6ed20ef6b80..21454373228 100644
--- a/x11-wm/echinus/echinus-0.4.9.ebuild
+++ b/x11-wm/echinus/echinus-0.4.9.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
-inherit eutils toolchain-funcs multilib
+inherit toolchain-funcs
DESCRIPTION="A window manager for X in the spirit of dwm"
HOMEPAGE="https://plhk.ru/"
@@ -14,30 +14,30 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="xrandr"
-RDEPEND="x11-libs/libX11
+RDEPEND="
+ x11-libs/libX11
x11-libs/libXft
xrandr? ( x11-libs/libXrandr )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-DOCS=( README )
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
-pkg_setup() {
- tc-export CC
- use xrandr && export MULTIHEAD=1
-}
+PATCHES=( "${FILESDIR}"/${P}-gentoo.diff )
-src_prepare() {
- epatch "${FILESDIR}"/${P}-gentoo.diff
- sed -i -e "s|CONFDIR|/usr/share/${PN}|g" echinus.1 README || die
+src_configure() {
+ use xrandr && export MULTIHEAD=1
sed -i -e "s|/usr/lib|/usr/$(get_libdir)|g" config.mk || die
+
+ tc-export CC
}
src_install() {
dobin ${PN}
doman ${PN}.1
- dodoc README
+ einstalldocs
+
insinto /usr/share/${PN}
doins {close,iconify,max}.xbm ${PN}rc
+
insinto /usr/share/xsessions
doins "${FILESDIR}"/${PN}.desktop
}
@@ -51,7 +51,7 @@ pkg_postinst() {
elog ""
fi
elog "A standard config file with its pixmaps has been installed to:"
- elog "${EPREFIX}/usr/share/${PN}/examples"
+ elog "${EROOT}/usr/share/${PN}/examples"
elog "Copy this folder to ~/.${PN}/ and modify the echinusrc as you wish."
elog ""
elog "For changing the modkey you can use \"Echinus*modkey: X\""