Ticket #38104: ninka.diff
File ninka.diff, 2.8 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago) |
---|
-
files/patch-ninka_pl.diff
10 10 -if ($path eq "") { 11 11 - $path = "./"; 12 12 -} 13 +my $path = "%% PREFIX%%";13 +my $path = "%%DATADIR%%"; 14 14 15 15 16 16 my $force = exists $opts{f}; -
Portfile
22 22 supported_archs noarch 23 23 checksums rmd160 856573164bb105abf43a0c0140550447a3be3db0 \ 24 24 sha256 df6d4c7efe173fca70efe019deb21bf7b32a969a662cf6880c17aaba9a7144ce 25 26 set datadir ${prefix}/share/${name} 27 set docdir ${prefix}/share/doc/${name} 28 25 29 patchfiles patch-ninka_pl.diff 26 30 post-patch { 27 reinplace "s|%% PREFIX%%|${prefix}/share/${name}|" ${worksrcpath}/ninka.pl31 reinplace "s|%%DATADIR%%|${datadir}|" ${worksrcpath}/ninka.pl 28 32 } 29 33 30 34 use_configure no … … 33 37 xinstall -m 755 ${worksrcpath}/ninka.pl ${destroot}${prefix}/bin/ninka 34 38 set directoriesToCopy [list comments extComments filter matcher senttok splitter] 35 39 foreach directory ${directoriesToCopy} { 36 xinstall -d -m 755 ${destroot}${ prefix}/share/${name}/${directory}37 eval xinstall -m 644 [glob ${worksrcpath}/${directory}/*] ${destroot}${ prefix}/share/${name}/${directory}40 xinstall -d -m 755 ${destroot}${datadir}/${directory} 41 eval xinstall -m 644 [glob ${worksrcpath}/${directory}/*] ${destroot}${datadir}/${directory} 38 42 } 39 43 40 foreach aFile [glob ${destroot}${ prefix}/share/${name}/*/*.pl] {44 foreach aFile [glob ${destroot}${datadir}/*/*.pl] { 41 45 file attributes $aFile -permissions 0755 42 46 } 43 47 44 xinstall -d -m 755 ${destroot}${ prefix}/share/doc/${name}45 xinstall -m 644 ${worksrcpath}/README ${destroot}${ prefix}/share/doc/${name}48 xinstall -d -m 755 ${destroot}${docdir} 49 xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir} 46 50 47 move ${destroot}${ prefix}/share/${name}/comments/README ${destroot}${prefix}/share/doc/${name}/README-comments48 move ${destroot}${ prefix}/share/${name}/splitter/README ${destroot}${prefix}/share/doc/${name}/README-splitter49 file attributes ${destroot}${ prefix}/share/doc/${name}/README-comments -permissions 64450 file attributes ${destroot}${ prefix}/share/doc/${name}/README-splitter -permissions 64451 move ${destroot}${datadir}/comments/README ${destroot}${docdir}/README-comments 52 move ${destroot}${datadir}/splitter/README ${destroot}${docdir}/README-splitter 53 file attributes ${destroot}${docdir}/README-comments -permissions 644 54 file attributes ${destroot}${docdir}/README-splitter -permissions 644 51 55 }