Commits

Dongdong Tian authored and Frank Schima committed a84931ffea5
gmt5: add a subport for gmt6
No tags

science/gmt5/Portfile

Modified
1 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 2
3 3 PortSystem 1.0
4 4 PortGroup cmake 1.0
5 5
6 6 name gmt5
7 7 version 5.4.5
8 8 revision 0
9 +conflicts gmt6
10 +subport gmt6 {
11 + version 6.0.0rc4
12 + revision 0
13 + conflicts gmt5
14 +}
9 15 categories science
10 16 platforms darwin
11 17 maintainers {takeshi @tenomoto}
12 18 license GPL-3
13 19 description The Generic Mapping Tools
14 20 long_description GMT is an open source collection of ~120 tools \
15 21 for manipulating geographic and Cartesian data sets and \
16 22 producing PostScript illustrations ranging from simple x-y \
17 23 plots via contour maps to artificially illuminated surfaces \
18 24 and 3D perspective views.
23 29 ftp://ftp.iris.washington.edu/pub/gmt \
24 30 ftp://ftp.iag.usp.br/pub/gmt \
25 31 ftp://ftp.geologi.uio.no/pub/gmt \
26 32 ftp://gd.tuwien.ac.at/pub/gmt \
27 33 ftp://ftp.scc.u-tokai.ac.jp/pub/gmt \
28 34 ftp://gmt.mirror.ac.za/pub/gmt
29 35 use_xz yes
30 36 distname gmt-${version}
31 37 distfiles ${distname}-src${extract.suffix}
32 38
33 -checksums rmd160 900befd66ec4a9aea75c53d99ed83f7e25163e35 \
34 - sha256 078d4997507cb15344c74a874568985e45bdbd6d3a72d330c74c47f4c0359bb1 \
35 - size 59175704
39 +if {${subport} eq "gmt5"} {
40 + checksums rmd160 900befd66ec4a9aea75c53d99ed83f7e25163e35\
41 + sha256 078d4997507cb15344c74a874568985e45bdbd6d3a72d330c74c47f4c0359bb1 \
42 + size 59175704
43 +} else {
44 + checksums rmd160 c9d276100c5e78191ccbabd2ce084798a1f2046f \
45 + sha256 940ed0c49f18cd749edbe65ab84b28e2f6775b4529a71e9a8efd67bf94241b76 \
46 + size 65172968
47 +}
36 48
37 49 depends_lib port:dcw-gmt \
38 50 port:ghostscript \
39 51 port:gshhg-gmt \
40 52 port:netcdf
41 53
42 54 default_variants +gdal +pcre
43 55 if {![variant_isset lgpl]} {
44 56 default_variants-append +nonfree
45 57 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut