Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2018 08:55:31 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485848 - head/textproc/castxml
Message-ID:  <201811250855.wAP8tVui005552@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Nov 25 08:55:31 2018
New Revision: 485848
URL: https://svnweb.freebsd.org/changeset/ports/485848

Log:
  textproc/castxml: Update g20180728 -> g20181115; Add options to use various LLVM versions; add the 'test' target
  
  PR:		233492
  Submitted by:	Sean Champ <sean.p.champ@gmail.com> (LLVM options)

Deleted:
  head/textproc/castxml/pkg-plist
Modified:
  head/textproc/castxml/Makefile
  head/textproc/castxml/distinfo

Modified: head/textproc/castxml/Makefile
==============================================================================
--- head/textproc/castxml/Makefile	Sun Nov 25 08:25:09 2018	(r485847)
+++ head/textproc/castxml/Makefile	Sun Nov 25 08:55:31 2018	(r485848)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	castxml
-PORTVERSION=	g20180728
+PORTVERSION=	g20181115
 CATEGORIES=	textproc devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -12,14 +12,51 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
 RUN_DEPENDS=	clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
+TEST_DEPENDS=	${LOCALBASE}/lib/libxml2.so:textproc/libxml2
 
 USES=		cmake:outsource
 USE_GITHUB=	yes
 GH_ACCOUNT=	CastXML
 GH_PROJECT=	CastXML
-GH_TAGNAME=	a345f62
-LLVM_VERSION=	60
+GH_TAGNAME=	c3a239d
 
 CMAKE_ARGS=	-DLLVM_DIR:STRING=${LOCALBASE}/llvm${LLVM_VERSION}/lib/cmake/llvm
+
+OPTIONS_DEFINE=		DOCS
+OPTIONS_DEFAULT=	DOCS LLVM_${LLVM_DEFAULT}
+OPTIONS_SUB=		yes
+
+LLVM_DESC=		LLVM Version
+OPTIONS_SINGLE=		LLVM
+OPTIONS_SINGLE_LLVM=	LLVM_DEVEL LLVM_70 LLVM_60 LLVM_50 LLVM_40
+
+LLVM_DEVEL_DESC=	llvm-devel
+LLVM_DEVEL_VARS=	LLVM_VERSION=-devel
+
+LLVM_70_DESC=		LLVM 7
+LLVM_70_VARS=		LLVM_VERSION=70
+
+LLVM_60_DESC=		LLVM 6
+LLVM_60_VARS=		LLVM_VERSION=60
+
+LLVM_50_DESC=		LLVM 5
+LLVM_50_VARS=		LLVM_VERSION=50
+
+LLVM_40_DESC=		LLVM 4
+LLVM_40_VARS=		LLVM_VERSION=40
+
+DOCS_CMAKE_BOOL=	SPHINX_MAN
+DOCS_CMAKE_ON=		-DSPHINX_EXECUTABLE=${LOCALBASE}/bin/sphinx-build
+DOCS_BUILD_DEPENDS=	${LOCALBASE}/bin/sphinx-build:textproc/py-sphinx
+
+post-stage: # autoplist: plist changes with llvm versions
+	@cd ${STAGEDIR}${PREFIX} && \
+		${FIND} * -type f -or -type l | ${SED} 's|castxml\.1|castxml.1.gz|' > ${TMPPLIST}
+
+do-test: # tests fail: https://github.com/CastXML/CastXML/issues/130
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
 
 .include <bsd.port.mk>

Modified: head/textproc/castxml/distinfo
==============================================================================
--- head/textproc/castxml/distinfo	Sun Nov 25 08:25:09 2018	(r485847)
+++ head/textproc/castxml/distinfo	Sun Nov 25 08:55:31 2018	(r485848)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1533440542
-SHA256 (CastXML-CastXML-g20180728-a345f62_GH0.tar.gz) = b9dd764a2bf7857033ecf1ed01ef9eac202ceadd00a6ff1da1a52fe3a8ccd08d
-SIZE (CastXML-CastXML-g20180728-a345f62_GH0.tar.gz) = 92591
+TIMESTAMP = 1543133898
+SHA256 (CastXML-CastXML-g20181115-c3a239d_GH0.tar.gz) = 9d1af12037eefa7ed73c0d916c483f8eb46b9c5a669357fef64a5da22562f040
+SIZE (CastXML-CastXML-g20181115-c3a239d_GH0.tar.gz) = 93002



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