forked from tastytea/overlay
app-i18n/poedit: Version bump 3.0, enable optional features.
Enable support for Crowdin via dev-cpp/cpprest and better language autodetection support via sci-libs/cld2.
This commit is contained in:
parent
21c8cf6d12
commit
81b707960a
1
app-i18n/poedit/Manifest
Normal file
1
app-i18n/poedit/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST poedit-3.0.tar.gz 2925483 BLAKE2B 6f80414ada3249db34d4f7742e4233a61fc1031dddd8e02d3ea050208e60984d83502da9dab436eda1ab5796cdef3229c9d227efee80258e1b469f09029e1a65 SHA512 e87a2bf763b981ff0de4612dc4f76866fa63ee070e94e35039830a60b922faac55d81c371f1e5437a7ab756b95b47daedf3473ef6785774e6ff6087a7398cf47
|
22
app-i18n/poedit/metadata.xml
Normal file
22
app-i18n/poedit/metadata.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>tastytea</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
This program is a GUI frontend to the GNU gettext utilities
|
||||
and a catalogs editor/source code parser.
|
||||
It helps with translating applications into another language.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/vslavik/poedit/issues</bugs-to>
|
||||
<remote-id type="github">vslavik/poedit</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="crowdin">Enable Crowdin (online translation platform) integration</flag>
|
||||
<flag name="cld2">Better language autodetection and non-English source
|
||||
languages via sci-libs/cld2</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
59
app-i18n/poedit/poedit-3.0.ebuild
Normal file
59
app-i18n/poedit/poedit-3.0.ebuild
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PLOCALES="af an ar az be be@latin bg bs ca ckb co cs da de el en_GB es et eu fa fi fr ga gl he hr hu hy id is it ja ka kab kk ko lt lv ms nb nl oc pa pl pt_BR pt_PT ro ru sk sl sq sr sv tg th tr uk uz vi zh_CN zh_TW"
|
||||
WX_GTK_VER=3.0-gtk3
|
||||
|
||||
inherit gnome2-utils plocale wxwidgets xdg
|
||||
|
||||
DESCRIPTION="GUI gettext translations editor"
|
||||
HOMEPAGE="https://poedit.net"
|
||||
SRC_URI="https://github.com/vslavik/${PN}/releases/download/v${PV}-oss/${P}.tar.gz"
|
||||
IUSE="+cld2 +crowdin"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
app-text/gtkspell:3
|
||||
x11-libs/gtk+:3
|
||||
>=dev-cpp/lucene++-3.0.5
|
||||
>=dev-libs/pugixml-1.9
|
||||
dev-libs/boost:=[nls]
|
||||
dev-libs/icu:=
|
||||
>=x11-libs/wxGTK-3.0.4:${WX_GTK_VER}[X,webkit]
|
||||
cld2? ( sci-libs/cld2 )
|
||||
crowdin? (
|
||||
dev-cpp/cpprest
|
||||
app-crypt/libsecret
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
my_rm_loc() {
|
||||
sed -i -e "/^POEDIT_LINGUAS = /s: ${1}::" locales/Makefile.in || die
|
||||
rm "locales/${1}.mo" || die
|
||||
}
|
||||
|
||||
plocale_find_changes 'locales' '' '.mo'
|
||||
plocale_for_each_disabled_locale my_rm_loc
|
||||
|
||||
setup-wxwidgets
|
||||
xdg_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with cld2)
|
||||
$(use_with crowdin cpprest)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user