aboutsummaryrefslogtreecommitdiff
blob: f1f1cb0f495d7ca3f96d47fece572b62eb3f66b5 (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
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit git-r3 flag-o-matic toolchain-funcs

DESCRIPTION="A faster implementation of i3lock-fancy"
HOMEPAGE="https://github.com/yvbbrjdr/i3lock-fancy-rapid"
EGIT_REPO_URI="https://github.com/yvbbrjdr/i3lock-fancy-rapid.git"

LICENSE="BSD"
SLOT="0"

RDEPEND="
	|| (
		>=x11-misc/i3lock-2.12
		>=x11-misc/i3lock-color-2.12
	)
"
DEPEND="x11-libs/libX11"

src_prepare() {
	default
	sed -e "s/gcc/$(tc-getCC)/" \
		-e "/CFLAGS=/d" \
		-i Makefile || die
}

src_configure() {
	default
	append-cflags -fopenmp -lX11
}

src_install() {
	dobin i3lock-fancy-rapid
	einstalldocs
}