Discussion:
[MacPorts] #57693: spooles: port request
MacPorts
2018-11-28 03:11:33 UTC
Permalink
#57693: spooles: port request
----------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
----------------------+--------------------
Requesting a new port to install spooles:
http://www.netlib.org/linalg/spooles/spooles.2.2.html

There is a pkg hosted on the svnweb freebsd org that has a spooles port:
https://svnweb.freebsd.org/ports/head/math/spooles/
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-28 03:14:49 UTC
Permalink
#57693: spooles: port request
-----------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
-----------------------+--------------------
Changes (by mbrethen):

* Attachment "Portfile" added.
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-28 03:15:23 UTC
Permalink
#57693: spooles: port request
-----------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
-----------------------+--------------------
Changes (by mbrethen):

* Attachment "patch-spooles-build.diff" added.
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-28 13:55:24 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mf2k):

* type: request => submission
* port: => spooles
--
Ticket URL: <https://trac.macports.org/ticket/57693#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-28 14:56:23 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------

Comment (by mbrethen):

The portfile overrides the build phase with calls to individual makefile
targets. It builds a lib archive and I added a call to linker to create a
shared library using the static archive. Also, the src does not include
any config so the build environment has to be specified.
--
Ticket URL: <https://trac.macports.org/ticket/57693#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-29 00:00:19 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------

Comment (by ryandesign):

`-macosx_version_min ${os.version}` is not correct (`${os.version}` is the
Darwin version number but you want the macOS version number here); use
`-macosx_version_min ${macosx_deployment_target}` instead.

The destroot phase should probably copy the libraries into the destroot
like other ports do, rather than moving them there.

Could the doc variant be removed, and the documentation just always
installed? Or is the documentation huge?

I see lots of unversioned distfiles here, though the main file is
versioned. Will the unversioned files ever change? If so, using a
versioned `dist_subdir` might be best (PortfileRecipes#unversioned-
distfiles).

Wait, I see now that the unversioned distfiles are documentation files.
But it looks like the port downloads those files even when they're not
going to be installed. So I would suggest changing it one of two ways:

1. Only download the documentation files if the doc variant is selected,
or
2. Remove the doc variant and make a separate spooles-doc subport to
install the documentation, and have this subport download only the
documentation, while the main port downloads only the source code. This is
probably the best option, because it allows a user to install the
documentation later without having to rebuild the library, and because it
allows you to use a separate `version`, `revision`, and/or `dist_subdir`
for the spooles-doc subport, so that the documentation files only need to
be redownloaded and reinstalled if they have actually changed. It also
allows you to specify a different license for the documentation, if
necessary.

Though I guess if these files were last modified in 1999 there probably
aren't ever going to be any more releases.

The `livecheck.regex` is not correct, but given the unlikelihood of
another release, maybe `livecheck.type none` is the best fix for that.
--
Ticket URL: <https://trac.macports.org/ticket/57693#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-29 00:33:22 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------

Comment (by mbrethen):

There's a third option: the docs are also included in the source as tex
files and could be built, either automatically or with a user variant.
--
Ticket URL: <https://trac.macports.org/ticket/57693#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-29 00:41:54 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------

Comment (by mbrethen):

Take a look at ${worksrcpath}/makefile and
${worksrcpath}/MT/src/makeGlobalLib. Multiple make targets may not be
necessary. Could the MT/MPI makeGlobalLib files be patched to call ld to
create the dynamic library?
--
Ticket URL: <https://trac.macports.org/ticket/57693#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-02 03:48:22 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mbrethen):

* Attachment "Portfile" added.

Use ${CC} to convert static library to dynamic library
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-02 03:50:13 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mbrethen):

* Attachment "patch-spooles-build.diff" added.

Patch makeGlobalLib to use ${CC} to convert static library to dynamic
library
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-02 19:44:51 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mbrethen):

* Attachment "Portfile" added.

Compilers portgroup removed, called in mpi portgroup.
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-02 22:14:10 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mbrethen):

* Attachment "Portfile" added.

Compilers portgroup removed, called in mpi portgroup.
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-02 22:15:55 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mbrethen):

* Attachment "Portfile" added.

Compilers portgroup removed, called in mpi portgroup.
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-03 00:36:09 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mbrethen):

* Attachment "Portfile" added.

Spooles-doc: skip extract by setting "extract.only"
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-06 00:44:29 UTC
Permalink
#57693: spooles: new port
-------------------------+--------------------
Reporter: mbrethen | Owner: (none)
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: spooles |
-------------------------+--------------------
Changes (by mbrethen):

* Attachment "Portfile" added.

Spooles-doc: skip extract by setting "extract.only"
--
Ticket URL: <https://trac.macports.org/ticket/57693>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...