summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2014-12-16 20:01:11 +0000
committerBrooks Davis <brooks@FreeBSD.org>2014-12-16 20:01:11 +0000
commit0ee8f5e9ca4826f004e3c06075aae845d9843fa4 (patch)
tree62f7833e25f7e154194857ef3ceea85f7f7466c2
parentFix build with clang 3.5 (diff)
Add a port of libxo:
libxo - A Library for Generating Text, XML, JSON, and HTML Output The libxo library allows an application to generate text, XML, JSON, and HTML output using a common set of function calls. The application decides at run time which output style should be produced. The application calls a function "xo_emit" to product output that is described in a format string. A "field descriptor" tells libxo what the field is and what it means. Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=374819
-rw-r--r--devel/Makefile1
-rw-r--r--devel/libxo/Makefile19
-rw-r--r--devel/libxo/distinfo2
-rw-r--r--devel/libxo/files/patch-libxo_Makefile.in47
-rw-r--r--devel/libxo/files/patch-xolint_Makefile.in11
-rw-r--r--devel/libxo/pkg-descr10
-rw-r--r--devel/libxo/pkg-plist12
7 files changed, 102 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 2cfa26f0e2b4..c413912d7220 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1189,6 +1189,7 @@
SUBDIR += libwfut
SUBDIR += libx86
SUBDIR += libxalloc
+ SUBDIR += libxo
SUBDIR += libxs
SUBDIR += libytnef
SUBDIR += libzookeeper
diff --git a/devel/libxo/Makefile b/devel/libxo/Makefile
new file mode 100644
index 000000000000..00e90aa12bda
--- /dev/null
+++ b/devel/libxo/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+PORTNAME= libxo
+PORTVERSION= 0.1.6
+CATEGORIES= devel textproc
+MASTER_SITES= http://github.com/Juniper/${PORTNAME}/releases/download/${PORTVERSION}/
+
+MAINTAINER= brooks@FreeBSD.org
+COMMENT= Library to generate text, XML, JSON, and HTML output
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/Copyright
+
+USES= gmake libtool perl5
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
+USE_PERL5= run
+
+.include <bsd.port.mk>
diff --git a/devel/libxo/distinfo b/devel/libxo/distinfo
new file mode 100644
index 000000000000..befb761b0cf3
--- /dev/null
+++ b/devel/libxo/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libxo-0.1.6.tar.gz) = 7a290d906f2cf7c4930dd8ccb3b0646ed00d0abeedee004e68afecc2794fdca4
+SIZE (libxo-0.1.6.tar.gz) = 649450
diff --git a/devel/libxo/files/patch-libxo_Makefile.in b/devel/libxo/files/patch-libxo_Makefile.in
new file mode 100644
index 000000000000..c4bd96e6ab09
--- /dev/null
+++ b/devel/libxo/files/patch-libxo_Makefile.in
@@ -0,0 +1,47 @@
+--- libxo/Makefile.in.orig 2014-11-18 07:39:34 UTC
++++ libxo/Makefile.in
+@@ -352,25 +352,25 @@ libxoinc_HEADERS = \
+ libxo_la_SOURCES = \
+ libxo.c
+
+-man_MANS = \
+- libxo.3 \
+- xo_attr.3 \
+- xo_create.3 \
+- xo_emit.3 \
+- xo_err.3 \
+- xo_finish.3 \
+- xo_flush.3 \
+- xo_format.5 \
+- xo_no_setlocale.3 \
+- xo_open_container.3 \
+- xo_open_list.3 \
+- xo_parse_args.3 \
+- xo_set_allocator.3 \
+- xo_set_flags.3 \
+- xo_set_info.3 \
+- xo_set_options.3 \
+- xo_set_style.3 \
+- xo_set_writer.3
++#man_MANS = \
++# libxo.3 \
++# xo_attr.3 \
++# xo_create.3 \
++# xo_emit.3 \
++# xo_err.3 \
++# xo_finish.3 \
++# xo_flush.3 \
++# xo_format.5 \
++# xo_no_setlocale.3 \
++# xo_open_container.3 \
++# xo_open_list.3 \
++# xo_parse_args.3 \
++# xo_set_allocator.3 \
++# xo_set_flags.3 \
++# xo_set_info.3 \
++# xo_set_options.3 \
++# xo_set_style.3 \
++# xo_set_writer.3
+
+ EXTRA_DIST =
+ all: xoconfig.h
diff --git a/devel/libxo/files/patch-xolint_Makefile.in b/devel/libxo/files/patch-xolint_Makefile.in
new file mode 100644
index 000000000000..febaf50ee6ad
--- /dev/null
+++ b/devel/libxo/files/patch-xolint_Makefile.in
@@ -0,0 +1,11 @@
+--- xolint/Makefile.in.orig 2014-11-18 07:39:34 UTC
++++ xolint/Makefile.in
+@@ -529,7 +529,7 @@ uninstall-man: uninstall-man1
+
+
+ install-exec-hook:
+- install ${srcdir}/xolint.pl ${bindir}/xolint
++ install ${srcdir}/xolint.pl $(DESTDIR)${bindir}/xolint
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/devel/libxo/pkg-descr b/devel/libxo/pkg-descr
new file mode 100644
index 000000000000..1a672f8b1529
--- /dev/null
+++ b/devel/libxo/pkg-descr
@@ -0,0 +1,10 @@
+libxo - A Library for Generating Text, XML, JSON, and HTML Output
+
+The libxo library allows an application to generate text, XML, JSON,
+and HTML output using a common set of function calls. The application
+decides at run time which output style should be produced. The
+application calls a function "xo_emit" to product output that is
+described in a format string. A "field descriptor" tells libxo what
+the field is and what it means.
+
+WWW: https://github.com/Juniper/libxo
diff --git a/devel/libxo/pkg-plist b/devel/libxo/pkg-plist
new file mode 100644
index 000000000000..b7622f61dd13
--- /dev/null
+++ b/devel/libxo/pkg-plist
@@ -0,0 +1,12 @@
+bin/libxo-config
+bin/xo
+bin/xolint
+include/libxo/xo.h
+lib/libxo.a
+lib/libxo.so
+lib/libxo.so.0
+lib/libxo.so.0.0.0
+lib/pkgconfig/libxo.pc
+man/man1/xo.1.gz
+man/man1/xolint.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/Copyright