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

Last change on this file since 133829 was 133829, checked in by mk@…, 4 years ago

charm: update to latest git faaf49e9 (which fixes some Cocoa issues)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 133829 2015-03-12 19:38:42Z mk@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           cmake 1.0
7
8github.setup        KDAB Charm faaf49e9
9
10# The last release version is too old:
11#github.setup        KDAB Charm 1.8.0
12#github.tarball_from releases
13
14name                charm
15version             1.8.0
16revision            20150312
17maintainers         gmail.com:rjvbertin mk openmaintainer
18categories          office
19license             GPL-2+ LGPL-2.1+
20description         Charm - the Cross-Platform Time Tracker
21long_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.
22platforms           darwin
23
24subport ${name}-qt5 {
25    PortGroup       qt5 1.0
26    conflicts       ${name}
27    depends_lib-append      port:qt5-mac-sqlite3-plugin
28    configure.args-append   -DWITH_QT4:BOOL=OFF
29}
30
31if {${subport} ne "${name}-qt5"} {
32    PortGroup       qt4 1.0
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
39configure.args-append   -DCharm_VERSION="${version}-${github.version}" -DBIN_INSTALL_DIR:PATH=${qt_apps_dir}
40
41# faaf49e9
42checksums           rmd160  50e87a81e853c81ea0d538f7a165570d0e9f2ac0 \
43                    sha256  f49b485e0bd072f3564420859d0114538a3d321cd2f9c1a124d488aefbea8424
44
45# 1.8.0
46#checksums           rmd160  95fca2fd3236f8d39bf9e67b5ca43e3466f6c205 \
47#                    sha256  d2cfefd78893288e99b8b813185fa5449a423988e070940b9894e304e0208c54
48
49patchfiles          patch-CMakeFiles.patch \
50                    adapt-to-osx-macports.patch
51
52post-extract                {file mkdir ${workpath}/build}
53# standard post-arg, where to find the primary CMakeLists.txt file.
54default configure.post_args {../${worksrcdir}}
55default configure.dir       {${workpath}/build}
56default build.dir           {${workpath}/build}
57
58use_parallel_build  yes
59
60post-destroot {
61    xinstall -m 0755 -d ${destroot}${qt_apps_dir}
62    ln -s ${qt_apps_dir}/Charm.app/Contents/MacOS/Charm ${destroot}${prefix}/bin/charmtimetracker
63}
64
Note: See TracBrowser for help on using the repository browser.