diff options
Diffstat (limited to 'sci-mathematics/scilab/scilab-3.1.1.ebuild')
-rw-r--r-- | sci-mathematics/scilab/scilab-3.1.1.ebuild | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/sci-mathematics/scilab/scilab-3.1.1.ebuild b/sci-mathematics/scilab/scilab-3.1.1.ebuild index 2b410bf6bcde..78f9c90765e2 100644 --- a/sci-mathematics/scilab/scilab-3.1.1.ebuild +++ b/sci-mathematics/scilab/scilab-3.1.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-3.1.1.ebuild,v 1.1 2005/06/21 00:12:24 ribosome Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-3.1.1.ebuild,v 1.1.1.1 2005/11/30 09:55:56 chriswhite Exp $ inherit eutils @@ -11,7 +11,7 @@ HOMEPAGE="http://www.scilab.org/" LICENSE="scilab" SLOT="0" KEYWORDS="~x86 ~ppc" -IUSE="ifc tcltk atlas gtk gtk2 Xaw3d" +IUSE="ifc ocaml tcltk atlas gtk gtk2 Xaw3d" RDEPEND="virtual/x11 sys-libs/ncurses @@ -29,7 +29,8 @@ RDEPEND="virtual/x11 ) tcltk? ( >=dev-lang/tk-8.4 >=dev-lang/tcl-8.4 ) - Xaw3d? ( x11-libs/Xaw3d )" + Xaw3d? ( x11-libs/Xaw3d ) + ocaml? ( dev-lang/ocaml )" DEPEND="${RDEPEND} ifc? ( dev-lang/ifc ) @@ -81,6 +82,9 @@ src_compile() { use gtk2 && myopts="${myopts} --with-gtk2" || \ myopts="${myopts} --with-gtk" fi + if ! use ocaml; then + myopts="${myopts} --without-ocaml" + fi econf ${myopts} || die env HOME=${S} make all || die @@ -172,10 +176,23 @@ src_install() { dosym /usr/lib/${P}/bin/intersci-n /usr/bin/intersci-n # The compile and install process causes the work folder to be registered - # as the runtime folder in the launch script. This is corrected here. - BAD_LINE=SCI\=\"${WORKDIR}/${P}\" - FIXED_LINE=SCI\=\"/usr/lib/${P}\" - sed -i -e "s#${BAD_LINE}#${FIXED_LINE}#" ${D}/usr/lib/${P}/bin/scilab + # as the runtime folder in many files. This is corrected here. + BAD_REF="${WORKDIR}/${P}" + FIXED_REF="/usr/lib/${P}" + BIN_TO_FIX="Blpr BEpsf Blatexpr2 Blatexprs Blatexpr scilab" + for i in ${BIN_TO_FIX}; do + sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${D}/usr/lib/${P}/bin/${i} || die + done + MAN_TO_FIX="eng fr" + for i in ${MAN_TO_FIX}; do + for j in ${D}/usr/lib/${P}/man/${i}/*.h*; do + sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${j} || die + done + done + MISC_TO_FIX="util/Blatdoc util/Blatdocs" + for i in ${MISC_TO_FIX}; do + sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${D}/usr/lib/${P}/${i} || die + done } pkg_postinst() { |