1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit qmake-utils xdg-utils
8 DESCRIPTION="Tool for extracting unformatted bibliographic references"
9 HOMEPAGE="https://www.molspaces.com/cb2bib/"
10 SRC_URI="https://www.molspaces.com/dl/progs/${P}.tar.gz"
15 IUSE="+lzo webengine +webkit"
17 REQUIRED_USE="?? ( webkit webengine )"
24 lzo? ( dev-libs/lzo:2 )
25 webengine? ( dev-qt/qtwebengine:5[widgets] )
26 webkit? ( dev-qt/qtwebkit:5 )
30 DOCS=( AUTHORS CHANGELOG COPYRIGHT )
35 sed -i -e "s|../AUTHORS ../COPYRIGHT ../LICENSE ../CHANGELOG||" src/src.pro || die
37 use webengine || sed -i -e "s/qtHaveModule(webenginewidgets)/false/g" src/src.pro || die
38 use webkit || sed -i -e "s/qtHaveModule(webkitwidgets)/false/g" src/src.pro || die
43 $(use !lzo && echo -config disable_lzo)
47 emake INSTALL_ROOT="${D}" install
52 elog "For best functionality, emerge the following packages:"
53 elog " app-text/poppler[utils] - for data import from PDF files"
54 elog " app-text/dvipdfm - for data import from DVI files"
55 elog " app-text/bibutils - for data import from ISI, endnote format"
56 elog " media-fonts/jsmath - for displaying mathematical notation"
57 elog " media-libs/exiftool - for proper UTF-8 metadata writing in PDF"
59 elog " virtual/latex-base - to check for BibTeX file correctness and to get"
60 elog " nice printing through the shell script bib2pdf"
64 xdg_desktop_database_update
68 xdg_desktop_database_update