pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gcc7-contrib: Install mklog and finish the package



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Sep 14 02:05:49 2017 +0200
Changeset:	cfa439b79468bea4d8678c0eb9619193c48857e0

Modified Files:
	gcc7-contrib/Makefile
	gcc7-contrib/PLIST

Log Message:
gcc7-contrib: Install mklog and finish the package

So far install mklog - GNU ChangeLog generator for GNU toolchain.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cfa439b79468bea4d8678c0eb9619193c48857e0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gcc7-contrib/Makefile | 12 ++++++++++--
 gcc7-contrib/PLIST    |  1 +
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs:
diff --git a/gcc7-contrib/Makefile b/gcc7-contrib/Makefile
index d08c0c505b..be27ea6f6e 100644
--- a/gcc7-contrib/Makefile
+++ b/gcc7-contrib/Makefile
@@ -11,11 +11,19 @@ HOMEPAGE=	https://gcc.gnu.org/
 COMMENT=	GNU GCC helper utilities
 LICENSE=	gnu-gpl-v3
 
+USE_TOOLS+=	perl
+
+REPLACE_PERL+=	contrib/mklog
+
+GCC_PKGNAME=		gcc${GCC7_DIST_VERSION:R:R}
+GCC_SUBPREFIX=		${GCC_PKGNAME}-contrib
+GCC_PREFIX=		${PREFIX}/${GCC_SUBPREFIX}
+
 NO_BUILD=	yes
 
-INSTALL_DIRS=	bin
+INSTALLATION_DIRS+=	${GCC_PREFIX:Q}/bin
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/contrib/mklog bin/
+	${INSTALL_SCRIPT} ${WRKSRC}/contrib/mklog ${DESTDIR}${GCC_PREFIX:Q}/bin
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/gcc7-contrib/PLIST b/gcc7-contrib/PLIST
index 48d96a5493..27939f60cb 100644
--- a/gcc7-contrib/PLIST
+++ b/gcc7-contrib/PLIST
@@ -1 +1,2 @@
 @comment $NetBSD$
+gcc7-contrib/bin/mklog


Home | Main Index | Thread Index | Old Index