summaryrefslogtreecommitdiff
blob: 0eecc1e68e200c14593a384a196114a55fe5cc7a (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
59
60
61
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/gperiodic/gperiodic-1.3.2.ebuild,v 1.9 2002/10/17 14:26:47 vapier Exp $

IUSE="nls"

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/"
KEYWORDS="x86"
SLOT="0"
LICENSE="GPL-2"

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

PROVIDE="app-misc/gperiodic"

src_unpack() {
	unpack ${A}
	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
}