forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
- Loading branch information
Michael Palimaka
committed
Jun 29, 2017
1 parent
182cea9
commit 41144b3
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST cb2bib-1.9.6.tar.gz 845129 SHA256 a2715a670ad405d6599b237d058cccf9e0dbe47070ee8e5d7f799c24ea4715af SHA512 2e13d50996a5461f544ece6cac96ca32f1df1c703b9872d0ec8852a43fd0ba51041a136363fbed433b464163254b4d42ab2e6239a48567961155ae068ad6b27c WHIRLPOOL fbaaa3c77c5d90098d33c31dd13c75484be05b8c5fbf81d33b5a9a620bd9dec452fb9877f2d3c69213354763c63b56d07ff0c282d0ddd2077b8a58942a6d0571 | ||
DIST cb2bib-1.9.7.tar.gz 845121 SHA256 fae8520d85a01066434dbdc9357663467c20b4578229cea3047cc6f069dd283f SHA512 87a438288c6e7776db136de63de1a8e27f2abf8499d28c0691b60ad3ef4f848e8987af4fc47d1f2cfb1d47009e28e7535f6bab998811cb721bfc9f384941b1e4 WHIRLPOOL a4dc37345e93f815a50503108b9997717ea96885869a6aef5991f39aa1698810d7289a55da6cf330729e8e12c8399781b0eaebdbae256ac245d2700900da9529 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |