Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2013 03:26:09 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329407 - in head/devel/ccons: . files
Message-ID:  <201310050326.r953Q9l4086695@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sat Oct  5 03:26:09 2013
New Revision: 329407
URL: http://svnweb.freebsd.org/changeset/ports/329407

Log:
  - Update from r243 to r251
  - Change clang dependence to clang33
  - Change maintainer email to @FreeBSD.org
  - Add "Created by" line to header
  - Simplify BUILD_DEPENDS
  - Convert LIB_DEPENDS to new syntax
  - Simplify LDFLAGS
  - Use libc++ on CURRENT
  - Add a patch to insert an necessary header
  - Add stage support
  
  Approved by:	wg / culot (mentors, implicit)

Added:
  head/devel/ccons/files/
  head/devel/ccons/files/patch-Console.cpp   (contents, props changed)
Modified:
  head/devel/ccons/Makefile
  head/devel/ccons/distinfo

Modified: head/devel/ccons/Makefile
==============================================================================
--- head/devel/ccons/Makefile	Sat Oct  5 02:41:15 2013	(r329406)
+++ head/devel/ccons/Makefile	Sat Oct  5 03:26:09 2013	(r329407)
@@ -1,48 +1,45 @@
+# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	ccons
-PORTVERSION=	r243
+PORTVERSION=	r251
 CATEGORIES=	devel
 MASTER_SITES=	GOOGLE_CODE
 
-MAINTAINER=	danilogondolfo@gmail.com
+MAINTAINER=	danilo@FreeBSD.org
 COMMENT=	Interactive Console for the C Programming Language
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/llvm-config:${PORTSDIR}/devel/llvm \
-		${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang \
-		${LOCALBASE}/bin/ld:${PORTSDIR}/devel/binutils
-LIB_DEPENDS=	ncurses:${PORTSDIR}/devel/ncurses
+BUILD_DEPENDS=	llvm-config33:${PORTSDIR}/devel/llvm33 \
+		clang++33:${PORTSDIR}/lang/clang33
+LIB_DEPENDS=	libncurses.so:${PORTSDIR}/devel/ncurses
 
 ONLY_FOR_ARCHS=	i386 amd64
 USES=		cmake
-CMAKE_ARGS+=	-DLLVM_CONFIG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-config
-
-CXX=	${LOCALBASE}/bin/clang++
+CMAKE_ARGS+=	-DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config33
 CXXFLAGS+=	-fno-rtti
-LDFLAGS+=	-lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization \
-		-lclangCodeGen -lclangParse -lclangSema -lclangStaticAnalyzerCheckers \
-		-lclangStaticAnalyzerCore -lclangAnalysis -lclang -lclangAST -lclangLex \
-		-lclangBasic -ledit -lm
+LDFLAGS+=	-lclang
+CXX=	clang++33
+CC=		clang33
 
-PLIST_FILES=	bin/ccons
+PLIST_FILES=	bin/ccons man/man1/ccons.1.gz
 
 WRKSRC=	${WRKDIR}/ccons
 
-
-MAN1=	ccons.1
-
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
+.if ${OSVERSION} >= 1000054
+CXXFLAGS+=	-stdlib=libc++
+.endif
+
 .if ${OSVERSION} < 900044
 BROKEN=	ccons does not work on FreeBSD < 9.0-RELEASE
 .endif
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/ccons ${PREFIX}/bin/ccons
-	@${INSTALL_MAN} ${WRKSRC}/man/ccons.1 ${MAN1PREFIX}/man/man1/ccons.1
+	@${INSTALL_PROGRAM} ${WRKSRC}/ccons ${STAGEDIR}${PREFIX}/bin/ccons
+	@${INSTALL_MAN} ${WRKSRC}/man/ccons.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ccons.1
 
 .include <bsd.port.post.mk>

Modified: head/devel/ccons/distinfo
==============================================================================
--- head/devel/ccons/distinfo	Sat Oct  5 02:41:15 2013	(r329406)
+++ head/devel/ccons/distinfo	Sat Oct  5 03:26:09 2013	(r329407)
@@ -1,2 +1,2 @@
-SHA256 (ccons-r243.tar.gz) = 22edb1420578f0aba6adc5edb5d2add523b7b0fdb83c9ef10f1bb3d43b66aad8
-SIZE (ccons-r243.tar.gz) = 26270
+SHA256 (ccons-r251.tar.gz) = 766619e217d795276d36c0fe324ce3fdf03ed67929bd8b452b5adcb20fba5812
+SIZE (ccons-r251.tar.gz) = 26469

Added: head/devel/ccons/files/patch-Console.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/ccons/files/patch-Console.cpp	Sat Oct  5 03:26:09 2013	(r329407)
@@ -0,0 +1,10 @@
+--- ./Console.cpp.orig	2013-09-18 15:56:23.000000000 -0300
++++ ./Console.cpp	2013-09-18 15:56:32.000000000 -0300
+@@ -12,6 +12,7 @@
+ 
+ #include <errno.h>
+ #include <ctype.h>
++#include <unistd.h>
+ 
+ #include <iostream>
+ #include <map>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310050326.r953Q9l4086695>