diff options
author | Nuno J. Silva (njsg) <nunojsg@gmail.com> | 2006-12-23 09:40:28 +0000 |
---|---|---|
committer | Nuno J. Silva (njsg) <nunojsg@gmail.com> | 2006-12-23 09:40:28 +0000 |
commit | 16ce41f666c787064a61808d3f56a13209f12399 (patch) | |
tree | fec1f9f187e7d7d295c2fd12f7bf951703a73b44 /sci-visualization/jps2ps/jps2ps-0.015.ebuild | |
parent | media-gfx/denormgen: added support to use edge creasing in the high resolutio... (diff) | |
download | sunrise-16ce41f666c787064a61808d3f56a13209f12399.tar.gz sunrise-16ce41f666c787064a61808d3f56a13209f12399.tar.bz2 sunrise-16ce41f666c787064a61808d3f56a13209f12399.zip |
sci-visualization/jps2ps: New ebuild for bug 158869.
svn path=/sunrise/; revision=2452
Diffstat (limited to 'sci-visualization/jps2ps/jps2ps-0.015.ebuild')
-rw-r--r-- | sci-visualization/jps2ps/jps2ps-0.015.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sci-visualization/jps2ps/jps2ps-0.015.ebuild b/sci-visualization/jps2ps/jps2ps-0.015.ebuild new file mode 100644 index 000000000..fea174008 --- /dev/null +++ b/sci-visualization/jps2ps/jps2ps-0.015.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A small perl script for the creation of mathematic images in +PostScript." +HOMEPAGE="http://syracuse.eu.org/syracuse/bbgraf/" + +SRC_URI="http://syracuse.eu.org/syracuse/bbgraf/archives/${PN}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" + +DEPEND="" + +RDEPEND="${DEPEND} + dev-lang/perl + gs? ( virtual/ghostscript )" + +src_install() { + dodir /usr/$(get_libdir)/syracuse/app/jps2ps/{pps,package} + + insinto usr/$(get_libdir)/syracuse/app + + doins -r "${WORKDIR}"/jps2ps + + exeinto usr/$(get_libdir)/syracuse/app/jps2ps + + doexe \ + "${WORKDIR}"/jps2ps/{jps2ps,filtre-file,jpshash,exp2rpn,lit_appels,lit_cles}.pl + + # Fix the variable JPS2PS_DIR defined inside the perl script + # so it points to the right directory. + # Based on the dev-lang/R ebuild regexp. + sed \ + -e "/^\$JPS2PS_DIR = .*/s::\$JPS2PS_DIR = \"/usr/$(get_libdir)/syracuse/app/jps2ps/\";:" \ + -i ${D}/usr/$(get_libdir)/syracuse/app/jps2ps/jps2ps.pl \ + || die "sed failed." + + dosym /usr/$(get_libdir)/syracuse/app/jps2ps/jps2ps.pl /usr/bin/jps2ps +} |