svn commit: r320560 - in head/textproc: . tinyxml2

Brendan Fabeny bf at FreeBSD.org
Tue Jun 11 13:49:34 UTC 2013


Author: bf
Date: Tue Jun 11 13:49:32 2013
New Revision: 320560
URL: http://svnweb.freebsd.org/changeset/ports/320560

Log:
  Add tinyxml2 20130520, small C++ XML Parser.

Added:
  head/textproc/tinyxml2/
  head/textproc/tinyxml2/Makefile   (contents, props changed)
  head/textproc/tinyxml2/distinfo   (contents, props changed)
  head/textproc/tinyxml2/pkg-descr   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Tue Jun 11 13:47:54 2013	(r320559)
+++ head/textproc/Makefile	Tue Jun 11 13:49:32 2013	(r320560)
@@ -1428,6 +1428,7 @@
     SUBDIR += ti-hunspell
     SUBDIR += tidyp
     SUBDIR += tinyxml
+    SUBDIR += tinyxml2
     SUBDIR += tk-aspell
     SUBDIR += tk-hunspell
     SUBDIR += tkdiff

Added: head/textproc/tinyxml2/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/tinyxml2/Makefile	Tue Jun 11 13:49:32 2013	(r320560)
@@ -0,0 +1,49 @@
+# Created by: b.f. <bf at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	tinyxml2
+PORTVERSION=	20130520
+CATEGORIES=	textproc
+MASTER_SITES=	LOCAL/bf GH
+
+MAINTAINER=	bf at FreeBSD.org
+COMMENT=	Small C++ XML Parser
+
+LICENSE=	ZLIB
+
+USE_GITHUB=	yes
+USE_LDCONFIG=	yes
+USES=		cmake
+
+GH_ACCOUNT=	leethomason
+GH_COMMIT=	392bcd2
+GH_TAGNAME=	${GH_COMMIT}
+
+PLIST_FILES=	include/tinyxml2.h \
+		lib/libtinyxml2.a \
+		lib/libtinyxml2.so \
+		lib/libtinyxml2.so.1 \
+		lib/libtinyxml2.so.1.0.11 \
+		libdata/pkgconfig/tinyxml2.pc
+
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -E \
+		-e 's@(DESTINATION )(.*)(/pkgconfig)@\1${PREFIX}/libdata\3@' \
+		${WRKSRC}/CMakeLists.txt
+
+check regression-test test: build
+	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test ; \
+	./test
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+PORTEXAMPLES=	xmltest.cpp resources
+
+post-install:
+	@${MKDIR} ${EXAMPLESDIR}
+	@cd ${WRKSRC} ; ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${EXAMPLESDIR}
+
+.endif
+
+.include <bsd.port.mk>

Added: head/textproc/tinyxml2/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/tinyxml2/distinfo	Tue Jun 11 13:49:32 2013	(r320560)
@@ -0,0 +1,2 @@
+SHA256 (tinyxml2-20130520.tar.gz) = e064bad8ff1cdf8172f39712b7b0305491bff95874af76b22957b668d441c6cd
+SIZE (tinyxml2-20130520.tar.gz) = 111206

Added: head/textproc/tinyxml2/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/tinyxml2/pkg-descr	Tue Jun 11 13:49:32 2013	(r320560)
@@ -0,0 +1,7 @@
+TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily
+integrated into other programs. It attempts to be flexible, but correct.  It
+does not rely on exceptions or RTTI. It has UTF-8 support, but does not parse or
+use DTDs or XSL. It doesn't have the STL support of TinyXML-1, but uses less
+memory, has a proper namespace, and is faster.
+
+WWW: http://grinninglizard.com/tinyxml2/index.html


More information about the svn-ports-head mailing list