Opened 12 years ago

Closed 9 years ago

#37615 closed submission (wontfix)

New port request: SOFA library

Reported by: cdeil (Christoph Deil) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: robitaille@…, kurthindenburg (Kurt Hindenburg)
Port:

Description

Would it be possible to add a port for the SOFA (Standards Of Fundamental Astronomy) library? http://www.iausofa.org

There's a C and a Fortran version, Ideally I'd like to have both to compare precision / speed, although only the C version would be great already.

I don't actually know if their license allows it to be included in Macports, someone please check at http://www.iausofa.org/tandc.html (if it's unclear I'd be happy to ask them via email)

There's also a Python wrapper for it, which would be nice to have: http://pypi.python.org/pypi/pysofa

Attachments (3)

Portfile (749 bytes) - added by jwoillez@… 12 years ago.
CMakeLists.txt.diff (463 bytes) - added by jwoillez@… 12 years ago.
sofa.diff (3.2 KB) - added by kurthindenburg (Kurt Hindenburg) 9 years ago.
Portfile plus patches

Download all attachments as: .zip

Change History (15)

comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)

Keywords: SOFA astronomy removed
Port: libsofa removed
Summary: Please add SOFA libraryNew port request: SOFA library
Version: 2.1.2

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:3 Changed 12 years ago by robitaille@…

I'm not too familiar with how to set up C ports (I usually only work on Python ports) but for reference for whoever implements it, the installation involves:

  • Download tar file
  • cd sofa/20120301_a/c/src
  • make CCOMPC=<prefered C compiler>
  • make install INSTALL_DIR=<prefered installation directory - equivalent to PREFIX, so don't include lib/>

In terms of C and Fortran, maybe we could have two ports, sofa, and sofa-fortran.

comment:4 Changed 12 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to larryv@…
Status: newassigned

I’ll give it a shot.

comment:5 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… removed

Cc Me!

Changed 12 years ago by jwoillez@…

Attachment: Portfile added

Changed 12 years ago by jwoillez@…

Attachment: CMakeLists.txt.diff added

comment:6 Changed 12 years ago by jwoillez@…

I gave it a try. Works for me. Can even use pysofa: https://pypi.python.org/pypi/pysofa

comment:7 Changed 12 years ago by larryv (Lawrence Velázquez)

Keywords: haspatch added
Owner: changed from larryv@… to macports-tickets@…
Status: assignednew
Type: requestsubmission

Unfortunately, I haven’t really had time to spend on this. Any other committer should feel free to take over.

comment:8 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:9 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

I have a working version for their 2015 version. It is annoying they can't even be bothered to have a build method. Also pysofa hasn't been updated since 2011 and doesn't work w/ the 2015 sofa.

I'm not sure it is worth adding sofa ATM.

Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Attachment: sofa.diff added

Portfile plus patches

comment:10 Changed 9 years ago by robitaille@…

MacPorts already includes ERFA, which is the BSD version of SOFA. The package name is erfa. See https://github.com/liberfa/erfa for more details.

comment:11 Changed 9 years ago by cdeil (Christoph Deil)

As Tom says, by now there's ERFA and Astropy for time and coordinate calculations.

So I withdraw this feature request and suggest to close it now. (Apparently I don't have enough karma as original poster to close a Macports issue.)

comment:12 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: wontfix
Status: newclosed

thanks

Note: See TracTickets for help on using tickets.