* [gentoo-commits] gentoo-x86 commit in sci-mathematics/scilab: ChangeLog scilab-4.1.2-r1.ebuild scilab-4.1.2-r2.ebuild
@ 2009-08-10 13:41 Markus Dittrich (markusle)
0 siblings, 0 replies; only message in thread
From: Markus Dittrich (markusle) @ 2009-08-10 13:41 UTC (permalink / raw
To: gentoo-commits
markusle 09/08/10 13:41:15
Modified: ChangeLog scilab-4.1.2-r1.ebuild
Added: scilab-4.1.2-r2.ebuild
Log:
Added example useflag and install static libs (#257252).
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Revision Changes Path
1.47 sci-mathematics/scilab/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/ChangeLog?rev=1.47&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/ChangeLog?rev=1.47&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/ChangeLog?r1=1.46&r2=1.47
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- ChangeLog 15 Nov 2008 18:41:11 -0000 1.46
+++ ChangeLog 10 Aug 2009 13:41:15 -0000 1.47
@@ -1,6 +1,12 @@
# ChangeLog for sci-mathematics/scilab
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.46 2008/11/15 18:41:11 dertobi123 Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.47 2009/08/10 13:41:15 markusle Exp $
+
+*scilab-4.1.2-r2 (10 Aug 2009)
+
+ 10 Aug 2009; Markus Dittrich <markusle@gentoo.org>
+ +scilab-4.1.2-r2.ebuild:
+ Added example useflag and install static libs (#257252).
15 Nov 2008; Tobias Scherbaum <dertobi123@gentoo.org>
scilab-4.1.2-r1.ebuild:
1.4 sci-mathematics/scilab/scilab-4.1.2-r1.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild?r1=1.3&r2=1.4
Index: scilab-4.1.2-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- scilab-4.1.2-r1.ebuild 15 Nov 2008 18:41:11 -0000 1.3
+++ scilab-4.1.2-r1.ebuild 10 Aug 2009 13:41:15 -0000 1.4
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild,v 1.3 2008/11/15 18:41:11 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild,v 1.4 2009/08/10 13:41:15 markusle Exp $
inherit eutils fortran toolchain-funcs multilib autotools java-pkg-opt-2
1.1 sci-mathematics/scilab/scilab-4.1.2-r2.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r2.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r2.ebuild?rev=1.1&content-type=text/plain
Index: scilab-4.1.2-r2.ebuild
===================================================================
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r2.ebuild,v 1.1 2009/08/10 13:41:15 markusle Exp $
inherit eutils fortran toolchain-funcs multilib autotools java-pkg-opt-2
DESCRIPTION="Scientific software package for numerical computations (Matlab lookalike)"
LICENSE="scilab"
SRC_URI="http://www.scilab.org/download/${PV}/${P}-src.tar.gz"
HOMEPAGE="http://www.scilab.org/"
SLOT="0"
IUSE="ocaml gtk Xaw3d java examples"
KEYWORDS="~amd64 ~ppc ~x86"
RDEPEND="virtual/blas
virtual/lapack
virtual/cblas
sys-libs/ncurses
gtk? (
media-libs/jpeg
media-libs/libpng
sys-libs/zlib
>=x11-libs/gtk+-2
x11-libs/vte
=gnome-extra/gtkhtml-2*
)
>=dev-lang/tk-8.4
>=dev-lang/tcl-8.4
Xaw3d? ( x11-libs/Xaw3d )
ocaml? ( dev-lang/ocaml )
java? ( >=virtual/jdk-1.4 )"
DEPEND="${RDEPEND}
app-text/sablotron"
pkg_setup() {
java-pkg-opt-2_pkg_setup
need_fortran gfortran g77
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-4.0-makefile.patch
epatch "${FILESDIR}"/${PN}-4.1-java-pic.patch
epatch "${FILESDIR}"/${P}-header-fix.patch
epatch "${FILESDIR}"/${PN}-4.1-examples.patch
epatch "${FILESDIR}"/${P}-java-config.patch
epatch "${FILESDIR}"/${P}-tmp-fix.patch
eautoconf
sed -e '/^ATLAS_LAPACKBLAS\>/s,=.*,= $(ATLASDIR)/liblapack.so $(ATLASDIR)/libblas.so $(ATLASDIR)/libcblas.so,' \
-e 's,$(SCIDIR)/libs/lapack.a,,' \
-i Makefile.OBJ.in || die "Failed to fix Makefile.OBJ.in"
sed -e "s:\$(PREFIX):\${D}\$(PREFIX):g" \
-e "s:\$(PREFIX)/lib:\$(PREFIX)/$(get_libdir):g" \
-i Makefile.in || die "Failed to fix Makefile.in"
sed -e "s:@CC_OPTIONS@:${CFLAGS}:" \
-e "s:@FC_OPTIONS@:${FFLAGS}:" \
-e "s:@LD_LDFLAGS@:${LDFLAGS} -lpthread:" \
-i Makefile.incl.in || die "Failed to fix Makefile.incl.in"
# fix bad C practices by failure of scilab build system to
# include proper headers
sed -e "s:-DNOTMPNAM:-DNOTMPNAM -DSYSVSTR -DHASSTDLIB:" \
-i pvm3/conf/LINUX.def -i pvm3/conf/LINUX64.def || \
die "Failed to fix pvm3 conf scripts."
# fix examples
local MAKE_TO_FIX="callsci inter* link* m* interface-multi-so/lib interface-general/lib"
cd examples/
for name in ${MAKE_TO_FIX}; do
sed -e "s:gentoo-scidir:/usr/$(get_libdir)/${P}:" \
-i ${name}/Makefile || die "Failed to fix examples"
done
}
src_compile() {
local myopts
myopts="${myopts} --with-atlas-library=/usr/$(get_libdir)"
# the tk interface is the default
myopts="${myopts} --with-tk"
if [[ ${FORTRANC} == gfortran ]]; then
myopts="${myopts} --with-gfortran"
fi
econf $(use_with Xaw3d xaw3d) \
$(use_with gtk gtk2 ) \
$(use_with ocaml) \
$(use_with java ) \
${myopts} || die "econf failed"
env HOME="${S}" emake -j1 all || die "emake failed"
}
src_install() {
DESTDIR="${D}" make install || die "installation failed"
# some postinstall fixes
echo "SCIDIR=/usr/$(get_libdir)/${P}" > \
"${D}/usr/$(get_libdir)/${P}/Path.incl"
# install docs
dodoc ACKNOWLEDGEMENTS CHANGES README_Unix RELEASE_NOTES \
Readme_Visual.txt || die "failed to install docs"
# install examples
if use examples; then
insinto /usr/share/${PN}/
doins -r examples/ || die "failed to install examples"
fi
# install static libs since they are needed to link some third
# party apps (see bug #257252)
insinto /usr/$(get_libdir)/${P}/libs
doins libs/*.a || die "failed to install static libs"
insinto /usr/$(get_libdir)/${P}
doins Makefile.incl || die "failed to install Makefile.incl"
exeinto /usr/$(get_libdir)/${P}
doexe libtool || die "failed to install libtool"
insinto /usr/$(get_libdir)/${P}/config
doins config/Makeso.incl || die "failed to install Makeso.incl"
# The compile and install process causes the work folder
# to be registered as the runtime folder in many files.
# This is corrected here.
BAD_REF="${WORKDIR}/${P}"
FIXED_REF="/usr/$(get_libdir)/${P}"
local 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/$(get_libdir)/${P}/bin/${i} || \
die "Failed to fix wrapper scripts"
done
local MISC_TO_FIX="util/Blatdoc util/Blatdocs"
for i in ${MISC_TO_FIX}; do
sed -e "s%${BAD_REF}%${FIXED_REF}%" -i \
"${D}"/usr/$(get_libdir)/${P}/${i} || \
die "Failed to fix Blatdocs"
done
}
pkg_postinst() {
einfo "To tell Scilab about your printers, set the environment"
einfo "variable PRINTERS in the form:"
einfo
einfo "PRINTERS=\"firstPrinter:secondPrinter:anotherPrinter\""
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-10 13:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-10 13:41 [gentoo-commits] gentoo-x86 commit in sci-mathematics/scilab: ChangeLog scilab-4.1.2-r1.ebuild scilab-4.1.2-r2.ebuild Markus Dittrich (markusle)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox