source: trunk/dports/office/charm/Portfile @ 147755

Last change on this file since 147755 was 141442, checked in by mk@…, 5 years ago

charm(-qt5): update to version 1.10.0 (patches in adapt-to-osx-macports.patch still have to be adapted)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 141442 2015-10-18 20:49:13Z mk@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           cmake 1.0
7
8name                charm
9version             1.10.0
10
11github.setup        KDAB Charm ${version}
12
13maintainers         gmail.com:rjvbertin mk openmaintainer
14categories          office
15license             GPL-2+ LGPL-2.1+
16description         Charm - the Cross-Platform Time Tracker
17long_description    Charm is a program for OS X, Linux and Windows that helps to keep track of time. It is built around two major ideas - tasks and events. Tasks are the things time is spend on, repeatedly. For example, ironing laundry is a task. The laundry done for two hours on last Tuesday is an event in that task. When doing laundry multiple times, the events will be accumulated, and can later be printed in activity reports or weekly/monthly time sheets. So in case laundry would be done for three hours on Wednesday again, the activity report for the "Ironing Laundry" task would list the event on tuesday, the event on wednesday and a total of five hours.
18platforms           darwin
19
20subport ${name}-qt5 {
21    PortGroup       qt5 1.0
22
23    conflicts       ${name}
24    depends_lib-append      port:qt5-mac-sqlite3-plugin
25    configure.args-append   -DWITH_QT4:BOOL=OFF
26}
27
28if {${subport} ne "${name}-qt5"} {
29    PortGroup       qt4 1.0
30
31    revision        20151018
32
33    conflicts       ${name}-qt5
34    depends_build-append    port:automoc
35    depends_lib-append      port:qt4-mac-sqlite3-plugin
36    configure.args-append   -DWITH_QT4:BOOL=ON
37}
38
39checksums           rmd160  40184c4f0de2b7f9fe328b7fd2f0d47922be6e1c \
40                    sha256  5c7ea12da4ad1324a9aaf1f5d29612fc1d789a70bbcbfa2f57766b96f04275e1
41
42configure.args-append   -DCharm_VERSION="${version}"
43
44# These patches have still do be adapted to the current version:
45#patchfiles          adapt-to-osx-macports.patch
46
47post-extract                {file mkdir ${workpath}/build}
48# standard post-arg, where to find the primary CMakeLists.txt file.
49default configure.post_args {../${worksrcdir}}
50default configure.dir       {${workpath}/build}
51default build.dir           {${workpath}/build}
52
53use_parallel_build  yes
54
55destroot {
56    xinstall -m 0755 -d ${destroot}${applications_dir}
57    file copy ${workpath}/build/Charm/Charm.app ${destroot}${applications_dir}
58}
59
Note: See TracBrowser for help on using the repository browser.