author | gabriel |
Fri, 09 Apr 2021 17:53:09 +0100 | |
changeset 36 | 814dddc0a00b |
parent 35 | 04798ed6ea0e |
child 42 | abb6a36085ad |
permissions | -rw-r--r-- |
30 | 1 |
# Copyright 2019-2021 Gentoo Authors |
0 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
||
4 |
EAPI=7 |
|
5 |
||
30 | 6 |
inherit toolchain-funcs |
0 | 7 |
|
8 |
DESCRIPTION="Wayland compositor inspired by CWM" |
|
9 |
HOMEPAGE="https://hikari.acmelabs.space/" |
|
10 |
if [[ ${PV} == 9999 ]]; then |
|
11 |
EDARCS_REPOSITORY="https://hub.darcs.net/raichoo/hikari" |
|
12 |
inherit darcs |
|
13 |
SRC_URI="" |
|
14 |
else |
|
15 |
SRC_URI="https://hikari.acmelabs.space/releases/${P}.tar.gz" |
|
16 |
KEYWORDS="~amd64 ~x86" |
|
17 |
fi |
|
18 |
||
19 |
LICENSE="MIT" |
|
20 |
SLOT="0" |
|
21 |
IUSE="gamma layershell screencopy suid virtual-io +X" |
|
22 |
||
23 |
DEPEND=" |
|
24 |
dev-libs/libinput:= |
|
25 |
dev-libs/libucl |
|
36 | 26 |
>=gui-libs/wlroots-0.13.0[X?] |
0 | 27 |
media-libs/libglvnd |
28 |
x11-libs/cairo[X?,svg] |
|
29 |
x11-libs/libxkbcommon[X?] |
|
30 |
x11-libs/pango[X?] |
|
31 |
x11-libs/pixman |
|
32 |
sys-libs/pam |
|
33 |
" |
|
34 |
||
35 |
RDEPEND=" |
|
36 |
${DEPEND} |
|
37 |
x11-misc/xkeyboard-config |
|
38 |
" |
|
39 |
||
30 | 40 |
# Needed in DEPEND only, as it needs to be right location, whatever that means |
41 |
DEPEND+=" dev-libs/wayland-protocols" |
|
42 |
||
0 | 43 |
BDEPEND=" |
44 |
virtual/pkgconfig |
|
45 |
sys-devel/bmake |
|
46 |
" |
|
47 |
||
48 |
if [[ ${PV} == 9999 ]]; then |
|
49 |
src_unpack() { |
|
50 |
darcs_src_unpack |
|
51 |
default |
|
52 |
# We copy a precompiled version of the manpage to avoid pandoc |
|
53 |
cp ${FILESDIR}/hikari.1 ${WORKDIR}/${PF}/share/man/man1 || die |
|
54 |
} |
|
55 |
fi |
|
56 |
||
57 |
pkg_setup() { |
|
31
84acc4672e6c
Removed -l from MAKEOPTS to call emake to call bmake
gabriel
parents:
30
diff
changeset
|
58 |
# We set `bmake` and we also have to remove any reference to -l in MAKEOPTS |
84acc4672e6c
Removed -l from MAKEOPTS to call emake to call bmake
gabriel
parents:
30
diff
changeset
|
59 |
# as `bamke` does not support load average |
84acc4672e6c
Removed -l from MAKEOPTS to call emake to call bmake
gabriel
parents:
30
diff
changeset
|
60 |
# We do this in a crude way until flag-o-matic supports MAKEOPTS |
84acc4672e6c
Removed -l from MAKEOPTS to call emake to call bmake
gabriel
parents:
30
diff
changeset
|
61 |
# bug 778191 |
0 | 62 |
export MAKE=bmake |
31
84acc4672e6c
Removed -l from MAKEOPTS to call emake to call bmake
gabriel
parents:
30
diff
changeset
|
63 |
MAKEOPTS=`echo $MAKEOPTS | sed 's/-l \?[\.0-9]\+//'` |
84acc4672e6c
Removed -l from MAKEOPTS to call emake to call bmake
gabriel
parents:
30
diff
changeset
|
64 |
|
0 | 65 |
tc-export CC PKG_CONFIG |
66 |
} |
|
67 |
||
68 |
src_compile() { |
|
30 | 69 |
emake \ |
70 |
VERSION="${PV}" \ |
|
0 | 71 |
CC="$(tc-getCC)" \ |
72 |
CFLAGS_EXTRA="${CFLAGS}" \ |
|
73 |
LDFLAGS_EXTRA="${LDFLAGS}" \ |
|
74 |
-DWITH_POSIX_C_SOURCE \ |
|
75 |
$(usex gamma -DWITH_GAMMACONTROL "") \ |
|
76 |
$(usex layershell -DWITH_LAYERSHELL "") \ |
|
77 |
$(usex screencopy -DWITH_SCREENCOPY "") \ |
|
78 |
$(usex suid -DWITH_SUID "") \ |
|
79 |
$(usex virtual-io -DWITH_VIRTUAL_INPUT "") \ |
|
80 |
$(usex X -DWITH_XWAYLAND "") \ |
|
30 | 81 |
all |
0 | 82 |
} |
83 |
||
84 |
src_install() { |
|
30 | 85 |
emake \ |
86 |
DESTDIR="${D}" \ |
|
87 |
PREFIX=/usr \ |
|
88 |
ETC_PREFIX=/ \ |
|
89 |
$(usex suid -DWITH_SUID "") \ |
|
90 |
install |
|
91 |
||
0 | 92 |
doman share/man/man1/hikari.1 |
93 |
} |