Ticket #37553: Portfile.diff
File Portfile.diff, 4.8 KB (added by florian@…, 12 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name gmt4 7 version 4.5. 87 version 4.5.9 8 8 categories science 9 9 platforms darwin 10 maintainers takeshi 11 license LGPL-3 12 description the generic mapping tools 10 maintainers eprofs.de:florian \ 11 takeshi 12 license GPL-2 13 description The Generic Mapping Tools 13 14 long_description GMT is an open source collection of ~65 tools \ 14 15 for manipulating geographic and Cartesian data sets and \ 15 16 producing Encapsulated PostScript File (EPS) illustrations \ 16 ranging from simple x-y plots via contour maps to \17 ranging from simple x-y plots via contour maps to \ 17 18 artificially illuminated surfaces and 3-D perspective views. 18 19 conflicts gmt 19 20 homepage http://gmt.soest.hawaii.edu/ … … 27 28 ftp://mirror.geosci.usyd.edu.au/pub/gmt \ 28 29 ftp://gmt.mirror.ac.za/pub/gmt 29 30 use_bzip2 yes 30 set gshhsversion 2.2.0 31 set gmtsrc gmt-${version}.tar.bz2 32 set gshhs gshhs-${gshhsversion}.tar.bz2 33 distfiles ${gmtsrc} ${gshhs} 34 checksums ${gmtsrc} \ 35 md5 8a3fa928bcb8a82ebaed68d62ba8f1ba \ 36 sha1 823783c1abc9a7e0493c35661e516d4f607fff17 \ 37 rmd160 faa58f8c35a4e00f5a9515066b90e08a940cb0d6 \ 38 ${gshhs} \ 39 md5 db98bff37adc0d51fdf0ffa3834d45ad \ 40 sha1 786d58b9a335d3bacb37f40f21ee3bfbb424cd10 \ 41 rmd160 aa744b2fdcdf849cc5c4abce97f1d29f4cdc20a4 31 set nameprefix gmt 32 distname ${nameprefix}-${version} 33 set dfile_gmt_gpl ${distname}${extract.suffix} 34 set dfile_gmt_nogpl ${nameprefix}-${version}-non-gpl${extract.suffix} 35 distfiles ${dfile_gmt_gpl} \ 36 ${dfile_gmt_nogpl} 37 38 checksums ${dfile_gmt_gpl} \ 39 md5 9f241e97774eadd1fe79f4d7022fcaed \ 40 sha1 711922fd99dcd47ace522f1e46fcafa5beab8c94 \ 41 rmd160 67d36ecf68b9bcd9a38de61e4f1b3e1120c71823 \ 42 ${dfile_gmt_nogpl} \ 43 md5 d61a34a83dc630b464d472c6f0bdfc3a \ 44 sha1 d03651d98a5f010090bceda2bbec09e53a543942 \ 45 rmd160 a562f21b1e474d660cc5b9502543c127fb9fb801 42 46 43 47 worksrcdir GMT${version} 44 48 45 depends_lib port:netcdf 49 depends_lib port:netcdf \ 50 port:gshhg-gmt-nc4 46 51 47 post-extract { 48 # move GSHHS coastlines to worksrcpath 49 system "mv ${workpath}/share/coast ${worksrcpath}/share && rmdir ${workpath}/share" 50 system "mv ${workpath}/{LICENSE.TXT,README.TXT} ${worksrcpath}/share/coast" 51 } 52 destroot.target install-all 53 use_parallel_build no 54 universal_variant no 55 default_variants +gdal 52 56 53 57 configure.pre_args --prefix=${prefix}/lib/${name} 54 58 configure.args --datarootdir=${prefix}/share/${name} \ 55 59 --docdir=${prefix}/share/doc/${name} \ 56 60 --mandir=${prefix}/share/doc/${name}/man \ 57 61 --includedir=${prefix}/share/${name}/include \ 62 --with-gshhg-dir=${prefix}/share/gshhg-gmt-nc4 \ 63 --with-nc-config=${prefix}/bin/nc-config \ 58 64 --enable-shared \ 59 65 --enable-flock \ 60 66 --disable-xgrid \ 61 67 --disable-mex 62 68 configure.optflags-delete -O2 63 64 use_parallel_build no65 universal_variant no66 destroot.target install-all67 69 configure.ldflags-delete -L${prefix}/lib 68 70 69 71 post-destroot { 72 ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${name} 73 ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${nameprefix} 70 74 ln -s ../doc/${name} ${destroot}${prefix}/share/${name}/doc 71 75 ln -s ../../share/doc/${name}/man ${destroot}${prefix}/lib/${name}/man 72 76 ln -s ../../share/${name}/include ${destroot}${prefix}/lib/${name}/include … … 87 91 configure.args-append --enable-triangle 88 92 } 89 93 90 livecheck.type regex 91 livecheck.url http://gmt.soest.hawaii.edu/gmt/gmt_home.html 92 livecheck.regex {Current version is [^0-9 ]*([0-9]+\.[0-9]+\.[0-9]+)} 94 variant xgrid description {enable xGridEdit} { 95 depends_lib-append lib:libXaw:xorg-libXaw 96 configure.args-delete --disable-xgrid 97 configure.args-append --enable-xgrid 98 } 93 99 100 livecheck.type regex 101 livecheck.url ${homepage}/gmt/gmt_home.html 102 livecheck.regex {Current version[^0-9]*([0-9]+\.[0-9]+\.[0-9]+)}