5 |
5 |
|
6 |
6 |
inherit toolchain-funcs epatch
|
7 |
7 |
|
|
8 |
# from 10.8
|
8 |
9 |
MISC_VER=31
|
9 |
|
SHELL_VER=162
|
|
10 |
SHELL_VER=170
|
|
11 |
# from 10.7.4
|
10 |
12 |
DEV_VER=55
|
|
13 |
MD_VER=147 # 148 in 10.8 has no md, bug #428530
|
11 |
14 |
|
12 |
|
DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Lion 10.7"
|
|
15 |
DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Mountain
|
|
16 |
Lion 10.8"
|
13 |
17 |
HOMEPAGE="http://www.opensource.apple.com/"
|
14 |
18 |
SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz
|
15 |
19 |
http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz
|
16 |
|
http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz"
|
|
20 |
http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz
|
|
21 |
http://www.opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.c?txt -> adv_cmds-md-${MD_VER}.c
|
|
22 |
http://www.opensource.apple.com/source/adv_cmds/adv_cmds-${MD_VER}/md/md.1?txt -> adv_cmds-md-${MD_VER}.1"
|
17 |
23 |
|
18 |
24 |
LICENSE="BSD"
|
19 |
25 |
SLOT="0"
|
... | ... | |
23 |
29 |
S=${WORKDIR}
|
24 |
30 |
|
25 |
31 |
src_prepare() {
|
26 |
|
cd "${S}"/shell_cmds-${SHELL_VER}
|
|
32 |
cd "${S}"/shell_cmds-${SHELL_VER} || die
|
27 |
33 |
epatch "${FILESDIR}"/${PN}-6-w64.patch
|
28 |
34 |
|
|
35 |
mkdir -p "${S}"/adv_cmds-${MD_VER}/md || die
|
|
36 |
cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.c \
|
|
37 |
"${S}"/adv_cmds-${MD_VER}/md/md.c || die
|
|
38 |
cp "${DISTDIR}"/adv_cmds-md-${MD_VER}.1 \
|
|
39 |
"${S}"/adv_cmds-${MD_VER}/md/md.1 || die
|
|
40 |
|
29 |
41 |
eapply_user
|
30 |
42 |
}
|
31 |
43 |
|
... | ... | |
63 |
75 |
TS=${S}/shell_cmds-${SHELL_VER}
|
64 |
76 |
# only pick those tools not provided by corepatch, findutils
|
65 |
77 |
for t in \
|
66 |
|
alias apply getopt hostname jot kill killall \
|
|
78 |
apply getopt hostname jot kill killall \
|
67 |
79 |
lastcomm renice script shlock time whereis;
|
68 |
80 |
do
|
69 |
81 |
echo "in ${TS}/${t}:"
|
... | ... | |
90 |
102 |
echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c
|
91 |
103 |
$(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t"
|
92 |
104 |
done
|
|
105 |
|
|
106 |
TS=${S}/adv_cmds-${MD_VER}
|
|
107 |
for t in md ; do
|
|
108 |
echo "in ${TS}/${t}:"
|
|
109 |
cd "${TS}/${t}" || die
|
|
110 |
echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c
|
|
111 |
$(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t"
|
|
112 |
done
|
93 |
113 |
}
|
94 |
114 |
|
95 |
115 |
src_install() {
|
... | ... | |
109 |
129 |
|
110 |
130 |
TS=${S}/shell_cmds-${SHELL_VER}
|
111 |
131 |
for t in \
|
112 |
|
alias apply getopt jot killall lastcomm \
|
|
132 |
apply getopt jot killall lastcomm \
|
113 |
133 |
renice script shlock time w whereis;
|
114 |
134 |
do
|
115 |
135 |
cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
|
... | ... | |
128 |
148 |
cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
|
129 |
149 |
doman "${TS}/${t}/${t}.1"
|
130 |
150 |
done
|
|
151 |
|
|
152 |
TS=${S}/adv_cmds-${MD_VER}
|
|
153 |
for t in md ; do
|
|
154 |
cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
|
|
155 |
doman "${TS}/${t}/${t}.1"
|
|
156 |
done
|
131 |
157 |
}
|