[103118] trunk/dports/devel

and.damore at macports.org and.damore at macports.org
Fri Feb 15 09:05:11 PST 2013


Revision: 103118
          https://trac.macports.org/changeset/103118
Author:   and.damore at macports.org
Date:     2013-02-15 09:05:11 -0800 (Fri, 15 Feb 2013)
Log Message:
-----------
new port: ninka, source code license identification tool

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

Added: trunk/dports/devel/ninka/Portfile
===================================================================
--- trunk/dports/devel/ninka/Portfile	                        (rev 0)
+++ trunk/dports/devel/ninka/Portfile	2013-02-15 17:05:11 UTC (rev 103118)
@@ -0,0 +1,51 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+
+name                ninka
+version             1.0-pre2
+categories          devel
+platforms           darwin
+license             GPL-3
+maintainers         and.damore openmaintainer
+description         license identification tool
+long_description    \
+    Ninka is a lightweight license identification tool for source code. It is \
+    sentence-based, and provides a simple way to identify open source licenses in a \
+    source code file. It is capable of identifying several dozen different licenses \
+    (and their variations)
+homepage            http://ninka.turingmachine.org
+master_sites        http://ninka.turingmachine.org/download
+depends_lib         bin:/bin/perl:perl5.12
+use_bzip2           yes
+supported_archs     noarch
+checksums           rmd160  856573164bb105abf43a0c0140550447a3be3db0 \
+                    sha256  df6d4c7efe173fca70efe019deb21bf7b32a969a662cf6880c17aaba9a7144ce
+patchfiles          patch-ninka_pl.diff
+post-patch {
+    reinplace "s|%%PREFIX%%|${prefix}/share/${name}|" ${worksrcpath}/ninka.pl
+}
+
+use_configure       no
+build {}
+destroot {
+    xinstall -m 755 ${worksrcpath}/ninka.pl ${destroot}/${prefix}/bin/ninka
+    set directoriesToCopy [list comments extComments filter matcher senttok splitter]
+    foreach directory ${directoriesToCopy} {
+        xinstall -d   -m 755 ${destroot}${prefix}/share/${name}/${directory}
+        eval xinstall -m 644 [glob ${worksrcpath}/${directory}/*] ${destroot}${prefix}/share/${name}/${directory}
+    }
+    
+    foreach aFile [glob ${destroot}${prefix}/share/${name}/*/*.pl] {
+        file attributes $aFile -permissions 755
+    }
+
+    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+    xinstall    -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name} 
+    
+    move ${destroot}${prefix}/share/${name}/comments/README ${destroot}${prefix}/share/doc/${name}/README-comments
+    move ${destroot}${prefix}/share/${name}/splitter/README ${destroot}${prefix}/share/doc/${name}/README-splitter
+    file attributes ${destroot}${prefix}/share/doc/${name}/README-comments -permissions 644
+    file attributes ${destroot}${prefix}/share/doc/${name}/README-splitter -permissions 644
+}


Property changes on: trunk/dports/devel/ninka/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: 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	2013-02-15 17:05:11 UTC (rev 103118)
@@ -0,0 +1,16 @@
+--- 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 = "%%PREFIX%%";
+ 
+ 
+ my $force = exists $opts{f};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130215/6a7bde09/attachment.html>


More information about the macports-changes mailing list