/[gentoo-x86]/sci-visualization/gri/gri-2.12.19.ebuild
Gentoo

Contents of /sci-visualization/gri/gri-2.12.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 15 05:55:30 2011 UTC (3 years, 1 month ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Depend on media-gfx/imagemagick[png], #371583

(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/gri/gri-2.12.19.ebuild,v 1.3 2009/12/26 17:46:54 pva Exp $
4
5 EAPI=2
6
7 inherit eutils elisp-common
8
9 DESCRIPTION="language for scientific graphics programming"
10 HOMEPAGE="http://gri.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/gri/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE="doc emacs examples"
17 RESTRICT="test"
18
19 DEPEND=">=sci-libs/netcdf-3.5.0
20 virtual/latex-base
21 media-gfx/imagemagick[png]
22 app-text/ghostscript-gpl
23 emacs? ( virtual/emacs )"
24
25 RDEPEND="${DEPEND}"
26
27 SITEFILE="50gri-gentoo.el"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${PN}-2.12.18-postscript.patch
31 }
32
33 src_compile() {
34 VARTEXFONTS="${T}/fonts" emake || die
35 if use emacs; then
36 elisp-compile src/*.el || die
37 fi
38 }
39
40 src_install() {
41 # Replace PREFIX now and correct paths in the startup message.
42 sed -e s,PREFIX/share/gri/doc/,/usr/share/doc/${P}/, -i "${S}/src/startup.msg"
43
44 einstall || die
45
46 # license text not necessary
47 rm "${D}"/usr/share/gri/doc/license.txt
48
49 # install target installs it always and in the wrong location
50 # remove it here and call elisp-install in case of USE=emacs below
51 rm -rf "${D}"/usr/share/emacs
52
53 if ! use doc; then
54 sed -e "s/Manual at.*//" -i "${D}"/usr/share/gri/startup.msg
55 rm "${D}"/usr/share/gri/doc/cmdrefcard.ps
56 rm "${D}"/usr/share/gri/doc/refcard.ps
57 rm -rf "${D}"/usr/share/gri/doc/html
58 fi
59 if ! use examples; then
60 sed -e "s/Examples at.*//" -i "${D}"/usr/share/gri/startup.msg
61 rm -rf "${D}"/usr/share/gri/doc/examples
62 fi
63
64 dodoc README
65
66 #move docs to the proper place
67 mv "${D}"/usr/share/gri/doc/* "${D}/usr/share/doc/${PF}"
68 rmdir "${D}/usr/share/gri/doc/"
69
70 if use emacs; then
71 cd src
72 elisp-install ${PN} *.{el,elc} || die
73 elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
74 || die
75 fi
76 }
77
78 pkg_postinst() {
79 use emacs && elisp-site-regen
80 }
81
82 pkg_postrm() {
83 use emacs && elisp-site-regen
84 }

  ViewVC Help
Powered by ViewVC 1.1.20