[MacPorts] #40457: NEW: NEURON
#40457: NEW: NEURON ------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: neuron ------------------------+-------------------------------- [http://www.neuron.yale.edu/neuron/ NEURON] is a simulation environment for neurons and networks of neurons that is [http://www.neuron.yale.edu/neuron/static/bib/usednrn.html widely used] in neuroscience. Some comments on the Portfiles: * A separate port is required for the graphics toolkit (neuron-iv) because it's optional (neuron has a +nogui variant), the source changes more rarely than neuron's, and it's under a different license. * The source tarballs are currently hosted on a mirror because the the version on the [http://www.neuron.yale.edu/ftp/neuron/versions/alpha/ official server] may change its url at any time. * The patch that comes with this Portfile has been [http://www.neuron.yale.edu/hg/neuron/nrn/rev/5ab4d7b9ecb1 accepted upstream] and will be included in the upcoming version 7.4. -- Ticket URL: <https://trac.macports.org/ticket/40457> MacPorts <http://www.macports.org/> Ports system for OS X
#40457: NEW: NEURON -------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: neuron | -------------------------+-------------------------------- Comment (by ryandesign@…): Variants whose names begin with "no" are deprecated and should not be added to new ports. Instead, if there must be a variant, name it "gui" and enable it by default. -- Ticket URL: <https://trac.macports.org/ticket/40457#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40457: NEW: NEURON -------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: neuron | -------------------------+-------------------------------- Comment (by christsc@…): Replying to [comment:1 ryandesign@…]:
Variants whose names begin with "no" are deprecated and should not be added to new ports. Instead, if there must be a variant, name it "gui" and enable it by default.
Thanks for your review. A revised Portfile is attached. To make the binaries directly executable without prefix, I was thinking to add the following to post-destroot: {{{ ln -s ${applications_dir}/NEURON/nrn/${arch}/bin/* ${destroot}${prefix}/bin/ }}} Is there a better way to achieve this? -- Ticket URL: <https://trac.macports.org/ticket/40457#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40457: NEW: NEURON -------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: neuron | -------------------------+-------------------------------- Comment (by ryandesign@…): "destroot.destdir DESTDIR=${destroot}" is the default so it should be removed. Why does neuron-iv set prefix to ${applications_dir}? It doesn't install any OS X application bundles there. It just installs headers, binaries and libraries which would seem to be more at home in ${prefix}. -- Ticket URL: <https://trac.macports.org/ticket/40457#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40457: NEW: NEURON -------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: neuron | -------------------------+-------------------------------- Comment (by christsc@…): Replying to [comment:3 ryandesign@…]:
"destroot.destdir DESTDIR=${destroot}" is the default so it should be removed.
Fixed in the revised Portfiles.
Why does neuron-iv set prefix to ${applications_dir}? It doesn't install any OS X application bundles there. It just installs headers, binaries and libraries which would seem to be more at home in ${prefix}.
NEURON has somewhat [http://www.neuron.yale.edu/neuron/download/compilestd_osx#ivandnrn unusual installation habits]. The default prefix for source installations and binary installers is /Applications/NEURON/iv. Coming from a previous installation, users will expect neuron-iv to reside in NEURON's application directory rather than in ${prefix}. -- Ticket URL: <https://trac.macports.org/ticket/40457#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40457: NEW: NEURON -------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: neuron | -------------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:4 christsc@…]:
NEURON has somewhat [http://www.neuron.yale.edu/neuron/download/compilestd_osx#ivandnrn unusual installation habits]. The default prefix for source installations and binary installers is /Applications/NEURON/iv. Coming from a previous installation, users will expect neuron-iv to reside in NEURON's application directory rather than in ${prefix}.
Maybe you could install to `${prefix}` and symlink into `${applications_dir}`? -- Ticket URL: <https://trac.macports.org/ticket/40457#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#40457: NEW: NEURON -------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: neuron | -------------------------+-------------------------------- Comment (by christsc@…): Replying to [comment:5 larryv@…]:
Replying to [comment:4 christsc@…]:
NEURON has somewhat [http://www.neuron.yale.edu/neuron/download/compilestd_osx#ivandnrn unusual installation habits]. The default prefix for source installations and binary installers is /Applications/NEURON/iv. Coming from a previous installation, users will expect neuron-iv to reside in NEURON's application directory rather than in ${prefix}.
Maybe you could install to `${prefix}` and symlink into `${applications_dir}`?
Given that none of neuron-iv's headers, binaries and libraries will be used by any port other than NEURON, wouldn't it be cleaner ''not'' to install anything in ${prefix}? This would also avoid any potential file naming collisions. See original post why neuron-iv still needs to be a separate port. -- Ticket URL: <https://trac.macports.org/ticket/40457#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#40457: NEW: NEURON -------------------------+-------------------------------- Reporter: christsc@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: neuron | -------------------------+-------------------------------- Comment (by christsc@…): I've updated the Portfiles to work on OS X 10.9. The patch has made into the repository and is not required any longer. Please let me know what remains to be done to get this into MacPorts. -- Ticket URL: <https://trac.macports.org/ticket/40457#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts