blob: 36b045cd88eeb113dbda6ed80f09d8a11eeca3a3 (
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
62
63
64
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/pgplot/pgplot-5.2.2.ebuild,v 1.2 2006/03/30 23:55:06 agriffis Exp $
inherit eutils toolchain-funcs fortran
FORTRAN="g77"
MY_P="${PN}${PV//.}"
DESCRIPTION="A Fortran- or C-callable, device-independent graphics package for making simple scientific graphs"
HOMEPAGE="http://www.astro.caltech.edu/~tjp/pgplot/"
SRC_URI="ftp://ftp.astro.caltech.edu/pub/pgplot/${MY_P}.tar.gz"
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="~ia64 ~x86"
IUSE=""
RDEPEND="|| ( x11-libs/libX11 virtual/x11 )
media-libs/libpng"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-drivers.patch
epatch ${FILESDIR}/${PN}-makemake.patch
epatch ${FILESDIR}/${PN}-compile-setup.patch
cp sys_linux/g77_gcc.conf local.conf
sed -i \
-e "s:FCOMPL=.*:FCOMPL=\"${FORTRANC}\":g" \
-e "s:FFLAGOPT=.*:FFLAGOPT=\"${FFLAGS:- -O2}\":g" \
-e "s:CCOMPL=.*:CCOMPL=\"$(tc-getCC)\":g" \
-e "s:CFLAGOPT=.*:CFLAGOPT=\"${CFLAGS}\":g" \
local.conf
}
src_compile() {
./makemake ${S} linux
emake -j1 || die "emake failed"
# Build C portion
make cpg
# this just cleans out unneeded files
make clean
}
src_install() {
insinto /usr/lib/pgplot
doins grfont.dat
dolib.a libpgplot.a
dolib.so libpgplot.so
dodoc pgplot.doc
dobin pgxwin_server
# C binding
insinto /usr/include
doins cpgplot.h
dolib.a libcpgplot.a
}
|