Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 196294 | Differences between
and this patch

Collapse All | Expand All

(-)sys-apps/baselayout-prefix/baselayout-prefix-1.12.5-r4.ebuild (-8 / +24 lines)
Lines 29-41 Link Here
29
	unpack ${A}
29
	unpack ${A}
30
30
31
	epatch "${FILESDIR}"/${P/-prefix/}-prefix.patch
31
	epatch "${FILESDIR}"/${P/-prefix/}-prefix.patch
32
	epatch "${FILESDIR}"/${P/-prefix/}-src.patch
33
	epatch "${FILESDIR}"/${P/-prefix/}-sh.patch
34
	# Next patch is to be applied on systems that don't have a pidof.
35
	if [[ ${CHOST} == *-darwin* ]]
36
	then
37
		epatch "${FILESDIR}"/${P/-prefix/}-pidof.patch
38
	fi
39
	# The consoletype application in this form will only work on Linux
40
	[[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/${P/-prefix/}-no-consoletype.patch
32
	cd "${S}"
41
	cd "${S}"
33
	eprefixify \
42
	eprefixify \
34
		etc/env.d/00basic \
43
		etc/env.d/00basic \
35
		etc/profile \
44
		etc/profile \
36
		sbin/env-update.sh \
45
		sbin/env-update.sh \
37
		sbin/functions.sh \
46
		sbin/functions.sh \
38
		sbin/runscript.sh
47
		sbin/runscript.sh \
48
		src/runscript.c \
49
		sbin/depscan.sh \
50
		sbin/rc-daemon.sh \
51
		sbin/rc-services.sh
39
	echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file"
52
	echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file"
40
}
53
}
41
54
Lines 45-55 Link Here
45
	[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}")
58
	[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}")
46
59
47
# doesn't compile on Darwin
60
# doesn't compile on Darwin
48
	#make -C "${S}"/src \
61
	make -C "${S}"/src \
49
	#	CC="$(tc-getCC)" \
62
		CC="$(tc-getCC)" \
50
	#	LD="$(tc-getCC) ${LDFLAGS}" \
63
		LD="$(tc-getCC) ${LDFLAGS}" \
51
	#	CFLAGS="${CFLAGS}" \
64
		CFLAGS="${CFLAGS}" \
52
	#	LIBDIR="${libdir}" || die
65
		LIBDIR="${libdir}" || die
53
}
66
}
54
67
55
src_install() {
68
src_install() {
Lines 106-113 Link Here
106
	[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}")
119
	[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}")
107
120
108
# doesn't compile on Darwin
121
# doesn't compile on Darwin
109
	#cd "${S}"/src
122
	cd "${S}"/src
110
	#make DESTDIR="${D}" LIBDIR="${libdir}" install || die
123
	make DESTDIR="${ED}" LIBDIR="${libdir}" install || die
124
125
	insinto ${rcscripts_dir}/sh
126
	doins "${S}"/sbin/rc-*
111
}
127
}
112
128
113
pkg_postinst() {
129
pkg_postinst() {

Return to bug 196294