source: trunk/dports/kde/rkward/Portfile

Last change on this file was 147817, checked in by mk@…, 16 months ago

rkward: again clean up the mess left behind on the builders

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
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: Portfile 147817 2016-04-16 17:07:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# See dports/_resources/port1.0/group/kde4-1.1.tcl for more info.
7PortGroup           kde4    1.1
8
9name                rkward
10version             0.6.5
11
12conflicts           rkward-devel
13categories          kde kde4 math science
14maintainers         hhu.de:meik.michalke kde.org:rkward-devel mk
15license             GPL-2+
16platforms           darwin
17
18description         KDE frontend to the R statistics language
19
20long_description    RKWard aims to become an easy to use, transparent frontend to R, a powerful system \
21                    for statistical computation and graphics. Besides a convenient GUI for the most important \
22                    statistical functions, future versions will also provide seamless integration with an office-suite.
23
24homepage            https://rkward.kde.org
25
26master_sites        http://download.kde.org/stable/${name}/${version}/src
27
28worksrcdir          ${name}-${version}
29
30depends_lib         port:kdelibs4 \
31                    port:kate \
32                    port:okular \
33                    port:R
34
35checksums           rmd160  086c5f0c402011c16f2eeccd52e823645a73f150 \
36                    sha256  3fc5acb48ce717dee8fbbe32973ea4c61f30c335bd18a75471142b19b436a032
37
38post-extract {
39        file mkdir ${worksrcpath}/build
40}
41
42configure.dir       ${worksrcpath}/build
43configure.args-append \
44        -DNO_R_XML=1 \
45        -DRKVERSION_NUMBER=${version} \
46        -DBUNDLE_INSTALL_DIR=${applications_dir} \
47        -DR_EXECUTABLE=${frameworks_dir}/R.framework/Resources/R
48
49variant debug description {Add full debugging support} {
50        depends_lib-append port:valgrind
51}
52
53configure.post_args ..
54
55build.dir           ${worksrcpath}/build
56
57
58# We force deletion of all residual (previously not properly destrooted) rkward files
59# possibly installed on the buildbots, which otherwise fail for the rkward port
60# [this should be deleted once the buildbots are clean again]:
61pre-activate {
62    delete ${frameworks_dir}/R.framework/Resources/library/rkward/
63    delete ${frameworks_dir}/R.framework/Resources/library/rkwardtests/
64#
65#
66# TODO: First we want to know the timestamps for further failure analysis,
67#       which would have to be determined next time we have a revision bump.
68#
69    if {[file exists ${frameworks_dir}/R.framework/Resources/library/rkward]} {
70        ui_msg "RKWARD_TIMESTAMPS:"
71        system "ls -ltR ${frameworks_dir}/R.framework/Resources/library/rkward/"
72    }
73    if {[file exists ${frameworks_dir}/R.framework/Resources/library/rkwardtests]} {
74        ui_msg "RKWARD_TIMESTAMPS:"
75        system "ls -ltR ${frameworks_dir}/R.framework/Resources/library/rkwardtests/"
76    }
77#
78# NOTE: rkward isn't binary distributable, which is why [1] doesn't exist!
79#
80# [1] http://packages.macports.org/rkward
81}
82
83livecheck.type      regex
84livecheck.regex     ">Get RKWard (\\d+\\.\\d+\\.\\d+)<"
85
86pre-pkg {
87        file copy -force -- ${worksrcdir}/macports/postinstall ${package.scripts}/postinstall
88        file attributes ${package.scripts}/postinstall -permissions 0755
89}
Note: See TracBrowser for help on using the repository browser.