aboutsummaryrefslogtreecommitdiff
path: root/devel/ccache
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-03-06 17:50:14 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-03-06 17:50:14 +0000
commit8ed6507869ad25f0bdba14441a1091de5ac6c2a5 (patch)
treec23dd0f0bfc5cecc8856017924ce8036014121f4 /devel/ccache
parent218284e87a17a5a81efb3751735902edfbb3d647 (diff)
downloadports-8ed6507869ad25f0bdba14441a1091de5ac6c2a5.tar.gz
ports-8ed6507869ad25f0bdba14441a1091de5ac6c2a5.zip
Notes
Diffstat (limited to 'devel/ccache')
-rw-r--r--devel/ccache/Makefile1
-rw-r--r--devel/ccache/files/ccache-update-links.sh.in16
2 files changed, 17 insertions, 0 deletions
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile
index e432b965f618..c4506720dded 100644
--- a/devel/ccache/Makefile
+++ b/devel/ccache/Makefile
@@ -3,6 +3,7 @@
PORTNAME= ccache
PORTVERSION= 3.3.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.samba.org/ftp/ccache/ \
LOCAL/bdrewery
diff --git a/devel/ccache/files/ccache-update-links.sh.in b/devel/ccache/files/ccache-update-links.sh.in
index ce49ce718907..233a4748a5dd 100644
--- a/devel/ccache/files/ccache-update-links.sh.in
+++ b/devel/ccache/files/ccache-update-links.sh.in
@@ -29,6 +29,22 @@ in
;;
esac
+strip_path() {
+ local IFS=":"
+ local path
+ set -- ${PATH}
+ while [ $# -gt 0 ]; do
+ if ! [ "${1}" = "${PREFIX}/libexec/ccache" ]; then
+ path="${path}${path:+:}${1}"
+ fi
+ shift
+ done
+ echo "${path}"
+}
+
+# Remove ccache wrappers from PATH
+PATH=$(strip_path)
+
# create compiler links
for comp in ${CCACHE_COMPILERS}
do