blob: 22a3e5c32373410e4a78f4394c39f539e2ebff13 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-misc/gri/gri-2.12.14.ebuild,v 1.5 2008/06/09 10:46:40 markusle Exp $
inherit eutils elisp-common
IUSE="emacs"
DESCRIPTION="language for scientific graphics programming"
HOMEPAGE="http://gri.sourceforge.net/"
SRC_URI="mirror://sourceforge/gri/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
RESTRICT="test"
DEPEND=">=sci-libs/netcdf-3.5.0
virtual/latex-base
media-gfx/imagemagick
virtual/ghostscript
emacs? ( virtual/emacs )"
SITEFILE="50gri-gentoo.el"
src_compile() {
econf || die "econf failed."
emake || die "emake failed."
if use emacs; then
pushd src; elisp-comp *.el; popd
fi
}
src_install() {
# Replace PREFIX now and correct paths in the startup message.
sed -e s,PREFIX/share/doc/gri/,/usr/share/doc/${P}/, -i "${S}/src/startup.msg"
einstall || die "einstall failed."
dodoc README
#move docs to the proper place
mv "${D}"/usr/share/gri/doc/* "${D}/usr/share/doc/${PF}"
rmdir "${D}/usr/share/gri/doc/"
if use emacs; then
pushd src
elisp-install gri *.{el,elc}
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
popd
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|