summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno J. Silva (njsg) <nunojsg@gmail.com>2008-09-11 20:27:16 +0000
committerNuno J. Silva (njsg) <nunojsg@gmail.com>2008-09-11 20:27:16 +0000
commitb497754ae7d9bcc5e62aedb1f1bf564c30d395d3 (patch)
tree08f9427e3abe21c6b219a95f1b04c258e9a3cd8d /sci-visualization/jps2ps/jps2ps-0.18.ebuild
parentnet-misc/anyremote: Remove quotes on ${A} (diff)
downloadsunrise-b497754ae7d9bcc5e62aedb1f1bf564c30d395d3.tar.gz
sunrise-b497754ae7d9bcc5e62aedb1f1bf564c30d395d3.tar.bz2
sunrise-b497754ae7d9bcc5e62aedb1f1bf564c30d395d3.zip
sci-visualization/jps2ps: Version bump for jps2ps
svn path=/sunrise/; revision=7074
Diffstat (limited to 'sci-visualization/jps2ps/jps2ps-0.18.ebuild')
-rw-r--r--sci-visualization/jps2ps/jps2ps-0.18.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/sci-visualization/jps2ps/jps2ps-0.18.ebuild b/sci-visualization/jps2ps/jps2ps-0.18.ebuild
new file mode 100644
index 000000000..40233b7ed
--- /dev/null
+++ b/sci-visualization/jps2ps/jps2ps-0.18.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2008 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/${P/./-}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ virtual/ghostscript"
+
+
+src_install() {
+
+ insinto /usr/$(get_libdir)/syracuse/app
+
+ doins -r "${WORKDIR}"/jps2ps
+
+ # Fix permissions
+ fperms guo=rx /usr/$(get_libdir)/syracuse/app/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
+}