summaryrefslogtreecommitdiff
blob: 1d5683a75463cb352364ea8edc706e156a63000f (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/gbib/gbib-0.1.2.ebuild,v 1.4 2004/06/24 22:39:38 agriffis Exp $

inherit eutils

DESCRIPTION="user-friendly editor and browser for BibTeX bibliographic databases"
HOMEPAGE="http://gbib.seul.org/"
SRC_URI="ftp://ftp.seul.org/pub/gbib/src/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="nls"

RDEPEND="=x11-libs/gtk+-1.2*
	=gnome-base/gnome-libs-1.4*"
DEPEND="${RDEPEND}
	virtual/tetex"

src_unpack() {
	unpack ${A}
	cd ${S}
	EPATCH_SINGLE_MSG="Applying gentoo gBib patches" \
	epatch ${FILESDIR}/${PN}-gentoo.patch
}

src_compile() {
	econf `use_with nls` || die "could not configure"
	emake || die "emake failed"
}

src_install() {
	make install DESTDIR=${D} || die
	dodoc ABOUT-NLS AUTHORS CHANGES INSTALL README TODO || die
}

pkg_postinst() {
	einfo
	einfo "To insert citations in a LyX document, verify that LyX"
	einfo "is running before clicking on the lyx button."
	einfo "The LyX server must be enabled, just add in your"
	einfo "lyxrc this line:"
	einfo
	einfo "	\serverpipe \"/YOUR_HOME_DIR/.lyxpipe\""
	einfo
}