diff options
Diffstat (limited to 'dev-games/liblcf/liblcf-9999.ebuild')
| -rw-r--r-- | dev-games/liblcf/liblcf-9999.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-games/liblcf/liblcf-9999.ebuild b/dev-games/liblcf/liblcf-9999.ebuild new file mode 100644 index 0000000..c48e37e --- /dev/null +++ b/dev-games/liblcf/liblcf-9999.ebuild @@ -0,0 +1,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 +} |
