You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.4 KiB
69 lines
1.4 KiB
8 years ago
|
# 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
|
||
|
debug? ( x11-proto/xproto )
|
||
|
xft? ( x11-libs/libXft )
|
||
|
xinerama? ( x11-libs/libXinerama )
|
||
|
"
|
||
|
DEPEND="
|
||
|
${RDEPEND}
|
||
|
virtual/pkgconfig
|
||
|
x11-proto/xextproto
|
||
|
xinerama? ( x11-proto/xineramaproto )
|
||
|
"
|
||
|
|
||
|
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}
|
||
|
}
|