Ticket #34066: Portfile.diff
File Portfile.diff, 4.0 KB (added by florian@…, 13 years ago) |
---|
-
Portfile
old new 5 5 6 6 name gmt4 7 7 version 4.5.8 8 revision 1 8 9 categories science 9 10 platforms darwin 10 maintainers takeshi 11 license LGPL-3 12 description the generic mapping tools 11 maintainers eprofs.de:florian \ 12 takeshi 13 license GPL-2 14 description The Generic Mapping Tools 13 15 long_description GMT is an open source collection of ~65 tools \ 14 16 for manipulating geographic and Cartesian data sets and \ 15 17 producing Encapsulated PostScript File (EPS) illustrations \ … … 27 29 ftp://mirror.geosci.usyd.edu.au/pub/gmt \ 28 30 ftp://gmt.mirror.ac.za/pub/gmt 29 31 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} \ 32 set nameprefix gmt 33 distname ${nameprefix}-${version} 34 set dfile_gmt_gpl ${distname}${extract.suffix} 35 set dfile_gmt_nogpl ${nameprefix}-${version}-non-gpl${extract.suffix} 36 distfiles ${dfile_gmt_gpl} \ 37 ${dfile_gmt_nogpl} 38 patchfiles patch-bugfixes-r9794.diff \ 39 patch-bugfixes-r9816.diff \ 40 patch-gmt_shore_c.diff 41 42 checksums ${dfile_gmt_gpl} \ 35 43 md5 8a3fa928bcb8a82ebaed68d62ba8f1ba \ 36 44 sha1 823783c1abc9a7e0493c35661e516d4f607fff17 \ 37 45 rmd160 faa58f8c35a4e00f5a9515066b90e08a940cb0d6 \ 38 ${ gshhs} \39 md5 db98bff37adc0d51fdf0ffa3834d45ad\40 sha1 786d58b9a335d3bacb37f40f21ee3bfbb424cd10\41 rmd160 aa744b2fdcdf849cc5c4abce97f1d29f4cdc20a446 ${dfile_gmt_nogpl} \ 47 md5 b929d3287cf7bb67f52bc29b6903b1b4 \ 48 sha1 d383d480d46229ba142d64c55a4ede4fb14f0196 \ 49 rmd160 e420fa50d388227eb4147ef3a363459c8720408f 42 50 43 51 worksrcdir GMT${version} 44 52 45 depends_lib port:netcdf 53 depends_lib port:netcdf \ 54 port:gshhg-gmt-nc4 46 55 47 56 destroot.target install-all 48 57 use_parallel_build no 49 58 universal_variant no 50 51 post-extract { 52 # move GSHHS coastlines to worksrcpath 53 system "mv ${workpath}/share/coast ${worksrcpath}/share && rmdir ${workpath}/share" 54 system "mv ${workpath}/{LICENSE.TXT,README.TXT} ${worksrcpath}/share/coast" 55 } 59 default_variants +gdal 56 60 57 61 configure.pre_args --prefix=${prefix}/lib/${name} 58 62 configure.args --datarootdir=${prefix}/share/${name} \ … … 67 71 configure.ldflags-delete -L${prefix}/lib 68 72 69 73 post-destroot { 74 ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${name} 75 ln -s ../lib/${name}/bin/GMT ${destroot}${prefix}/bin/${nameprefix} 70 76 ln -s ../doc/${name} ${destroot}${prefix}/share/${name}/doc 71 77 ln -s ../../share/doc/${name}/man ${destroot}${prefix}/lib/${name}/man 72 78 ln -s ../../share/${name}/include ${destroot}${prefix}/lib/${name}/include 73 79 ln -s ../../share/${name} ${destroot}${prefix}/lib/${name}/share 80 # add location of files from port gshhg-gmt-nc4 to coastline.conf: 81 system "echo ${prefix}/share/gshhg-gmt-nc4 \ 82 > ${destroot}${prefix}/share/${name}/conf/coastline.conf" 74 83 } 75 84 76 85 variant octave description {compiles Octave interface} { … … 87 96 configure.args-append --enable-triangle 88 97 } 89 98 99 variant xgrid description {enable xGridEdit} { 100 depends_lib-append lib:libXaw:xorg-libXaw 101 configure.args-append --enable-xgrid 102 } 103 90 104 livecheck.type regex 91 livecheck.url http://gmt.soest.hawaii.edu/gmt/gmt_home.html92 livecheck.regex {Current version is [^0-9]*([0-9]+\.[0-9]+\.[0-9]+)}105 livecheck.url ${homepage}/gmt/gmt_home.html 106 livecheck.regex {Current version[^0-9]*([0-9]+\.[0-9]+\.[0-9]+)}