app-text/cb2bib: version bump 1.9.6
authorMichael Palimaka <kensington@gentoo.org>
Sat, 4 Mar 2017 04:15:56 +0000 (15:15 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Sat, 4 Mar 2017 04:16:17 +0000 (15:16 +1100)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

app-text/cb2bib/Manifest
app-text/cb2bib/cb2bib-1.9.6.ebuild [new file with mode: 0644]
app-text/cb2bib/metadata.xml

index df6ced45fb6b2e1724eec38d8efedf3ccb0e02b5..85703e4a8e157139bb1da28747b2d49a2a412d21 100644 (file)
@@ -1 +1,2 @@
 DIST cb2bib-1.5.0.tar.gz 899936 SHA256 e5eae392c9223889fb21c5a656b014d5a81a333c5378196075a985233885f3b9 SHA512 bc1149ebc1dc2f6fb0e2bf04dedc156c2decd5f76a3b57bc24713db5827afb83e5ff2ef4b380d6a4fa6f80ce6375bfa97b2cfdc6d7540f620e3f541a586e998b WHIRLPOOL b4de5b4ad924ae623403070d95d50cbfa378676ed76519d7ec9002c686dd26da6ea8a43531f8c0147c0206a157ca44e9e94c50d53564a78e7a0a098ccb293f53
+DIST cb2bib-1.9.6.tar.gz 845129 SHA256 a2715a670ad405d6599b237d058cccf9e0dbe47070ee8e5d7f799c24ea4715af SHA512 2e13d50996a5461f544ece6cac96ca32f1df1c703b9872d0ec8852a43fd0ba51041a136363fbed433b464163254b4d42ab2e6239a48567961155ae068ad6b27c WHIRLPOOL fbaaa3c77c5d90098d33c31dd13c75484be05b8c5fbf81d33b5a9a620bd9dec452fb9877f2d3c69213354763c63b56d07ff0c282d0ddd2077b8a58942a6d0571
diff --git a/app-text/cb2bib/cb2bib-1.9.6.ebuild b/app-text/cb2bib/cb2bib-1.9.6.ebuild
new file mode 100644 (file)
index 0000000..43999db
--- /dev/null
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+DESCRIPTION="Tool for extracting unformatted bibliographic references"
+HOMEPAGE="http://www.molspaces.com/cb2bib/"
+SRC_URI="http://www.molspaces.com/dl/progs/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+lzo webengine +webkit"
+
+REQUIRED_USE="?? ( webkit webengine )"
+
+DEPEND="
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtwidgets:5
+       lzo? ( dev-libs/lzo:2 )
+       webkit? ( dev-qt/qtwebkit:5 )
+       webengine? ( dev-qt/qtwebengine:5[widgets] )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS CHANGELOG COPYRIGHT )
+
+src_prepare() {
+       default
+
+       sed -i -e "s|../AUTHORS ../COPYRIGHT ../LICENSE ../CHANGELOG||" src/src.pro || die
+
+       use webengine || sed -i -e "s/qtHaveModule(webenginewidgets)/false/g" src/src.pro || die
+       use webkit || sed -i -e "s/qtHaveModule(webkitwidgets)/false/g" src/src.pro || die
+}
+
+src_configure() {
+       eqmake5 \
+               $(use !lzo && echo -config disable_lzo)
+}
+
+src_install() {
+       emake INSTALL_ROOT="${D}" install
+       einstalldocs
+}
+
+pkg_postinst() {
+       einfo
+       elog "For best functionality, emerge the following packages:"
+       elog "    app-text/poppler[utils] - for data import from PDF files"
+       elog "    app-text/dvipdfm        - for data import from DVI files"
+       elog "    app-text/bibutils       - for data import from ISI, endnote format"
+       elog "    media-fonts/jsmath      - for displaying mathematical notation"
+       elog "    media-libs/exiftool     - for proper UTF-8 metadata writing in PDF"
+       elog "                              text strings"
+       elog "    virtual/latex-base      - to check for BibTeX file correctness and to get"
+       elog "                              nice printing through the shell script bib2pdf"
+       einfo
+}
index 57bbf03e3c97170323b9d6501a43ff9a4e8fb1a8..dca6445c8920428c791efc3c8353eeb41a39c61a 100644 (file)
@@ -5,6 +5,9 @@
                <email>qt@gentoo.org</email>
                <name>Gentoo Qt Project</name>
        </maintainer>
+       <use>
+               <flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> instead of <pkg>dev-qt/qtwebkit</pkg></flag>
+       </use>
        <upstream>
                <bugs-to>mailto:webmaster@molspaces.com</bugs-to>
        </upstream>