/[gentoo-x86]/sci-mathematics/scilab/scilab-2.7-r3.ebuild
Gentoo

Contents of /sci-mathematics/scilab/scilab-2.7-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Thu Dec 21 06:44:14 2006 UTC (12 years, 11 months ago) by compnerd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
gnome-1.x removal
(Portage version: 2.1.2_rc3-r7)
 (Unsigned Manifest commit)

1 markusle 1.4 # Copyright 1999-2006 Gentoo Foundation
2 ribosome 1.1 # Distributed under the terms of the GNU General Public License v2
3 compnerd 1.5 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-2.7-r3.ebuild,v 1.4 2006/04/25 13:51:34 markusle Exp $
4 ribosome 1.1
5     inherit virtualx eutils
6    
7     DESCRIPTION="Scientific software package for numerical computations, Matlab lookalike"
8     SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/${P}.src.tar.gz
9     http://www-rocq.inria.fr/scilab/bugfix/patch_browsehelp.tar.gz"
10     HOMEPAGE="http://www.scilab.org/"
11    
12     LICENSE="scilab"
13     SLOT="0"
14     KEYWORDS="x86 amd64 ~ppc"
15     IUSE="tcltk gtk ifc"
16    
17 markusle 1.4 DEPEND="x11-libs/Xaw3d
18 ribosome 1.1 sys-libs/ncurses
19     tcltk? ( dev-lang/tk )
20     x86? ( ifc? ( dev-lang/ifc ) )
21     gtk? ( =x11-libs/gtk+-1.2*
22     >=gnome-base/gnome-libs-1.4.2
23     >=dev-libs/glib-2.2
24     media-libs/jpeg
25     media-libs/libpng
26     sys-libs/zlib )"
27    
28     pkg_setup() {
29     local SCLB
30     SCLB=`which scilab`
31     if [ -e "${SCLB}" ]; then
32     ewarn "Previous version of scilab was detected on your system"
33     ewarn "Unfortunately these versions cause problems for newer ones during update"
34     ewarn 'Please uninstall it with "emerge unmerge scilab" before continuig'
35     die
36     fi
37     if ! use ifc && [ -z `which g77` ]; then
38     #if ifc is defined then the dep was already checked
39     eerror "No fortran compiler found on the system!"
40 vapier 1.2 eerror "Please add fortran to your USE flags and reemerge gcc!"
41 ribosome 1.1 die
42     fi
43     }
44    
45     src_unpack() {
46     unpack ${A}
47     cd ${S} && unpack ${DISTFILES}/patch_browsehelp.tar.gz
48     if [ ${ARCH} = "amd64" ]; then
49     epatch ${FILESDIR}/${P}-configure.patch
50     cd ${S}
51     autoconf
52     fi
53     }
54    
55     src_compile() {
56     local myopts
57    
58     use tcltk || myopts="${myopts} --without-tk"
59     use gtk && myopts="${myopts} --with-gtk" || myopts="${myopts} --without-gtk"
60    
61     econf ${myopts} || die "./configure failed"
62     export HOME=${S}
63     make all || die
64     }
65    
66     src_install() {
67     PVMBINDISTFILES="\
68     ${P}/pvm3/Readme \
69     ${P}/pvm3/lib/pvm \
70     ${P}/pvm3/lib/pvmd \
71     ${P}/pvm3/lib/pvmtmparch \
72     ${P}/pvm3/lib/pvmgetarch \
73     ${P}/pvm3/lib/LINUX/pvmd3 \
74     ${P}/pvm3/lib/LINUX/pvmgs \
75     ${P}/pvm3/lib/LINUX/pvm \
76     ${P}/pvm3/bin/LINUX/*"
77    
78     BINDISTFILES="\
79     ${P}/.binary \
80     ${P}/.pvmd.conf \
81     ${P}/ACKNOWLEDGEMENTS \
82     ${P}/CHANGES \
83     ${P}/Makefile \
84     ${P}/Makefile.OBJ \
85     ${P}/Makefile.incl \
86     ${P}/Makemex \
87     ${P}/Path.incl \
88     ${P}/README_Unix \
89     ${P}/Version.incl \
90     ${P}/configure \
91     ${P}/libtool \
92     ${P}/license.txt \
93     ${P}/licence.txt \
94     ${P}/scilab.quit \
95     ${P}/scilab.star \
96     ${P}/X11_defaults \
97     ${P}/bin \
98     ${P}/config \
99     ${P}/contrib \
100     ${P}/demos \
101     ${P}/examples \
102     ${P}/imp/NperiPos.ps \
103     ${P}/imp/giffonts \
104     ${P}/macros \
105     ${P}/man/eng/*.htm \
106     ${P}/man/eng/*/*.htm \
107     ${P}/man/fr/*/*.htm \
108     ${P}/man/fr/*.htm \
109     ${P}/man/*.dtd \
110     ${P}/man/*/*.xsl \
111     ${P}/maple \
112     ${P}/routines/*.h \
113     ${P}/routines/Make.lib \
114     ${P}/routines/default/FCreate \
115     ${P}/routines/default/Flist \
116     ${P}/routines/default/README \
117     ${P}/routines/default/fundef \
118     ${P}/routines/default/*.c \
119     ${P}/routines/default/*.f \
120     ${P}/routines/default/*.h \
121     ${P}/routines/graphics/Math.h \
122     ${P}/routines/graphics/Graphics.h \
123     ${P}/routines/graphics/Entities.h \
124     ${P}/routines/interf/*.h \
125     ${P}/routines/intersci/sparse.h \
126     ${P}/routines/menusX/*.h \
127     ${P}/routines/scicos/scicos.h \
128     ${P}/routines/sun/*.h \
129     ${P}/routines/xsci/*.h \
130     ${P}/scripts \
131     ${P}/tcl \
132     ${P}/tests \
133     ${P}/util"
134    
135     touch .binary
136     strip bin/scilex
137     cd ${S}/tests && make distclean
138     cd ${S}/examples && make distclean
139     dodir /usr/lib
140     (cd ${S}/..; tar cf - ${BINDISTFILES} ${PVMBINDISTFILES} | (cd ${D}/usr/lib; tar xf -))
141     rm .binary
142    
143     dodir /usr/bin
144     dosym /usr/lib/${P}/bin/scilab /usr/bin/scilab
145     dosym /usr/lib/${P}/bin/intersci /usr/bin/intersci
146     dosym /usr/lib/${P}/bin/intersci-n /usr/bin/intersci-n
147    
148     #now scilab wants to create some wrappers, and we will need to adjust the paths
149     cd ${D}/usr/lib/${P}
150     make || die "wrapper creation failed"
151     cd macros && make && cd .. || die macros creation failed
152     grep -rle "${D}" * | xargs sed -i -e "s:${D}:/:g"
153     }

  ViewVC Help
Powered by ViewVC 1.1.20