Ticket #28276: Portfile.2.diff
File Portfile.2.diff, 7.3 KB (added by matt.cottrell@…, 14 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name arb 7 version 5.18 7 epoch 1 8 version 5.2 9 9 categories science 10 10 maintainers me.com:matt.cottrell 11 11 platforms darwin … … 23 23 (http://tech.groups.yahoo.com/group/arb_users/). Citation: Wolfgang Ludwig, et al. (2004) ARB: a software environment \ 24 24 for sequence data. Nucleic Acids Research. 32:1363-1371. 25 25 26 fetch.type svn 27 svn.url http://svn.mikro.biologie.tu-muenchen.de/svn/branches/stable_5.0 28 svn.revision 6215 29 svn.method checkout 30 #fetch.user coder 31 #fetch.password gimmeARBsource 32 #work around until ticket #21232 is resolved 33 svn.args --username coder --password gimmeARBsource 26 master_sites http://download.arb-home.de/release/arb_${version}/ 27 distname arbsrc 28 extract.suffix .tgz 29 dist_subdir ${name}/${version} 30 worksrcdir arbsrc_6779 31 32 checksums sha1 4ee493a16ece5231d46ed1071407c06e733d67c8 \ 33 rmd160 d9d99d0ebadaa293091ff93f6ca588b2321bd8b0 34 35 depends_build port:gsed \ 36 port:imake \ 37 port:makedepend 34 38 35 39 depends_lib port:openmotif \ 36 40 port:lynx \ 37 port:gsed \38 port:imake \39 41 port:sablotron \ 40 42 port:mesa \ 41 43 port:glw \ 42 44 port:glew \ 43 45 port:tiff \ 44 port:libpng 46 port:xfig \ 47 port:gv \ 48 port:libpng \ 49 port:xorg-libXaw 45 50 46 51 patchfiles patch-ARB-config.makefile.diff \ 47 52 patch-ARB-makefile.diff \ 48 53 patch-ARB-RNA3D_GlobalHeader.hxx.diff \ 49 54 patch-ARB-DARWIN.pl.diff \ 55 arb_intro.fig.diff \ 50 56 patch-ARB-glpng.diff 51 57 52 worksrcdir stable_5.0 58 59 platform darwin { 60 if {${build_arch} == "ppc" || ${build_arch} == "i386" } { 61 set is64bit 0 62 if {${os.platform} == "darwin" && ${os.major} >= 9} { 63 if {[sysctl hw.cpu64bit_capable] == 1} { 64 ui_msg "64-bit capable hardware: Building 32-bit ARB. Check the setting of build_arch in ${prefix}/etc/macports/macports.conf" 65 } else { 66 ui_msg "not 64-bit capable hardware: Building 32-bit ARB." 67 } 68 } else { 69 ui_msg "unable to determine 64-bit hardware capability: Building 32-bit ARB." 70 } 71 } else { 72 set is64bit 1 73 ui_msg "64-bit capable hardware: Building 64-bit ARB." 74 } 75 } 76 77 configure { 53 78 54 configure {55 79 reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/MENUS/align.menu \ 56 80 ${worksrcpath}/util/arb_check_build_env.pl \ 57 81 ${worksrcpath}/arb_install.sh \ … … 73 97 74 98 reinplace "s|OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk|OSX_SDK:=${configure.sdkroot}|g" ${worksrcpath}/Makefile 75 99 76 if {${build_arch} == "ppc" || ${build_arch} == "i386"} {77 set is64bit 078 } else {79 set is64bit 180 }81 100 reinplace "s|@@64BIT@@|${is64bit}|g" ${worksrcpath}/config.makefile 82 101 } 83 102 84 103 build.env-append PREFIX=${prefix} \ 85 104 ARBHOME=${worksrcpath} \ 86 105 PATH=${worksrcpath}/bin:$env(PATH) 87 106 88 107 build.args GCC=${configure.cc} \ 89 108 GPP=${configure.cxx} \ 90 109 CPPreal=${configure.cpp} … … 101 120 file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS 102 121 file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH 103 122 file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb 104 file attributes ${destroot}${prefix}/share/arb/lib/arb_tcp.dat -permissions a+w105 file attributes ${destroot}${prefix}/share/arb/lib/pts -permissions a+w106 file attributes ${destroot}${prefix}/share/arb/lib/macros -permissions a+w123 system "chmod a+w ${destroot}${prefix}/share/arb/lib/arb_tcp.dat" 124 system "chmod a+w ${destroot}${prefix}/share/arb/lib/pts" 125 system "chmod a+w ${destroot}${prefix}/share/arb/lib/macros" 107 126 ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server 108 127 ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server 128 system "rm -rf `find ${destroot}${prefix}/share/arb -type d -name .svn`" 109 129 } 110 130 111 # to be investigated later112 131 universal_variant no 113 132 114 post-activate {115 system "rm -rf `find ${prefix}/share/arb -type d -name .svn`"116 }117 118 133 notes " 119 134 **************************************************************** 120 135 Before running ARB you must set ARBHOME and add ARB to your PATH … … 122 137 123 138 You have two options (A is easier, B is more difficult): 124 139 125 A) Open a new terminal window and type arb_macsetup to set up your environment automatically140 A) Easy - open a new terminal window and type arb_macsetup to set the necessary environment variables automatically. This script also enables keyboard shortcuts used in the sequence editor. 126 141 127 142 or 128 143 129 B) Follow the steps below:144 B) More difficult - follow the steps below: 130 145 131 1 a)146 1) 132 147 bash users add the following lines to your ~/.profile or to your ~/.bashrc 133 148 134 149 ARBHOME=${prefix}/share/arb;export ARBHOME … … 137 152 138 153 enter the following command: 139 154 . ~/.profile 140 1b)155 2) 141 156 tcsh users add the following lines to your ~/.cshrc 142 157 setenv ARBHOME ${prefix}/share/arb 143 158 setenv PATH ${prefix}/share/arb\:\$PATH 144 159 145 160 enter the following command: 146 161 source ~/.cshrc 147 2) 162 3) 163 create a text file in your home folder called .xmodmap that contains the text below: 164 165 clear Mod1 166 clear Mod2 167 keycode 63 = Mode_switch 168 keycode 66 = Meta_L 169 keycode 69 = Meta_R 170 add Mod1 = Meta_L Meta_R 171 add Mod2 = Mode_switch 172 173 C) 174 to set up ARB for another user on this computer log into their account and type ${prefix}/bin/arb_macsetup 175 176 D) 148 177 type arb to start ARB 149 178 150 179 A demo data base is located at ${prefix}/share/arb.demo.arb