Ticket #28276: Portfile.5.diff
File Portfile.5.diff, 4.1 KB (added by matt.cottrell@…, 14 years ago) |
---|
-
Portfile
old new 1 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 $2 # $Id: Portfile 76365 2011-02-21 04:47:56Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 … … 93 93 GPP=${configure.cxx} \ 94 94 CPPreal=${configure.cpp} 95 95 96 destroot.keepdirs ${destroot}${prefix}/share/arb/lib/pts 96 pre-destroot { 97 # Give the default settings a recognizable name ending in .default 98 file rename ${worksrcpath}/lib/arb_tcp.dat ${worksrcpath}/lib/arb_tcp.dat.default 99 file rename ${worksrcpath}/lib/macros ${worksrcpath}/lib/macros.default 100 } 97 101 98 102 destroot { 99 103 eval xinstall -m 0755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin … … 105 109 file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS 106 110 file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH 107 111 file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb 108 file attributes ${destroot}${prefix}/share/arb/lib/arb_tcp.dat -permissions a+w109 file attributes ${destroot}${prefix}/share/arb/lib/pts -permissions a+w110 file attributes ${destroot}${prefix}/share/arb/lib/macros -permissions a+w111 112 ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server 112 113 ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server 113 114 } … … 117 118 118 119 post-activate { 119 120 system "rm -rf `find ${prefix}/share/arb -type d -name .svn`" 121 122 # Presere the user's pt_server config file and macros; otherwise set default values 123 foreach f { arb_tcp.dat macros } { 124 if {![file exists ${prefix}/share/arb/lib/${f}]} { 125 file copy ${worksrcpath}/lib/${f}.default \ 126 ${prefix}/share/arb/lib/${f} 127 file attributes ${prefix}/share/arb/lib/${f} -permissions a+w 128 } 129 } 130 131 # Preserve the directory where the user's pt_servers are saved; otherwise create it 132 foreach f { pts } { 133 if {![file exists ${prefix}/share/arb/lib/${f}]} { 134 file mkdir ${prefix}/share/arb/lib/${f} 135 file attributes ${prefix}/share/arb/lib/${f} -permissions a+w 136 } 137 } 120 138 } 121 139 122 140 notes " … … 132 150 133 151 B) Follow the steps below: 134 152 135 1 a)153 1) 136 154 bash users add the following lines to your ~/.profile or to your ~/.bashrc 137 155 138 156 ARBHOME=${prefix}/share/arb;export ARBHOME … … 141 159 142 160 enter the following command: 143 161 . ~/.profile 144 1b)162 2) 145 163 tcsh users add the following lines to your ~/.cshrc 164 146 165 setenv ARBHOME ${prefix}/share/arb 147 166 setenv PATH ${prefix}/share/arb\:\$PATH 148 167 149 168 enter the following command: 150 169 source ~/.cshrc 151 2)170 C) 152 171 type arb to start ARB 153 172 154 173 A demo data base is located at ${prefix}/share/arb/demo.arb 155 174 175 ************************************************************************ 176 User generated macros, arb_tcp.dat and pt_servers have been preserved, 177 but you should keep backups of these just in case. They are located at: 178 179 ${prefix}/share/arb/lib/macros/ 180 ${prefix}/share/arb/lib/arb_tcp.dat 181 ${prefix}/share/arb/lib/pts/ 182 183 Default settings are maintained at: 184 185 ${prefix}/share/arb/lib/macros.default/ 186 ${prefix}/share/arb/lib/arb_tcp.dat.default 187 156 188 Please cite: Wolfgang Ludwig, et al. (2004) ARB: a software environment for sequence data. Nucleic Acids Research. 32:1363-1371 157 189 "