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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name workrave |
---|
7 | version 1.10.4 |
---|
8 | categories x11 gnome |
---|
9 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
10 | license GPL-3 |
---|
11 | |
---|
12 | description assists in the recovery and prevention of Repetitive Strain Injury (RSI) |
---|
13 | long_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 |
---|
17 | homepage http://www.workrave.org/ |
---|
18 | |
---|
19 | set file_version [string map {. "_"} ${version}] |
---|
20 | |
---|
21 | # https://github.com/rcaelers/workrave |
---|
22 | platforms darwin |
---|
23 | ## up to 1.10.1 |
---|
24 | #master_sites sourceforge:workrave |
---|
25 | ## up to 1.10.3 or devel |
---|
26 | master_sites https://github.com/rcaelers/workrave/archive/ |
---|
27 | distname v${file_version} |
---|
28 | patchfiles patch-configure.ac.diff |
---|
29 | |
---|
30 | if {${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 | |
---|
43 | subport ${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 | |
---|
58 | depends_build port:xorg-libXt |
---|
59 | |
---|
60 | depends_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 | |
---|
73 | configure.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 |
---|
79 | livecheck.type regex |
---|
80 | #livecheck.url http://sourceforge.net/projects/workrave/ |
---|
81 | #livecheck.regex "workrave-(\\d+(?:\\.\\d+)*).tar.gz" |
---|
82 | livecheck.url https://github.com/rcaelers/workrave/releases |
---|
83 | livecheck.regex "v(\\d+(?:\\_\\d+)*).tar.gz" |
---|