source: trunk/dports/sysutils/gkrellm/Portfile

Last change on this file was 134915, checked in by khindenburg@…, 2 years ago

gkrellm: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 134915 2015-04-10 17:55:47Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    gkrellm
7version                 2.3.5
8revision                3
9categories              sysutils
10platforms               darwin
11maintainers             nomaintainer
12license                 GPL-3+
13
14description             A GTK based system monitor
15
16long_description        ${description}
17
18homepage                http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
19master_sites            http://members.dslextreme.com/users/billw/gkrellm/
20
21checksums               sha1    bcfc2efb5fd3f27e9bb703bda73f6a1d96b080df \
22                        rmd160  6ac017985981a8731690a54a296e673b6bf7fab0
23
24use_bzip2               yes
25
26depends_build           port:pkgconfig
27
28depends_lib             port:gtk2 \
29                        port:xorg-libsm
30
31patchfiles              207a0519ac73290ba65b6e5f7446549a2a66f5d2.patch \
32                        patch-src-Makefile.diff
33
34use_configure           no
35
36variant universal {}
37
38build.type              gnu
39build.env               CC="${configure.cc}" \
40                        CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
41                        CPPFLAGS="${configure.cppflags}" \
42                        LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
43
44build.target            darwin9
45destroot.target         install_darwin9
46
47set plugin_dir          ${prefix}/libexec/gkrellm2/plugins
48set theme_dir           ${prefix}/share/gkrellm2/themes
49
50platform darwin 8 {
51    build.target        darwin
52    destroot.target     install_darwin
53}
54
55post-patch {
56    reinplace "s|\$(PREFIX)|${prefix}|g" \
57        "${worksrcpath}/Makefile"
58
59    reinplace "s|/usr/local/share/gkrellm2/themes|${theme_dir}|g" \
60        "${worksrcpath}/src/gkrellm.h"
61
62    reinplace "s|/usr/share/gkrellm2/themes|${theme_dir}|g" \
63        "${worksrcpath}/src/gkrellm.h"
64
65    reinplace "s|/usr/local/lib/gkrellm2/plugins|${plugin_dir}|g" \
66        "${worksrcpath}/src/gkrellm.h"
67
68    reinplace "s|/usr/lib/gkrellm2/plugins|${plugin_dir}|g" \
69        "${worksrcpath}/src/gkrellm.h"
70}
71
72post-destroot {
73    xinstall -m 755 -d ${destroot}${theme_dir}
74    xinstall -m 755 -d ${destroot}${plugin_dir}
75
76    destroot.keepdirs \
77        ${destroot}${theme_dir} \
78        ${destroot}${plugin_dir}
79}
80
81notes "
82After the first launch of GkrellM, the directory ~/.gkrellm2/\
83is created that contains the file user-config to keep your\
84settings, and also contains directories named themes/ and plugins/.\
85However, the plugins and themes directories for this port of\
86GkrellM are fixed at these locations:
87
88${plugin_dir}
89${theme_dir}
90"
91
92startupitem.create      yes
93startupitem.executable  ${prefix}/bin/gkrellmd
94
95livecheck.type          regex
96livecheck.url           ${homepage}
97livecheck.regex         ${name}-(\[0-9.]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.