blob: 3f18b94af6ddb07bc7f95be474dbf7a8a93c240b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/cb2bib/cb2bib-1.3.7.ebuild,v 1.1 2010/02/22 15:47:35 ayoy Exp $
EAPI="2"
inherit qt4-r2
DESCRIPTION="Tool for extracting unformatted bibliographic references"
HOMEPAGE="http://www.molspaces.com/cb2bib/"
SRC_URI="http://www.molspaces.com/dl/progs/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86"
IUSE="debug +lzo +poll"
DEPEND="x11-libs/qt-webkit:4
lzo? ( dev-libs/lzo )"
RDEPEND="${DEPEND}"
src_prepare() {
echo "CONFIG += ordered" >> "${PN}.pro" || die "patching project file failed"
sed -i 's:\.\./COPYRIGHT \.\.\/LICENSE::' src/src.pro || die "sed src.pro failed"
}
src_configure() {
# Custom configure script has only few options, so call ./configure manually...
# We need to unset QTDIR here, else we may end up with qt3 if it is installed.
# TODO: remove QTDIR when qt3 goes away
QTDIR="" ./configure \
$(use_enable lzo) \
$(use_enable poll cbpoll) \
--disable-qmake-call \
--qmakepath /usr/bin/qmake \
--prefix /usr \
--bindir /usr/bin \
--datadir /usr/share \
--desktopdatadir /usr/share/applications \
--icondir /usr/share/pixmaps \
|| die "cb2bib-provided configure failed"
eqmake4 $(cat qmake-additional-args)
}
pkg_postinst() {
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"
}
|