Ticket #43257: Portfile

File Portfile, 3.0 KB (added by jul_bsd@…, 10 years ago)
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$
3
4PortSystem          1.0
5
6name                workrave
7version             1.10.4
8categories          x11 gnome
9maintainers         yahoo.fr:jul_bsd openmaintainer
10license             GPL-3
11
12description         assists in the recovery and prevention of Repetitive Strain Injury (RSI)
13long_description    Workrave is a program that assists in the recovery \
14                    and prevention of Repetitive Strain Injury (RSI). \
15                    The program frequently alerts you to take micro-pauses, \
16                    rest breaks and restricts you to your daily limit.A
17homepage            http://www.workrave.org/
18
19set file_version        [string map {. "_"} ${version}]
20
21# https://github.com/rcaelers/workrave
22platforms           darwin
23## up to 1.10.1
24#master_sites        sourceforge:workrave
25## up to 1.10.3 or devel
26master_sites        https://github.com/rcaelers/workrave/archive/
27distname            v${file_version}
28patchfiles          patch-configure.ac.diff
29
30if {${subport} eq ${name}} {
31
32    checksums           rmd160  c74da2d1af0fb802d36eda5167ef34005b443000 \
33                        sha256  5e9a2ddc7c1cba056c722922946f44268d5e6ec03ebd5ca35e1ee85392c81d6a
34    worksrcdir          ${name}-${file_version}
35
36    pre-configure {
37        system "cd ${worksrcpath} && ./autogen.sh"
38    }
39    configure.args      --with-x --disable-xml
40
41}
42
43subport ${name}-devel {
44
45    fetch.type git
46    git.url    https://github.com/rcaelers/workrave.git
47    git.branch next
48
49    ## not qt5 for now in tree: http://trac.macports.org/ticket/37331
50    #depends_lib-append port:qt5
51
52    PortGroup           cmake 1.0
53
54    conflicts  ${name}
55
56}
57
58depends_build       port:xorg-libXt
59
60depends_lib         port:glib2 port:glibmm port:gtk2 port:atk port:pango \
61                    port:pangomm port:cairo port:cairomm port:dbus \
62                    port:dbus-glib port:gconf port:gconfmm port:gstreamer1 \
63                    port:libsigcxx2 port:gtkmm \
64                    port:orbit2 port:libbonobo port:gnome-panel \
65                    port:py27-cheetah \
66                    port:ige-mac-integration
67## Note: ige-mac-integration supposes:
68##    gtk2 +no_x11 +quartz', py27-pygtk +quartz, gtkmm +quartz/cairomm/pangomm/libglade2/avahi (not default)
69##    pango, cairo +x11+quartz
70##    FIXME! huge mess and big chance to break automated upgrade
71# Optional port:gdome2 (disable = --disable-xml), indicator
72
73configure.env       PYTHON=${prefix}/bin/python2.7
74#build.env           PYTHON=${prefix}/bin/python2.7
75## FIXME! build
76## ./OSXGtkMenu.hh:51:28: error: unknown type name 'IgeMacDock'
77
78## FIXME! fetch version is w underscore
79livecheck.type     regex
80#livecheck.url       http://sourceforge.net/projects/workrave/
81#livecheck.regex     "workrave-(\\d+(?:\\.\\d+)*).tar.gz"
82livecheck.url       https://github.com/rcaelers/workrave/releases
83livecheck.regex     "v(\\d+(?:\\_\\d+)*).tar.gz"