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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name arb |
---|
7 | epoch 1 |
---|
8 | version 5.2 |
---|
9 | revision 2 |
---|
10 | categories science |
---|
11 | maintainers me.com:matt.cottrell |
---|
12 | platforms darwin |
---|
13 | |
---|
14 | description ARB graphical DNA, RNA and amino acid sequence analysis tool |
---|
15 | |
---|
16 | homepage http://www.arb-home.de/ |
---|
17 | |
---|
18 | long_description ARB is an application for genetic sequence analysis that includes tools for editing and aligning \ |
---|
19 | nucleotide and amino acid sequences. Features include routines for designing fluorescence in situ \ |
---|
20 | hybridization (FISH) probes and PCR and sequencing primers. Phylogenetic trees can be generated and \ |
---|
21 | sequences can be added to existing trees. ARB maintains links between the phylogenetic trees and sequences \ |
---|
22 | for database search and query. The Silva Comprehensive Ribosomal RNA Database (http://www.arb-silva.de/) \ |
---|
23 | maintains up-to-date databases. An active community of scientists exchanges tips on the ARB Yahoo! discussion group \ |
---|
24 | (http://tech.groups.yahoo.com/group/arb_users/). Citation: Wolfgang Ludwig, et al. (2004) ARB: a software environment \ |
---|
25 | for sequence data. Nucleic Acids Research. 32:1363-1371. |
---|
26 | |
---|
27 | master_sites http://download.arb-home.de/release/arb_${version}/ |
---|
28 | distname arbsrc |
---|
29 | extract.suffix .tgz |
---|
30 | dist_subdir ${name}/${version} |
---|
31 | worksrcdir arbsrc_6779 |
---|
32 | |
---|
33 | checksums sha1 4ee493a16ece5231d46ed1071407c06e733d67c8 \ |
---|
34 | rmd160 d9d99d0ebadaa293091ff93f6ca588b2321bd8b0 |
---|
35 | |
---|
36 | depends_build port:imake \ |
---|
37 | port:makedepend |
---|
38 | |
---|
39 | depends_lib port:openmotif \ |
---|
40 | port:lynx \ |
---|
41 | port:gsed \ |
---|
42 | port:sablotron \ |
---|
43 | port:mesa \ |
---|
44 | port:glw \ |
---|
45 | port:glew \ |
---|
46 | port:tiff \ |
---|
47 | port:libpng \ |
---|
48 | port:xfig \ |
---|
49 | port:gv \ |
---|
50 | port:xorg-libXaw |
---|
51 | |
---|
52 | patchfiles patch-ARB-config.makefile.diff \ |
---|
53 | patch-ARB-makefile.diff \ |
---|
54 | patch-ARB-RNA3D_GlobalHeader.hxx.diff \ |
---|
55 | patch-ARB-DARWIN.pl.diff \ |
---|
56 | patch-ARB-glpng.diff \ |
---|
57 | arb_intro.fig.diff \ |
---|
58 | patch-ARB-Flatio.diff \ |
---|
59 | patch-ARB-Zuk_to_gen.c.diff \ |
---|
60 | patch-ARB-count.c.diff \ |
---|
61 | patch-ARB-lsadt.c.diff \ |
---|
62 | patch-ARB-interface.c.diff |
---|
63 | |
---|
64 | configure { |
---|
65 | reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/MENUS/align.menu \ |
---|
66 | ${worksrcpath}/util/arb_check_build_env.pl \ |
---|
67 | ${worksrcpath}/arb_install.sh \ |
---|
68 | ${worksrcpath}/WINDOW/AW_status.cxx \ |
---|
69 | ${worksrcpath}/SH/example_batch_probe_match.sh \ |
---|
70 | ${worksrcpath}/GDEHELP/GDEmenus \ |
---|
71 | ${worksrcpath}/GDEHELP/genhelp.sh \ |
---|
72 | ${worksrcpath}/GDEHELP/genhelptree.sh \ |
---|
73 | ${worksrcpath}/SOURCE_TOOLS/make_java_dependencies.sh \ |
---|
74 | ${worksrcpath}/HELP_SOURCE/Makefile \ |
---|
75 | ${worksrcpath}/AISC_COM/AISC/Makefile \ |
---|
76 | ${worksrcpath}/GDEHELP/Makefile \ |
---|
77 | ${worksrcpath}/HELP_SOURCE/genhelp/Makefile \ |
---|
78 | ${worksrcpath}/GDEHELP/Makefile.helpfiles |
---|
79 | file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile |
---|
80 | file copy ${filespath}/arb_macsetup ${worksrcpath}/bin |
---|
81 | reinplace "s|@@LIBPERLDIR@@|[exec ${prefix}/bin/perl -e "use Config; print \$Config{archlib};"]/CORE|g" ${worksrcpath}/PERL2ARB/DARWIN.PL |
---|
82 | reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/bin/arb_macsetup |
---|
83 | |
---|
84 | reinplace "s|OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk|OSX_SDK:=${configure.sdkroot}|g" ${worksrcpath}/Makefile |
---|
85 | |
---|
86 | if {${build_arch} == "ppc" || ${build_arch} == "i386"} { |
---|
87 | set is64bit 0 |
---|
88 | } else { |
---|
89 | set is64bit 1 |
---|
90 | } |
---|
91 | reinplace "s|@@64BIT@@|${is64bit}|g" ${worksrcpath}/config.makefile |
---|
92 | } |
---|
93 | |
---|
94 | build.env-append PREFIX=${prefix} \ |
---|
95 | ARBHOME=${worksrcpath} \ |
---|
96 | PATH=${worksrcpath}/bin:$env(PATH) |
---|
97 | |
---|
98 | if {${configure.compiler} == "clang" || |
---|
99 | ${configure.compiler} == "llvm-gcc-4.2"} { |
---|
100 | configure.compiler clang |
---|
101 | if {![file executable ${configure.cc}]} { |
---|
102 | depends_build-append port:apple-gcc42 |
---|
103 | configure.compiler apple-gcc-4.2 |
---|
104 | } |
---|
105 | } |
---|
106 | |
---|
107 | build.args GCC=${configure.cc} \ |
---|
108 | GPP=${configure.cxx} \ |
---|
109 | CPPreal=${configure.cpp} |
---|
110 | |
---|
111 | destroot.keepdirs ${destroot}${prefix}/share/arb/lib/pts |
---|
112 | destroot { |
---|
113 | # Give the default settings a recognizable name ending in .default |
---|
114 | file rename ${worksrcpath}/lib/arb_tcp.dat ${worksrcpath}/lib/arb_tcp.dat.default |
---|
115 | file rename ${worksrcpath}/lib/macros ${worksrcpath}/lib/macros.default |
---|
116 | |
---|
117 | eval xinstall -m 0755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin |
---|
118 | file mkdir ${destroot}${prefix}/share/arb/bin |
---|
119 | file copy ${worksrcpath}/lib ${destroot}${prefix}/share/arb/lib |
---|
120 | file copy ${worksrcpath}/GDEHELP ${destroot}${prefix}/share/arb/GDEHELP |
---|
121 | file mkdir ${destroot}${prefix}/lib/help |
---|
122 | file copy ${worksrcpath}/HELP_SOURCE/oldhelp ${destroot}${prefix}/lib/help |
---|
123 | file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS |
---|
124 | file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH |
---|
125 | file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb |
---|
126 | ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server |
---|
127 | ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server |
---|
128 | xinstall -m 777 -d ${destroot}${prefix}/share/arb/lib/pts |
---|
129 | } |
---|
130 | |
---|
131 | # to be investigated later |
---|
132 | universal_variant no |
---|
133 | |
---|
134 | post-activate { |
---|
135 | # Provide users with copies of the default configuration and macros |
---|
136 | # if the user doesn't already have them. |
---|
137 | if {![file exists ${prefix}/share/arb/lib/arb_tcp.dat]} { |
---|
138 | xinstall -m 777 ${prefix}/share/arb/lib/arb_tcp.dat.default \ |
---|
139 | ${prefix}/share/arb/lib/arb_tcp.dat |
---|
140 | } |
---|
141 | if {![file exists ${prefix}/share/arb/lib/macros]} { |
---|
142 | file copy ${prefix}/share/arb/lib/macros.default \ |
---|
143 | ${prefix}/share/arb/lib/macros |
---|
144 | fs-traverse item ${prefix}/share/arb/lib/macros { |
---|
145 | file attributes ${item} -permissions a+w |
---|
146 | } |
---|
147 | } |
---|
148 | } |
---|
149 | |
---|
150 | notes " |
---|
151 | **************************************************************** |
---|
152 | Before running ARB you must set ARBHOME and add ARB to your PATH |
---|
153 | **************************************************************** |
---|
154 | |
---|
155 | You have two options (A is easier, B is more difficult): |
---|
156 | |
---|
157 | 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. |
---|
158 | |
---|
159 | or |
---|
160 | |
---|
161 | B) More difficult - follow the steps below: |
---|
162 | |
---|
163 | 1) |
---|
164 | bash users add the following lines to your ~/.profile or to your ~/.bashrc |
---|
165 | |
---|
166 | ARBHOME=${prefix}/share/arb;export ARBHOME |
---|
167 | PATH=${prefix}/share/arb/bin:\$PATH |
---|
168 | export PATH |
---|
169 | |
---|
170 | enter the following command: |
---|
171 | . ~/.profile |
---|
172 | 2) |
---|
173 | tcsh users add the following lines to your ~/.cshrc |
---|
174 | |
---|
175 | setenv ARBHOME ${prefix}/share/arb |
---|
176 | setenv PATH ${prefix}/share/arb\:\$PATH |
---|
177 | |
---|
178 | enter the following command: |
---|
179 | source ~/.cshrc |
---|
180 | 3) |
---|
181 | create a text file in your home folder called .xmodmap that contains the text below: |
---|
182 | |
---|
183 | clear Mod1 |
---|
184 | clear Mod2 |
---|
185 | keycode 63 = Mode_switch |
---|
186 | keycode 66 = Meta_L |
---|
187 | keycode 69 = Meta_R |
---|
188 | add Mod1 = Meta_L Meta_R |
---|
189 | add Mod2 = Mode_switch |
---|
190 | |
---|
191 | C) |
---|
192 | to set up ARB for another user on this computer log into their account and type ${prefix}/bin/arb_macsetup |
---|
193 | |
---|
194 | D) |
---|
195 | type arb to start ARB |
---|
196 | |
---|
197 | A demo data base is located at ${prefix}/share/arb/demo.arb |
---|
198 | |
---|
199 | ************************************************************************ |
---|
200 | User generated macros, arb_tcp.dat and pt_servers have been preserved, |
---|
201 | but you should keep backups of these just in case. They are located at: |
---|
202 | |
---|
203 | ${prefix}/share/arb/lib/macros/ |
---|
204 | ${prefix}/share/arb/lib/arb_tcp.dat |
---|
205 | ${prefix}/share/arb/lib/pts/ |
---|
206 | |
---|
207 | Default settings are maintained at: |
---|
208 | |
---|
209 | ${prefix}/share/arb/lib/macros.default/ |
---|
210 | ${prefix}/share/arb/lib/arb_tcp.dat.default |
---|
211 | |
---|
212 | Please cite: Wolfgang Ludwig, et al. (2004) ARB: a software environment for sequence data. Nucleic Acids Research. 32:1363-1371 |
---|
213 | " |
---|
214 | |
---|
215 | livecheck.type regex |
---|
216 | livecheck.url http://download.arb-home.de/release/ |
---|
217 | livecheck.regex ${name}_(\[0-9.\]+)/ |
---|