Ticket #24794: 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
5set uname           spydr
6name                yorick-${uname}
7version             0.8.1
8categories          science
9maintainers         users.sourceforge.net:paumard
10description         FITS image display and simple analysis
11long_description    Spydr (pronounced like spider) basically is an FITS \
12                    image viewer. It can work as a stand-alone \
13                    application but is best integrated in a \
14                    Yorick-based data-analysis work-flow (Yorick is an \
15                    interpreted language specialized in numerical \
16                    computations and scientific graphics). It includes \
17                    tools to zoom, produce cuts, histograms, \
18                    Gaussian/Moffat fits, PSF fits (inc. FWHM and \
19                    Strehl). Can work on single images, sequences of \
20                    images or data cubes.
21homepage            http://maumae.net/yorick/doc/plugins.php
22platforms           darwin
23
24depends_lib         port:yorick
25depends_run         port:yorick-yao \
26                    port:py26-gtk port:zenity
27
28master_sites        http://maumae.net/yorick/packages/src/
29distname            ${uname}-${version}-src
30extract.suffix      .tgz
31checksums           md5 2f0d44617592cd1f22f29f4159e64fbb \
32                    sha1 f6c753476034cb1d80ff758b2469ac4fd5f77440 \
33                    rmd160 8e13693fdbd745729e4e1ad5392c0c23d058ea99
34worksrcdir          ${name}-${version}
35
36configure           {
37                    system "cd ${worksrcpath} && \
38                            ${prefix}/bin/yorick -batch make.i"
39                    }
40
41build               {
42    system "cd ${worksrcpath} && gzip -9 -c ${uname}.1 > ${uname}.1.gz"
43                    }
44
45post-destroot       {
46    xinstall -d ${destroot}${prefix}/lib/yorick/packages/installed/
47    xinstall ${worksrcpath}/${uname}.info \
48        ${destroot}${prefix}/lib/yorick/packages/installed/
49    xinstall ${worksrcpath}/${uname}.1.gz \
50        ${destroot}${prefix}/share/man/man1/
51    ln -s ${prefix}/lib/yorick/bin/${uname} ${destroot}${prefix}/bin/
52                    }