Ticket #21155: Portfile

File Portfile, 7.0 KB (added by matt.cottrell@…, 15 years ago)

Portfile no longer creates macro dir

Line 
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
4PortSystem              1.0
5
6name                    arb
7version                 5.19.0
8categories              science
9maintainers             me.com:matt.cottrell
10platforms               darwin
11
12description             ARB graphical DNA, RNA and amino acid sequence analysis tool
13
14homepage                http://www.arb-home.de/
15
16long_description        ARB is an application for genetic sequence analysis that includes tools for editing and aligning \
17                        nucleotide and amino acid sequences.  Features include routines for designing fluorescence in situ \
18                        hybridization (FISH) probes and PCR and sequencing primers.  Phylogenetic trees can be generated and \
19                        sequences can be added to existing trees.  ARB maintains links between the phylogenetic trees and sequences \
20                        for data base search and query.  The Silva Comprehensive Ribosomal RNA Database (http://www.arb-silva.de/) \
21                        maintaines up-to-date databases.  64-bit ARB is built on 10.6 in order to work with the largest data bases. \
22                        32-bit ARB is built on 10.5.  An active community of scientists exchange tips on the ARB Yahoo! discussion group \
23                        (http://tech.groups.yahoo.com/group/arb_users/). Citation: Wolfgang Ludwig, et al. (2004) ARB: a software environment \
24                        for sequence data. Nucleic Acids Research. 32:1363-1371.
25
26fetch.type              svn
27svn.url                 http://svn.mikro.biologie.tu-muenchen.de/svn/branches/stable_5.0
28svn.revision            6192
29svn.method              checkout
30#fetch.user             coder             
31#fetch.password         gimmeARBsource
32#work around until ticket #21232 is resolved
33svn.args                --username coder --password gimmeARBsource
34
35depends_lib             port:openmotif \
36                        port:lynx \
37                        port:gsed \
38                        port:imake \
39                        port:sablotron \
40                        port:mesa \
41                        port:glw \
42                        port:glew \
43                        port:tiff
44
45patchfiles              patch-ARB-config.makefile.diff \
46                        patch-ARB-makefile.diff \
47                        patch-ARB-RNA3D_GlobalHeader.hxx.diff \
48                        patch-ARB-DARWIN.pl.diff
49                       
50worksrcdir              stable_5.0
51
52use_configure           no
53configure.env           ARBHOME=${worksrcpath} 
54configure.env-append    PATH=${worksrcpath}/bin:$env(PATH)
55
56configure               {
57                        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/PERL2ARB/DARWIN.PL
58                        reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/MENUS/align.menu
59                        reinplace "s| sed | gsed |g" ${worksrcpath}/util/arb_check_build_env.pl
60                        reinplace "s| sed | gsed |g" ${worksrcpath}/arb_install.sh
61                        reinplace "s| sed | gsed |g" ${worksrcpath}/WINDOW/AW_status.cxx
62                        reinplace "s| sed | gsed |g" ${worksrcpath}/SH/example_batch_probe_match.sh
63                        reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/GDEmenus
64                        reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/genhelp.sh
65                        reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/genhelptree.sh
66                        reinplace "s| sed | gsed |g" ${worksrcpath}/SOURCE_TOOLS/make_java_dependencies.sh
67                        reinplace "s| sed | gsed |g" ${worksrcpath}/HELP_SOURCE/Makefile
68                        reinplace "s| sed | gsed |g" ${worksrcpath}/AISC_COM/AISC/Makefile
69                        reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/Makefile
70                        reinplace "s| sed | gsed |g" ${worksrcpath}/HELP_SOURCE/genhelp/Makefile
71                        reinplace "s| sed | gsed |g" ${worksrcpath}/GDEHELP/Makefile.helpfiles
72                        file copy ${worksrcpath}/config.makefile.template ${worksrcpath}/config.makefile
73}
74
75platform darwin 9      {
76post-configure         {
77                       reinplace "s|ARB_64 := 1# compile 64bit ARB version|ARB_64 := 0# compile 64bit ARB version|g" ${worksrcpath}/config.makefile
78}
79}
80
81build.env-append        ${configure.env}
82build.env-append        PREFIX=${prefix}
83
84destroot.keepdirs       ${destroot}${prefix}/share/arb/lib/pts
85
86destroot                {
87                        eval xinstall -m 0755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin
88                        file mkdir ${destroot}${prefix}/share/arb
89                        file mkdir ${destroot}${prefix}/share/arb/bin
90                        file copy ${worksrcpath}/lib ${destroot}${prefix}/share/arb/lib
91                        file copy ${worksrcpath}/GDEHELP ${destroot}${prefix}/share/arb/GDEHELP
92                        file mkdir ${destroot}${prefix}/lib/help
93                        file copy ${worksrcpath}/HELP_SOURCE/oldhelp ${destroot}${prefix}/lib/help
94                        file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS
95                        file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH
96                        file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb
97}
98
99post-destroot           {
100                        system "chmod a+w ${destroot}${prefix}/share/arb/lib/arb_tcp.dat"
101                        system "chmod a+w ${destroot}${prefix}/share/arb/lib/pts"
102                        system "chmod a+w ${destroot}${prefix}/share/arb/lib/macros"
103                        system "ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server"
104                        system "ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server"
105}
106                       
107post-activate           {
108                        system "rm -rf `find ${prefix}/share/arb -type d -name .svn`"
109ui_msg "
1101)
111**************************************************************************
112bash-users add the following lines to your ~/.profile or to your ~/.bashrc
113**************************************************************************
114      ARBHOME=${prefix}/share/arb;export ARBHOME
115      PATH=${prefix}/share/arb/bin:\$PATH
116      export PATH
117
118      enter the following command:
119      . ~/.profile
1202)
121**************************************************
122tcsh users add the following lines to your ~/.cshrc
123**************************************************
124      setenv ARBHOME ${prefix}/share/arb
125      setenv PATH ${prefix}/share/arb\:\$PATH
126
127      enter the following command:
128      source ~/.cshrc
1293)
130*********************
131type arb to start ARB
132*********************
133
134A demo data base is located at ${prefix}/share/arb.demo.arb
135
136Please cite: Wolfgang Ludwig, et al. (2004) ARB: a software environment for sequence data. Nucleic Acids Research. 32:1363-1371
137"
138}