source: trunk/dports/sysutils/kernel-tools/Portfile @ 28206

Last change on this file since 28206 was 28206, checked in by sfiera@…, 13 years ago

Fixing port lint, obscuring maintainer addresses on my ports, plus a couple of unmaintained ones I was last to commit to.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 28206 2007-08-24 17:24:55Z sfiera@macports.org $
2
3PortSystem        1.0
4
5name              kernel-tools
6version           8J2135
7categories        sysutils
8maintainers       sfiera
9description       Tools required to build xnu for Intel
10long_description \
11  Installs a number of tools needed to build the xnu kernel on Intel, \
12  including (but not limited to) relpath and seg_hack
13
14homepage          http://kernel.macosforge.org/
15master_sites      http://www.macosforge.org/files
16distfiles         kernel-tools-${version}.root.tar.gz
17checksums         md5 e47e75b43211a9094875d60502cc4e35
18platforms         darwin
19
20use_configure     no
21build {}
22
23pre-extract {
24  xinstall -d ${worksrcpath}
25}
26extract.dir ${worksrcpath}
27
28destroot {
29  cd ${worksrcpath}/usr/local
30  foreach top {include lib man} {
31    fs-traverse file ${top} {
32      switch -exact [file type ${file}] {
33        file      { xinstall -m 644 ${file} ${destroot}${prefix}/${file} }
34        directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
35        link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
36      }
37    }
38  }
39  foreach top {bin libexec} {
40    fs-traverse file ${top} {
41      switch -exact [file type ${file}] {
42        file      { xinstall -m 755 ${file} ${destroot}${prefix}/${file} }
43        directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
44        link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
45      }
46    }
47  }
48}
Note: See TracBrowser for help on using the repository browser.