orzetto Apprentice


Joined: 05 Mar 2003 Posts: 165 Location: Magdeburg, Germany
|
Posted: Sun Aug 24, 2003 1:35 pm Post subject: ebuild for Scilab 2.7 |
|
|
Hi all,
this ebuild has been around for some time, and I just modified it so that it would install correctly the help browser (which is important), and I have enforced a dependency with tk (I think). Since this is the first time I monkey around with an ebuild, I'm not totally sure that it is correct - however, it works fine for me.
The only thing I did was to change the keyword to x86, erase a few lines and set dev-lang/tk in DEPEND.
...now, where am I supposed to submit, or whom am I supposed to contact
| Code: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/app-sci/scilab/scilab-2.7.ebuild,v 1.1 2003/07/16 22:31:16 rphillips Exp $
DESCRIPTION="scientific software package for numerical computations"
SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/${P}.src.tar.gz"
HOMEPAGE="http://www-rocq.inria.fr/scilab/"
LICENSE="scilab"
SLOT="0"
KEYWORDS="x86"
IUSE="tcltk"
DEPEND="virtual/x11
x11-libs/Xaw3d
dev-lang/tk"
src_compile() {
local myopts
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--localstatedir=/var \
${myopts} || die "./configure failed"
env HOME=${S} make all || die
}
src_install() {
BINDISTFILES="\
${P}/.binary \
${P}/.pvmd.conf \
${P}/ACKNOWLEDGEMENTS \
${P}/CHANGES \
${P}/Makefile \
${P}/Makefile.OBJ \
${P}/Makefile.incl \
${P}/Makemex \
${P}/Path.incl \
${P}/README \
${P}/Version.incl \
${P}/configure \
${P}/libtool \
${P}/license.txt \
${P}/licence.txt \
${P}/scilab.quit \
${P}/scilab.star \
${P}/X11_defaults \
${P}/bin \
${P}/config \
${P}/contrib \
${P}/demos \
${P}/examples \
${P}/imp/NperiPos.ps \
${P}/imp/giffonts \
${P}/macros \
${P}/man \
${P}/maple \
${P}/pvm3/lib/pvm \
${P}/pvm3/lib/pvmd \
${P}/pvm3/lib/pvmtmparch \
${P}/pvm3/lib/pvmgetarch \
${P}/pvm3/lib/LINUX/pvmd3 \
${P}/pvm3/lib/LINUX/pvmgs \
${P}/routines/*.h \
${P}/routines/Make.lib \
${P}/routines/default/FCreate \
${P}/routines/default/Flist \
${P}/routines/default/README \
${P}/routines/default/fundef \
${P}/routines/default/*.c \
${P}/routines/default/*.f \
${P}/routines/graphics/Math.h \
${P}/routines/graphics/Graphics.h \
${P}/routines/interf/*.h \
${P}/routines/intersci/sparse.h \
${P}/routines/menusX/*.h \
${P}/routines/scicos/scicos.h \
${P}/routines/sun/*.h \
${P}/routines/xsci/*.h \
${P}/scripts \
${P}/tcl \
${P}/tests \
${P}/util"
touch .binary
strip bin/scilex
cd ${S}/tests && make distclean
cd ${S}/examples && make distclean
dodir /usr/lib
(cd ${S}/..; tar cf - ${BINDISTFILES} ${PVMBINDISTFILES} | (cd ${D}/usr/lib; tar xf -))
rm .binary
dodir /usr/bin
dosym /usr/lib/${P}/bin/scilab /usr/bin/scilab
dosym /usr/lib/${P}/bin/intersci /usr/bin/intersci
dosym /usr/lib/${P}/bin/intersci-n /usr/bin/intersci-n
}
# the following is needed in order to create the startup scripts with
# the right paths
pkg_postinst() {
(cd /usr/lib/${P}; make)
}
# but of course then, unmerge won't remove everything without the following
pkg_postrm() {
rm /usr/lib/${P}/Path.incl
rm -r /usr/lib/${P}/bin
rm -r /usr/lib/${P}/util
rm -r /usr/lib/${P}/examples
rmdir /usr/lib/${P}
}
|
EDIT: here are the Stdout and the Stderr of the emerge, should you be curious... _________________ Why is everybody always generalising?
Last edited by orzetto on Sun Aug 24, 2003 2:36 pm; edited 1 time in total |
|