[76562] trunk/dports/science/arb/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Feb 28 01:47:10 PST 2011
Revision: 76562
http://trac.macports.org/changeset/76562
Author: ryandesign at macports.org
Date: 2011-02-28 01:47:06 -0800 (Mon, 28 Feb 2011)
Log Message:
-----------
arb: don't clobber the config file or macros the user might have edited; see #28276
Modified Paths:
--------------
trunk/dports/science/arb/Portfile
Modified: trunk/dports/science/arb/Portfile
===================================================================
--- trunk/dports/science/arb/Portfile 2011-02-28 09:34:43 UTC (rev 76561)
+++ trunk/dports/science/arb/Portfile 2011-02-28 09:47:06 UTC (rev 76562)
@@ -6,7 +6,7 @@
name arb
version 5.1
epoch 1
-revision 1
+revision 2
categories science
maintainers me.com:matt.cottrell
platforms darwin
@@ -94,8 +94,11 @@
CPPreal=${configure.cpp}
destroot.keepdirs ${destroot}${prefix}/share/arb/lib/pts
+destroot {
+ # Give the default settings a recognizable name ending in .default
+ file rename ${worksrcpath}/lib/arb_tcp.dat ${worksrcpath}/lib/arb_tcp.dat.default
+ file rename ${worksrcpath}/lib/macros ${worksrcpath}/lib/macros.default
-destroot {
eval xinstall -m 0755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin
file mkdir ${destroot}${prefix}/share/arb/bin
file copy ${worksrcpath}/lib ${destroot}${prefix}/share/arb/lib
@@ -105,11 +108,9 @@
file copy ${worksrcpath}/PERL_SCRIPTS ${destroot}${prefix}/share/arb/PERL_SCRIPTS
file copy ${worksrcpath}/SH ${destroot}${prefix}/share/arb/SH
file copy ${worksrcpath}/demo.arb ${destroot}${prefix}/share/arb
- file attributes ${destroot}${prefix}/share/arb/lib/arb_tcp.dat -permissions a+w
- file attributes ${destroot}${prefix}/share/arb/lib/pts -permissions a+w
- file attributes ${destroot}${prefix}/share/arb/lib/macros -permissions a+w
ln -s ${prefix}/bin/arb_pt_server ${destroot}${prefix}/share/arb/bin/arb_pt_server
ln -s ${prefix}/bin/arb_name_server ${destroot}${prefix}/share/arb/bin/arb_name_server
+ xinstall -m 777 -d ${destroot}${prefix}/share/arb/lib/pts
}
# to be investigated later
@@ -117,6 +118,20 @@
post-activate {
system "rm -rf `find ${prefix}/share/arb -type d -name .svn`"
+
+ # Provide users with copies of the default configuration and macros
+ # if the user doesn't already have them.
+ if {![file exists ${prefix}/share/arb/lib/arb_tcp.dat]} {
+ xinstall -m 777 ${prefix}/share/arb/lib/arb_tcp.dat.default \
+ ${prefix}/share/arb/lib/arb_tcp.dat
+ }
+ if {![file exists ${prefix}/share/arb/lib/macros]} {
+ file copy ${prefix}/share/arb/lib/macros.default \
+ ${prefix}/share/arb/lib/macros
+ fs-traverse item ${prefix}/share/arb/lib/macros {
+ file attributes ${item} -permissions a+w
+ }
+ }
}
notes "
@@ -132,7 +147,7 @@
B) Follow the steps below:
-1a)
+1)
bash users add the following lines to your ~/.profile or to your ~/.bashrc
ARBHOME=${prefix}/share/arb;export ARBHOME
@@ -141,17 +156,31 @@
enter the following command:
. ~/.profile
-1b)
+2)
tcsh users add the following lines to your ~/.cshrc
+
setenv ARBHOME ${prefix}/share/arb
setenv PATH ${prefix}/share/arb\:\$PATH
enter the following command:
source ~/.cshrc
-2)
+C)
type arb to start ARB
A demo data base is located at ${prefix}/share/arb/demo.arb
+************************************************************************
+User generated macros, arb_tcp.dat and pt_servers have been preserved,
+but you should keep backups of these just in case. They are located at:
+
+${prefix}/share/arb/lib/macros/
+${prefix}/share/arb/lib/arb_tcp.dat
+${prefix}/share/arb/lib/pts/
+
+Default settings are maintained at:
+
+${prefix}/share/arb/lib/macros.default/
+${prefix}/share/arb/lib/arb_tcp.dat.default
+
Please cite: Wolfgang Ludwig, et al. (2004) ARB: a software environment for sequence data. Nucleic Acids Research. 32:1363-1371
"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110228/a6c727be/attachment.html>
More information about the macports-changes
mailing list