Lines 17-23
Link Here
|
17 |
DEPEND=">=sys-apps/portage-2.0.51" |
17 |
DEPEND=">=sys-apps/portage-2.0.51" |
18 |
RDEPEND=">=sys-libs/readline-5.0-r1 |
18 |
RDEPEND=">=sys-libs/readline-5.0-r1 |
19 |
>=app-shells/bash-3.1_p7 |
19 |
>=app-shells/bash-3.1_p7 |
20 |
>=sys-apps/coreutils-5.2.1" |
20 |
>=sys-apps/coreutils-5.2.1 |
|
|
21 |
ppc-macos? ( sys-process/pidof-bsd ) |
22 |
x86-macos? ( sys-process/pidof-bsd )" |
21 |
|
23 |
|
22 |
PROVIDE="virtual/baselayout" |
24 |
PROVIDE="virtual/baselayout" |
23 |
|
25 |
|
Lines 28-40
Link Here
|
28 |
|
30 |
|
29 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix.patch |
31 |
epatch "${FILESDIR}"/${P/-prefix/}-prefix.patch |
30 |
use prefix-chaining && epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining.patch |
32 |
use prefix-chaining && epatch "${FILESDIR}"/${P/-prefix/}-prefix-chaining.patch |
|
|
33 |
epatch "${FILESDIR}"/${P/-prefix/}-src.patch |
34 |
epatch "${FILESDIR}"/${P/-prefix/}-sh.patch |
35 |
# Next patch is to be applied on systems that don't have a pidof. |
36 |
epatch "${FILESDIR}"/${P/-prefix/}-pidof.patch |
37 |
# The consoletype application in this form will only work on Linux |
38 |
[[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/${P/-prefix/}-no-consoletype.patch |
31 |
cd "${S}" |
39 |
cd "${S}" |
32 |
eprefixify \ |
40 |
eprefixify \ |
33 |
etc/env.d/00basic \ |
41 |
etc/env.d/00basic \ |
34 |
etc/profile \ |
42 |
etc/profile \ |
35 |
sbin/env-update.sh \ |
43 |
sbin/env-update.sh \ |
36 |
sbin/functions.sh \ |
44 |
sbin/functions.sh \ |
37 |
sbin/runscript.sh |
45 |
sbin/runscript.sh \ |
|
|
46 |
src/runscript.c \ |
47 |
sbin/depscan.sh \ |
48 |
sbin/rc-daemon.sh \ |
49 |
sbin/rc-services.sh |
38 |
# add the host OS MANPATH |
50 |
# add the host OS MANPATH |
39 |
echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file" |
51 |
echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file" |
40 |
} |
52 |
} |
Lines 45-55
Link Here
|
45 |
[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
57 |
[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
46 |
|
58 |
|
47 |
# doesn't compile on Darwin |
59 |
# doesn't compile on Darwin |
48 |
#make -C "${S}"/src \ |
60 |
make -C "${S}"/src \ |
49 |
# CC="$(tc-getCC)" \ |
61 |
CC="$(tc-getCC)" \ |
50 |
# LD="$(tc-getCC) ${LDFLAGS}" \ |
62 |
LD="$(tc-getCC) ${LDFLAGS}" \ |
51 |
# CFLAGS="${CFLAGS}" \ |
63 |
CFLAGS="${CFLAGS}" \ |
52 |
# LIBDIR="${libdir}" || die |
64 |
LIBDIR="${libdir}" || die |
53 |
} |
65 |
} |
54 |
|
66 |
|
55 |
src_install() { |
67 |
src_install() { |
Lines 128-135
Link Here
|
128 |
[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
140 |
[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
129 |
|
141 |
|
130 |
# doesn't compile on Darwin |
142 |
# doesn't compile on Darwin |
131 |
#cd "${S}"/src |
143 |
cd "${S}"/src |
132 |
#make DESTDIR="${D}" LIBDIR="${libdir}" install || die |
144 |
make DESTDIR="${ED}" LIBDIR="${libdir}" install || die |
|
|
145 |
|
146 |
insinto ${rcscripts_dir}/sh |
147 |
doins "${S}"/sbin/rc-* |
133 |
} |
148 |
} |
134 |
|
149 |
|
135 |
pkg_postinst() { |
150 |
pkg_postinst() { |