Permalink
Browse files

Import tinyxml2-2.1.0 as textproc/tinyxml2, packaged for wip by

Niclas Rosenvik.

TinyXML-2 parses an XML document, and builds from that a Document
Object Model (DOM) that can be read, modified, and saved.

TinyXML-2 uses a Document Object Model (DOM), meaning the XML data is
parsed into a C++ objects that can be browsed and manipulated, and then
written to disk or another output stream. You can also construct an XML
document from scratch with C++ objects and write this to disk or another
output stream.

TinyXML (textproc/tinyxml) served the needs of the original author for
many years; but it uses memory inefficiently, and doesn't perform as
well as desired for mobile devices. The author wanted an XML parser that
was a little more modern, a little simpler (the "tiny" had been lost a
little over the years), and was a good fit for Android.

This led to TinyXML-2.
  • Loading branch information...
wiz
wiz committed Jul 22, 2014
1 parent adfd9d8 commit f18944500bbddcabead5aa47b7d46c15c5e87c26
Showing with 58 additions and 0 deletions.
  1. +16 −0 textproc/tinyxml2/DESCR
  2. +18 −0 textproc/tinyxml2/Makefile
  3. +7 −0 textproc/tinyxml2/PLIST
  4. +12 −0 textproc/tinyxml2/buildlink3.mk
  5. +5 −0 textproc/tinyxml2/distinfo
View
@@ -0,0 +1,16 @@
+TinyXML-2 parses an XML document, and builds from that a Document
+Object Model (DOM) that can be read, modified, and saved.
+
+TinyXML-2 uses a Document Object Model (DOM), meaning the XML data is
+parsed into a C++ objects that can be browsed and manipulated, and then
+written to disk or another output stream. You can also construct an XML
+document from scratch with C++ objects and write this to disk or another
+output stream.
+
+TinyXML (textproc/tinyxml) served the needs of the original author for
+many years; but it uses memory inefficiently, and doesn't perform as
+well as desired for mobile devices. The author wanted an XML parser that
+was a little more modern, a little simpler (the "tiny" had been lost a
+little over the years), and was a good fit for Android.
+
+This led to TinyXML-2.
View
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2014/07/22 17:16:45 wiz Exp $
+
+DISTNAME= tinyxml2-2.1.0
+CATEGORIES= textproc
+MASTER_SITES= -https://github.com/leethomason/tinyxml2/archive/${PKGVERSION}.tar.gz
+EXTRACT_USING= bsdtar
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.grinninglizard.com/tinyxml2/
+COMMENT= Simple, small and efficient C++ XML parser
+LICENSE= zlib
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+PKGCONFIG_OVERRIDE=tinyxml2.pc.in
+
+.include "../../mk/bsd.pkg.mk"
View
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2014/07/22 17:16:45 wiz Exp $
+include/tinyxml2.h
+lib/libtinyxml2.a
+lib/libtinyxml2.so
+lib/libtinyxml2.so.2
+lib/libtinyxml2.so.${PKGVERSION}
+lib/pkgconfig/tinyxml2.pc
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/07/22 17:16:45 wiz Exp $
+
+BUILDLINK_TREE+= tinyxml2
+
+.if !defined(TINYXML2_BUILDLINK3_MK)
+TINYXML2_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.tinyxml2+= tinyxml2>=2.1.0
+BUILDLINK_PKGSRCDIR.tinyxml2?= ../../textproc/tinyxml2
+.endif # TINYXML2_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -tinyxml2
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/07/22 17:16:45 wiz Exp $
+
+SHA1 (tinyxml2-2.1.0.tar.gz) = 70ef3221bdc190fd8fc50cdd4a6ef440f44b74dc
+RMD160 (tinyxml2-2.1.0.tar.gz) = 1c1a76777c51876ca7b8934b822478a3e4ffa537
+Size (tinyxml2-2.1.0.tar.gz) = 454717 bytes

0 comments on commit f189445

Please sign in to comment.