diff --git a/x11-wm/cwm/cwm-7.8.1.1.ebuild b/x11-wm/cwm/cwm-7.8.1.1.ebuild new file mode 100644 index 0000000..d0b21b6 --- /dev/null +++ b/x11-wm/cwm/cwm-7.8.1.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop toolchain-funcs + +DESCRIPTION="Linux port of the OpenBSD calm window manager" +HOMEPAGE="https://git.linuxposting.xyz/afiw/cwm" +SRC_URI="https://git.linuxposting.xyz/afiw/cwm/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-libs/libbsd + x11-libs/libX11 + x11-libs/libXft + x11-libs/libXrandr +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-alternatives/yacc + virtual/pkgconfig +" + +S="${WORKDIR}/${PN}" + +src_compile() { + emake CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" +} + +src_install() { + dobin cwm + doman cwm.1 + doman cwmrc.5 + make_session_desktop ${PN} ${PN} +} + +pkg_postinst() { + einfo 'The default location of the configuration file has changed, see cwmrc(5)' +}