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

Collapse All | Expand All

(-)a/dev-util/plan9port/plan9port-20140306.ebuild (-11 / +12 lines)
Lines 20-26 RDEPEND="${DEPEND}" Link Here
20
20
21
S="${WORKDIR}/${PN}"
21
S="${WORKDIR}/${PN}"
22
22
23
PLAN9=/usr/lib/plan9
23
PLAN9="/usr/lib/plan9"
24
EPLAN9="${EPREFIX%/}${PLAN9}"
24
QA_MULTILIB_PATHS="${PLAN9}/.*/.*"
25
QA_MULTILIB_PATHS="${PLAN9}/.*/.*"
25
26
26
src_prepare() {
27
src_prepare() {
Lines 29-35 src_prepare() { Link Here
29
	# Fix paths, done in place of ./INSTALL -c
30
	# Fix paths, done in place of ./INSTALL -c
30
	einfo "Fixing hard-coded /usr/local/plan9 paths"
31
	einfo "Fixing hard-coded /usr/local/plan9 paths"
31
	grep  --null -l -r '/usr/local/plan9' |
32
	grep  --null -l -r '/usr/local/plan9' |
32
	xargs --null sed -i "s!/usr/local/plan9!${PLAN9}!g"
33
	xargs --null sed -i "s!/usr/local/plan9!${EPLAN9}!g"
33
}
34
}
34
35
35
src_configure() {
36
src_configure() {
Lines 51-81 src_install() { Link Here
51
	dodir "${PLAN9}"
52
	dodir "${PLAN9}"
52
53
53
	# P9P's man does not handle compression
54
	# P9P's man does not handle compression
54
	docompress -x $PLAN9/man
55
	docompress -x "${PLAN9}/man"
55
56
56
	# do* plays with the executable bit, and we should not modify them
57
	# do* plays with the executable bit, and we should not modify them
57
	cp -a * "${D}/${PLAN9}"
58
	cp -a * "${D}${EPLAN9}"
58
59
59
	# build the environment variables and install them in env.d
60
	# build the environment variables and install them in env.d
60
	cat > "${T}/30plan9" <<-EOF
61
	cat > "${T}/30plan9" <<-EOF
61
		PLAN9="${PLAN9}"
62
		PLAN9="${EPLAN9}"
62
		PATH="${PLAN9}/bin"
63
		PATH="${EPLAN9}/bin"
63
		ROOTPATH="${PLAN9}/bin"
64
		ROOTPATH="${EPLAN9}/bin"
64
		MANPATH="${PLAN9}/man"
65
		MANPATH="${EPLAN9}/man"
65
	EOF
66
	EOF
66
	doenvd "${T}/30plan9"
67
	doenvd "${T}/30plan9"
67
}
68
}
68
69
69
pkg_postinst() {
70
pkg_postinst() {
70
	elog "Plan 9 from User Space has been successfully installed into"
71
	elog "Plan 9 from User Space has been successfully installed into"
71
	elog "${PLAN9}. Your PLAN9 and PATH environment variables have"
72
	elog "${EPLAN9}. Your PLAN9 and PATH environment variables have"
72
	elog "also been appropriately set, please use env-update and"
73
	elog "also been appropriately set, please use env-update and"
73
	elog "source /etc/profile to bring that into immediate effect."
74
	elog "source /etc/profile to bring that into immediate effect."
74
	elog
75
	elog
75
	elog "Please note that ${PLAN9}/bin has been appended to the"
76
	elog "Please note that ${EPLAN9}/bin has been appended to the"
76
	elog "*end* or your PATH to prevent conflicts. To use the Plan9"
77
	elog "*end* or your PATH to prevent conflicts. To use the Plan9"
77
	elog "versions of common UNIX tools, use the absolute path:"
78
	elog "versions of common UNIX tools, use the absolute path:"
78
	elog "${PLAN9}/bin or the 9 command (eg: 9 troff)"
79
	elog "${EPLAN9}/bin or the 9 command (eg: 9 troff)"
79
	elog
80
	elog
80
	elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port."
81
	elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port."
81
}
82
}

Return to bug 567260