commit: f7d4d2fb1448f51d1ed2e33450a127cf0b467aa8 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Thu Nov 13 21:07:54 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Thu Nov 13 21:17:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7d4d2fb
app-text/cb2bib: add 2.0.3, Qt6 based, now with tests Bug: https://bugs.gentoo.org/955962 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> app-text/cb2bib/Manifest | 1 + app-text/cb2bib/cb2bib-2.0.3.ebuild | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/app-text/cb2bib/Manifest b/app-text/cb2bib/Manifest index 36c042550420..60e42afe8ccd 100644 --- a/app-text/cb2bib/Manifest +++ b/app-text/cb2bib/Manifest @@ -1 +1,2 @@ DIST cb2bib-2.0.2.tar.gz 1366292 BLAKE2B 7d2657103cf6aeedf343111794b613c037fae3ca3cf57c52d9eb25470142a87ec2f39927673ed5662809f1caf861e29ef011d1563ee18b0a05aac1909d577e9d SHA512 cb367fc043b837e131559832ad36b0fa3a5c619d1694d2a08e6086d4c48ae1d06171b46b4992154ce185322e29389a261092ea1b17ea90c02e58df9cf171d9c1 +DIST cb2bib-2.0.3.tar.gz 1451802 BLAKE2B 36eb0b45bea9f0a9f21df6121dbdbd74aa78af9ab191f37087502e3b7edd52c62ddcf415229e7c76e1d61a1bb2c8fa957bee0500efba7c263d2d4777dc1655b9 SHA512 588f920035a8d09eacc1cc99982986be8dcacfea77ee3ace3733cc5bc83b3bc322a33a2e1e1d21dd910b79c843ecba1c37525dd608164b00fac91335d5096d0d diff --git a/app-text/cb2bib/cb2bib-2.0.3.ebuild b/app-text/cb2bib/cb2bib-2.0.3.ebuild new file mode 100644 index 000000000000..881d43dcc226 --- /dev/null +++ b/app-text/cb2bib/cb2bib-2.0.3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature qmake-utils xdg + +DESCRIPTION="Tool for extracting unformatted bibliographic references" +HOMEPAGE="https://www.molspaces.com/cb2bib/" +SRC_URI="https://www.molspaces.com/dl/progs/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +# build system supports lzo, lzsse, qt_zlib, avx2, but too painful to expose +# bundles qtsingleapplication once again since 2.0.3 + +DEPEND=" + app-arch/lz4:= + dev-qt/qtbase:6[gui,network,widgets] + dev-qt/qt5compat:6 +" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS CHANGELOG COPYRIGHT ) + +PATCHES=( "${FILESDIR}/${PN}-2.0.2-qmake.patch" ) # bug 953061 + +src_configure() { + eqmake6 +} + +src_compile() { + # bug #709940, still needed as of 2.0.2 + emake -j1 +} + +src_test() { + bin/cb2bib --test 2>&1 | tee test.log || die +} + +src_install() { + emake INSTALL_ROOT="${D}" install + einstalldocs +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "displaying mathematical notation" "media-fonts/jsmath" + optfeature "proper UTF-8 metadata writing in PDF text strings" "media-libs/exiftool" + optfeature "BibTeX file correctness checks and nice printing via bib2pdf shell script" "virtual/latex-base" + optfeature_header "Install additional packages for optional import data formats:" + optfeature "PDF files" "app-text/poppler[utils]" + optfeature "DVI files" "app-text/dvipdfm" + optfeature "ISI files, endnote format" "app-text/bibutils" +}
