Ticket #46575: Portfile.4

File Portfile.4, 2.9 KB (added by mkae (Marko Käning), 9 years ago)

functional Portfile (using git version ad76bf18, i.e. not the most up-to-date one)

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 127391 2014-10-26 23:24:49Z mk@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           cmake 1.0
7
8github.setup        KDAB Charm ad76bf18
9
10# This version violates the MacPorts fs layout:
11#github.setup        KDAB Charm aca5faf6
12
13# The last release version is too old:
14#github.setup        KDAB Charm 1.8.0
15#github.tarball_from releases
16
17name                charm
18version             1.8.0
19maintainers         gmail.com:rjvbertin
20categories          office
21license             GPL-2+ LGPL-2.1+
22description         Charm - the Cross-Platform Time Tracker
23long_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.
24platforms           darwin
25
26subport qt5-${name} {
27    PortGroup       qt5 1.0
28    conflicts       ${name}
29    configure.args-append   -DWITH_QT4:BOOL=OFF
30}
31
32if {${subport} ne "qt5-${name}"} {
33    PortGroup       qt4 1.0
34    conflicts       qt5-${name}
35    depends_build-append  port:automoc
36    configure.args-append   -DWITH_QT4:BOOL=ON -DBIN_INSTALL_DIR:PATH=${qt_apps_dir}
37}
38
39configure.args-append   -DCharm_VERSION=${version} -DBIN_INSTALL_DIR:PATH=${qt_apps_dir}
40
41# ad76bf18
42checksums           rmd160  860578f5347be54f2505181c9f318debe81c1ce7 \
43                    sha256  550fb6ec0bfeb7e2af132ea140c1df5e1d9cd8be0c92a0ea241dfc1d82b24de5
44
45# aca5faf6
46#checksums           rmd160  c0f938504705477a751f4be7f28220de261a1e56 \
47#                    sha256  1651dc8fb4c5100c96137e1fe076ce86a89b98b2e81e652a4fae1b8a5c5860f7
48
49# 1.8.0
50#checksums           rmd160  95fca2fd3236f8d39bf9e67b5ca43e3466f6c205 \
51#                    sha256  d2cfefd78893288e99b8b813185fa5449a423988e070940b9894e304e0208c54
52
53#patchfiles          patch-CMakeFiles.patch \
54
55patchfiles          \
56                    adapt-to-osx-macports.patch
57
58post-extract            { file mkdir ${workpath}/build }
59# standard post-arg, where to find the primary CMakeLists.txt file.
60default configure.post_args {../${worksrcdir}}
61default configure.dir       {${workpath}/build}
62default build.dir           {${workpath}/build}
63
64use_parallel_build  yes
65
66post-destroot {
67    ln -s ${qt_apps_dir}/Charm.app/Contents/MacOS/Charm ${destroot}${prefix}/bin/charmtimetracker
68}
69