Ticket #24768: Portfile

File Portfile, 2.2 KB (added by paumard, 14 years ago)
Line 
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$
3PortSystem          1.0
4
5name                yorick
6set yver            2.1
7set yrev            06
8version             ${yver}.${yrev}
9revision            0
10categories          science
11maintainers         users.sourceforge.net:paumard
12description         Interpreted language and scientific graphics
13long_description    An interpreted programming language for numerical \
14                    computations, scientific data processing and \
15                    visualisation.
16homepage            http://yorick.sourceforge.net/
17platforms           darwin
18
19depends_lib         lib:libX11.6:xorg
20
21master_sites        sourceforge
22extract.suffix      .tgz
23checksums           md5 2cc21b1b61a65bb197adfd96f3bb545e \
24                    sha1 779b432d53b1f9ce21a44285fbccdd3f8083c219 \
25                    rmd160 f9380c97953f2a7d9ba941ee4c43d73e2f41ad3f
26worksrcdir          ${name}-${yver}
27
28configure           {
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
36post-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
41destroot            {
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
50notes               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/.