diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-23 07:58:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-23 07:58:50 +0000 |
commit | 7819ef4baadbb9171070ce385f7051989fe64e49 (patch) | |
tree | 3ceb56418e8596ecbbd740e492938eaa4775bb3a /app-text/crqt-ng/crqt-ng-1.0.2.ebuild | |
parent | 4921f12d049de1487e17383a32da50a03ea90d65 (diff) |
gentoo auto-resync : 23:12:2022 - 07:58:50
Diffstat (limited to 'app-text/crqt-ng/crqt-ng-1.0.2.ebuild')
-rw-r--r-- | app-text/crqt-ng/crqt-ng-1.0.2.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-text/crqt-ng/crqt-ng-1.0.2.ebuild b/app-text/crqt-ng/crqt-ng-1.0.2.ebuild new file mode 100644 index 000000000000..ecb531fad955 --- /dev/null +++ b/app-text/crqt-ng/crqt-ng-1.0.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PLOCALES="bg cs hu 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="" +IUSE="+gif +svg +chm +harfbuzz +libunibreak +fribidi +zstd +libutf8proc" + +CDEPEND="app-text/crengine-ng[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 +} |