source: trunk/dports/office/taskjuggler/Portfile @ 75176

Last change on this file since 75176 was 75176, checked in by rmstonecipher@…, 9 years ago

office/taskjuggler removed hardcoded version per lint report

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 75176 2011-01-17 05:14:51Z rmstonecipher@macports.org $
3
4PortSystem          1.0
5
6name                taskjuggler
7version             2.4.3
8revision            3
9homepage            http://www.taskjuggler.org/
10categories          office pim
11
12description         A powerful project management tool.
13long_description    TaskJuggler is a modern and powerful, Open Source \
14                    project management tool.
15
16maintainers         rene
17
18platforms           darwin
19
20use_bzip2           yes
21master_sites        http://www.taskjuggler.org/download/:source
22distfiles           ${distname}${extract.suffix}:source
23checksums           ${distname}${extract.suffix} \
24                        md5     3bc88500856c7c9dc2fc526d5f04ac04 \
25                        sha1    00421ca022319da10f57607f8b62f8430f770767 \
26                        rmd160  76b403e76dd79b804013e48b8e0eab6fb3b5da9e \
27                    manual-${version}.tar.bz2 \
28                        md5     39bebc7d29eba0ce552d62e1f7a8fe7d \
29                        sha1    8d1a87c73a5aa9f8b2e184731a36ec6242e2da7d \
30                        rmd160  8b246991d57001ca56d1bb94981a04ef1af50e95
31
32depends_lib         port:qt3 \
33                    port:fontconfig \
34                    port:jpeg \
35                    port:libpng \
36                    port:kdebase3 \
37                    port:kdelibs3 \
38                    port:kdepim3
39
40configure.args      --enable-mac \
41                    --disable-docs \
42                    --without-arts \
43                    --with-qt-dir=${prefix}/lib/qt3 \
44                    --with-extra-includes=${prefix}/include \
45                    --with-extra-libs=${prefix}/lib
46
47pre-configure {
48    system "echo > ${worksrcpath}/admin/cvs.sh"
49}
50
51patchfiles          patch-configure.diff
52
53build.args          DYLD_LIBRARY_PATH=${worksrcpath}/taskjuggler/.libs
54build.env           MAKEFLAGS="-j${build.jobs}"
55
56platform darwin 9 {
57build.args-append   LDFLAGS=\"-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib\"
58}
59
60destroot.args       DESTDIR=${destroot}${prefix} \
61                    DYLD_LIBRARY_PATH=${worksrcpath}/taskjuggler/.libs \
62                    kde_locale=${destroot}/share/locale \
63                    docprefix=${destroot}/share/doc
64
65post-destroot {
66    if {[variant_isset docs]} {
67        # move handbook to destroot
68        set manual_path ${prefix}/share/doc/${name}/manual
69        xinstall -d ${destroot}${manual_path}
70        eval xinstall -m 640 [glob ${workpath}/manual-${version}/*.html] \
71            ${destroot}${manual_path}
72    }
73}
74
75variant qt3mac description {Use qt3mac instead of qt3} {
76    configure.args-delete       --with-qt-dir=${prefix}/lib/qt3
77    depends_lib-delete          port:qt3
78    configure.args-append       --with-qt-dir=${prefix}/lib/qt3mac
79    depends_lib-append          port:qt3-mac
80}
81
82variant nokde description {Build the command line version} {
83    configure.args-append       --with-kde-support=no --with-ical-support=no
84    depends_lib-delete          port:kdebase3 \
85                                port:fontconfig \
86                                port:kdelibs3 \
87                                port:kdepim3
88}
89
90variant docs description {Install handbook} {
91    master_sites-append     http://www.taskjuggler.org/download/:docs
92    distfiles-append        manual-${version}${extract.suffix}:docs
93}
94
95variant debug description {Enable debug mode} {
96    configure.args-append       --enable-debug=yes
97}
98
99livecheck.type      regex
100livecheck.url       ${homepage}/download.php
101livecheck.regex     "Latest Stable Taskjuggler \\(Version (\\d+.\\d+.\\d+)\\)"
102
Note: See TracBrowser for help on using the repository browser.