blob: 17d43af471834d2094933edbc6dce075648f08e0 (
plain) (
blame)
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
53
54
55
56
57
58
59
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Plugin manager for app-text/lite-xl"
HOMEPAGE="https://github.com/lite-xl/lite-xl-plugin-manager"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_SUBMODULES=()
EGIT_REPO_URI="https://github.com/lite-xl/lite-xl-plugin-manager.git"
else
SRC_URI="https://github.com/lite-xl/lite-xl-plugin-manager/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
IUSE="+lite-xl"
RDEPEND="
sys-libs/zlib
<net-libs/mbedtls-3
dev-libs/libgit2
dev-libs/libzip
dev-lang/lua:5.4
"
DEPEND="${RDEPEND}"
src_prepare() {
# pkgconfig fix
sed -i -e "s/dependency('lua')/dependency('lua5.4')/" meson.build
eapply_user
}
src_configure() {
# disable self-upgrading (won't work when installed system-wide anyway)
append-cppflags '-DLPM_DEFAULT_RELEASE=""'
local emesonargs=(
-Dstatic=true
)
meson_src_configure
}
src_install() {
dobin "${BUILD_DIR}/lpm"
if use lite-xl; then
insinto /usr/share/lite-xl
doins -r libraries plugins
fi
einstalldocs
}
|