This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/app-i18n/poedit/poedit-3.1.1.ebuild
tastytea 5700343b11
app-i18n/poedit: add 3.1.1
Signed-off-by: tastytea <tastytea@tastytea.de>
2022-07-14 18:20:06 +02:00

60 lines
1.3 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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 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
default
}
src_configure() {
local myeconfargs=(
$(use_with cld2)
$(use_with crowdin cpprest)
)
econf "${myeconfargs[@]}"
}