| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/cb2bib/cb2bib-1.4.8.ebuild,v 1.3 2012/06/18 11:05:38 ago Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit cmake-utils
|
| 8 |
|
| 9 |
DESCRIPTION="Tool for extracting unformatted bibliographic references"
|
| 10 |
HOMEPAGE="http://www.molspaces.com/cb2bib/"
|
| 11 |
SRC_URI="http://www.molspaces.com/dl/progs/${P}.tar.gz"
|
| 12 |
|
| 13 |
SLOT="0"
|
| 14 |
LICENSE="GPL-3"
|
| 15 |
KEYWORDS="amd64 x86"
|
| 16 |
IUSE="debug +lzo +poll"
|
| 17 |
|
| 18 |
DEPEND="
|
| 19 |
x11-libs/libX11
|
| 20 |
x11-libs/qt-core:4
|
| 21 |
x11-libs/qt-gui:4
|
| 22 |
x11-libs/qt-webkit:4
|
| 23 |
lzo? ( dev-libs/lzo )
|
| 24 |
"
|
| 25 |
RDEPEND="${DEPEND}"
|
| 26 |
|
| 27 |
src_configure() {
|
| 28 |
if use !lzo; then
|
| 29 |
mycmakeargs+=( -DC2B_USE_LZO=OFF )
|
| 30 |
fi
|
| 31 |
|
| 32 |
if use !poll; then
|
| 33 |
mycmakeargs+=( -DC2B_USE_POLL=OFF )
|
| 34 |
fi
|
| 35 |
|
| 36 |
cmake-utils_src_configure
|
| 37 |
}
|
| 38 |
|
| 39 |
pkg_postinst() {
|
| 40 |
einfo
|
| 41 |
elog "For best functionality, emerge the following packages:"
|
| 42 |
elog " app-text/poppler[utils] - for data import from PDF files"
|
| 43 |
elog " app-text/dvipdfm - for data import from DVI files"
|
| 44 |
elog " app-text/bibutils - for data import from ISI, endnote format"
|
| 45 |
elog " media-fonts/jsmath - for displaying mathematical notation"
|
| 46 |
elog " media-libs/exiftool - for proper UTF-8 metadata writing in PDF"
|
| 47 |
elog " text strings"
|
| 48 |
elog " virtual/latex-base - to check for BibTeX file correctness and to get"
|
| 49 |
elog " nice printing through the shell script bib2pdf"
|
| 50 |
einfo
|
| 51 |
}
|