Ticket #37043: Portfile.diff
File Portfile.diff, 9.4 KB (added by mattcottrell, 12 years ago) |
---|
-
Portfile
old new 5 5 6 6 name arb 7 7 epoch 1 8 version 5.3 9 revision 7 8 version 5.5 10 9 categories science 11 maintainers mac.com:matt.cottrell 10 maintainers mac.com:matt.cottrell 12 11 platforms darwin 13 12 14 13 description ARB graphical DNA, RNA and amino acid sequence analysis tool … … 28 27 distname arbsrc 29 28 extract.suffix .tgz 30 29 dist_subdir ${name}/${version} 31 worksrcdir arbsrc_ 821030 worksrcdir arbsrc_9167 32 31 33 checksums sha 1 535b72bfbf99f498deee17824c1f167228ad2088\34 rmd160 d4b240da693f903d0e8bd59f4b1f1043b693550832 checksums sha256 25246355ccaebff2e3350a553732636896f0f9f21eca3bb2bcf75cbeb7ac92a9 \ 33 rmd160 f8b7b12cd9259b1b0f7cbbc29aca4f85585e8b9f 35 34 36 35 depends_build port:imake \ 37 36 port:makedepend … … 44 43 port:glew \ 45 44 port:xfig \ 46 45 port:gv \ 47 port:xorg-libXaw 46 port:xorg-libXaw \ 47 port:gtime 48 48 49 49 patchfiles patch-ARB-config.makefile.diff \ 50 patch-ARB-makefile.diff \51 patch-ARB-RNA3D_GlobalHeader.hxx.diff \52 patch-ARB-DARWIN.pl.diff \53 50 patch-ARB-intro.fig.diff \ 54 patch-GDEHELP-Makefile.diff 55 51 patch-ARB-glpng.h.diff \ 52 patch-ARB-glpng.c.diff \ 53 patch-ARB-RNA3D_Textures.cxx.diff 54 56 55 configure { 56 if {${build_arch} == "ppc" || ${build_arch} == "i386"} { 57 set is64bit 0 58 } else { 59 set is64bit 1 60 } 61 62 file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile 63 reinplace "s|@@64BIT@@|${is64bit}|g" ${worksrcpath}/config.makefile 64 file copy ${filespath}/arb_macsetup ${worksrcpath}/bin 65 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/bin/arb_macsetup 66 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SH/arb 67 reinplace "s|@@GPP@@|${configure.cxx}|g" ${worksrcpath}/PERL2ARB/DARWIN.PL 68 reinplace "s|@@LIBPERLDIR@@|[exec ${prefix}/bin/perl -e "use Config; print \$Config{archlib};"]/CORE|g" ${worksrcpath}/PERL2ARB/DARWIN.PL 57 69 reinplace -locale C "s| sed | gsed |g" ${worksrcpath}/GDEHELP/MENUS/align.menu \ 58 70 ${worksrcpath}/util/arb_check_build_env.pl \ 59 71 ${worksrcpath}/arb_install.sh \ 60 72 ${worksrcpath}/WINDOW/AW_status.cxx \ 61 73 ${worksrcpath}/SH/example_batch_probe_match.sh \ 62 ${worksrcpath}/GDEHELP/GDEmenus \63 74 ${worksrcpath}/GDEHELP/genhelp.sh \ 64 75 ${worksrcpath}/GDEHELP/genhelptree.sh \ 65 76 ${worksrcpath}/SOURCE_TOOLS/make_java_dependencies.sh \ … … 67 78 ${worksrcpath}/AISC_COM/AISC/Makefile \ 68 79 ${worksrcpath}/GDEHELP/Makefile \ 69 80 ${worksrcpath}/HELP_SOURCE/genhelp/Makefile \ 70 ${worksrcpath}/GDEHELP/Makefile.helpfiles 71 file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile 72 file copy ${filespath}/arb_macsetup ${worksrcpath}/bin 73 reinplace "s|@@LIBPERLDIR@@|[exec ${prefix}/bin/perl -e "use Config; print \$Config{archlib};"]/CORE|g" ${worksrcpath}/PERL2ARB/DARWIN.PL 74 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/bin/arb_macsetup 75 76 if {${build_arch} == "ppc" || ${build_arch} == "i386"} { 77 set is64bit 0 78 } else { 79 set is64bit 1 80 } 81 reinplace "s|@@64BIT@@|${is64bit}|g" ${worksrcpath}/config.makefile 81 ${worksrcpath}/GDEHELP/Makefile.helpfiles \ 82 82 } 83 83 84 84 build.env-append PREFIX=${prefix} \ 85 85 ARBHOME=${worksrcpath} \ 86 PATH=${worksrcpath}/bin:$ env(PATH)86 PATH=${worksrcpath}/bin:${prefix}/libexec/gnubin:$env(PATH) 87 87 88 # https://trac.macports.org/ticket/3375689 if {${configure.compiler} == "clang"} {90 configure.compiler llvm-gcc-4.291 }88 # https://trac.macports.org/ticket/33756 89 if {${configure.compiler} == "clang"} { 90 configure.compiler llvm-gcc-4.2 91 } 92 92 93 93 build.args GCC=${configure.cc} \ 94 94 GPP=${configure.cxx} 95 95 96 96 destroot.keepdirs ${destroot}${prefix}/share/arb/lib/pts 97 97 98 destroot { 98 99 # Give the default settings a recognizable name ending in .default 99 100 file rename ${worksrcpath}/lib/arb_tcp.dat ${worksrcpath}/lib/arb_tcp.dat.default 100 101 file rename ${worksrcpath}/lib/macros ${worksrcpath}/lib/macros.default 101 102 102 103 eval xinstall -m 0755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin 104 103 105 file mkdir ${destroot}${prefix}/share/arb/bin 104 file copy ${worksrcpath}/lib ${destroot}${prefix}/share/arb/lib105 file copy ${worksrcpath}/GDEHELP ${destroot}${prefix}/share/arb/GDEHELP106 file mkdir ${destroot}${prefix}/lib/help107 file copy ${worksrcpath}/HELP_SOURCE/oldhelp ${destroot}${prefix}/lib/help108 106 file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS 107 file copy ${worksrcpath}/GDEHELP ${destroot}${prefix}/share/arb/GDEHELP 108 file copy ${worksrcpath}/lib ${destroot}${prefix}/share/arb/lib 109 109 file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH 110 110 file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb 111 112 file mkdir ${destroot}${prefix}/lib/help 113 file copy ${worksrcpath}/HELP_SOURCE/oldhelp ${destroot}${prefix}/lib/help 114 111 115 ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server 112 116 ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server 117 113 118 xinstall -m 777 -d ${destroot}${prefix}/share/arb/lib/pts 119 114 120 } 115 121 116 122 # to be investigated later … … 162 168 163 169 enter the following command: 164 170 source ~/.cshrc 165 3) 166 create a text file in your home folder called .xmodmap that contains the text below: 171 172 C) to set up ARB for another user on this computer log into their account and type ${prefix}/bin/arb_macsetup 173 174 ************************************************************************************************************************************ 175 You can set up keyboard shortcuts manually by creating a text file in your home folder called .xmodmap that contains the text below: 176 ************************************************************************************************************************************ 167 177 168 178 clear Mod1 169 179 clear Mod2 … … 173 183 add Mod1 = Meta_L Meta_R 174 184 add Mod2 = Mode_switch 175 185 176 C) 177 to set up ARB for another user on this computer log into their account and type ${prefix}/bin/arb_macsetup 178 179 D) 180 type arb to start ARB 186 ******************************************************************* 187 Use keys Control+Command Arrow Key to jump over bases 188 Use Keys Option Arrow Key to pull in bases across alignment gaps 189 Use the right Command Key plus a letter key to activate a menu item 190 ******************************************************************* 181 191 182 *********************************************************** 192 ***************************** 193 Type 'arb' to start using ARB 194 ***************************** 183 195 184 196 A demo data base is located at ${prefix}/share/arb/demo.arb 185 197 … … 195 207 ${prefix}/share/arb/lib/macros.default/ 196 208 ${prefix}/share/arb/lib/arb_tcp.dat.default 197 209 198 Use keys Control+Command Arrow Key to jump over bases199 Use Keys Option Arrow Key to pull in bases across alignment gaps200 Use the right Command Key plus a letter key to activate a menu item201 202 210 These notes can be viewed at any time by typing 'port notes arb' 203 211 204 212 Please cite: Wolfgang Ludwig, et al. (2004) ARB: a software environment for sequence data. Nucleic Acids Research. 32:1363-1371