Skip to content
Permalink
Browse files

giza: Update to 0.9.5

  • Loading branch information
ryandesign committed Mar 7, 2018
1 parent 45f5400 commit 57637db54f0199e7283460b5ba0d656b7773fa97
Showing with 14 additions and 21 deletions.
  1. +14 −21 science/giza/Portfile
@@ -2,52 +2,45 @@

PortSystem 1.0
PortGroup compilers 1.0
PortGroup github 1.0

name giza
version 0.9.3
github.setup danieljprice giza 0.9.5 v
categories science graphics
platforms darwin
maintainers monash.edu:daniel.price
maintainers {monash.edu:daniel.price @danieljprice}
description C/Fortran graphics library, PGPLOT replacement
long_description giza is a 2D scientific plotting library \
for C/Fortran built on the cairo graphics library. \
Designed as a low-dependency, drop-in replacement for PGPLOT \
with antialiasing, real fonts, and PDF/svg/eps/png/X11 output. \
Builds both libpgplot and libcpgplot that directly replace the PGPLOT libraries.

homepage http://giza.sourceforge.net/
master_sites sourceforge:/project/${name}
homepage https://danieljprice.github.io/giza/
github.tarball_from releases
license GPL-2+

checksums rmd160 8380548bfa3e25da26780b5c76616689edb4c639 \
sha256 a2e986f993e4557227639dde4570e6d31df518ed942abe102b6a445040733a6e
checksums rmd160 cafae86b7a37700b97c4a35e1fee628eca16d7d8 \
sha256 0151be118d8249161b1bc547ef4dd5f28f6340106f1e209e71ad8a0b6617b7b1 \
size 774866

conflicts pgplot
use_configure no

depends_build port:pkgconfig

depends_lib path:lib/pkgconfig/cairo.pc:cairo \
port:xorg-libX11

compilers.setup require_fortran -dragonegg -g95

build.cmd make
build.args CC=${configure.cc} FC=${configure.fc}
configure.args --disable-silent-rules

build.args-append X11DIR=${prefix} PREFIX=${prefix}

depends_lib path:lib/pkgconfig/cairo.pc:cairo \
port:xorg-libX11

destroot.args PREFIX=${prefix}
use_parallel_build no

pre-build {
build.args-append CC=${configure.cc} FC=${configure.fc}
}

post-destroot {
system "install_name_tool -id ${prefix}/lib/libcpgplot.dylib ${destroot}${prefix}/lib/libcpgplot.dylib"
system "install_name_tool -id ${prefix}/lib/libpgplot.dylib ${destroot}${prefix}/lib/libpgplot.dylib"
system "install_name_tool -id ${prefix}/lib/libgiza.dylib ${destroot}${prefix}/lib/libgiza.dylib"
}

livecheck.type regex
livecheck.url http://sourceforge.net/projects/${name}/files/
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)

0 comments on commit 57637db

Please sign in to comment.
You can’t perform that action at this time.