ports/opt (3.5): clang-distcc-bindings: initial import
commit 6aaa53dc64216105827e217ead32f1ddd62147e5 Author: Danny Rawlins <monster.romster@gmail.com> Date: Thu Feb 21 22:12:11 2019 +1100 clang-distcc-bindings: initial import diff --git a/clang-distcc-bindings/.footprint b/clang-distcc-bindings/.footprint new file mode 100644 index 000000000..68f5f0d8e --- /dev/null +++ b/clang-distcc-bindings/.footprint @@ -0,0 +1,6 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/distcc/ +lrwxrwxrwx root/root usr/lib/distcc/clang -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/clang++ -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/clang-7.0 -> ../../bin/distcc diff --git a/clang-distcc-bindings/.signature b/clang-distcc-bindings/.signature new file mode 100644 index 000000000..0edaf971e --- /dev/null +++ b/clang-distcc-bindings/.signature @@ -0,0 +1,4 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/cBbDcDlI05MavdWG9qu8Vho2LCsc3dVmNPM2Csf2Q1+uYGKdKVS5g7D09iPPizu7F4TRxiqABz5x8NU3ldYpAs= +SHA256 (Pkgfile) = b4f8df9ca6bff084e1cdec085f8de9cd57b5b3688ec206660008bde10f57877e +SHA256 (.footprint) = 6c9d835c5b3735430033ca6db1b1e579911a4e5e0fcdf9a24fc8922817f1576d diff --git a/clang-distcc-bindings/Pkgfile b/clang-distcc-bindings/Pkgfile new file mode 100644 index 000000000..f2f4d8eef --- /dev/null +++ b/clang-distcc-bindings/Pkgfile @@ -0,0 +1,24 @@ +# Description: Masquerade directory to use distcc with clang. +# URL: http://gcc.gnu.org/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: clang distcc + +name=clang-distcc-bindings +version=1 +release=2 +source=() + +build() { + install -d $PKG/usr/lib/distcc + + local clang="$(clang++ -v 2>&1 | grep version | sed 's/.*version \([0-9]*.[0-9]*\).[0-9]* .*/\1/g')" + + if [ -z $clang ]; then + echo 'Failed to find clang version' + exit 1 + fi + + ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang + ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang-$clang + ln -s ../../bin/distcc $PKG/usr/lib/distcc/clang++ +}
participants (1)
-
crux@crux.nu