# 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 }