blob: f6038f78ba8cccb729025e1da64ff05d87a013e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils multilib toolchain-funcs vcs-snapshot
DESCRIPTION="Small dynamic tiling window manager for X11"
HOMEPAGE="https://github.com/conformal/spectrwm"
SRC_URI="https://github.com/conformal/${PN}/archive/SPECTRWM_${PV//./_}.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="x11-misc/dmenu"
DEPEND="${DEPEND}
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXrandr
x11-libs/libXtst
x11-libs/xcb-util
!x11-wm/scrotwm"
S=${WORKDIR}/${P}/linux
PATCHES=( "${FILESDIR}"/${P}-Makefile.patch )
src_prepare() {
default
tc-export CC
}
src_compile() {
emake PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)"
}
src_install() {
emake PREFIX="${EROOT}usr" LIBDIR="${EROOT}usr/$(get_libdir)" DESTDIR="${D}" install
cd "${WORKDIR}"/${P} || die
insinto /etc
doins ${PN}.conf
dodoc ${PN}_*.conf {initscreen,screenshot}.sh
make_session_desktop ${PN} ${PN}
elog "Example keyboard config and helpful scripts can be found"
elog "in ${ROOT}usr/share/doc/${PF}"
}
|