Commits

Ryan Schmidt authored b6160677dca
ninka: Fix for case-sensitive filesystems

Install README.TXT with the correct case.
No tags

devel/ninka/Portfile

Modified
1 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 2
3 3 PortSystem 1.0
4 4
5 5 name ninka
6 6 version 1.3
7 +revision 1
7 8 categories devel
8 9 platforms darwin
9 -maintainers ryandesign openmaintainer
10 +maintainers {ryandesign @ryandesign} openmaintainer
10 11 license GPL-2+
11 12
12 13 description license identification tool
13 14 long_description \
14 15 Ninka is a lightweight license identification tool for source code. It is \
15 16 sentence-based, and provides a simple way to identify open source licenses in a \
16 17 source code file. It is capable of identifying several dozen different licenses \
17 18 (and their variations)
18 19 homepage http://ninka.turingmachine.org
19 20 master_sites http://ninka.turingmachine.org/download
20 21 depends_lib bin:perl:perl5
21 22 use_bzip2 yes
22 23 supported_archs noarch
23 24
24 25 checksums rmd160 84925c82173d54e036b76a6639d018055a033b5c \
25 - sha256 fb9c17bcea2c1c2f77ae0adfe1a95adc7778c55041249fba89f2ad5fb75374fb
26 + sha256 fb9c17bcea2c1c2f77ae0adfe1a95adc7778c55041249fba89f2ad5fb75374fb \
27 + size 81062
26 28
27 29 post-extract {
28 30 # Fix incorrect permissions in distfile, and remove backup files that
29 31 # were left in the distfile.
30 32 fs-traverse item ${workpath} {
31 33 if {[string index ${item} end] eq "~"} {
32 34 delete ${item}
33 35 } else {
34 36 file attributes ${item} -permissions a+r
35 37 }
36 38 }
37 39 }
38 40
39 41 set datadir ${prefix}/share/${name}
40 -set docdir ${prefix}/share/doc/${name}
42 +set docdir ${prefix}/share/doc/${subport}
41 43
42 44 patchfiles patch-ninka.pl.diff
43 45 post-patch {
44 46 reinplace "s|%%DATADIR%%|${datadir}|" ${worksrcpath}/ninka.pl
45 47 }
46 48
47 49 use_configure no
48 50 build {}
49 51 destroot {
50 52 xinstall ${worksrcpath}/ninka.pl ${destroot}${prefix}/bin/ninka
51 53
52 54 xinstall -d ${destroot}${datadir}
53 55 set directoriesToCopy [list comments extComments filter matcher senttok splitter]
54 56 foreach directory ${directoriesToCopy} {
55 57 copy ${worksrcpath}/${directory} ${destroot}${datadir}
56 58 }
57 59
58 60 xinstall -d ${destroot}${docdir}
59 - xinstall -m 644 -W ${worksrcpath} ChangeLog README.txt ${destroot}${docdir}
61 + xinstall -m 0644 -W ${worksrcpath} ChangeLog README.TXT ${destroot}${docdir}
60 62 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut