source: trunk/dports/math/octave-devel/Portfile @ 148699

Last change on this file since 148699 was 148699, checked in by mcalhoun@…, 4 years ago

octave-devel, octave-devel-rc, octave-devel-release: incorporate fixes from main octave port intended for older systems
no revbump since ports build successfully or not at all

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 22.2 KB
Line 
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# $Id: Portfile 148699 2016-05-15 10:20:59Z mcalhoun@macports.org $
3
4PortSystem          1.0
5PortGroup           compilers  1.0
6PortGroup           muniversal 1.0
7PortGroup           active_variants 1.1
8PortGroup           compiler_blacklist_versions 1.0
9PortGroup           select     1.0
10
11name                octave-devel
12categories          math science
13platforms           darwin
14license             GPL-3+
15maintainers         mcalhoun openmaintainer
16description         a high-level language for numerical computations
17long_description    \
18    GNU Octave is a high-level language, primarily intended for numerical \
19    computations.  It provides a convenient command line interface for \
20    solving linear and nonlinear problems numerically.
21
22homepage            http://www.gnu.org/software/octave
23
24#fetch.type          hg
25#hg.url              http://hg.savannah.gnu.org/hgweb/octave/
26
27set version_release 4.0.1
28set version_rc      4.0.1-rc4
29set version_tip     4.1.0+
30
31if { ${name} eq ${subport} } {
32    version         ${version_tip}
33    revision        10
34    hg.tag          225d88a97104
35
36    # see http://savannah.gnu.org/bugs/?41027
37    patchfiles-append   \
38        octave-bug_41027-half.patch
39
40    checksums-append               \
41        ${hg.tag}${extract.suffix} \
42        rmd160  12db3bfd49342fcf948a47fd8814d2a2aee4779e \
43        sha256  e3734195ef42de35953e20c4dec9d741273e35c8a97b4a44777587a1d5e2642d
44
45    livecheck.regex   "<a href=\"/hgweb/octave/rev/(\[a-zA-Z0-9.\]+)\">\ntip"
46}
47
48subport octave-devel-rc {
49    version         ${version_rc}
50    revision        4
51    hg.tag          2b66f30a0de7
52
53    if {${version_rc} eq ${version_release}} {
54        conflicts-append octave-devel-release
55    }
56
57    # see http://savannah.gnu.org/bugs/?func=detailitem&item_id=46592
58    patchfiles-append \
59        patch-e870a68742a6.diff
60
61    # see http://savannah.gnu.org/bugs/?41027
62    patchfiles-append   \
63        octave-bug_41027.patch
64
65    checksums-append               \
66        ${hg.tag}${extract.suffix} \
67        rmd160  4bf919790f28f21752381e127cf55b3a5f4d7344 \
68        sha256  4785967cff091dddd7d82dbbd094658a39ad26d4a7219abc1f1bbc4fe696d43a
69
70    livecheck.regex   "<a href=\"/hgweb/octave/rev/(\[a-zA-Z0-9.\]+)\">\nrc-"
71}
72
73subport octave-devel-release {
74    version         ${version_release}
75    #revision        0
76    hg.tag          5162cdfb56d8
77
78    if {${version_release} eq ${version_rc}} {
79        conflicts-append octave-devel-release
80    }
81
82    # see http://savannah.gnu.org/bugs/?func=detailitem&item_id=46592
83    patchfiles-append \
84        patch-e870a68742a6.diff
85
86    # see http://savannah.gnu.org/bugs/?41027
87    patchfiles-append   \
88        octave-bug_41027.patch
89
90    checksums-append               \
91        ${hg.tag}${extract.suffix} \
92        rmd160  64c48708d456e8efb48877af6443a2c637f3d3a6 \
93        sha256  8b6b93d2fe830f7aa5b446856105436c51547e1ff8fe47a4184ea535bdd370d1
94
95    livecheck.regex   "<a href=\"/hgweb/octave/rev/(\[a-zA-Z0-9.\]+)\">\nrelease-"
96}
97
98# Block compilers: Some older versions of CLANG do not honor the CPATH
99# environment variables, which is required for compiling this port
100# when using MacPorts.  The versions seem to be: MacPorts CLANG 2.9 or
101# earlier, and Apple CLANG 318.0.58 or older.
102#
103# See also < http://llvm.org/bugs/show_bug.cgi?id=8971 >
104#          < https://trac.macports.org/ticket/40250 >.
105compiler.blacklist-append { clang <= 318.0.61 }
106
107select.group octave
108select.file  ${filespath}/${subport}
109
110# check http://hg.savannah.gnu.org/hgweb/octave/gnulib-hg/rev for latest version
111set hg_gnu_tag      7f19e7f2afa2
112
113checksums-append \
114    ${hg_gnu_tag}${extract.suffix} \
115    rmd160  9d906212fdb4201f8592da10524606dadb3f50e3 \
116    sha256  85add8ce0c53e8868d903c28c407d864ca54bd42e8d472e09b1a1bb4b105b741
117
118master_sites        http://hg.savannah.gnu.org/hgweb/octave/archive:octave \
119                    http://hg.savannah.gnu.org/hgweb/octave/gnulib-hg/archive:gnulib
120
121distfiles           \
122    ${hg.tag}${extract.suffix}:octave \
123    ${hg_gnu_tag}${extract.suffix}:gnulib
124
125worksrcdir          octave-${hg.tag}
126
127#depends_extract-append port:git
128post-extract {
129    # command from bootstrap script file
130    #system -W ${worksrcpath} "${prefix}/bin/git clone --depth 2 git://git.sv.gnu.org/gnulib gnulib-hg"
131    move ${worksrcpath}/../gnulib-hg-${hg_gnu_tag} ${worksrcpath}/gnulib-hg
132}
133
134# see http://git.savannah.gnu.org/cgit/gnulib.git/commit/lib/stdio.in.h?id=d6176702c3ffb6c56e6620397470e1b3bd540b10
135patchfiles-append   \
136    patch-stdio.in.h.diff
137
138pre-patch {
139    # code located in pre-patch because variants from PortGroup compilers must
140    #    be evaluated before it can be determined if clang is being used
141
142    # see http://trac.macports.org/ticket/45011
143    # see http://savannah.gnu.org/bugs/?43298
144    set libcxxbug no
145    if { ${configure.cc} eq "/usr/bin/clang" && [lindex [split ${xcodeversion} .] 0] eq 6 } {
146        set libcxxbug yes
147    } elseif { [variant_exists clang35] && [variant_isset clang35] } {
148        set libcxxbug yes
149    }
150    if { ${libcxxbug} } {
151        patchfiles-append   \
152            clang-libcxx-fix.patch
153    }
154
155    # see https://trac.macports.org/ticket/44704
156    set gl2psbug no
157    if { ${configure.cc} eq "/usr/bin/clang" && [vercmp ${xcodeversion} 5.0.0] < 0 } {
158        set gl2psbug yes
159    } elseif { [variant_exists clang33] && [variant_isset clang33] } {
160        set gl2psbug yes
161    }
162    if { ${gl2psbug} } {
163        patchfiles-append   patch-gl2ps_renderer.diff
164    }
165}
166
167# need for autoconf
168depends_build-append \
169    port:autoconf    \
170    port:automake    \
171    port:libtool
172
173use_autoconf         yes
174autoconf.cmd         ./bootstrap
175autoconf.args
176
177# avoid depends_build-append port:coreutils
178configure.env-append MKDIR_P="/bin/mkdir -p"
179
180# avoid depends_build-append port:cctools
181configure.env-append RANLIB=/usr/bin/ranlib
182
183# main octave port lists as a depends_lib
184# configure.ac list it among the "[p]rograms used in Makefiles"
185depends_build-append port:gawk
186configure.awk ${prefix}/bin/gawk
187
188# in configure.ac, said to be "[p]rograms used to generate icons file formats
189depends_build-append \
190    port:icoutils    \
191    port:librsvg
192configure.env-append              \
193    ICOTOOL=${prefix}/bin/icotool \
194    RSVG_CONVERT=${prefix}/bin/rsvg-convert
195
196# main octave port lists as a depends_lib
197# configure.ac list it among the "[p]rograms used in Makefiles"
198depends_build-append port:grep
199configure.env-append  GREP=${prefix}/bin/grep
200configure.env-append EGREP=${prefix}/bin/egrep
201configure.env-append FGREP=${prefix}/bin/fgrep
202
203# configure.ac list it among the "[p]rograms used in Makefiles"
204depends_build-append port:findutils
205configure.env-append FIND=${prefix}/bin/gfind
206
207# main octave port lists as a depends_lib
208# configure.ac list it among the "[p]rograms used in Makefiles"
209depends_build-append port:gsed
210configure.env-append SED=${prefix}/bin/gsed
211
212depends_build-append port:flex
213configure.env-append LEX=${prefix}/bin/flex
214
215depends_build-append port:bison
216configure.env-append YACC="${prefix}/bin/bison -y"
217
218depends_build-append port:gperf
219configure.env-append GPERF=/usr/bin/gperf
220
221# configure.ac list it among the "[p]rograms used in Makefiles"
222depends_build-append port:perl5
223configure.perl ${prefix}/bin/perl5
224
225# avoid depends_build-append port:desktop-file-utils
226#configure.env-append DESKTOP_FILE_INSTALL=""
227configure.env-append ac_cv_prog_DESKTOP_FILE_INSTALL=""
228
229depends_build-append \
230    port:pkgconfig
231
232compilers.choose    fc f77 f90 cc cxx
233
234# for now, limit the number of variants
235# some of these compilers may work fine
236compilers.setup     \
237    require_fortran \
238    -dragonegg      \
239    -gcc49          \
240    -gcc48          \
241    -gcc46          \
242    -gcc45          \
243    -gcc44          \
244    -g95            \
245    -llvm           \
246    -gcc47          \
247    -gcc46          \
248    -gcc45          \
249    -gcc44          \
250    -clang36        \
251    -clang35        \
252    -clang34        \
253    -clang33
254
255# help prevent conflicts with various octave ports
256configure.args-append \
257    --infodir=${prefix}/share/info/octave_${version}
258
259# offscreen rendering with OpenGL via osmesa would be nice to have, but the following
260#    causes a segmentation fault:
261#    h = figure ("visible", "off"); fn = tempname (); sombrero (); __osmesa_print__ (h, fn, "svg");
262#
263# solution is ???
264#
265#depends_lib-append port:mesa
266configure.args-append       \
267    --without-OSMesa
268
269#configure.args-append --with-shell=???
270
271configure.args-append       \
272    --with-framework-opengl \
273    --with-framework-carbon \
274    --without-x             \
275    --enable-static
276
277configure.args-append       \
278    --disable-openmp
279
280configure.args-append       \
281    --disable-java          \
282    --disable-gui           \
283    --without-fltk          \
284    --disable-jit           \
285    --without-sndfile       \
286    --without-portaudio     \
287    --without-magick        \
288    --disable-docs
289
290# in configure.ac, listed as one of "[p]rograms used when running Octave"
291depends_lib-append port:python27
292configure.python ${prefix}/bin/python2.7
293
294# in configure.ac, listed as one of "[p]rograms used when running Octave"
295depends_lib-append port:ghostscript
296configure.env-append GHOSTSCRIPT=${prefix}/bin/gs
297
298# in configure.ac, listed as one of "[p]rograms used when running Octave"
299depends_lib-append port:gnuplot
300configure.env-append GNUPLOT=${prefix}/bin/gnuplot
301
302# in configure.ac, listed as one of "[p]rograms used when running Octave"
303depends_lib-append port:less
304configure.env-append DEFAULT_PAGER=${prefix}/bin/less
305
306depends_lib-append   port:ncurses
307depends_lib-append   port:readline
308depends_lib-append   port:fontconfig
309depends_lib-append   port:pcre
310
311#--without-amd
312#--without-camd
313#--without-colamd
314#--without-cholmod
315#--without-cxsparse
316#--without-umfpack
317depends_lib-append  port:SuiteSparse
318foreach lib {amd camd colamd cholmod cxsparse umfpack} {
319    configure.args-append \
320        --with-${lib}="-l${lib} -lsuitesparseconfig"
321}
322
323#--without-qhull
324depends_lib-append  port:qhull
325
326#--without-z
327depends_lib-append  port:zlib
328
329#--without-hdf5
330if { ${name} eq ${subport} } {
331    # see #51080
332    depends_lib-append  port:hdf5-18
333    configure.args-append \
334        --with-hdf5-libdir=${prefix}/lib/hdf5-18 \
335        --with-hdf5-includedir=${prefix}/include/hdf5-18
336} else {
337    depends_lib-append  port:hdf5
338}
339
340#--disable-fftw-threads
341#--without-fftw3
342#--without-fftw3f
343depends_lib-append  port:fftw-3
344depends_lib-append  port:fftw-3-single
345
346#--without-glpk
347depends_lib-append  port:glpk
348
349#--without-curl
350depends_lib-append  port:curl
351
352#--without-qrupdate
353depends_lib-append port:qrupdate
354
355#--without-arpack
356depends_lib-append port:arpack
357
358#--without-openssl
359depends_lib-append port:openssl
360
361# fortran arch flag is not set automatically
362if {![variant_isset universal]} {
363    if {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64"} {
364        configure.fflags-append -m64
365    } else {
366        configure.fflags-append -m32
367    }
368}
369
370# see etc/README.MacOS
371depends_run-append   \
372    port:epstool     \
373    port:ghostscript \
374    port:transfig    \
375    port:pstoedit
376
377depends_run-append port:octave_select
378
379variant accelerate description {use BLAS from Apple's Accelerate.framework} conflicts atlas openblas {
380    depends_lib-append port:vecLibFort
381
382    # dependents must be built with same BLAS and LAPACK
383    #require_active_variants port:arpack      accelerate
384    #require_active_variants port:SuiteSparse accelerate
385    #require_active_variants port:qrupdate    accelerate
386
387    configure.args-append        \
388        --with-blas=-lvecLibFort \
389        --with-lapack=""
390}
391
392variant openblas description {use BLAS from MacPorts' openblas port} conflicts atlas accelerate {
393
394    depends_lib-append path:lib/libopenblas.dylib:OpenBLAS
395    # LAPACK required
396    require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
397
398    # dependents must be built with same BLAS and LAPACK
399    #require_active_variants port:arpack      openblas
400    #require_active_variants port:SuiteSparse openblas
401    #require_active_variants port:qrupdate    openblas
402
403    # replicate default values if configure script finds openblas on its own
404    configure.args-append        \
405        --with-blas=-lopenblas   \
406        --with-lapack=""
407}
408
409variant atlas description {use BLAS from MacPorts' atlas port} conflicts accelerate openblas {
410    depends_lib-append port:atlas
411
412    # dependents must be built with same BLAS and LAPACK
413    #require_active_variants port:arpack      atlas
414    #require_active_variants port:SuiteSparse atlas
415    #require_active_variants port:qrupdate    atlas
416
417    # replicate default values if configure script finds atlas on its own
418    configure.args-append        \
419        --with-blas="-lcblas -lf77blas -latlas" \
420        --with-lapack=-llapack
421}
422
423if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
424    default_variants-append +accelerate
425}
426
427if {![variant_isset accelerate] && ![variant_isset openblas] && ![variant_isset atlas] } {
428    ui_error "\n\nYou must select either the +accelerate, +atlas, or +openblas variant.\n"
429    return -code error "Invalid variant selection"
430}
431
432variant java description {enable Java interface} {
433    PortGroup java 1.0
434    configure.args-replace --disable-java --enable-java
435}
436default_variants-append +java
437
438variant qt4gui description {build the GUI using Qt4} {
439    PortGroup qt4 1.0
440    depends_lib-append  port:qscintilla
441    configure.args-replace --disable-gui --enable-gui
442}
443default_variants-append +qt4gui
444
445variant fltk description {enable fltk as a graphics toolkit for plotting} {
446    depends_lib-append path:lib/libfltk.dylib:fltk
447
448    # as of version 4.1.0+ revision 0:
449    #    without fltk, configure script turns off "native_graphics," and
450    #       does not look for either freetype or gl2ps
451    #    it still looks for and links against fontconfig, however
452    depends_lib-append \
453        port:freetype  \
454        port:gl2ps
455
456    configure.args-replace --without-fltk --with-fltk
457}
458default_variants-append +fltk
459
460variant jit description {enable JIT compiler (EXPERIMENTAL)} {
461    # JIT requires LLVM, so select a version to use
462    set llvm_ver 3.7
463
464    # prevent multiple versions of llvm being required
465    # if clangXY compiler is requested, use llvm-X.Y
466    foreach clang ${compilers.clang_variants} {
467        if { [variant_exists ${clang}] && [variant_isset ${clang}] } {
468            set llvm_ver [string index ${clang} end-1].[string index ${clang} end]
469        }
470    }
471
472    depends_lib-append port:llvm-${llvm_ver}
473    configure.args-replace --disable-jit --enable-jit
474    configure.env-append LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_ver}
475    configure.cxxflags-append -std=c++11
476}
477
478if {[variant_isset fltk] && [variant_isset qt4gui]} {
479    notes-append "unless octave is run with --no-gui-libs, graphics_toolkit(\"fltk\") will cause a crash"
480}
481
482variant sound description {enable audio support (file I/O and playback)} {
483    depends_lib-append port:libsndfile
484    depends_lib-append port:portaudio
485
486    configure.args-replace --without-sndfile   --with-sndfile
487    configure.args-replace --without-portaudio --with-portaudio
488}
489default_variants-append +sound
490
491variant app description "build application bundle to launch ${subport}" {
492    depends_build-append port:ImageMagick
493
494    global appName
495    set appName Octave_${version}.app
496
497    post-build {
498        xinstall -d -p -m 0755 ${worksrcpath}/${appName}/Contents
499        xinstall -d -p -m 0755 ${worksrcpath}/${appName}/Contents/Resources
500        xinstall -d -p -m 0755 ${worksrcpath}/${appName}/Contents/MacOS
501
502        set script [open "${worksrcpath}/${appName}/Contents/MacOS/Octave" w 0755]
503        if { [variant_isset qt4gui] } {
504            puts ${script} "#!/bin/sh"
505            puts ${script} ""
506            puts ${script} "${prefix}/bin/octave-${version} --force-gui"
507        } else {
508            puts ${script} "#!/usr/bin/osascript"
509            puts ${script} ""
510            puts ${script} "tell application \"Terminal\" to do script \"${prefix}/bin/octave-${version} --no-gui-libs; exit\""
511        }
512        close ${script}
513
514        #NSHumanReadableCopyright      ''
515        #LSUIElement                   1
516        set values "
517            CFBundleDevelopmentRegion     English
518            CFBundleExecutable            Octave
519            CFBundleIconFile              Octave.icns
520            CFBundleDocumentTypes         {-array \'{\"CFBundleTypeExtensions\" = (\"m\"); \"CFBundleTypeOSTypes\" = (\"Mfile\"); \"CFBundleTypeRole\" = \"Editor\";}\'}
521            CFBundleIdentifier            org.octave.Octave
522            CFBundleInfoDictionaryVersion 6.0
523            CFBundleSignature             Octave
524            CFBundleVersion               ${version}
525            CFBundleShortVersionString    ${version}
526        "
527        foreach {key value} ${values} {
528            system "/usr/bin/defaults write ${worksrcpath}/${appName}/Contents/Info ${key} ${value}"
529        }
530
531        # have Info.plist be human readable
532        system "/usr/bin/plutil -convert xml1 ${worksrcpath}/${appName}/Contents/Info.plist"
533
534        # conversion by plutil set verys limited permissions
535        system "/bin/chmod 0644 ${worksrcpath}/${appName}/Contents/Info.plist"
536
537        xinstall -d -m 0755 ${worksrcpath}/Octave.iconset
538
539        # values from original SVG file
540        set svg    etc/icons/octave-logo.svg
541        set width  283.28912
542        set height 283.28833
543        set dpi    90
544
545        foreach res {16 32 128 256 512} {
546
547            set hres [expr 2*${res}]
548
549            # find new density so that converted PNG files do not look pixelated
550            set denw  [expr ${dpi}*${res}/${width}]
551            set denh  [expr ${dpi}*${res}/${height}]
552
553            set hdenw [expr 2*${denw}]
554            set hdenh [expr 2*${denh}]
555
556            system -W ${worksrcpath} "${prefix}/bin/convert -background transparent -resize ${res}x${res}   -density ${denw}x${denh}   ${svg} Octave.iconset/icon_${res}x${res}.png"
557            system -W ${worksrcpath} "${prefix}/bin/convert -background transparent -resize ${hres}x${hres} -density ${hdenw}x${hdenh} ${svg} Octave.iconset/icon_${res}x${res}@2x.png"
558        }
559
560        system -W ${worksrcpath} "/usr/bin/iconutil -c icns -o ${appName}/Contents/Resources/Octave.icns Octave.iconset"
561    }
562
563    post-destroot {
564        copy ${worksrcpath}/${appName} ${destroot}${applications_dir}
565    }
566}
567default_variants-append +app
568
569variant docs description {build documentation files} {
570    depends_build-append port:texinfo
571    configure.env-append                \
572        MAKEINFO=${prefix}/bin/makeinfo \
573        TEXI2DVI=${prefix}/bin/texi2dvi \
574        TEXI2PDF=${prefix}/bin/texi2pdf
575
576    # see https://lists.macosforge.org/pipermail/macports-dev/2016-January/032293.html
577    depends_build-append \
578        port:texlive-basic \
579        port:texlive-latex
580
581    # see #51132
582    depends_build-append \
583        port:texlive-fonts-recommended
584
585    configure.args-replace --disable-docs --enable-docs
586}
587default_variants-append +docs
588
589# GraphicsMagick and octave need to be built with the same C++ standard library
590# or else undefined symbols:
591#    "Magick::Image::ping(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)"
592set magickConflict {}
593set magickDefault yes
594if {${configure.cxx_stdlib} ne "libstdc++"} {
595    foreach gccVar ${compilers.gcc_variants} {
596        if {[variant_exists ${gccVar}] } {
597            lappend magickConflict ${gccVar}
598
599            if {[variant_isset ${gccVar}] } {
600                set magickDefault no
601            }
602        }
603    }
604}
605eval "variant graphicsmagick description {use GraphicsMagick for image I/O} conflicts ${magickConflict} {
606    depends_lib-append port:GraphicsMagick
607    configure.args-replace --without-magick --with-magick=GraphicsMagick
608}"
609if {${magickDefault}} {
610    default_variants-append +graphicsmagick
611}
612
613if { ${subport} eq "octave-devel-rc" || ${subport} eq "octave-devel-release" } {
614    # remove architecture flags from header file
615    if { [variant_exists universal] && [variant_isset universal] } {
616        merger-post-destroot {
617            foreach arch ${universal_archs_to_use} {
618                set hfile ${destroot}-${arch}${prefix}/include/octave-${version}/octave/oct-conf.h
619                reinplace "s:-arch ${arch}::g"   ${hfile}
620                reinplace {s:-m32::g}                ${hfile}
621                reinplace {s:-m64::g}                ${hfile}
622            }
623        }
624    } else {
625        post-destroot {
626            set hfile ${destroot}${prefix}/include/octave-${version}/octave/oct-conf.h
627            reinplace "s:-arch ${build_arch}::g" ${hfile}
628            reinplace {s:-m32::g}                ${hfile}
629            reinplace {s:-m64::g}                ${hfile}
630        }
631    }
632}
633
634# remove or rename conflicting files
635post-destroot {
636    foreach bin {mkoctfile octave octave-cli octave-config} {
637        # delete since just a link to versioned name
638        file delete ${destroot}${prefix}/bin/${bin}
639
640        if { [variant_isset docs] } {
641            # put version number in man file to avoid conflict
642            move ${destroot}${prefix}/share/man/man1/${bin}.1 ${destroot}${prefix}/share/man/man1/${bin}-${version}.1
643        }
644    }
645
646    # put any startup commands in ${destroot}${prefix}/share/octave/${version}/m/startup/octaverc
647    # see https://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html
648    file delete ${destroot}${prefix}/share/octave/site/m/startup/octaverc
649
650    # move appdata and icons into a versioned directory
651    xinstall -d -m 0755 ${destroot}${prefix}/share/octave/${version}/appdata
652    move \
653        ${destroot}${prefix}/share/appdata/www.octave.org-octave.appdata.xml \
654        ${destroot}${prefix}/share/octave/${version}/appdata/
655    foreach num {16 22 24 32 48 64 128 256 512} {
656        xinstall -d -m 0755 -p ${destroot}${prefix}/share/octave/${version}/icons/hicolor/${num}x${num}/apps
657        move \
658            ${destroot}${prefix}/share/icons/hicolor/${num}x${num}/apps/octave.png \
659            ${destroot}${prefix}/share/octave/${version}/icons/hicolor/${num}x${num}/apps/octave.png
660    }
661    xinstall -d -m 0755 -p ${destroot}${prefix}/share/octave/${version}/icons/hicolor/scalable/apps
662    move \
663        ${destroot}${prefix}/share/icons/hicolor/scalable/apps/octave.svg \
664        ${destroot}${prefix}/share/octave/${version}/icons/hicolor/scalable/apps/octave.svg
665}
666
667test.run    yes
668test.target check
669
670livecheck.type    regexm
671livecheck.url     http://hg.savannah.gnu.org/hgweb/octave/tags
672livecheck.version ${hg.tag}
Note: See TracBrowser for help on using the repository browser.