Re: [MacPorts] UsingTheRightCompiler modified

2013-07-16 Thread Lawrence Velázquez
On Jul 17, 2013, at 2:09 AM, Ryan Schmidt wrote: > Provided by system? Isn't it provided by Xcode? > > On Mountain Lion, /usr/bin/gcc is not GCC. It is a symlink to llvm-gcc-4.2. > It varies by Xcode version. As does /usr/bin/cc, which on Mountain Lion is a > symlink to clang. I basically wen

Re: [MacPorts] UsingTheRightCompiler modified

2013-07-16 Thread Ryan Schmidt
On Jul 17, 2013, at 01:04, MacPorts wrote: > Page "UsingTheRightCompiler" was changed by lar...@macports.org > Diff URL: > > Revision 20 > Comment: create table of compilers > +||= configure.compiler value=||

Re: [108224] trunk/dports/science/netcdf/Portfile

2013-07-16 Thread Ryan Schmidt
On Jul 16, 2013, at 23:52, Lawrence Velázquez wrote: > On Jul 16, 2013, at 4:48 PM, take...@macports.org wrote: > >> Revision: 108224 >> https://trac.macports.org/changeset/108224 >> Author: take...@macports.org >> Date: 2013-07-16 13:48:40 -0700 (Tue, 16 Jul 2013) >> Log Message:

Re: [108224] trunk/dports/science/netcdf/Portfile

2013-07-16 Thread Lawrence Velázquez
On Jul 16, 2013, at 4:48 PM, take...@macports.org wrote: > Revision: 108224 > https://trac.macports.org/changeset/108224 > Author: take...@macports.org > Date: 2013-07-16 13:48:40 -0700 (Tue, 16 Jul 2013) > Log Message: > --- > netcdf: force using +openmpi when hdf5-18 +open

Re: How to make a local mirror myself?

2013-07-16 Thread Lawrence Velázquez
On Jul 16, 2013, at 9:27 PM, yi lu wrote: > I was able to sync all the files from here. > > But I am confused that how I can use them. > > I found it is possible to use > sudo port selfupdate > to fetch the ports.tar > > But I have no idea how to configure so that macports will fetch package

How to make a local mirror myself?

2013-07-16 Thread yi lu
I was able to sync all the files from here. But I am confused that how I can use them. I found it is possible to use *sudo port selfupdate* to fetch the *ports.tar* But I have no idea how to configure so that *macports* will fetch packages

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Mojca Miklavec
On Wed, Jul 17, 2013 at 1:32 AM, Ryan Schmidt wrote: > On Jul 16, 2013, at 18:22, Mojca Miklavec wrote: > >> The bundle created by Jérôme Suhard >> (http://jerome.suhard.fr/gate/#Info.plist) also contains >> CFBundleDocumentTypes to register *.mac files with the program. I'm >> not sure if this is

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Ryan Schmidt
On Jul 16, 2013, at 18:22, Mojca Miklavec wrote: > The bundle created by Jérôme Suhard > (http://jerome.suhard.fr/gate/#Info.plist) also contains > CFBundleDocumentTypes to register *.mac files with the program. I'm > not sure if this is really needed or not, but I'm still curious > whether I cou

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Jeremy Lavergne
work/.macports... On Jul 16, 2013, at 7:22 PM, Mojca Miklavec wrote: > Perfect, thank you everyone! (I now only need to figure out how to > edit the statefile / where to find that file.) ___ macports-dev mailing list macports-dev@lists.macosforge.org h

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Mojca Miklavec
On Tue, Jul 16, 2013 at 11:11 PM, Bradley Giesbrecht wrote: > On Jul 16, 2013, at 11:31 AM, Jeremy Lavergne wrote: > >>> So (for) now my only question remains: how can I play with this >>> without the need to recompile the whole application each time when I >>> make a tiny change in the Portfile? >

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Bradley Giesbrecht
On Jul 16, 2013, at 11:31 AM, Jeremy Lavergne wrote: >> So (for) now my only question remains: how can I play with this >> without the need to recompile the whole application each time when I >> make a tiny change in the Portfile? > > If you're changing what gets installed then it should be give

Re: Looking for a cure for weird scope/memory of variables

2013-07-16 Thread Gustaf Neumann
Am 16.07.13 20:50, schrieb Lawrence Velázquez: I don't see this extending cleanly to multiple substitutions (which Mojca is doing in the actual Portfile), since you're only allowed one value per array key. I suppose you could have something like this: array set foo { foo-1.1,val1

Re: build.dir

2013-07-16 Thread Bradley Giesbrecht
On Jul 16, 2013, at 9:25 AM, Joshua Root wrote: > On 2013-7-17 01:52 , Bradley Giesbrecht wrote: >> I thought port executed make from build.dir but this is not what I am seeing. >> >> Portfile: >> ... >> build.dir ${worksrcpath}/build_macports/plugin/innodb_memcached >> ... >> >> Result: >> ...

Re: Looking for a cure for weird scope/memory of variables

2013-07-16 Thread Gustaf Neumann
Am 16.07.13 20:18, schrieb Mojca Miklavec: In general, the better strategy seems to for me to avoid the definition-time substitutions of the subport body at all. This could be achieved with an associative array indexed by the version numbers. When we have an array array set foo { 1.

Re: Looking for a cure for weird scope/memory of variables

2013-07-16 Thread Lawrence Velázquez
On Jul 13, 2013, at 2:48 PM, Gustaf Neumann wrote: > In general, the better strategy seems to for me to avoid the > definition-time substitutions of the subport body at all. > This could be achieved with an associative array > indexed by the version numbers. When we have an array > >array se

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Jeremy Lavergne
> So (for) now my only question remains: how can I play with this > without the need to recompile the whole application each time when I > make a tiny change in the Portfile? If you're changing what gets installed then it should be given a revision bump; if not, then don't change the version or r

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Mojca Miklavec
On Tue, Jul 16, 2013 at 8:14 PM, Jeremy Lavergne wrote: > My approach was to have the /Application bundle to launch the command line > program. This is fairly automated thanks to Ryan. > > Check out the app PortGroup: > http://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/app-1.0

Re: Looking for a cure for weird scope/memory of variables

2013-07-16 Thread Mojca Miklavec
Dear Gustaf, (I'm still) processing, please wait ... ;) On Sat, Jul 13, 2013 at 8:48 PM, Gustaf Neumann wrote: > Am 10.07.13 00:25, schrieb Lawrence Velázquez: > >> For selective definition-time substitution, you could use string map >> (http://wiki.tcl.tk/37332#pagetoc04c6ab3f): >> >> forea

Re: Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Jeremy Lavergne
My approach was to have the /Application bundle to launch the command line program. This is fairly automated thanks to Ryan. Check out the app PortGroup: http://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/app-1.0.tcl Here's how I use it in pspp-devel: http://trac.macports.org

CMake: different path for libraries and cmake modules

2013-07-16 Thread Mojca Miklavec
Hi, I'm trying some luck among MacPorts developers because I didn't get any answer on the CMake mailing list. If I want to install multiple versions of Geant4 side-by-side, I need to move the libraries to version-specific folder with -DCMAKE_INSTALL_LIBDIR=lib/Geant4/Geant4.9.6 but that resul

Creating $prefix/bin/foo and Foo.app at the same time

2013-07-16 Thread Mojca Miklavec
Hi, (This question is related to Gate, but this is not relevant and could be asked about any port.) I would like to create a package providing both the command-line executable as well as a real Mac application ($prefix/bin/Gate and /Applications/MacPorts/Gate.app). By default the installation cr

Re: build.dir

2013-07-16 Thread Joshua Root
On 2013-7-17 01:52 , Bradley Giesbrecht wrote: > I thought port executed make from build.dir but this is not what I am seeing. > > Portfile: > ... > build.dir ${worksrcpath}/build_macports/plugin/innodb_memcached > ... > > Result: > ... > ---> Building mysql56-innodb_memcached > make: Entering d

build.dir

2013-07-16 Thread Bradley Giesbrecht
I thought port executed make from build.dir but this is not what I am seeing. Portfile: ... build.dir ${worksrcpath}/build_macports/plugin/innodb_memcached ... Result: ... ---> Building mysql56-innodb_memcached make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sour