Re: setting environment variables

2008-07-30 Thread Ryan Schmidt

On Jul 30, 2008, at 06:25, Michael Thon wrote:

 The port of the ncbi_tools package would really benefit from having a
 couple of environment variables set for users at install time.  When I
 took over the package I asked if there was a way for a Portfile to do
 this and the answer (at that time) was no.  Maybe something has
 changed since?

It's still no, but for wine and mapm3, I installed a wrapper script  
to set needed environment variables. Check it out. I recommend the  
mechanism used by mapm3; I'll change the wine port's method to use  
mapm3's method soon. (Put the real binary in ${prefix}/lib/${name}/;  
put the wrapper in ${prefix}/bin/ and write it to cd to ${prefix}/lib/ 
${name}/ and run the real program with the same arguments.)

http://trac.macports.org/changeset/38699

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: setting environment variables

2008-07-30 Thread Rainer Müller
Ryan Schmidt wrote:
 It's still no, but for wine and mapm3, I installed a wrapper script  
 to set needed environment variables. Check it out. I recommend the  
 mechanism used by mapm3; I'll change the wine port's method to use  
 mapm3's method soon. (Put the real binary in ${prefix}/lib/${name}/;  

Not really sure, but wouldn't be ${prefix}/libexec the more correct 
place than ${prefix}/lib?

porthier(7):
lib/  archive libraries
libexec/  system daemons  system utilities (executed by other pro-
   grams)

Rainer
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: setting environment variables

2008-07-30 Thread Ryan Schmidt

On Jul 30, 2008, at 18:49, Rainer Müller wrote:

 Ryan Schmidt wrote:

 It's still no, but for wine and mapm3, I installed a wrapper  
 script  to set needed environment variables. Check it out. I  
 recommend the  mechanism used by mapm3; I'll change the wine  
 port's method to use  mapm3's method soon. (Put the real binary in  
 ${prefix}/lib/${name}/;

 Not really sure, but wouldn't be ${prefix}/libexec the more correct  
 place than ${prefix}/lib?

 porthier(7):
 lib/  archive libraries
 libexec/  system daemons  system utilities (executed by other pro-
   grams)

I had not looked at porthier, but I had looked at the FHS  
documentation which does not mention libexec, and an extended forum  
discussion argued against the use of libexec and for the use of lib  
for that reason. We are not following the FHS then?

http://www.pathname.com/fhs/

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: setting environment variables

2008-07-30 Thread Ryan Schmidt
On Jul 30, 2008, at 19:06, Ryan Schmidt wrote:

 On Jul 30, 2008, at 18:49, Rainer Müller wrote:

 Ryan Schmidt wrote:

 It's still no, but for wine and mapm3, I installed a wrapper
 script  to set needed environment variables. Check it out. I
 recommend the  mechanism used by mapm3; I'll change the wine
 port's method to use  mapm3's method soon. (Put the real binary in
 ${prefix}/lib/${name}/;

 Not really sure, but wouldn't be ${prefix}/libexec the more correct
 place than ${prefix}/lib?

 porthier(7):
 lib/  archive libraries
 libexec/  system daemons  system utilities (executed by other pro-
   grams)

 I had not looked at porthier, but I had looked at the FHS
 documentation which does not mention libexec, and an extended forum
 discussion argued against the use of libexec and for the use of lib
 for that reason. We are not following the FHS then?

 http://www.pathname.com/fhs/

The Guide also mentions libexec so that's what I should use. I  
actually like the idea of separating hidden binaries from libraries,  
but I didn't use it because the FHS is against it. But since Mac OS X  
is not Linux and MacPorts doesn't follow the FHS, at least in this  
regard, I changed the port to use libexec. Thanks for pointing me to  
the right documentation!

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users