source: trunk/dports/math/wxMaxima/Portfile

Last change on this file was 139181, checked in by mk@…, 2 years ago

wxmaxima: update to 15.04.0 (closes #48468)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 139181 2015-08-05 23:47:39Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       active_variants 1.1
5PortGroup       wxWidgets 1.0
6
7name            wxMaxima
8version         15.04.0
9revision        0
10maintainers     mk openmaintainer
11license         gpl
12platforms       darwin
13categories      math aqua
14description     Graphical user interface for Maxima
15long_description \
16                wxMaxima is a cross platform GUI for the computer algebra \
17                system maxima based on wxWidgets.
18homepage        http://wxmaxima.sourceforge.net/
19master_sites    sourceforge:project/[string tolower ${name}]/${name}/${version}
20livecheck.regex (?:[string tolower ${name}]|${name})-(\[a-z0-9.\]+)${extract.suffix}
21checksums       rmd160  04295f10ccd074d7069d00b1a0fe41884817687c \
22                sha256  0005029798703470333309fda29c731e79c85de1c7fc09b16cb87045a03aa4ba
23
24# Upstream changed the distname's spelling some time after 13.x.
25distname        wxmaxima-${version}
26
27wxWidgets.use   wxWidgets-3.0
28
29patchfiles      patch-src_main.cpp.diff \
30                patch-src_Dirstructure.h.diff \
31                patch-src_wxMaxima.cpp.diff
32
33depends_lib     port:libiconv \
34                port:libsdl \
35                port:libxml2 \
36                port:${wxWidgets.port} \
37                port:zlib
38depends_run     port:maxima
39
40require_active_variants gnuplot wxwidgets
41
42post-patch {
43    reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/main.cpp
44}
45
46depends_skip_archcheck  maxima
47configure.args  --enable-printing --with-wxdir=${wxWidgets.wxdir}
48build.target-append wxMaxima.app
49
50destroot {
51    xinstall -m 755 -d ${destroot}${applications_dir}
52    file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
53
54    set docPath ${prefix}/share/doc/${name}
55    xinstall -m 755 -d ${destroot}${docPath}
56    foreach f { AUTHORS COPYING README } {
57        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${docPath}
58    }
59}
60
61
Note: See TracBrowser for help on using the repository browser.