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.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/x11-wm/echinus/echinus-0.4.9.ebuild b/x11-wm/echinus/echinus-0.4.9.ebuild
new file mode 100644
index 000000000000..06966d5924ee
--- /dev/null
+++ b/x11-wm/echinus/echinus-0.4.9.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/echinus/echinus-0.4.9.ebuild,v 1.1 2011/11/06 11:33:30 xarthisius Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A window manager for X in the spirit of dwm"
+HOMEPAGE="http://plhk.ru/echinus"
+SRC_URI="http://plhk.ru/static/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="xrandr"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXft
+ xrandr? ( x11-libs/libXrandr )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+DOCS=( README )
+
+pkg_setup() {
+ tc-export CC
+ use xrandr && export MULTIHEAD=1
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+ sed -i -e "s|CONFDIR|/usr/share/${PN}|g" echinus.1 README || die
+ sed -i -e "s|/usr/lib|/usr/$(get_libdir)|g" config.mk || die
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc README
+ insinto /usr/share/${PN}
+ doins {close,iconify,max}.xbm ${PN}rc
+ insinto /usr/share/xsessions
+ doins "${FILESDIR}"/${PN}.desktop
+}
+
+pkg_postinst() {
+ if ! has_version x11-misc/dmenu; then
+ elog "Installing ${PN} without x11-misc/dmenu"
+ elog "To have a menu you can install x11-misc/dmenu"
+ elog "and use \"Echinus*spawn\" in echinusrc"
+ elog "to launch dmenu_run. Check echinus documentation for details."
+ elog ""
+ fi
+ elog "A standard config file with its pixmaps has been installed to:"
+ elog "${EPREFIX}/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\""
+ elog "in echinusrc. Replace the X with A for ALT, W for Winkey (Super),"
+ elog "S for Shift or C for the Control key."
+}