mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 07:48:56 -04:00
app-dicts/fcitx-pinyin-moegirl: new package, add 20240809
This commit is contained in:
parent
a3d044883e
commit
dd6e78918e
1
app-dicts/fcitx-pinyin-moegirl/Manifest
Normal file
1
app-dicts/fcitx-pinyin-moegirl/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST fcitx-pinyin-moegirl-20240809.tar.gz 1385618 BLAKE2B c4bd2f261d89d39af4dba027ab623b52b075b90f2283a4b5b4d9933c664529ffb4559c55404ff493d7dfef8e1ee1587f9ed2191c289abd4dfae62326b4422018 SHA512 ebe5f52ce7c6113a7eb833e0900a87f7236ef0ed1ecfb8f5b7b1a8f269a7d1a727a93cc46abc4e946149025975a5636c3fa1b412e40fb8824274f899dcf051ca
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
inherit python-any-r1
|
||||
|
||||
DESCRIPTION="Fcitx 5 Pinyin Dictionary from zh.moegirl.org.cn"
|
||||
HOMEPAGE="https://github.com/outloudvi/mw2fcitx"
|
||||
SRC_URI="https://github.com/outloudvi/mw2fcitx/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/mw2fcitx-${PV}"
|
||||
|
||||
LICENSE="Unlicense CC-BY-NC-SA-3.0"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
app-i18n/fcitx:5
|
||||
!app-dicts/fcitx-pinyin-moegirl-bin
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-python/mw2fcitx[${PYTHON_SINGLE_USEDEP}]
|
||||
')
|
||||
"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/mw2fcitx[${PYTHON_SINGLE_USEDEP}]"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# remove unneeded outputs
|
||||
sed -i -e '10d;20,24d' utils/moegirl_dict.py
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
mw2fcitx -c utils/moegirl_dict.py
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DICT_PATH="/usr/share/fcitx5/pinyin/dictionaries"
|
||||
insinto "${DICT_PATH}"
|
||||
doins moegirl.dict
|
||||
fperms 0644 "${DICT_PATH}/moegirl.dict"
|
||||
}
|
11
app-dicts/fcitx-pinyin-moegirl/metadata.xml
Normal file
11
app-dicts/fcitx-pinyin-moegirl/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>blackteahamburger</name>
|
||||
<email>blackteahamburger@outlook.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">outloudvi/mw2fcitx</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user