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

Collapse All | Expand All

(-)gawk-4.0.1.ebuild.orig (-5 / +16 lines)
Lines 46-56 Link Here
46
		dodir /bin
46
		dodir /bin
47
		mv "${ED}"/usr/bin/gawk "${ED}"/bin/ || die
47
		mv "${ED}"/usr/bin/gawk "${ED}"/bin/ || die
48
		dosym /bin/gawk /usr/bin/gawk
48
		dosym /bin/gawk /usr/bin/gawk
49
50
		# Provide canonical `awk`
51
		dosym gawk /bin/awk
52
		dosym gawk /usr/bin/awk
53
		dosym gawk.1 /usr/share/man/man1/awk.1
54
	fi
49
	fi
55
50
56
	# Install headers
51
	# Install headers
Lines 63-65 Link Here
63
		newdoc ${x} ${x##*/}.${x%%/*}
58
		newdoc ${x} ${x##*/}.${x%%/*}
64
	done
59
	done
65
}
60
}
61
62
pkg_postinst() {
63
	# symlink creation here as the links do not belong to gawk, but to any awk
64
	if has_version eselect && has_version eselect-awk ; then
65
		eselect awk update ifunset
66
	else
67
		local l
68
		for l in /bin/awk /usr/bin/awk /usr/share/man/man1/awk.1 ; do
69
			[[ ! -e ${EROOT}${l} ]] && ln -s "g${l##*/}" "${EROOT}${l}"
70
		done
71
	fi
72
}
73
74
pkg_postrm() {
75
	has_version eselect && has_version eselect-awk && eselect awk update ifunset
76
}

Return to bug 426628