Changeset 142452


Ignore:
Timestamp:
Nov 12, 2015, 9:27:39 AM (2 years ago)
Author:
ryandesign@…
Message:

ninka: update to 1.3, now licensed GPL-2+; take over as maintainer

Location:
trunk/dports/devel/ninka
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/ninka/Portfile

    r114431 r142452  
    55
    66name                ninka
    7 version             1.0-pre2
    8 revision            1
     7version             1.3
    98categories          devel
    109platforms           darwin
    11 license             GPL-3
    12 maintainers         nomaintainer
     10maintainers         ryandesign openmaintainer
     11license             GPL-2+
     12
    1313description         license identification tool
    1414long_description    \
     
    2222use_bzip2           yes
    2323supported_archs     noarch
    24 checksums           rmd160  856573164bb105abf43a0c0140550447a3be3db0 \
    25                     sha256  df6d4c7efe173fca70efe019deb21bf7b32a969a662cf6880c17aaba9a7144ce
     24
     25checksums           rmd160  84925c82173d54e036b76a6639d018055a033b5c \
     26                    sha256  fb9c17bcea2c1c2f77ae0adfe1a95adc7778c55041249fba89f2ad5fb75374fb
     27
     28post-extract {
     29    # Fix incorrect permissions in distfile, and remove backup files that
     30    # were left in the distfile.
     31    fs-traverse item ${workpath} {
     32        if {[string index ${item} end] eq "~"} {
     33            delete ${item}
     34        } else {
     35            file attributes ${item} -permissions a+r
     36        }
     37    }
     38}
    2639
    2740set datadir         ${prefix}/share/${name}
    2841set docdir          ${prefix}/share/doc/${name}
    2942
    30 patchfiles          patch-ninka_pl.diff
     43patchfiles          patch-ninka.pl.diff
    3144post-patch {
    3245    reinplace "s|%%DATADIR%%|${datadir}|" ${worksrcpath}/ninka.pl
     
    3649build {}
    3750destroot {
    38     xinstall -m 755 ${worksrcpath}/ninka.pl ${destroot}${prefix}/bin/ninka
     51    xinstall ${worksrcpath}/ninka.pl ${destroot}${prefix}/bin/ninka
     52
     53    xinstall -d ${destroot}${datadir}
    3954    set directoriesToCopy [list comments extComments filter matcher senttok splitter]
    4055    foreach directory ${directoriesToCopy} {
    41         xinstall -d   -m 755 ${destroot}${datadir}/${directory}
    42         eval xinstall -m 644 [glob ${worksrcpath}/${directory}/*] ${destroot}${datadir}/${directory}
    43     }
    44    
    45     foreach aFile [glob ${destroot}${datadir}/*/*.pl] {
    46         file attributes $aFile -permissions 0755
     56        copy ${worksrcpath}/${directory} ${destroot}${datadir}
    4757    }
    4858
    49     xinstall -d -m 755 ${destroot}${docdir}
    50     xinstall    -m 644 ${worksrcpath}/README ${destroot}${docdir}
    51    
    52     move ${destroot}${datadir}/comments/README ${destroot}${docdir}/README-comments
    53     move ${destroot}${datadir}/splitter/README ${destroot}${docdir}/README-splitter
    54     file attributes ${destroot}${docdir}/README-comments -permissions 644
    55     file attributes ${destroot}${docdir}/README-splitter -permissions 644
     59    xinstall -d ${destroot}${docdir}
     60    xinstall -m 644 -W ${worksrcpath} ChangeLog README.txt ${destroot}${docdir}
    5661}
  • trunk/dports/devel/ninka/files/patch-ninka.pl.diff

    r142451 r142452  
    1 --- ninka.pl.orig       2013-02-15 16:41:58.000000000 +0100
    2 +++ ninka.pl    2013-02-15 16:42:24.000000000 +0100
    3 @@ -53,12 +53,7 @@
     1--- ninka.pl.orig       2015-05-11 22:40:56.000000000 -0500
     2+++ ninka.pl    2015-11-12 02:56:22.000000000 -0600
     3@@ -56,11 +56,7 @@
    44 my $delete = exists $opts{d};
    55 #$delete = 1;
    66 
    7 -my $path = $0;
     7-my $path = dirname($0);
    88-
    9 -$path =~ s/\/+[^\/]+$//;
    109-if ($path eq "") {
    1110-    $path = "./";
     
    1312+my $path = "%%DATADIR%%";
    1413 
    15  
    1614 my $force = exists $opts{f};
     15 my $forceGood = exists $opts{G};
Note: See TracChangeset for help on using the changeset viewer.