imewlconverter-3.4.3gentoo-zh
download
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOTNET_PKG_COMPAT="10.0"
NUGETS="
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
"
inherit dotnet-pkg
DESCRIPTION="An open source and free input method dictionary conversion program"
HOMEPAGE="https://github.com/studyzy/imewlconverter"
if [[ "${PV}" == 9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/studyzy/imewlconverter.git"
else
SRC_URI="https://github.com/studyzy/imewlconverter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
SRC_URI+=" ${NUGET_URIS} "
LICENSE="GPL-3+"
SLOT="0"
DOTNET_PKG_PROJECTS=( src/ImeWlConverterCmd/ImeWlConverterCmd.csproj )
DOTNET_PKG_RESTORE_EXTRA_ARGS=( -p:PACKAGE_VERSION="${PV}" )
DOTNET_PKG_BUILD_EXTRA_ARGS=( -p:PACKAGE_VERSION="${PV}" )
DOTNET_PKG_TEST_EXTRA_ARGS=( -p:PACKAGE_VERSION="${PV}" )
src_unpack() {
dotnet-pkg_src_unpack
if [[ "${PV}" == 9999 ]] ; then
git-r3_src_unpack
fi
}
src_install() {
mv "${DOTNET_PKG_OUTPUT}/Readme.txt" CHANGELOG || die
dotnet-pkg-base_install
dotnet-pkg-base_dolauncher "/usr/share/${P}/ImeWlConverterCmd"
einstalldocs
}