source: trunk/dports/sysutils/gkrellm/Portfile @ 20468

Last change on this file since 20468 was 20468, checked in by blair@…, 14 years ago

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[20468]1# $Id: Portfile 20468 2006-11-03 15:25:14Z blair@macports.org $
[17832]2PortSystem      1.0
3
4name                    gkrellm
[20174]5version                 2.2.10
[17832]6categories              sysutils
[20174]7maintainers             markd@macports.org
[17832]8
9description             A GTK based system monitor
10long_description        ${description}
11
12homepage                http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
13
14platforms               darwin
15master_sites            http://members.dslextreme.com/users/billw/gkrellm/
[20174]16checksums               md5 57ef0525c0997ac2e7720712811f5a84
[17832]17use_bzip2               yes
18
19depends_lib             port:gtk2
20
21use_configure           no
22
23build.type              gnu
24build.env               CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
25                        CFLAGS=-I${prefix}/include \
26                        LDFLAGS=-L${prefix}/lib
27
28build.target            darwin
29destroot.target         install_darwin
30
31set plugin_dir          ${prefix}/libexec/gkrellm2/plugins
32set theme_dir           ${prefix}/share/gkrellm2/themes
33
34post-patch {
35        reinplace "s|\$(PREFIX)|${prefix}|g" \
36                "${worksrcpath}/Makefile"
37
38        reinplace "s|/usr/local/share/gkrellm2/themes|${theme_dir}|g" \
39                "${worksrcpath}/src/gkrellm.h"
40
41        reinplace "s|/usr/share/gkrellm2/themes|${theme_dir}|g" \
42                "${worksrcpath}/src/gkrellm.h"
43
44        reinplace "s|/usr/local/lib/gkrellm2/plugins|${plugin_dir}|g" \
45                "${worksrcpath}/src/gkrellm.h"
46
47        reinplace "s|/usr/lib/gkrellm2/plugins|${plugin_dir}|g" \
48                "${worksrcpath}/src/gkrellm.h"
49}
50
51post-destroot {
52        xinstall -m 755 -d ${destroot}${theme_dir}
53        xinstall -m 755 -d ${destroot}${plugin_dir}
54
55        destroot.keepdirs \
56                ${destroot}${theme_dir} \
57                ${destroot}${plugin_dir}
58}
59
60post-activate {
61ui_msg "\n
62
63After the first launch of GkrellM, the directory ~/.gkrellm2/
64is created that contains the file user-config to keep your
65settings, and also contains directories named themes/ and plugins/.
66However, the plugins and themes directories for this port of
67GkrellM are fixed at these locations:
68
69${plugin_dir}
70${theme_dir}
71\n"
72}
Note: See TracBrowser for help on using the repository browser.