blob: 9d2f6afc46235077d6cf4c16cb0761093be7653c (
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
39
40
41
42
43
44
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake xdg
DESCRIPTION="Library to handle RPG Maker 2000/2003 and EasyRPG projects"
HOMEPAGE="https://easyrpg.org/
https://github.com/EasyRPG/liblcf"
SRC_URI="https://easyrpg.org/downloads/player/${PV}/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc tools"
RDEPEND="
dev-libs/expat
dev-libs/icu:=
"
DEPEND="${RDEPEND}"
BDEPEND="doc? ( app-doc/doxygen[dot] )"
HTML_DOCS="doc/*"
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=True
-DLIBLCF_UPDATE_MIMEDB=False
-DLIBLCF_ENABLE_TOOLS=$(usex tools)
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
# Why do we have to build this explicitly :/
use doc && cmake_build liblcf_doc
}
src_test() {
cmake_build check
}
|