most recent changes, diff for kernel-tools

Index: sysutils/kernel-tools/Portfile
--- sysutils/kernel-tools/Portfile (revision 31217)
+++ sysutils/kernel-tools/Portfile (revision 31218)
@@ -18,6 +18,8 @@
checksums md5 e47e75b43211a9094875d60502cc4e35
platforms darwin

+default_variants universal
+
use_configure no
build {}

@@ -27,22 +29,26 @@
extract.dir ${worksrcpath}

destroot {
- cd ${worksrcpath}/usr/local
foreach top {include lib man} {
- fs-traverse file ${top} {
+ fs-traverse file ${worksrcpath}/usr/local/${top} {
+ set dest [string range $file [string length $worksrcpath/usr/local] end]
+ if {$top == "man"} {
+ set dest share/$dest
+ }
switch -exact [file type ${file}] {
- file { xinstall -m 644 ${file} ${destroot}${prefix}/${file} }
- directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
- link { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
+ file { xinstall -m 644 ${file} ${destroot}${prefix}/${dest} }
+ directory { xinstall -d -m 755 ${destroot}${prefix}/${dest} }
+ link { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${dest}" }
}
}
}
foreach top {bin libexec} {
- fs-traverse file ${top} {
+ fs-traverse file ${worksrcpath}/usr/local/${top} {
+ set dest [string range $file [string length $worksrcpath/usr/local] end]
switch -exact [file type ${file}] {
- file { xinstall -m 755 ${file} ${destroot}${prefix}/${file} }
- directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
- link { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
+ file { xinstall -m 755 ${file} ${destroot}${prefix}/${dest} }
+ directory { xinstall -d -m 755 ${destroot}${prefix}/${dest} }
+ link { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${dest}" }
}
}
}