aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2008-03-18 21:07:10 +0000
committergrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2008-03-18 21:07:10 +0000
commit6ed22e7a9c86b665ed5b5157b71d5db484263978 (patch)
tree6410e48cc5452fd6c996f1f45501341f6b245d19
parentAdded patch to have 'pkg install' exit with error code if it can't (diff)
downloadsci-6ed22e7a9c86b665ed5b5157b71d5db484263978.tar.gz
sci-6ed22e7a9c86b665ed5b5157b71d5db484263978.tar.bz2
sci-6ed22e7a9c86b665ed5b5157b71d5db484263978.zip
yorick-2.1.05
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@981 32389bae-6d03-0410-99cf-db05cde120eb
-rw-r--r--sci-mathematics/yorick/Manifest3
-rw-r--r--sci-mathematics/yorick/files/yorick-2.1.05.patch69
-rw-r--r--sci-mathematics/yorick/yorick-2.1.05.ebuild50
3 files changed, 122 insertions, 0 deletions
diff --git a/sci-mathematics/yorick/Manifest b/sci-mathematics/yorick/Manifest
index da4819efe..3bc3c217c 100644
--- a/sci-mathematics/yorick/Manifest
+++ b/sci-mathematics/yorick/Manifest
@@ -1,4 +1,7 @@
+AUX yorick-2.1.05.patch 2226 RMD160 8fa290925df2965512b0f74613a448b2e85a9504 SHA1 28e6a47baaf46968c385f90cebc66062cf15d63f SHA256 c9c45abc3c10df80321503b03510a03049e534e25f53d03f969ee30e774e1da8
+DIST yorick-2.1.05.tgz 2242539 RMD160 2ec6bb8b82abe3c92e03993ae7ed4e6d17f6b936 SHA1 a7ff5152155cd9fd212eca7333e1b7d0bc5e25ea SHA256 7caf13096c8f043511ae5790e9e1805031801b2a00eb0adc9a32ad3ac0473f4a
DIST yorick-mb-1.5.22.tar.gz 1521575 RMD160 492d23c69336b0a51a28069f17a1775fc15c6f82 SHA1 83a3b83ea3e585b1b52d8a958122a0631a47307d SHA256 3be7346af9e27f769d20f99a778b9182544f71f2b566fd2db41edac40b5d0e3b
EBUILD yorick-1.5.22.ebuild 743 RMD160 defc68edcad4c34f2c42dc886c1339bbeb5b29f8 SHA1 adb408f8f2eab120cbf49d06145d3f7558f4bee8 SHA256 b09e4acaf9ab13932ce1eb0bab205eec8b46d285fefdd49ff9be61f4ee0dea60
+EBUILD yorick-2.1.05.ebuild 1154 RMD160 12ebca1e721d6edaecc8395867cd717de924d821 SHA1 381b1a29cc5fabd721025750a20529dd0d19db6c SHA256 da75826a1b208d1173bbe2ec29a058be39eb6453a5d1001f1dd2b28b9a6cb173
MISC ChangeLog 260 RMD160 687b24af2d818ac737f11670095d887558ed69a0 SHA1 9e0a88102c2bf03c302a61ae00e8e5a837d7931b SHA256 ba24df3d3574d5cabb6c8fbdd8beea1cd39c6a1771494f6f119efba72a23860e
MISC metadata.xml 485 RMD160 116d161add231d6d5d0333bf596e021c308d032a SHA1 6d818632bca16d17378d45d28f108eb888c29a8c SHA256 6bbb40a8d3ed52bbe61106ca858b6d7e5e5ebad47ce4604db80e3477fd0e6e3b
diff --git a/sci-mathematics/yorick/files/yorick-2.1.05.patch b/sci-mathematics/yorick/files/yorick-2.1.05.patch
new file mode 100644
index 000000000..33dc25d17
--- /dev/null
+++ b/sci-mathematics/yorick/files/yorick-2.1.05.patch
@@ -0,0 +1,69 @@
+diff -U2 --recursive yorick-2.1.orig/Makefile yorick-2.1/Makefile
+--- yorick-2.1.orig/Makefile 2005-11-14 03:01:56.000000000 +0600
++++ yorick-2.1/Makefile 2008-03-19 09:34:30.000000000 +0600
+@@ -84,15 +84,16 @@
+ Y_BINDIR=
+ Y_DOCDIR=
++Y_INCDIR=
+ install: yorexe gistexe docs
+- ./instally.sh +both "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)"
++ ./instally.sh +both "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)" "$(Y_INCDIR)"
+
+ install1: yorexe gistexe
+- ./instally.sh +home "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)"
++ ./instally.sh +home "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)" "$(Y_INCDIR)"
+
+ uninstall:
+- ./instally.sh -both "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)"
++ ./instally.sh -both "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)" "$(Y_INCDIR)"
+
+ uninstall1:
+- ./instally.sh -home "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)"
++ ./instally.sh -home "$(INSTALL_ROOT)" "$(Y_BINDIR)" "$(Y_DOCDIR)" "$(Y_INCDIR)"
+
+ dist: siteclean
+diff -U2 --recursive yorick-2.1.orig/instally.sh yorick-2.1/instally.sh
+--- yorick-2.1.orig/instally.sh 2005-09-19 05:03:40.000000000 +0700
++++ yorick-2.1/instally.sh 2008-03-19 09:40:19.000000000 +0600
+@@ -41,4 +41,10 @@
+ fi
+
++if test -n "$5"; then
++ Y_INCDIR="$5"
++else
++ Y_INCDIR="$Y_HOME/include"
++fi
++
+ EXE_SFX=`grep '^EXE_SFX=' Make.cfg | sed -e 's/^EXE_SFX=//'`
+
+@@ -49,7 +55,9 @@
+ touch ./junk.tst
+ if test -f "$Y_HOME"/junk.tst; then
+- for sub in include lib bin; do rm -rf "$Y_HOME"/$sub; done
++ for sub in lib bin; do rm -rf "$Y_HOME"/$sub; done
++ rm -rf "$Y_INCDIR"
+ rm -f "$Y_HOME"/Make* "$Y_HOME"/install*
+ else
++ rm -rf "$Y_INCDIR"
+ rm -rf "$Y_HOME"
+ fi
+@@ -81,5 +89,5 @@
+ $YNSTALL $YGP "$Y_HOME"
+ $YNSTALL $YGP "$Y_HOME/i-start"
+-$YNSTALL $YGP "$Y_HOME/include"
++$YNSTALL $YGP "$Y_INCDIR"
+ $YNSTALL $YGP "$Y_HOME/lib"
+ if test -n "$3"; then
+@@ -95,10 +103,10 @@
+ hconfig=play/unix/config.h
+ fi
+-$YNSTALL $YGP $hconfig play/*.h gist/*.h yorick/*.h "$Y_HOME/include"
++$YNSTALL $YGP $hconfig play/*.h gist/*.h yorick/*.h "$Y_INCDIR"
+ touch ./junk.tst
+ if test -f "$Y_HOME/junk.tst"; then
+ :
+ else
+- $YNSTALL $YGP LICENSE Make.cfg Makepkg Makeexe Makedll "$Y_HOME"
++ $YNSTALL $YGP Make.cfg Makepkg Makeexe Makedll "$Y_HOME"
+ fi
+ rm -f ./junk.tst
diff --git a/sci-mathematics/yorick/yorick-2.1.05.ebuild b/sci-mathematics/yorick/yorick-2.1.05.ebuild
new file mode 100644
index 000000000..55f980393
--- /dev/null
+++ b/sci-mathematics/yorick/yorick-2.1.05.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+inherit eutils versionator elisp-common
+
+DESCRIPTION="A language for scientific computing and rapid prototyping"
+HOMEPAGE="http://yorick.sourceforge.net/ http://www.maumae.net/yorick/"
+IUSE="emacs"
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~x86"
+SRC_URI="mirror://sourceforge/yorick/${P}.tgz"
+DEPEND="emacs? ( virtual/emacs )"
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-2 )"
+
+#### Remove the following line when moving this ebuild to the main tree!
+RESTRICT=mirror
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}.patch
+}
+
+src_compile() {
+ make prefix=/usr ysite
+ make config
+ emake
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" \
+ Y_BINDIR="${D}"/usr/bin \
+ Y_DOCDIR="${D}"/usr/share/doc/${P} \
+ Y_INCDIR="${D}"/usr/include/${PN} \
+ install
+ if use emacs; then
+ mv emacs/yorick-auto.el emacs/64yorick-gentoo.el
+ elisp-site-file-install emacs/yorick.el
+ elisp-site-file-install emacs/64yorick-gentoo.el
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}