Ticket #19257: Portfile

File Portfile, 1.7 KB (added by max@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                zsh-templates-osx
6version             2.0.2
7categories                      sysutils
8
9maintainers         inmachina.com:max openmaintainer
10
11description         Customization of zsh for OS X
12long_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
18platforms           darwin
19
20homepage            http://zsh-templates-osx.googlecode.com
21master_sites        googlecode:${name}
22distname                        zsh-templates-${version}
23extract.suffix          .tgz
24
25checksums           md5     04a87386169fca60cf76008f96669014 \
26                    sha1    958f5588aa9f9dd1e17b42fdccf97692c32342c2 \
27                                        rmd160  e0511fd0dda5dc9b4dbcc6872d6261df2b494ff3
28
29use_configure           no
30set     ipth                    ${prefix}/share/${name}
31
32build {}
33
34destroot {
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
44variant global description {Install zsh-templates osx in global root directory} {
45        destroot.violate_mtree  yes
46}
47
48post-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}