Ignore:
Timestamp:
Jan 18, 2013, 9:59:57 PM (7 years ago)
Author:
and.damore@…
Message:

octave-1.0 portgroup: relying on octave's builtin pkg manager for building each package's tarball and making it available to the user as package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/octave-1.0.tcl

    r101750 r101770  
    5959    # octave is not universal
    6060    universal_variant           no
     61    use_configure               no
    6162
    6263    livecheck.type              regex
     
    6566}
    6667
    67 post-destroot {
    68     if {[file exists ${destroot}${prefix}/share/octave/octave_packages]} {
    69         move ${destroot}${prefix}/share/octave/octave_packages ${destroot}${prefix}/share/octave/octave_packages_${name}
    70     }
     68extract {
     69    xinstall -d -m 755 ${worksrcpath}
     70}
     71
     72build {
     73    system "${prefix}/bin/octave -q -f --eval 'pkg build -verbose -nodeps ${worksrcpath} ${distpath}/${distfiles}'"
     74}
     75
     76destroot.keepdirs   ${destroot}${prefix}/lib/octave/packages \
     77                    ${destroot}${prefix}/share/octave/packages
     78
     79pre-destroot {
     80    xinstall -d -m 755 ${destroot}${prefix}/lib/octave/packages
     81    xinstall -d -m 755 ${destroot}${prefix}/share/octave/packages
     82}
     83
     84destroot {
     85    xinstall    -m 644 ${worksrcpath}/${distname}.tar.gz ${destroot}${prefix}/share/octave/${octave.module}.tar.gz
     86}
     87
     88post-deactivate {
     89    system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg uninstall ${octave.module}'"
     90    system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg rebuild'"
    7191}
    7292
    7393post-activate {
    74     system "${prefix}/bin/octave --eval \"pkg rebuild\""
     94    system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg install -verbose -global ${prefix}/share/octave/${octave.module}.tar.gz'"
     95    system "${prefix}/bin/octave -q -f --eval 'pkg prefix ${prefix}/share/octave/packages ${prefix}/lib/octave/packages; pkg rebuild'"
    7596}
Note: See TracChangeset for help on using the changeset viewer.