Opened 7 years ago

Last modified 6 years ago

#54583 new submission

splinter - a spline interpolation library

Reported by: repagh (Rene van Paassen) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: splinter

Description

New port for a spline interpolation library.

Attachments (8)

Portfile (1.5 KB) - added by repagh (Rene van Paassen) 7 years ago.
Portfile
patch-splinter-mlpyinstall.diff (3.0 KB) - added by repagh (Rene van Paassen) 7 years ago.
patch to fix install location matlab and python support files
patch-splinter-eigen3.diff (1.4 KB) - added by repagh (Rene van Paassen) 7 years ago.
diff file for using eigen3 port
Portfile.2 (1.2 KB) - added by repagh (Rene van Paassen) 7 years ago.
Updated portfile
Portfile.3 (1.2 KB) - added by mf2k (Frank Schima) 7 years ago.
Here is my modified Portfile. Please use this one.
Portfile.4 (1.3 KB) - added by repagh (Rene van Paassen) 7 years ago.
Further updates to portfile
patch-splinter-mlpyinstall.2.diff (2.9 KB) - added by repagh (Rene van Paassen) 7 years ago.
updated patch; fixes generation of version files
Portfile.5 (1.2 KB) - added by repagh (Rene van Paassen) 7 years ago.
again updated portfile

Download all attachments as: .zip

Change History (19)

Changed 7 years ago by repagh (Rene van Paassen)

Attachment: Portfile added

Portfile

Changed 7 years ago by repagh (Rene van Paassen)

patch to fix install location matlab and python support files

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Keywords: science spline removed

Comments:

  • Can openmaintainer be added?
  • You are overwriting the dependencies included with the cmake Portgroup. Replace, for example, depends_build with depends_build-append
  • Use the GitHub portgroup to simplify the Portfile

Changed 7 years ago by repagh (Rene van Paassen)

Attachment: patch-splinter-eigen3.diff added

diff file for using eigen3 port

Changed 7 years ago by repagh (Rene van Paassen)

Attachment: Portfile.2 added

Updated portfile

comment:2 Changed 7 years ago by repagh (Rene van Paassen)

Thanks for the comments. I had a further look, and used the comments to (hopefully improve) the portfile

  • openmaintainer added
  • I could remove the depends_build dependency
  • Now using the eigen3 port instead of the eigen3 supplied with splinter. The added patch fixes a coding issue with newer eigen3 and modifies the CMakeLists.txt file to not install the eigen3 headers
  • using github portgroup now

comment:3 Changed 7 years ago by mf2k (Frank Schima)

I see a checksum failure:

$ sudo port install
Password: 
--->  Computing dependencies for splinter
--->  Fetching archive for splinter
--->  Attempting to fetch splinter-3.0_0.darwin_16.x86_64.tbz2 from https://packages.macports.org/splinter
--->  Attempting to fetch splinter-3.0_0.darwin_16.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/splinter
--->  Attempting to fetch splinter-3.0_0.darwin_16.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/splinter
--->  Fetching distfiles for splinter
--->  Attempting to fetch splinter-3.0.zip from https://distfiles.macports.org/splinter
--->  Attempting to fetch splinter-3.0.zip from http://sea.us.distfiles.macports.org/macports/distfiles/splinter
--->  Attempting to fetch splinter-3.0.zip from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/splinter
--->  Attempting to fetch splinter-3.0.zip from https://github.com/bgrimstad/splinter/tarball/v3.0
--->  Verifying checksums for splinter                                                       
Error: Checksum (rmd160) mismatch for splinter-3.0.zip
Error: Checksum (sha256) mismatch for splinter-3.0.zip
Error: Failed to checksum splinter: Unable to verify file checksums

Also, please see #47197 and verify if adding the following works:

cmake.out_of_source yes
Last edited 7 years ago by mf2k (Frank Schima) (previous) (diff)

Changed 7 years ago by mf2k (Frank Schima)

Attachment: Portfile.3 added

Here is my modified Portfile. Please use this one.

Changed 7 years ago by repagh (Rene van Paassen)

Attachment: Portfile.4 added

Further updates to portfile

Changed 7 years ago by repagh (Rene van Paassen)

updated patch; fixes generation of version files

comment:4 Changed 7 years ago by repagh (Rene van Paassen)

  • fixed out-of-source build
  • updated checksums (were probably wrong from a copy&paste error??), new patch-splinter-mlpyinstall.diff

comment:5 Changed 7 years ago by mf2k (Frank Schima)

Hmmm. I still get a checksum error.

comment:6 Changed 7 years ago by mf2k (Frank Schima)

$ sudo port -v checksum
--->  Verifying checksums for splinter
--->  Checksumming splinter-3.0.zip
Error: Checksum (rmd160) mismatch for splinter-3.0.zip
Portfile checksum: splinter-3.0.zip rmd160 d2dce503fbb8c89b4a17a912ce689e98dcdddefe
Distfile checksum: splinter-3.0.zip rmd160 4371f8e8617081b2e71d3a14181b522293b97493
Error: Checksum (sha256) mismatch for splinter-3.0.zip
Portfile checksum: splinter-3.0.zip sha256 94c57c9335ff2f04e2597e19b5f4714121e36bd6cbd2301f89c43f024e882df
Distfile checksum: splinter-3.0.zip sha256 2f11a5160599a0b119477ab590b77ba66f537f6309305e2524a69f2947aec675
The correct checksum line may be:
checksums           rmd160  4371f8e8617081b2e71d3a14181b522293b97493 \
                    sha256  2f11a5160599a0b119477ab590b77ba66f537f6309305e2524a69f2947aec675
Last edited 7 years ago by mf2k (Frank Schima) (previous) (diff)

comment:7 Changed 7 years ago by repagh (Rene van Paassen)

Huh?

I am getting the same error if I remove the splinter-3.0.zip that I had in my files section.

That splinter-3.0.zip was downloaded through the github web interface. I used it to check how to build splinter and develop the portfile. It is a real zip file, and has rmd160=d2dce503fbb8c89b4a17a912ce689e98dcdddefe

The splinter-3.0.zip that macports downloads is *not* a zip file. It has rmd160=4371f8e8617081b2e71d3a14181b522293b97493. The file cannot be unpacked through unzip, and is actually a tar.gz file, I successfully unpacked it by running it through gzip and tar. Its top directory is bgrimstad-splinter-2c877c0 and the contents are identical to those of the real zip file.

This is really confusing me now. Am I doing something wrong in the portfile? Does this happen only on the splinter project, or is it something common? I had expected to get the zip file through the github portgroup, but am getting a tar.gz, and with the wrong main dir to boot.

Or does the github portgroup only download tarballs, and do I only get the wrong extension with the use_zip option? That looks to me like a bug.

Changed 7 years ago by repagh (Rene van Paassen)

Attachment: Portfile.5 added

again updated portfile

comment:8 Changed 7 years ago by repagh (Rene van Paassen)

OK. Apparently it is not possible to download .zip files with the github portgroup. Changed to use tar.gz (removed the use_zip) and corrected checksums

comment:9 Changed 7 years ago by mf2k (Frank Schima)

It apparently has python bindings. I'm wondering is we need to either add variants for python 3.6 and python 2.7 or make this more like a python module and have it be named pyXY-splinter (e.g. py36-splinter) instead. There probably needs to at least be a runtime dependency on python. Thoughts?

Can the homepage be changed to something like https://splinter.readthedocs.io/en/latest/# ?

comment:10 Changed 7 years ago by mf2k (Frank Schima)

I see now that there are two different packages on Github called splinter. This is not the python one.

comment:11 Changed 6 years ago by mf2k (Frank Schima)

This project does have a python interface and we should address that in the Portfile by either automatically building it, and depending on python 3.6, or at least adding a variant for it.

https://github.com/bgrimstad/splinter/blob/master/docs/python_interface.md

Note: See TracTickets for help on using tickets.