summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <opfer@gentoo.org>2007-09-25 07:08:03 +0000
committerChristian Faulhammer <opfer@gentoo.org>2007-09-25 07:08:03 +0000
commit5b5a05c783a1706ee62ffc33317403d447cddec5 (patch)
tree3ca02ffe1606abc9d9e4555c7cbf399b1ea05580
parentfix quoting (diff)
downloadgentoo-2-5b5a05c783a1706ee62ffc33317403d447cddec5.tar.gz
gentoo-2-5b5a05c783a1706ee62ffc33317403d447cddec5.tar.bz2
gentoo-2-5b5a05c783a1706ee62ffc33317403d447cddec5.zip
introduce doc and examples USE flag, handling emacs USE flag correctly by preventing a file to be installed if it is not set
(Portage version: 2.1.3.9)
-rw-r--r--sci-misc/gri/ChangeLog9
-rw-r--r--sci-misc/gri/files/digest-gri-2.12.16-r13
-rw-r--r--sci-misc/gri/gri-2.12.16-r1.ebuild76
3 files changed, 87 insertions, 1 deletions
diff --git a/sci-misc/gri/ChangeLog b/sci-misc/gri/ChangeLog
index f0fb3c82df8f..4530783a3d49 100644
--- a/sci-misc/gri/ChangeLog
+++ b/sci-misc/gri/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-misc/gri
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-misc/gri/ChangeLog,v 1.14 2007/09/25 06:20:45 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/gri/ChangeLog,v 1.15 2007/09/25 07:08:03 opfer Exp $
+
+*gri-2.12.16-r1 (25 Sep 2007)
+
+ 25 Sep 2007; Christian Faulhammer <opfer@gentoo.org>
+ +gri-2.12.16-r1.ebuild:
+ introduce doc and examples USE flag, handling emacs USE flag correctly by
+ preventing a file to be installed if it is not set
25 Sep 2007; Christian Faulhammer <opfer@gentoo.org> gri-2.12.16.ebuild:
correct the sed macro so it actually replaces the correct line
diff --git a/sci-misc/gri/files/digest-gri-2.12.16-r1 b/sci-misc/gri/files/digest-gri-2.12.16-r1
new file mode 100644
index 000000000000..e057eeb9718d
--- /dev/null
+++ b/sci-misc/gri/files/digest-gri-2.12.16-r1
@@ -0,0 +1,3 @@
+MD5 6c368b024367ad56b2c4a02666ce6672 gri-2.12.16.tar.gz 1431717
+RMD160 c42d77d4af370b7a0119e6b10ba69e18a1ed775a gri-2.12.16.tar.gz 1431717
+SHA256 dfe384cc8ebd82760b9c8a1af9644a69a995b2d4bd0f166abb667c918bd68df3 gri-2.12.16.tar.gz 1431717
diff --git a/sci-misc/gri/gri-2.12.16-r1.ebuild b/sci-misc/gri/gri-2.12.16-r1.ebuild
new file mode 100644
index 000000000000..e49b3618a7d1
--- /dev/null
+++ b/sci-misc/gri/gri-2.12.16-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/gri/gri-2.12.16-r1.ebuild,v 1.1 2007/09/25 07:08:03 opfer Exp $
+
+inherit eutils elisp-common
+
+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"
+IUSE="doc emacs examples"
+RESTRICT="test"
+
+DEPEND=">=sci-libs/netcdf-3.5.0
+ virtual/tetex
+ 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
+ cd src
+ elisp-comp *.el || die "elisp-comp failed"
+ fi
+}
+
+src_install() {
+ # Replace PREFIX now and correct paths in the startup message.
+ sed -e s,PREFIX/share/gri/doc/,/usr/share/doc/${P}/, -i "${S}/src/startup.msg"
+
+ einstall || die "einstall failed."
+
+ # license text not necessary
+ rm "${D}"/usr/share/gri/doc/license.txt
+
+ # install target installs it always
+ use emacs || rm -rf "${D}"/usr/share/emacs
+
+ if ! use doc; then
+ sed -e "s/Manual at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm "${D}"/usr/share/gri/doc/cmdrefcard.ps
+ rm "${D}"/usr/share/gri/doc/refcard.ps
+ rm -rf "${D}"/usr/share/gri/doc/html
+ fi
+ if ! use examples; then
+ sed -e "s/Examples at.*//" -i "${D}"/usr/share/gri/startup.msg
+ rm -rf "${D}"/usr/share/gri/doc/examples
+ fi
+
+ 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
+ cd src
+ elisp-install gri *.{el,elc} || die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}