From owner-svn-ports-head@FreeBSD.ORG Mon Sep 2 05:36:57 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7BE8010C; Mon, 2 Sep 2013 05:36:57 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4F5BE2EF6; Mon, 2 Sep 2013 05:36:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r825avdW087579; Mon, 2 Sep 2013 05:36:57 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r825auNi087577; Mon, 2 Sep 2013 05:36:56 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201309020536.r825auNi087577@svn.freebsd.org> From: Alexey Dokuchaev Date: Mon, 2 Sep 2013 05:36:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r325935 - head/lang/pcc X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2013 05:36:57 -0000 Author: danfe Date: Mon Sep 2 05:36:56 2013 New Revision: 325935 URL: http://svnweb.freebsd.org/changeset/ports/325935 Log: - Try to fix parallel (-jX) builds: use make's -C switch and add a missing dependency - While here: adjust header and COMMENT, remove useless WRKSRC assignment, put USES higher up where it's normally found - Kill EOL whitespace in pkg-descr Reported by: marino Approved by: miwi, bapt (portmgr, implicit) Modified: head/lang/pcc/Makefile head/lang/pcc/pkg-descr Modified: head/lang/pcc/Makefile ============================================================================== --- head/lang/pcc/Makefile Mon Sep 2 05:22:58 2013 (r325934) +++ head/lang/pcc/Makefile Mon Sep 2 05:36:56 2013 (r325935) @@ -1,4 +1,4 @@ -# Created by: David O'Brien (obrien@NUXI.org) +# Created by: David O'Brien # $FreeBSD$ PORTNAME= pcc @@ -10,20 +10,23 @@ MASTER_SITES= ftp://pcc.ludd.ltu.se/pub/ EXTRACT_SUFX= .tgz MAINTAINER= joel@FreeBSD.org -COMMENT= The Portable C Compiler +COMMENT= Portable C Compiler ONLY_FOR_ARCHS= i386 amd64 -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USES= gmake GNU_CONFIGURE= yes CONFIGURE_ENV= YACC=${YACC} -USES= gmake - -MAKE_JOBS_UNSAFE=yes MAN1= ccom.1 cpp.1 pcc.1 PLIST_FILES= bin/pcc libexec/ccom libexec/cpp +# Fix -jX builds: use -C switch instead of cd'ing and add missing dependency +post-patch: + @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -E \ + 's/cd (.+)(;| &&) (\$$[{(]MAKE[})][^$$]*)( \$$\(MFLAGS\))?/\3 -C \1/' + @${ECHO_CMD} 'builtins.o: pass1.h' >> ${WRKSRC}/cc/ccom/Makefile.in + pre-configure: ${MKDIR} ${WRKSRC}/os/freebsd ${CP} ${FILESDIR}/*.h ${WRKSRC}/os/freebsd Modified: head/lang/pcc/pkg-descr ============================================================================== --- head/lang/pcc/pkg-descr Mon Sep 2 05:22:58 2013 (r325934) +++ head/lang/pcc/pkg-descr Mon Sep 2 05:36:56 2013 (r325935) @@ -1,6 +1,6 @@ This compiler is based on the original Portable C Compiler by S. C. Johnson, written in the late 70's. Even though much of the compiler has been -rewritten, some of the basics still remain. +rewritten, some of the basics still remain. The intention is to write a C99 compiler while still keeping it small, simple, fast and understandable. I think of it as if it shall be able to compile and