blob: c48e37e07cb3923fc0c846422a1e0d1727aa4b7a (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg-utils
DESCRIPTION="Library to handle RPG Maker 2000/2003 and EasyRPG projects"
HOMEPAGE="https://easyrpg.org/"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/EasyRPG/liblcf.git"
else
SRC_URI="https://github.com/EasyRPG/liblcf/archive/refs/tags/${PV}.tar.gz -> liblcf-${PV}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
IUSE="+icu +ini +tools +xml"
RDEPEND="
icu? ( dev-libs/icu:= )
ini? ( dev-libs/inih )
xml? ( dev-libs/expat )
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DLIBLCF_ENABLE_TESTS=ON
-DLIBLCF_ENABLE_TOOLS=$(usex tools)
-DLIBLCF_UPDATE_MIMEDB=OFF
-DLIBLCF_WITH_ICU=$(usex icu)
-DLIBLCF_WITH_INI=$(usex ini)
-DLIBLCF_WITH_XML=$(usex xml)
)
cmake_src_configure
}
src_test() {
cmake_build check
}
pkg_postinst() {
xdg_mimeinfo_database_update
}
|