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

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

Add missing Id keyword header at top of portfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 24955 2007-05-09 04:27:22Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name              kernel-tools
6version           8J2135
7categories        sysutils
8maintainers       sfiera@macports.org
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
13homepage          http://kernel.macosforge.org/
14master_sites      http://www.macosforge.org/files
15distfiles         kernel-tools-${version}.root.tar.gz
16checksums         md5 e47e75b43211a9094875d60502cc4e35
17platforms         darwin
18
19use_configure     no
20build {}
21
22pre-extract {
23  xinstall -d ${worksrcpath}
24}
25extract.dir ${worksrcpath}
26
27destroot {
28  cd ${worksrcpath}/usr/local
29  foreach top {include lib man} {
30    fs-traverse file ${top} {
31      switch -exact [file type ${file}] {
32        file      { xinstall -m 644 ${file} ${destroot}${prefix}/${file} }
33        directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
34        link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
35      }
36    }
37  }
38  foreach top {bin libexec} {
39    fs-traverse file ${top} {
40      switch -exact [file type ${file}] {
41        file      { xinstall -m 755 ${file} ${destroot}${prefix}/${file} }
42        directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
43        link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
44      }
45    }
46  }
47}
Note: See TracBrowser for help on using the repository browser.