[142452] trunk/dports/devel/ninka

ryandesign at macports.org ryandesign at macports.org
Sat Dec 12 05:49:06 PST 2015


Revision: 142452
          https://trac.macports.org/changeset/142452
Author:   ryandesign at macports.org
Date:     2015-11-12 01:27:39 -0800 (Thu, 12 Nov 2015)
Log Message:
-----------
ninka: update to 1.3, now licensed GPL-2+; take over as maintainer

Modified Paths:
--------------
    trunk/dports/devel/ninka/Portfile

Added Paths:
-----------
    trunk/dports/devel/ninka/files/patch-ninka.pl.diff

Removed Paths:
-------------
    trunk/dports/devel/ninka/files/patch-ninka_pl.diff

Modified: trunk/dports/devel/ninka/Portfile
===================================================================
--- trunk/dports/devel/ninka/Portfile	2015-11-12 08:51:47 UTC (rev 142451)
+++ trunk/dports/devel/ninka/Portfile	2015-11-12 09:27:39 UTC (rev 142452)
@@ -4,12 +4,12 @@
 PortSystem          1.0
 
 name                ninka
-version             1.0-pre2
-revision            1
+version             1.3
 categories          devel
 platforms           darwin
-license             GPL-3
-maintainers         nomaintainer
+maintainers         ryandesign openmaintainer
+license             GPL-2+
+
 description         license identification tool
 long_description    \
     Ninka is a lightweight license identification tool for source code. It is \
@@ -21,13 +21,26 @@
 depends_lib         bin:perl:perl5
 use_bzip2           yes
 supported_archs     noarch
-checksums           rmd160  856573164bb105abf43a0c0140550447a3be3db0 \
-                    sha256  df6d4c7efe173fca70efe019deb21bf7b32a969a662cf6880c17aaba9a7144ce
 
+checksums           rmd160  84925c82173d54e036b76a6639d018055a033b5c \
+                    sha256  fb9c17bcea2c1c2f77ae0adfe1a95adc7778c55041249fba89f2ad5fb75374fb
+
+post-extract {
+    # Fix incorrect permissions in distfile, and remove backup files that
+    # were left in the distfile.
+    fs-traverse item ${workpath} {
+        if {[string index ${item} end] eq "~"} {
+            delete ${item}
+        } else {
+            file attributes ${item} -permissions a+r
+        }
+    }
+}
+
 set datadir         ${prefix}/share/${name}
 set docdir          ${prefix}/share/doc/${name}
 
-patchfiles          patch-ninka_pl.diff
+patchfiles          patch-ninka.pl.diff
 post-patch {
     reinplace "s|%%DATADIR%%|${datadir}|" ${worksrcpath}/ninka.pl
 }
@@ -35,22 +48,14 @@
 use_configure       no
 build {}
 destroot {
-    xinstall -m 755 ${worksrcpath}/ninka.pl ${destroot}${prefix}/bin/ninka
+    xinstall ${worksrcpath}/ninka.pl ${destroot}${prefix}/bin/ninka
+
+    xinstall -d ${destroot}${datadir}
     set directoriesToCopy [list comments extComments filter matcher senttok splitter]
     foreach directory ${directoriesToCopy} {
-        xinstall -d   -m 755 ${destroot}${datadir}/${directory}
-        eval xinstall -m 644 [glob ${worksrcpath}/${directory}/*] ${destroot}${datadir}/${directory}
+        copy ${worksrcpath}/${directory} ${destroot}${datadir}
     }
-    
-    foreach aFile [glob ${destroot}${datadir}/*/*.pl] {
-        file attributes $aFile -permissions 0755
-    }
 
-    xinstall -d -m 755 ${destroot}${docdir}
-    xinstall    -m 644 ${worksrcpath}/README ${destroot}${docdir}
-    
-    move ${destroot}${datadir}/comments/README ${destroot}${docdir}/README-comments
-    move ${destroot}${datadir}/splitter/README ${destroot}${docdir}/README-splitter
-    file attributes ${destroot}${docdir}/README-comments -permissions 644
-    file attributes ${destroot}${docdir}/README-splitter -permissions 644
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} ChangeLog README.txt ${destroot}${docdir}
 }

Copied: trunk/dports/devel/ninka/files/patch-ninka.pl.diff (from rev 142451, trunk/dports/devel/ninka/files/patch-ninka_pl.diff)
===================================================================
--- trunk/dports/devel/ninka/files/patch-ninka.pl.diff	                        (rev 0)
+++ trunk/dports/devel/ninka/files/patch-ninka.pl.diff	2015-11-12 09:27:39 UTC (rev 142452)
@@ -0,0 +1,15 @@
+--- ninka.pl.orig	2015-05-11 22:40:56.000000000 -0500
++++ ninka.pl	2015-11-12 02:56:22.000000000 -0600
+@@ -56,11 +56,7 @@
+ my $delete = exists $opts{d};
+ #$delete = 1;
+ 
+-my $path = dirname($0);
+-
+-if ($path eq "") {
+-    $path = "./";
+-}
++my $path = "%%DATADIR%%";
+ 
+ my $force = exists $opts{f};
+ my $forceGood = exists $opts{G};

Deleted: trunk/dports/devel/ninka/files/patch-ninka_pl.diff
===================================================================
--- trunk/dports/devel/ninka/files/patch-ninka_pl.diff	2015-11-12 08:51:47 UTC (rev 142451)
+++ trunk/dports/devel/ninka/files/patch-ninka_pl.diff	2015-11-12 09:27:39 UTC (rev 142452)
@@ -1,16 +0,0 @@
---- ninka.pl.orig	2013-02-15 16:41:58.000000000 +0100
-+++ ninka.pl	2013-02-15 16:42:24.000000000 +0100
-@@ -53,12 +53,7 @@
- my $delete = exists $opts{d};
- #$delete = 1;
- 
--my $path = $0;
--
--$path =~ s/\/+[^\/]+$//;
--if ($path eq "") {
--    $path = "./";
--}
-+my $path = "%%DATADIR%%";
- 
- 
- my $force = exists $opts{f};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/9a83fac9/attachment.html>


More information about the macports-changes mailing list