summaryrefslogtreecommitdiff
blob: 64793e608fb81599a5ef039288e3cec51129500f (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-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Grant Goodyear <g2boojum@hotmail.com>
# /home/cvsroot/gentoo-x86/skel.build,v 1.2 2001/02/15 18:17:31 achim Exp
# $Header: /var/cvsroot/gentoo-x86/media-gfx/grace/grace-5.1.3.ebuild,v 1.3 2001/08/30 17:31:35 pm Exp $


#P=
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Grace is a WYSIWYG 2D plotting tool for the X Window System"
SRC_URI="ftp://plasma-gate.weizmann.ac.il/pub/grace/src/${A}"
HOMEPAGE="http://plasma-gate.weizmann.ac.il/Grace/"

DEPEND="virtual/glibc virtual/x11
	>=x11-libs/openmotif-2.1
	>=media-libs/libpng-0.96
	>=media-libs/tiff-3.5
	pdflib? ( >=media-libs/pdflib-3.0.2 )"
RDEPEND="virtual/glibc virtual/x11
	>=x11-libs/openmotif-2.1
	>=media-libs/libpng-0.96
	>=media-libs/jpeg-6
	pdflib? ( >=media-libs/pdflib-3.0.2 )"
src_compile() {

    if [ -z "`use pdflib`" ] ; then
	myconf="--disable-pdfdrv"
    fi
    try ./configure --with-grace-home=/opt/grace --host=${CHOST} ${myconf}
    try make

}

src_install () {

    try make GRACE_HOME=${D}/opt/grace install
    dodoc CHANGES COPYRIGHT ChangeLog DEVELOPERS LICENSE README
    cd doc
    doman *.1
    docinto html
    dodoc *.{html,jpg,png}
    docinto print
    dodoc *.dvi
    docinto sgml
    dodoc *.sgml
    docinto examples
    dodoc *.{dat,agr,sh}
    rm -rf ${D}/opt/grace/doc
    insinto /etc/env.d
    doins ${FILESDIR}/10grace


}