3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
inherit cmake xdg
|
|
6 |
inherit cmake xdg-utils
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="Lightweight panel/taskbar for Linux"
|
9 |
|
HOMEPAGE="https://gitlab.com/o9000/tint2"
|
10 |
|
SRC_URI="https://gitlab.com/o9000/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz"
|
|
9 |
HOMEPAGE="https://gitlab.com/nick87720z/tint2"
|
|
10 |
SRC_URI="https://gitlab.com/nick87720z/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz"
|
11 |
11 |
S=${WORKDIR}/${PN}-v${PV}
|
12 |
12 |
|
13 |
13 |
LICENSE="GPL-2"
|
14 |
14 |
SLOT="0"
|
15 |
|
KEYWORDS="amd64 ~arm64 ~ppc x86"
|
16 |
|
IUSE="battery startup-notification svg tint2conf"
|
|
15 |
KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
|
|
16 |
IUSE="battery debug startup-notification sanitize svg tint2conf"
|
17 |
17 |
|
18 |
18 |
DEPEND="
|
19 |
19 |
dev-libs/glib:2
|
... | ... | |
29 |
29 |
>=x11-libs/libXrandr-1.3
|
30 |
30 |
x11-libs/libXrender
|
31 |
31 |
startup-notification? ( x11-libs/startup-notification )
|
|
32 |
debug? (
|
|
33 |
sys-libs/libunwind
|
|
34 |
)
|
32 |
35 |
"
|
33 |
36 |
RDEPEND="${DEPEND}"
|
34 |
37 |
|
35 |
38 |
src_prepare() {
|
36 |
39 |
cmake_src_prepare
|
|
40 |
xdg_environment_reset
|
37 |
41 |
}
|
38 |
42 |
|
39 |
43 |
src_configure() {
|
40 |
44 |
local mycmakeargs=(
|
41 |
45 |
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
|
42 |
|
-DENABLE_BATTERY="$(usex battery)"
|
43 |
|
-DENABLE_TINT2CONF="$(usex tint2conf)"
|
44 |
|
-DENABLE_SN="$(usex startup-notification)"
|
45 |
|
-DENABLE_RSVG="$(usex svg)"
|
|
46 |
-DENABLE_ASAN=$(usex sanitize)
|
|
47 |
-DENABLE_BATTERY=$(usex battery)
|
|
48 |
-DENABLE_TINT2CONF=$(usex tint2conf)
|
|
49 |
-DENABLE_SN=$(usex startup-notification)
|
|
50 |
-DENABLE_RSVG=$(usex svg)
|
|
51 |
-DENABLE_BACKTRACE=$(usex debug)
|
|
52 |
-DENABLE_BACKTRACE_ON_SIGNAL=$(usex debug)
|
|
53 |
-DENABLE_TRACING=$(usex debug)
|
46 |
54 |
)
|
47 |
55 |
cmake_src_configure
|
48 |
56 |
}
|
|
57 |
|
|
58 |
pkg_postinst() {
|
|
59 |
xdg_desktop_database_update
|
|
60 |
xdg_mimeinfo_database_update
|
|
61 |
xdg_icon_cache_update
|
|
62 |
}
|
|
63 |
|
|
64 |
pkg_postrm() {
|
|
65 |
xdg_desktop_database_update
|
|
66 |
xdg_mimeinfo_database_update
|
|
67 |
xdg_icon_cache_update
|
|
68 |
}
|