Ticket #37615: sofa.diff

File sofa.diff, 3.2 KB (added by kurthindenburg (Kurt Hindenburg), 9 years ago)

Portfile plus patches

  • Portfile

     
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     2# $Id$
     3
     4PortSystem          1.0
     5PortGroup           cmake 1.0
     6
     7name                sofa
     8version             20150209
     9set myversion       2015-02-09
     10categories          science
     11platforms           darwin
     12maintainers         khindenburg openmaintainer
     13
     14description         Standard of Fundamental Astronomy (SOFA) Software Collection.
     15long_description    \
     16    SOFA stands for \"Standards Of Fundamental Astronomy\".  The SOFA \
     17    software libraries are a collection of subprograms, in source- \
     18    code form, which implement official IAU algorithms for fundamental- \
     19    astronomy computations.   The subprograms at present comprise 166 \
     20    \"astronomy\" routines supported by 55 \"vector/matrix\" routines. \
     21    This is the C implementation.
     22
     23homepage            http://www.iausofa.org
     24master_sites        http://www.iausofa.org/2015_0209_C/
     25
     26cmake.out_of_source yes
     27
     28distname            ${name}_c-${version}_a
     29worksrcdir          ${name}/${version}_a/c
     30
     31checksums           rmd160  363d2601c79a28c4caf803803ead75abebff7b8c \
     32                    sha256  b542c5e4ca42d91ada3c66e8d5b86eb9dec085bf1a07d058c01920c6c0b1174a
     33
     34patchfiles          patch-CMakeLists.txt.diff \
     35                    patch-t_sofa_c.diff
     36
     37post-destroot {
     38    xinstall -d ${destroot}${prefix}/share/doc
     39    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
     40    delete {*}[glob ${destroot}${prefix}/share/doc/${name}/*.pdf]
     41}
     42
     43livecheck.url       ${homepage}/current.html
     44livecheck.version   ${myversion}
     45livecheck.regex     {released on ([0-9]+-[0-9]+-[0-9]+)}
  • files/patch-CMakeLists.txt.diff

    Property changes on: Portfile
    ___________________________________________________________________
    Added: svn:eol-style
    ## -0,0 +1 ##
    +native
    \ No newline at end of property
    Added: svn:keywords
    ## -0,0 +1 ##
    +Id
    \ No newline at end of property
     
     1--- CMakeLists.txt      1970-01-01 01:00:00.000000000 +0100
     2+++ CMakeLists.txt      2013-04-25 08:53:33.000000000 +0200
     3@@ -0,0 +1,13 @@
     4+cmake_minimum_required(VERSION 2.6)
     5+project(sofa_c C)
     6+
     7+# Set a few variables:
     8+set(LIBS ${LIBS} m)
     9+# Extract all of the source files.
     10+file(GLOB_RECURSE C_SOURCE . src/*.c)
     11+
     12+# Build a shared library
     13+add_library(sofa_c SHARED ${C_SOURCE})
     14+
     15+# Now define the installation options
     16+install(TARGETS sofa_c LIBRARY DESTINATION lib)
  • files/patch-t_sofa_c.diff

     
     1--- src/t_sofa_c.c      2016-01-22 21:35:56.000000000 -0500
     2+++ src/t_sofa_c.c      2016-01-22 21:36:19.000000000 -0500
     3@@ -1,5 +1,5 @@
     4 #include <stdio.h>
     5-#include <sofa.h>
     6+#include "sofa.h"
     7 
     8 static int verbose = 0;
     9