diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2018-09-07 19:27:30 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2018-09-07 19:27:50 +1000 |
commit | 89be5e34b2e0fcced48a11033cc65da27b91bd65 (patch) | |
tree | 88d3cdacb8b5eff5cb777b7481bd31af021a0f7c | |
parent | 5142949255bfd12bbe42ae547f5b64f4b8523d11 (diff) | |
download | opt-89be5e34b2e0fcced48a11033cc65da27b91bd65.tar.gz opt-89be5e34b2e0fcced48a11033cc65da27b91bd65.tar.xz |
clang-ccache-bindings: initial import
-rw-r--r-- | clang-ccache-bindings/.footprint | 6 | ||||
-rw-r--r-- | clang-ccache-bindings/.signature | 4 | ||||
-rw-r--r-- | clang-ccache-bindings/Pkgfile | 25 |
3 files changed, 35 insertions, 0 deletions
diff --git a/clang-ccache-bindings/.footprint b/clang-ccache-bindings/.footprint new file mode 100644 index 000000000..e61c34890 --- /dev/null +++ b/clang-ccache-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/ccache/ +lrwxrwxrwx root/root usr/lib/ccache/clang -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/clang++ -> ../../bin/ccache +lrwxrwxrwx root/root usr/lib/ccache/clang-6.0 -> ../../bin/ccache diff --git a/clang-ccache-bindings/.signature b/clang-ccache-bindings/.signature new file mode 100644 index 000000000..fe750acb9 --- /dev/null +++ b/clang-ccache-bindings/.signature @@ -0,0 +1,4 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/Rok0+01RjJE0zXat2s56UFDFZAdH0Wn+B6pLfIaBBMDO+/iIXEu2lohoGSaZgFeEJes2hi7pJQjxO7kqHkaWA8= +SHA256 (Pkgfile) = dc927d2617b653fb4478a46fffa028a2e4e7362da22c43674ae964593b0a1781 +SHA256 (.footprint) = aa835816201492c0213a41d604e403e5b0a017dbc6817826ec6974132eaa1c13 diff --git a/clang-ccache-bindings/Pkgfile b/clang-ccache-bindings/Pkgfile new file mode 100644 index 000000000..da1f03261 --- /dev/null +++ b/clang-ccache-bindings/Pkgfile @@ -0,0 +1,25 @@ +# Description: Masquerade directory to use ccache with clang. +# URL: http://llvm.org/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: ccache clang + +name=clang-ccache-bindings +version=1 +release=1 +source=() + +build() { + install -d $PKG/usr/lib/ccache + + 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/ccache $PKG/usr/lib/ccache/clang + ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang-$clang + ln -s ../../bin/ccache $PKG/usr/lib/ccache/clang++ +} + |