Ticket #40157: fityk-1.2.1.Portfile

File fityk-1.2.1.Portfile, 2.4 KB (added by mojca (Mojca Miklavec), 11 years ago)

Portfile for fityk with wxWidgets 2.9

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: $
3
4PortSystem          1.0
5PortGroup           github 1.0
6# PortGroup           wxwidgets 1.0
7
8# the released version has the extra compgation that it needs to fetch cmpfit-1.2.tar.gz on the fly
9# github.setup        wojdyr fityk 1.2.1 v
10github.setup        wojdyr fityk e63acef802
11name                fityk
12version             1.2.1
13categories          math
14platforms           darwin
15license             GPL-2
16maintainers         nomaintainer
17
18description         fityk is for peak fitting.
19
20long_description    fityk is a program for nonlinear fitting of analytical \
21                    functions (especially peak-shaped) to data (usually \
22                    experimental data). There are also people using it to \
23                    remove the baseline from data, or to display data only.
24
25homepage            http://fityk.nieto.pl/
26
27# additional master site
28# master_sites        http://www.physics.wisc.edu/~craigm/idl/down:cmpfit
29# distfiles-append    cmpfit-1.2.tar.gz:cmpfit
30
31checksums           rmd160  12cbcd703c62439f2d0e95b5394277654249722b \
32                    sha256  2abb978b7f1ee8f800bf4f34a529163460234c873e423cf12fea2bb9260f1c45
33
34# wxWidgets.use       wxWidgets-3.0
35
36# WARNING: dvipng command 'dvipng' cannot be run (needed for math display), check the pngmath_dvipng setting
37depends_build       port:swig-lua
38
39depends_lib         port:boost \
40                    port:readline \
41                    port:gnuplot \
42                    port:ncurses \
43                    port:xylib \
44                    port:lua \
45                    port:zlib \
46                    port:python27 \
47                    port:wxWidgets30
48
49# TODO: gnuplot is probably a runtime dependency
50
51pre-configure {
52    # TODO: dependency on autotools
53    system "cd ${worksrcpath} && autoreconf --install --verbose"
54}
55
56pre-build {
57    if {[variant_isset docs]} {
58        depends_build-append port:py27-sphinx
59        # TODO: use a python variable
60        reinplace "s|sphinx-build|${prefix}/Library/Frameworks/Python.framework/Versions/2.7/bin/sphinx-build|" ${worksrcpath}/doc/Makefile
61        system "cd doc && make && cd .."
62    } else {
63        system "mkdir -p ${worksrcpath}/doc/html/placeholder"
64    }
65}
66
67# configure.args-append --with-wxdir=${wxWidgets.wxdir}
68
69variant docs description {Build and install documentation} {}