feat: update fcitx5 and add cldr-emoji-annotation

This commit is contained in:
wgjak47 2020-02-13 23:35:36 +08:00
parent 17d005b6c3
commit dce27bc6f7
9 changed files with 105 additions and 104 deletions

View File

@ -0,0 +1 @@
cldr-emoji-annotation-9999.ebuild

View File

@ -0,0 +1,36 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
DESCRIPTION="Emoji annotation files in CLDR"
HOMEPAGE="https://github.com/fujiwarat/cldr-emoji-annotation"
EGIT_REPO_URI="https://github.com/fujiwarat/cldr-emoji-annotation.git"
LICENSE="Unicode_License"
SLOT="0"
KEYWORDS="~amd64"
SRC_URI=""
DEPEND="!app-i18n/unicode-cldr"
RDEPEND="${DEPEND}"
BDEPEND=""
TAG=${PV}_${PR/r/}
if [[ "${PV}" != 9999 ]]; then
EGIT_COMMIT=${TAG}
else
KEYWORDS=""
fi
src_prepare() {
./autogen.sh --prefix=/usr || die
if declare -p PATCHES | grep -q "^declare -a "; then
[[ -n ${PATCHES[@]} ]] && eapply "${PATCHES[@]}"
else
[[ -n ${PATCHES} ]] && eapply ${PATCHES}
fi
eapply_user
}

View File

@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
@ -7,7 +7,7 @@ inherit cmake-utils gnome2-utils xdg-utils git-r3
EGIT_REPO_URI="https://github.com/fcitx/fcitx5-chinese-addons.git"
if [[ ! "${PV}" =~ (^|\.)9999$ ]]; then
EGIT_COMMIT="5052d024436df3f412820de3b0fa28a216cc8e16"
EGIT_COMMIT="3dae7a253a7ddcd9fcb3b320c66208e4566a8bc0"
fi
SRC_URI="https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz

View File

@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@ -11,7 +11,7 @@ HOMEPAGE="https://github.com/fcitx/fcitx5-rime"
EGIT_REPO_URI="https://github.com/fcitx/fcitx5-rime.git"
if [[ ! "${PV}" =~ (^|\.)9999$ ]]; then
EGIT_COMMIT="02afc3138d39c7ba773d3c3455404d3f32bfb14d"
EGIT_COMMIT="72a9df7910c2b41201e57d70e72f8843bf881505"
fi
LICENSE="GPL-2"

View File

@ -1,92 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit cmake-utils gnome2-utils xdg-utils git-r3
EGIT_REPO_URI="https://github.com/fcitx/fcitx5.git"
if [[ ! "${PV}" =~ (^|\.)9999$ ]]; then
EGIT_COMMIT="8d889da135dbfe42bb9721f16fcaad70145f0e09"
fi
SRC_URI=""
DESCRIPTION="Fcitx5 Next generation of fcitx "
HOMEPAGE="https://fcitx-im.org/ https://gitlab.com/fcitx/fcitx"
SRC_URI="https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT"
SLOT="5"
KEYWORDS="~amd64"
IUSE="+enchant test coverage doc presage systemd"
REQUIRED_USE="coverage? ( test )"
RDEPEND="dev-libs/glib:2
sys-apps/dbus
dev-libs/json-c
dev-libs/libfmt
sys-apps/util-linux
virtual/libiconv
virtual/libintl
x11-libs/libxkbcommon[X]
x11-libs/libX11
dev-libs/wayland
dev-libs/wayland-protocols
x11-libs/libXfixes
x11-libs/libXinerama
x11-libs/libXrender
x11-libs/libxkbfile
x11-libs/xcb-imdkit
x11-misc/xkeyboard-config
x11-libs/cairo[X]
x11-libs/libXext
x11-libs/pango
media-libs/fontconfig
enchant? ( app-text/enchant:0= )
app-text/iso-codes
dev-libs/libxml2"
DEPEND="${RDEPEND}
kde-frameworks/extra-cmake-modules:5
virtual/pkgconfig"
src_prepare() {
pwd
ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/modules/spell/dict/en_dict-20121020.tar.gz || die
cmake-utils_src_prepare
xdg_environment_reset
}
src_configure() {
local mycmakeargs=(
-DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
-DSYSCONFDIR="${EPREFIX}/etc"
-DENABLE_TEST=$(usex test)
-DENABLE_COVERAGE=$(usex coverage)
-DENABLE_ENCHANT=$(usex enchant)
-DENABLE_PRESAGE=$(usex presage)
-DENABLE_DOC=$(usex doc)
-DUSE_SYSTEMD=$(usex systemd)
)
cmake-utils_src_configure
}
src_install(){
cmake-utils_src_install
}
pkg_postinst() {
gnome2_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
elog
elog "Follow the instrcutions of https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx"
elog "and change the fcitx to fcitx5"
elog
}
pkg_postrm() {
gnome2_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}

View File

@ -0,0 +1 @@
fcitx5-999999999.ebuild

View File

@ -1,15 +1,17 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
EAPI=7
inherit cmake-utils gnome2-utils xdg-utils git-r3
EGIT_REPO_URI="https://github.com/fcitx/fcitx5.git"
if [[ ! "${PV}" =~ (^|\.)9999$ ]]; then
EGIT_COMMIT="8d889da135dbfe42bb9721f16fcaad70145f0e09"
KEYWORDS="~amd64"
if [[ "${PV}" != 999999999 ]]; then
EGIT_COMMIT="943641638d48bd2073f07847fa594999458dc3b0"
else
KEYWORDS=""
fi
SRC_URI=""
DESCRIPTION="Fcitx5 Next generation of fcitx "
HOMEPAGE="https://fcitx-im.org/ https://gitlab.com/fcitx/fcitx"
@ -17,7 +19,6 @@ SRC_URI="https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-dat
LICENSE="BSD-1 GPL-2+ LGPL-2+ MIT"
SLOT="5"
KEYWORDS=""
IUSE="+enchant test coverage doc presage systemd"
REQUIRED_USE="coverage? ( test )"
RDEPEND="dev-libs/glib:2
@ -43,6 +44,7 @@ RDEPEND="dev-libs/glib:2
media-libs/fontconfig
enchant? ( app-text/enchant:0= )
app-text/iso-codes
app-i18n/cldr-emoji-annotation
dev-libs/libxml2"
DEPEND="${RDEPEND}
kde-frameworks/extra-cmake-modules:5

53
licenses/Unicode_License Normal file
View File

@ -0,0 +1,53 @@
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
Unicode Data Files include all data files under the directories
http://www.unicode.org/Public/, http://www.unicode.org/reports/,
http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/,
and http://www.unicode.org/utility/trac/browser/.
Unicode Data Files do not include PDF online code charts under the
directory http://www.unicode.org/Public/.
Software includes any source code published in the Unicode Standard
or under the directories
http://www.unicode.org/Public/, http://www.unicode.org/reports/,
http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/,
and http://www.unicode.org/utility/trac/browser/.
NOTICE TO USER: Carefully read the following legal agreement.
BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA
FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT,
AND AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT.
IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE
DATA FILES OR SOFTWARE.
COPYRIGHT AND PERMISSION NOTICE
Copyright © 1991-2016 Unicode, Inc. All rights reserved. Distributed under
the Terms of Use in http://www.unicode.org/copyright.html.
Permission is hereby granted, free of charge, to any person obtaining a copy
of the Unicode data files and any associated documentation (the "Data Files")
or Unicode software and any associated documentation (the "Software") to deal
in the Data Files or Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute,
and/or sell copies of the Data Files or Software, and to permit persons to
whom the Data Files or Software are furnished to do so, provided that either
(a) this copyright and permission notice appear with all copies of the Data
Files or Software, or
(b) this copyright and permission notice appear in associated Documentation.
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
OF THE DATA FILES OR SOFTWARE.
Except as contained in this notice, the name of a copyright holder shall not
be used in advertising or otherwise to promote the sale, use or other
dealings in these Data Files or Software without prior written authorization
of the copyright holder.

View File

@ -1,5 +1,5 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -13,7 +13,7 @@ SRC_URI="
amd64? ( http://d1.music.126.net/dmusic/${PN}_${PV}_amd64_ubuntu_20190428.deb -> ${P}.deb )
"
LICENSE=""
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""