X.Org builder: always autoPropagate buildInputs

svn path=/nixpkgs/branches/stdenv-updates/; revision=9823
This commit is contained in:
Yury G. Kudryashov 2007-12-01 20:05:42 +00:00
parent c116932a7e
commit 95f5f51bae

View file

@ -4,11 +4,13 @@ source $stdenv/setup
# After installation, automatically add all "Requires" fields in the
# pkgconfig files (*.pc) to the propagated build inputs.
origPostInstall=$postInstall
postInstall=postInstall
postInstall() {
if test -n "$origPostInstall"; then eval "$origPostInstall"; fi
if test -n "$postInstall"; then
postInstall="$postInstall; autoPropagateBuildInputs"
else
postInstall=autoPropagateBuildInputs
fi
autoPropagateBuildInputs() {
local r p requires
requires=$(grep "Requires:" $out/lib/pkgconfig/*.pc | \
sed "s/Requires://" | sed "s/,/ /g")