Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/cb2bib/
Date: Fri, 23 Oct 2020 23:27:16
Message-Id: 1603495614.b3e349ba4e523b5c7fdf3ac2171c0f3101a9185c.asturm@gentoo
1 commit: b3e349ba4e523b5c7fdf3ac2171c0f3101a9185c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 23 18:08:41 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 23 23:26:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3e349ba
7
8 app-text/cb2bib: Drop IUSE=webkit
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.2
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-text/cb2bib/cb2bib-2.0.0-r1.ebuild | 71 ++++++++++++++++++++++++++++++++++
14 1 file changed, 71 insertions(+)
15
16 diff --git a/app-text/cb2bib/cb2bib-2.0.0-r1.ebuild b/app-text/cb2bib/cb2bib-2.0.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..746edabdcd5
19 --- /dev/null
20 +++ b/app-text/cb2bib/cb2bib-2.0.0-r1.ebuild
21 @@ -0,0 +1,71 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit qmake-utils xdg-utils
28 +
29 +DESCRIPTION="Tool for extracting unformatted bibliographic references"
30 +HOMEPAGE="https://www.molspaces.com/cb2bib/"
31 +SRC_URI="https://www.molspaces.com/dl/progs/${P}.tar.gz"
32 +
33 +LICENSE="GPL-3"
34 +SLOT="0"
35 +KEYWORDS="amd64 x86"
36 +IUSE="+lzo"
37 +
38 +DEPEND="
39 + dev-qt/qtcore:5
40 + dev-qt/qtgui:5
41 + dev-qt/qtnetwork:5
42 + dev-qt/qtwebengine:5[widgets]
43 + dev-qt/qtwidgets:5
44 + lzo? ( dev-libs/lzo:2 )
45 +"
46 +RDEPEND="${DEPEND}"
47 +
48 +DOCS=( AUTHORS CHANGELOG COPYRIGHT )
49 +
50 +src_prepare() {
51 + default
52 +
53 + sed -e "s|../AUTHORS ../COPYRIGHT ../LICENSE ../CHANGELOG||" \
54 + -i src/src.pro || die
55 +
56 + sed -i -e "s/qtHaveModule(webkitwidgets)/false/g" src/src.pro || die
57 +}
58 +
59 +src_configure() {
60 + eqmake5 \
61 + $(use !lzo && echo -config disable_lzo)
62 +}
63 +
64 +src_compile() {
65 + # bug #709940
66 + emake -j1
67 +}
68 +
69 +src_install() {
70 + emake INSTALL_ROOT="${D}" install
71 + einstalldocs
72 +}
73 +
74 +pkg_postinst() {
75 + elog "For best functionality, emerge the following packages:"
76 + elog " app-text/poppler[utils] - for data import from PDF files"
77 + elog " app-text/dvipdfm - for data import from DVI files"
78 + elog " app-text/bibutils - for data import from ISI, endnote format"
79 + elog " media-fonts/jsmath - for displaying mathematical notation"
80 + elog " media-libs/exiftool - for proper UTF-8 metadata writing in PDF"
81 + elog " text strings"
82 + elog " virtual/latex-base - to check for BibTeX file correctness and to get"
83 + elog " nice printing through the shell script bib2pdf"
84 +}
85 +
86 +pkg_postinst() {
87 + xdg_desktop_database_update
88 +}
89 +
90 +pkg_postrm() {
91 + xdg_desktop_database_update
92 +}