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 127391 2014-10-26 23:24:49Z mk@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | PortGroup cmake 1.0 |
---|
7 | |
---|
8 | github.setup KDAB Charm ad76bf18 |
---|
9 | |
---|
10 | name charm |
---|
11 | version 1.8.0 |
---|
12 | maintainers gmail.com:rjvbertin |
---|
13 | license GPL-2+ LGPL-2.1+ |
---|
14 | description Charm - the Cross-Platform Time Tracker |
---|
15 | long_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 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. |
---|
16 | platforms darwin |
---|
17 | |
---|
18 | configure.args-append -DCharm_VERSION=${version} -DBIN_INSTALL_DIR:PATH=${qt_apps_dir} |
---|
19 | subport qt5-${name} { |
---|
20 | PortGroup qt5 1.0 |
---|
21 | conflicts ${name} |
---|
22 | configure.args-append -DWITH_QT4:BOOL=OFF |
---|
23 | } |
---|
24 | |
---|
25 | if {${subport} ne "qt5-${name}"} { |
---|
26 | PortGroup qt4 1.0 |
---|
27 | conflicts qt5-${name} |
---|
28 | depends_build-append port:automoc |
---|
29 | configure.args-append -DWITH_QT4:BOOL=ON -DBIN_INSTALL_DIR:PATH=${qt_apps_dir} |
---|
30 | } |
---|
31 | |
---|
32 | patchfiles patch-CMakeFiles.patch \ |
---|
33 | adapt-to-osx-macports.patch |
---|
34 | |
---|
35 | post-extract { file mkdir ${workpath}/build } |
---|
36 | # standard post-arg, where to find the primary CMakeLists.txt file. |
---|
37 | default configure.post_args {../${worksrcdir}} |
---|
38 | default configure.dir {${workpath}/build} |
---|
39 | default build.dir {${workpath}/build} |
---|
40 | |
---|
41 | post-destroot { |
---|
42 | ln -s ${qt_apps_dir}/Charm.app/Contents/MacOS/Charm ${destroot}${prefix}/bin/charmtimetracker |
---|
43 | } |
---|
44 | |
---|