diff options
| author | Andrey Grozin <grozin@gentoo.org> | 2023-04-20 16:40:06 +0700 |
|---|---|---|
| committer | Andrey Grozin <grozin@gentoo.org> | 2023-04-20 16:40:06 +0700 |
| commit | b23b13c13a7a45294ea0b46cb1ff4dd327a7eb9d (patch) | |
| tree | 4ae2d492fa1adc86dcd6f170af05e435b3fbfb5d | |
| parent | f31aafd10c4470ab0d9a3f27dee72fe1faee1b11 (diff) | |
| download | gentoo-b23b13c13a7a45294ea0b46cb1ff4dd327a7eb9d.tar.gz gentoo-b23b13c13a7a45294ea0b46cb1ff4dd327a7eb9d.tar.bz2 gentoo-b23b13c13a7a45294ea0b46cb1ff4dd327a7eb9d.zip | |
app-text/crqt-ng: DEPEND on crengine:0/<subslot>
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
| -rw-r--r-- | app-text/crqt-ng/crqt-ng-1.0.11-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-text/crqt-ng/crqt-ng-1.0.11-r1.ebuild b/app-text/crqt-ng/crqt-ng-1.0.11-r1.ebuild new file mode 100644 index 000000000000..61940f927e92 --- /dev/null +++ b/app-text/crqt-ng/crqt-ng-1.0.11-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PLOCALES="bg cs hu nl ru uk" +inherit cmake plocale xdg + +DESCRIPTION="Cross-platform e-book reader" +HOMEPAGE="https://gitlab.com/coolreader-ng/crqt-ng" +SRC_URI="https://gitlab.com/coolreader-ng/${PN}/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+gif +svg +chm +harfbuzz +libunibreak +fribidi +zstd +libutf8proc" + +CDEPEND=">=app-text/crengine-ng-0.9.7:0=[png,jpeg,fontconfig,gif=,svg=,chm=,harfbuzz=,fribidi=,zstd=,libutf8proc=] + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5" +RDEPEND="${CDEPEND}" +BDEPEND="${CDEPEND} + dev-qt/linguist-tools:5" + +src_prepare() { + cmake_src_prepare + xdg_environment_reset + + # locales + plocale_find_changes "${S}"/src/i18n 'crqt_' '.ts' + sed -e "s|set(LANGUAGES .*)|set(LANGUAGES $(plocale_get_locales))|i" \ + -i "${S}"/src/CMakeLists.txt \ + || die "sed CMakeLists.txt failed" +} + +src_configure() { + CMAKE_USE_DIR="${S}" + CMAKE_BUILD_TYPE="Release" + local mycmakeargs=(-DUSE_QT=QT5) + cmake_src_configure +} |
