summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz>2014-07-22 17:16:45 +0000
committerwiz <wiz>2014-07-22 17:16:45 +0000
commit5e2f502aa65eb1269a71d0aaee695c3295ff3b17 (patch)
treeb0ce92cda509cd0cca01f6395d2cdba66fdfb578 /textproc
parent6d7fa9dbcc7da99f8734e5bba944152e47eee5c9 (diff)
downloadpkgsrc-5e2f502aa65eb1269a71d0aaee695c3295ff3b17.tar.gz
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.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/tinyxml2/DESCR16
-rw-r--r--textproc/tinyxml2/Makefile18
-rw-r--r--textproc/tinyxml2/PLIST7
-rw-r--r--textproc/tinyxml2/buildlink3.mk12
-rw-r--r--textproc/tinyxml2/distinfo5
5 files changed, 58 insertions, 0 deletions
diff --git a/textproc/tinyxml2/DESCR b/textproc/tinyxml2/DESCR
new file mode 100644
index 00000000000..9a0069dcb88
--- /dev/null
+++ b/textproc/tinyxml2/DESCR
@@ -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.
diff --git a/textproc/tinyxml2/Makefile b/textproc/tinyxml2/Makefile
new file mode 100644
index 00000000000..a62fc45a022
--- /dev/null
+++ b/textproc/tinyxml2/Makefile
@@ -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"
diff --git a/textproc/tinyxml2/PLIST b/textproc/tinyxml2/PLIST
new file mode 100644
index 00000000000..55cdded4c2a
--- /dev/null
+++ b/textproc/tinyxml2/PLIST
@@ -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
diff --git a/textproc/tinyxml2/buildlink3.mk b/textproc/tinyxml2/buildlink3.mk
new file mode 100644
index 00000000000..d32c97995ec
--- /dev/null
+++ b/textproc/tinyxml2/buildlink3.mk
@@ -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
diff --git a/textproc/tinyxml2/distinfo b/textproc/tinyxml2/distinfo
new file mode 100644
index 00000000000..dde1a2938a5
--- /dev/null
+++ b/textproc/tinyxml2/distinfo
@@ -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