1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name zsh-templates-osx |
---|
6 | version 2.0.2 |
---|
7 | categories sysutils |
---|
8 | |
---|
9 | maintainers inmachina.com:max openmaintainer |
---|
10 | |
---|
11 | description Customization of zsh for OS X |
---|
12 | long_description This is a collection of files that help the user to customize \ |
---|
13 | the zsh shell for the Mac OS X operating system. It is entirely \ |
---|
14 | optional and is not part of the zsh shell distribution. \ |
---|
15 | It is designed to \'work out of the box\' but to be amenable \ |
---|
16 | to customization. |
---|
17 | |
---|
18 | platforms darwin |
---|
19 | |
---|
20 | homepage http://zsh-templates-osx.googlecode.com |
---|
21 | master_sites googlecode:${name} |
---|
22 | distname zsh-templates-${version} |
---|
23 | extract.suffix .tgz |
---|
24 | |
---|
25 | checksums md5 04a87386169fca60cf76008f96669014 \ |
---|
26 | sha1 958f5588aa9f9dd1e17b42fdccf97692c32342c2 \ |
---|
27 | rmd160 e0511fd0dda5dc9b4dbcc6872d6261df2b494ff3 |
---|
28 | |
---|
29 | use_configure no |
---|
30 | set ipth ${prefix}/share/${name} |
---|
31 | |
---|
32 | build {} |
---|
33 | |
---|
34 | destroot { |
---|
35 | file rename ${worksrcpath} ${destroot}/${ipth} |
---|
36 | file delete ${destroot}/${ipth}/Library/init/zsh/zshrc_local.d/phenix_env.zsh |
---|
37 | |
---|
38 | if {[variant_isset global]} { |
---|
39 | file rename ${destroot}/${ipth}/Library/init ${destroot}/Library |
---|
40 | file rename ${destroot}/${ipth}/etc ${destroot}/etc |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | variant global description {Install zsh-templates osx in global root directory} { |
---|
45 | destroot.violate_mtree yes |
---|
46 | } |
---|
47 | |
---|
48 | post-install { |
---|
49 | if {![variant_isset global]} { |
---|
50 | ui_msg "******************************************************" |
---|
51 | ui_msg "* In order to install the zsh-templates-osx execute" |
---|
52 | ui_msg "* sudo cp -R ${ipth}/Library/init /Library" |
---|
53 | ui_msg "* sudo cp ${ipth}/etc/zshenv /etc/zshenv" |
---|
54 | ui_msg "* sudo cp ${ipth}/etc/zshrc /etc/zshrc" |
---|
55 | ui_msg "******************************************************" |
---|
56 | } |
---|
57 | } |
---|