summaryrefslogtreecommitdiff
blob: fabc86b06005dc6752ea204e8204acc67feffd3d (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
57
58
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Desktop Team <desktop@cvs.gentoo.org>
# Author Tod Neidt <tneidt@fidnet.com>
# $Header: /var/cvsroot/gentoo-x86/app-sci/gperiodic/gperiodic-1.3.2.ebuild,v 1.3 2002/05/23 06:50:10 seemant Exp $

S=${WORKDIR}/${P}
DESCRIPTION="GPeriodic is a periodic table application for Linux."
SRC_URI="ftp://ftp.seul.org/pub/gperiodic/${P}.tar.gz"
HOMEPAGE="http://gperiodic.seul.org/"

DEPEND=">=sys-libs/ncurses-5.2
	=x11-libs/gtk+-1.2*
	nls? ( sys-devel/gettext )"

PROVIDE="app-misc/gperiodic"

src_unpack() {
	unpack ${P}.tar.gz
	cd ${S}

 	#Fix version number,comment out non-working lex inquiry
 	# to eliminate superfluous config error, and use ncurses for termcap 

	patch -p1 < ${FILESDIR}/${P}-gentoo.diff || die
}

src_compile() {
	local myconf

	if [ -z "`use nls`" ]
	then
		myconf="--disable-nls"
	fi

	./configure --host=${CHOST}					\
		    --prefix=/usr					\
		    --sysconfdir=/etc					\
		    --localstatedir=/var/lib				\
	    	    --infodir=/usr/share/info 				\
		    --mandir=/usr/share/man 				\
		    ${myconf} || die
	
	emake || die
}

src_install () {
	make prefix=${D}/usr						\
	     sysconfdir=${D}/etc					\
	     localstatedir=${D}/var/lib					\
	     infodir=${D}/usr/share/info				\
	     mandir=${D}/usr/share/man					\
	     install || die
	
	doman man/gperiodic.1
	
	dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README
}