From 838a9a041db69151e99ece4217b2df86056bed2f Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Wed, 30 Mar 2011 15:43:16 +0000 Subject: [PATCH] Provide 'ccache.tar' tarball for easy use with ports-mgmt/tinderbox. --- devel/ccache/Makefile | 14 +++++++++++++- devel/ccache/pkg-plist | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile index 014d936dd7fe..6cc7efa5809c 100644 --- a/devel/ccache/Makefile +++ b/devel/ccache/Makefile @@ -7,7 +7,7 @@ PORTNAME= ccache PORTVERSION= 3.1.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://samba.org/ftp/ccache/ CRITICAL @@ -41,6 +41,16 @@ SUB_LIST+= CCACHE_COMPILERS="${CCACHE_COMPILERS}" \ ICCPREFIX="${LOCALBASE}/intel_cc_80/bin" \ HOWTO="${HOWTO}" +post-build: +.if !defined(TINDERBOX) + @${MKDIR} ${WRKDIR}/tb/opt + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${WRKDIR}/tb/opt +.for l in gcc cc g++ c++ + @${LN} -sf ${PORTNAME} ${WRKDIR}/tb/opt/${l} +.endfor + @${TAR} -C ${WRKDIR}/tb -cpf ${WRKSRC}/${PORTNAME}.tar opt +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ccache ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1 @@ -49,6 +59,8 @@ do-install: ${PREFIX}/${CCLINKDIR}/world/ccache ${INSTALL_SCRIPT} ${WRKDIR}/ccache-update-links.sh \ ${PREFIX}/bin/ccache-update-links + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.tar ${DATADIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/MANUAL.html ${DOCSDIR} diff --git a/devel/ccache/pkg-plist b/devel/ccache/pkg-plist index 8020ba83ba44..0a4a7bab8703 100644 --- a/devel/ccache/pkg-plist +++ b/devel/ccache/pkg-plist @@ -1,6 +1,8 @@ bin/ccache bin/ccache-update-links +%%DATADIR%%/ccache.tar %%CCLINKDIR%%/world/ccache +@dirrm %%DATADIR%% @exec echo "Create compiler links..." @exec %D/bin/ccache-update-links -v @unexec find %D/%%CCLINKDIR%% -type l -exec rm -f {} \;