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

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

charm: add myself and openmaintainer

  • 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 131903 2015-01-20 18:01:40Z mk@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           cmake 1.0
7
8github.setup        KDAB Charm aca5faf6
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
16maintainers         gmail.com:rjvbertin mk openmaintainer
17categories          office
18license             GPL-2+ LGPL-2.1+
19description         Charm - the Cross-Platform Time Tracker
20long_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.
21platforms           darwin
22
23subport ${name}-qt5 {
24    PortGroup       qt5 1.0
25    conflicts       ${name}
26    depends_lib-append      port:qt5-mac-sqlite3-plugin
27    configure.args-append   -DWITH_QT4:BOOL=OFF
28}
29
30if {${subport} ne "${name}-qt5"} {
31    PortGroup       qt4 1.0
32    conflicts       ${name}-qt5
33    depends_build-append    port:automoc
34    depends_lib-append      port:qt4-mac-sqlite3-plugin
35    configure.args-append   -DWITH_QT4:BOOL=ON
36}
37
38configure.args-append   -DCharm_VERSION="${version}-${github.version}" -DBIN_INSTALL_DIR:PATH=${qt_apps_dir}
39
40# aca5faf6
41checksums           rmd160  c0f938504705477a751f4be7f28220de261a1e56 \
42                    sha256  1651dc8fb4c5100c96137e1fe076ce86a89b98b2e81e652a4fae1b8a5c5860f7
43
44# 1.8.0
45#checksums           rmd160  95fca2fd3236f8d39bf9e67b5ca43e3466f6c205 \
46#                    sha256  d2cfefd78893288e99b8b813185fa5449a423988e070940b9894e304e0208c54
47
48patchfiles          patch-CMakeFiles.patch \
49                    adapt-to-osx-macports.patch
50
51post-extract                {file mkdir ${workpath}/build}
52# standard post-arg, where to find the primary CMakeLists.txt file.
53default configure.post_args {../${worksrcdir}}
54default configure.dir       {${workpath}/build}
55default build.dir           {${workpath}/build}
56
57use_parallel_build  yes
58
59post-destroot {
60    xinstall -m 0755 -d ${destroot}${qt_apps_dir}
61    ln -s ${qt_apps_dir}/Charm.app/Contents/MacOS/Charm ${destroot}${prefix}/bin/charmtimetracker
62}
63
Note: See TracBrowser for help on using the repository browser.