1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name yorick |
---|
6 | set yver 2.1 |
---|
7 | set yrev 06 |
---|
8 | version ${yver}.${yrev} |
---|
9 | revision 0 |
---|
10 | categories science |
---|
11 | maintainers users.sourceforge.net:paumard |
---|
12 | description Interpreted language and scientific graphics |
---|
13 | long_description An interpreted programming language for numerical \ |
---|
14 | computations, scientific data processing and \ |
---|
15 | visualisation. |
---|
16 | homepage http://yorick.sourceforge.net/ |
---|
17 | platforms darwin |
---|
18 | |
---|
19 | depends_lib lib:libX11.6:xorg |
---|
20 | |
---|
21 | master_sites sourceforge |
---|
22 | extract.suffix .tgz |
---|
23 | checksums md5 2cc21b1b61a65bb197adfd96f3bb545e \ |
---|
24 | sha1 779b432d53b1f9ce21a44285fbccdd3f8083c219 \ |
---|
25 | rmd160 f9380c97953f2a7d9ba941ee4c43d73e2f41ad3f |
---|
26 | worksrcdir ${name}-${yver} |
---|
27 | |
---|
28 | configure { |
---|
29 | system "cd ${worksrcpath} && \ |
---|
30 | make CFLAGS=\"-I${prefix}/include ${configure.optflags}\"\ |
---|
31 | LDFLAGS=${configure.ldflags} \ |
---|
32 | OPTFLAGS=${configure.optflags} \ |
---|
33 | reloc Make.cfg" |
---|
34 | } |
---|
35 | |
---|
36 | post-build { |
---|
37 | exec gzip -9 -c ${worksrcpath}/doc/yorick.1 > ${worksrcpath}/doc/yorick.1.gz |
---|
38 | exec gzip -9 -c ${worksrcpath}/doc/gist.1 > ${worksrcpath}/doc/gist.1.gz |
---|
39 | } |
---|
40 | |
---|
41 | destroot { |
---|
42 | exec make -C ${worksrcpath} install |
---|
43 | move ${worksrcpath}/relocate ${destroot}${prefix}/lib/${name} |
---|
44 | ln -s ${prefix}/lib/${name}/bin/yorick ${destroot}${prefix}/bin/ |
---|
45 | ln -s ${prefix}/lib/${name}/bin/gist ${destroot}${prefix}/bin/ |
---|
46 | xinstall ${worksrcpath}/doc/yorick.1.gz ${worksrcpath}/doc/gist.1.gz \ |
---|
47 | ${destroot}${prefix}/share/man/man1/ |
---|
48 | } |
---|
49 | |
---|
50 | notes Yorick has no built-in line-edition capabilities, it is \ |
---|
51 | recommended to run it within rlwrap. \n\ |
---|
52 | Reference websites (incl. online user manual and fora): \ |
---|
53 | http://yorick.sourceforge.net/, \ |
---|
54 | http://www.maumae.net/yorick/. |
---|