Bug 230799

Summary: [NEW PORT] graphics/gmt5: open source collection of ~130 tools for manipulating geographic and Cartesian data sets, version 5
Product: Ports & Packages Reporter: Loïc Bartoletti <lbartoletti>
Component: Individual Port(s)Assignee: Wen Heping <wen>
Status: Closed FIXED    
Severity: Affects Only Me CC: holishingtest, wen, wenheping2000
Priority: --- Keywords: patch-ready
Version: LatestFlags: lbartoletti: maintainer-feedback+
Hardware: Any   
OS: Any   
URL: https://gmt.soest.hawaii.edu/
Attachments:
Description Flags
gmt5
lbartoletti: maintainer-approval+
gmt5: remove prefix
lbartoletti: maintainer-approval+
GSHHG not found related log
none
gmt5 dcw
none
gmt5 gshhg
none
gmt5
none
gmt5 lbartoletti: maintainer-approval+

Description Loïc Bartoletti freebsd_committer freebsd_triage 2018-08-21 13:39:31 UTC
Created attachment 196417 [details]
gmt5

GMT have two branches GMT4 (graphics/gmt) and GMT5 (this new port)


GMT is an open source collection of ~130 tools for manipulating 
geographic and Cartesian data sets and producing PostScript 
illustrations ranging from simple x-y plots via contour maps to 
artificially illuminated surfaces and 3D perspective views.

I've patched gmt5 to not conflicts with gmt.

Thanks to holishing.
Comment 1 holishing 2018-08-22 14:56:42 UTC
I used "poudriere" to compile gmt5 and pass the build.
but when I run "gmt" command, it shows that:

==

gmt: Error: Could not locate share directory that matches the current GMT version 5.4.4.

==

when I use truss to trace the signal, it shows that:

==

access("/usr/local//usr/local/share/gmt5",X_OK|R_OK) ERR#2 'No such file or directory'
gmt: Error: Could not locate share directory that matches the current GMT version 5.4.4.
write(2,"gmt: Error: Could not locate sha"...,89) = 89 (0x59)

==

I'm not sure that it is due to Makefile in ports or poudriere behavior,
lately I'll try directly use "make install clean" to test build again and try figure out the exact reason.
Comment 2 Loïc Bartoletti freebsd_committer freebsd_triage 2018-08-23 06:15:55 UTC
Created attachment 196465 [details]
gmt5: remove prefix
Comment 3 Loïc Bartoletti freebsd_committer freebsd_triage 2018-08-23 06:18:42 UTC
(In reply to holishing from comment #1)

Thanks, I removed the prefix. It was duplicated.
Comment 4 holishing 2018-08-24 04:39:40 UTC
(In reply to lbartoletti from comment #3)

Thanks! This problem seems to be solved now.



and I'll try if other features (including commands related to gshhg, dcw data) can be used later.

It seems that gshhg, and dcw will not be installed in default option now:

==
gmt-config-gmt5 --gshhg --dcw 
gmtget: GSHHG version 2.2.0 or newer is needed to use coastlines with GMT.
	Get and install GSHHG from ftp://ftp.soest.hawaii.edu/gshhg/.

DCW_PATH-NOTFOUND
==
Comment 5 holishing 2018-08-24 05:10:02 UTC
Created attachment 196491 [details]
GSHHG not found related log

some truss log for reference.

and there is no "coast/" data under "/usr/local/share/gmt5/" directory, either.
Comment 6 Loïc Bartoletti freebsd_committer freebsd_triage 2018-08-25 09:47:10 UTC
OK I understand.
I think ghhgc and dcw should be separated ports and gmt5 depends on it
Comment 7 wen 2018-09-03 03:20:51 UTC
(In reply to lbartoletti from comment #6)

Would you submit PR of it ?

wen
Comment 8 holishing 2018-09-03 03:43:37 UTC
I'm also trying seperate those 2 parts to another ports and let gmt5 depends on them, after anyone have done this and related path are also checked, maybe we can commit these new ports.
Comment 9 wen 2018-09-03 07:15:14 UTC
Then I hold this PR until the new ports created ?

wen
Comment 10 Loïc Bartoletti freebsd_committer freebsd_triage 2018-10-13 05:24:45 UTC
Created attachment 198089 [details]
gmt5 dcw
Comment 11 Loïc Bartoletti freebsd_committer freebsd_triage 2018-10-13 05:25:03 UTC
Created attachment 198090 [details]
gmt5 gshhg
Comment 12 Loïc Bartoletti freebsd_committer freebsd_triage 2018-10-13 05:25:29 UTC
Created attachment 198091 [details]
gmt5
Comment 13 Loïc Bartoletti freebsd_committer freebsd_triage 2018-10-13 05:26:14 UTC
I have a problem with poudriere for PORTDOCS, don't know why...

two ports are created.

Can you try it?
Comment 14 wen 2018-10-14 10:34:35 UTC
(In reply to lbartoletti from comment #13)
Remove all the %%PORTDOCS%%%%DOCSDIR%% lines in pkg-plist will resolv it.

wen
Comment 15 Loïc Bartoletti freebsd_committer freebsd_triage 2018-10-17 09:36:37 UTC
(In reply to wen from comment #14)
Yes, sure. But if you run poudriere -i, docs are present in the tree.
Comment 16 Wen Heping freebsd_committer freebsd_triage 2018-10-17 15:42:50 UTC
(In reply to lbartoletti from comment #15)
We should s/%%PORTDOCS%%%%DOCSDIR%%/%%DOCSDIR%%/g.
Would you test again ?

wen
Comment 17 Loïc Bartoletti freebsd_committer freebsd_triage 2018-10-23 04:40:30 UTC
Created attachment 198485 [details]
gmt5

remove PORTDOCS
Comment 18 commit-hook freebsd_committer freebsd_triage 2018-10-23 10:54:29 UTC
A commit references this bug:

Author: wen
Date: Tue Oct 23 10:54:10 UTC 2018
New revision: 482826
URL: https://svnweb.freebsd.org/changeset/ports/482826

Log:
  The Digital Chart of the World (DCW) is a comprehensive 1:1,000,000 scale vector
  basemap of the world. The charts were designed to meet the needs of pilots and
  air crews in medium-and low-altitude en route navigation and to support military
  operational planning, intelligence briefings, and other needs.

  WWW: http://www.soest.hawaii.edu/wessel/dcw/

  PR:		230799
  Submitted by:	lbartoletti@tuxfamily.org

Changes:
  head/graphics/Makefile
  head/graphics/gmt5-dcw/
  head/graphics/gmt5-dcw/Makefile
  head/graphics/gmt5-dcw/distinfo
  head/graphics/gmt5-dcw/pkg-descr
  head/graphics/gmt5-dcw/pkg-plist
Comment 19 commit-hook freebsd_committer freebsd_triage 2018-10-23 10:57:34 UTC
A commit references this bug:

Author: wen
Date: Tue Oct 23 10:57:17 UTC 2018
New revision: 482828
URL: https://svnweb.freebsd.org/changeset/ports/482828

Log:
  We present a high-resolution geography data set amalgamated from three data
  bases in the public domain:

      World Vector Shorelines (WVS).
      CIA World Data Bank II (WDBII).
      Atlas of the Cryosphere (AC).

  WWW: http://www.soest.hawaii.edu/wessel/gshhg/

  PR:		230799
  Submitted by:	lbartoletti@tuxfamily.org

Changes:
  head/graphics/Makefile
  head/graphics/gmt5-gshhg/
  head/graphics/gmt5-gshhg/Makefile
  head/graphics/gmt5-gshhg/distinfo
  head/graphics/gmt5-gshhg/pkg-descr
  head/graphics/gmt5-gshhg/pkg-plist
Comment 20 commit-hook freebsd_committer freebsd_triage 2018-10-23 11:00:38 UTC
A commit references this bug:

Author: wen
Date: Tue Oct 23 11:00:21 UTC 2018
New revision: 482829
URL: https://svnweb.freebsd.org/changeset/ports/482829

Log:
  - Repocopy gmt --> gmt5 and update to 5.4.4

  PR:		230799
  Submitted by:	lbartoletti@tuxfamily.org(maintainer)

Changes:
  head/graphics/Makefile
  head/graphics/gmt5/
  head/graphics/gmt5/Makefile
  head/graphics/gmt5/distinfo
  head/graphics/gmt5/files/patch-configure.ac
  head/graphics/gmt5/files/patch-src-gmt_io.c
  head/graphics/gmt5/files/patch-src-gmtmath.c
  head/graphics/gmt5/files/patch-src-grdmath.c
  head/graphics/gmt5/files/patch-src-misc-gmtdigitize.c
  head/graphics/gmt5/files/patch-src_CMakeLists.txt
  head/graphics/gmt5/files/patch-src_common__string.h
  head/graphics/gmt5/pkg-descr
  head/graphics/gmt5/pkg-plist