ports/opt (3.2): ccache: clean up detecting for clang
commit ac5027742ad244559e88d7c907764bf70c233c35 Author: Danny Rawlins <monster.romster@gmail.com> Date: Sat Aug 20 13:58:16 2016 +1000 ccache: clean up detecting for clang diff --git a/ccache/Pkgfile b/ccache/Pkgfile index d892d8f..4c3538e 100644 --- a/ccache/Pkgfile +++ b/ccache/Pkgfile @@ -3,6 +3,7 @@ # Maintainer: Danny Rawlins, crux at romster dot me # Packager: Tilman Sauerbeck, tilman at crux dot nu # Depends on: zlib +# Optional: clang name=ccache version=3.2.7 @@ -18,10 +19,7 @@ build() { make DESTDIR=$PKG install install -d $PKG/usr/lib/$name - - if [ "$(prt-get isinst clang)" = 'package clang is installed' ]; then - local clang='clang clang++' - fi + prt-get isinst clang >/dev/null && local clang='clang clang++' for c in $clang cc gcc g++ cpp c++; do ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
participants (1)
-
crux@crux.nu