diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
commit | a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (patch) | |
tree | 852c90a4bf354c30ea66504f70bfab5401fba18d /x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild | |
parent | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (diff) |
gentoo resync : 28.04.2018
Diffstat (limited to 'x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild')
-rw-r--r-- | x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild b/x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild new file mode 100644 index 000000000000..c6e017074c9d --- /dev/null +++ b/x11-wm/matwm2/matwm2-0.1.2_pre3-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit toolchain-funcs + +MY_PV="${PV//_/}" + +DESCRIPTION="Simple EWMH compatible window manager with titlebars and frames" +HOMEPAGE="https://github.com/segin/matwm2" +SRC_URI="https://github.com/segin/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug xft xinerama" +S="${WORKDIR}/${PN}-${MY_PV}/${PN}" + +RDEPEND=" + x11-libs/libXext + x11-libs/libX11 + xft? ( x11-libs/libXft ) + xinerama? ( x11-libs/libXinerama ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}/${P}-destdir-fix.patch" ) + +src_prepare() { + default + + # Let the package manager handle stripping + sed -e 's/install -s/install/g' -i Makefile.in || die +} + +src_configure() { + # configure is not autotools based + local myconfigureargs=( + --prefix="${EPREFIX}/usr" + --mandir="${EPREFIX}/usr/share/man" + --cc="$(tc-getCC)" + $(usex debug "--enable-debug" "") + $(usex xft "" "--disable-xft") + $(usex xinerama "" "--disable-xinerama") + ) + + ./configure "${myconfigureargs[@]}" || die +} + +src_install() { + default + + docompress -x "${EPREFIX}/usr/share/doc/${PF}"/default_matwmrc + dodoc default_matwmrc + + insinto /usr/share/xsessions + doins "${FILESDIR}"/${PN}.desktop + + echo ${PN} > "${T}"/${PN} || die + exeinto /etc/X11/Sessions + doexe "${T}"/${PN} +} |