You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
5 years ago
|
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"
|
||
6 years ago
|
WX_GTK_VER=3.0-gtk3
|
||
|
|
||
|
inherit gnome2-utils l10n 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"
|
||
|
|
||
4 years ago
|
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||
6 years ago
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
|
||
|
RDEPEND="
|
||
|
app-text/gtkspell:3
|
||
|
x11-libs/gtk+:3
|
||
|
>=dev-cpp/lucene++-3.0.5
|
||
5 years ago
|
>=dev-libs/pugixml-1.9
|
||
6 years ago
|
dev-libs/boost:=[nls]
|
||
|
dev-libs/icu:=
|
||
|
>=x11-libs/wxGTK-3.0.3:${WX_GTK_VER}[X]
|
||
|
"
|
||
4 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
5 years ago
|
|
||
6 years ago
|
src_prepare() {
|
||
|
my_rm_loc() {
|
||
|
sed -i -e "/^POEDIT_LINGUAS = /s: ${1}::" locales/Makefile.in || die
|
||
|
rm "locales/${1}.mo" || die
|
||
|
}
|
||
|
|
||
|
l10n_find_plocales_changes 'locales' '' '.mo'
|
||
|
l10n_for_each_disabled_locale_do my_rm_loc
|
||
|
|
||
|
setup-wxwidgets
|
||
|
xdg_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
4 years ago
|
# CLD2 and C++ Rest are not available in Gentoo, bug 674916
|
||
6 years ago
|
local myeconfargs=(
|
||
|
--without-cld2
|
||
|
--without-cpprest
|
||
|
)
|
||
|
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|