blob: c35cf81e9f804810ceb2509c5b8637dbd8a97935 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop toolchain-funcs
DESCRIPTION="OpenBSD fork of calmwm, a clean and lightweight window manager"
HOMEPAGE="https://github.com/leahneukirchen/cwm
https://www.openbsd.org/cgi-bin/cvsweb/xenocara/app/cwm/
"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/leahneukirchen/cwm.git"
else
SRC_URI="https://github.com/leahneukirchen/cwm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
LICENSE="ISC"
SLOT="0"
DEPEND="x11-libs/libXft
x11-libs/libXinerama
x11-libs/libXrandr
"
RDEPEND="${DEPEND}"
BDEPEND="
sys-devel/bison
virtual/pkgconfig
"
src_compile() {
emake CFLAGS="${CFLAGS} -D_GNU_SOURCE" CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
dodoc README
make_session_desktop ${PN} ${PN}
}
|