summaryrefslogtreecommitdiff
path: root/converters/orcus
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2013-08-24 16:12:10 +0000
committerjaapb <jaapb@pkgsrc.org>2013-08-24 16:12:10 +0000
commita704d10ffbfbdeaab83cd2de3e76bce1c2f7d0fc (patch)
tree85fc2dbcd3a7174df832a13a5dc7e799c08a5aa9 /converters/orcus
parent6a86bb598cff8e2ae6e1e51e0346f9e321dc2657 (diff)
downloadpkgsrc-a704d10ffbfbdeaab83cd2de3e76bce1c2f7d0fc.tar.gz
Packaged converters/orcus, a library that deals with spreadsheet documents
(libreoffice dependency).
Diffstat (limited to 'converters/orcus')
-rw-r--r--converters/orcus/DESCR1
-rw-r--r--converters/orcus/Makefile33
-rw-r--r--converters/orcus/PLIST38
-rw-r--r--converters/orcus/buildlink3.mk15
-rw-r--r--converters/orcus/distinfo8
-rw-r--r--converters/orcus/patches/patch-bin_pack-release.sh14
-rw-r--r--converters/orcus/patches/patch-configure23
-rw-r--r--converters/orcus/patches/patch-src_parser_Makefile.am14
8 files changed, 146 insertions, 0 deletions
diff --git a/converters/orcus/DESCR b/converters/orcus/DESCR
new file mode 100644
index 00000000000..5fbe13e0f86
--- /dev/null
+++ b/converters/orcus/DESCR
@@ -0,0 +1 @@
+Standalone file import filter library for spreadsheet documents.
diff --git a/converters/orcus/Makefile b/converters/orcus/Makefile
new file mode 100644
index 00000000000..fac7d171810
--- /dev/null
+++ b/converters/orcus/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2013/08/24 16:12:10 jaapb Exp $
+
+PKGNAME= orcus-${PKGVERSION}
+DISTNAME= liborcus-${PKGVERSION}
+PKGVERSION= 0.5.1
+CATEGORIES= converters
+MASTER_SITES= http://kohei.us/files/orcus/src/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= http://kohei.us/files/orcus/src/
+COMMENT= Import filter library for spreadsheet documents
+LICENSE= mit
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= aclocal autoconf autoheader automake gmake pkg-config
+USE_LANGUAGES= c c++
+CONFIGURE_ARGS+= --with-boost-libdir=${PREFIX}/lib \
+ --with-boost-system=boost_system \
+ --disable-spreadsheet-model --disable-werror
+CONFIGURE_ENV+= ZLIB_CFLAGS="-I/usr/include" ZLIB_LIBS="-L/usr/lib -lz"
+
+PKGCONFIG_OVERRIDE+= liborcus.pc.in
+
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ aclocal; autoheader; automake -a --foreign -i; autoconf
+
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/orcus/PLIST b/converters/orcus/PLIST
new file mode 100644
index 00000000000..2a2f846e79e
--- /dev/null
+++ b/converters/orcus/PLIST
@@ -0,0 +1,38 @@
+@comment $NetBSD: PLIST,v 1.1 2013/08/24 16:12:10 jaapb Exp $
+bin/orcus-mso-encryption
+bin/orcus-xml-dump
+bin/orcus-zip-dump
+include/liborcus-0.6/orcus/base64.hpp
+include/liborcus-0.6/orcus/cell_buffer.hpp
+include/liborcus-0.6/orcus/css_parser.hpp
+include/liborcus-0.6/orcus/csv_parser.hpp
+include/liborcus-0.6/orcus/dom_tree.hpp
+include/liborcus-0.6/orcus/env.hpp
+include/liborcus-0.6/orcus/exception.hpp
+include/liborcus-0.6/orcus/global.hpp
+include/liborcus-0.6/orcus/ooxml/encryption_info.hpp
+include/liborcus-0.6/orcus/orcus_csv.hpp
+include/liborcus-0.6/orcus/orcus_gnumeric.hpp
+include/liborcus-0.6/orcus/orcus_ods.hpp
+include/liborcus-0.6/orcus/orcus_xlsx.hpp
+include/liborcus-0.6/orcus/orcus_xml.hpp
+include/liborcus-0.6/orcus/pstring.hpp
+include/liborcus-0.6/orcus/sax_ns_parser.hpp
+include/liborcus-0.6/orcus/sax_parser.hpp
+include/liborcus-0.6/orcus/sax_parser_global.hpp
+include/liborcus-0.6/orcus/sax_token_parser.hpp
+include/liborcus-0.6/orcus/spreadsheet/export_interface.hpp
+include/liborcus-0.6/orcus/spreadsheet/import_interface.hpp
+include/liborcus-0.6/orcus/spreadsheet/types.hpp
+include/liborcus-0.6/orcus/stream.hpp
+include/liborcus-0.6/orcus/string_pool.hpp
+include/liborcus-0.6/orcus/tokens.hpp
+include/liborcus-0.6/orcus/types.hpp
+include/liborcus-0.6/orcus/xml_namespace.hpp
+include/liborcus-0.6/orcus/xml_structure_tree.hpp
+include/liborcus-0.6/orcus/zip_archive.hpp
+include/liborcus-0.6/orcus/zip_archive_stream.hpp
+lib/liborcus-0.6.la
+lib/liborcus-mso-0.6.la
+lib/liborcus-parser-0.6.la
+lib/pkgconfig/liborcus-0.6.pc
diff --git a/converters/orcus/buildlink3.mk b/converters/orcus/buildlink3.mk
new file mode 100644
index 00000000000..1e80cfa48c4
--- /dev/null
+++ b/converters/orcus/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/08/24 16:12:10 jaapb Exp $
+
+BUILDLINK_TREE+= orcus
+
+.if !defined(ORCUS_BUILDLINK3_MK)
+ORCUS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.orcus+= orcus>=0.5.1
+BUILDLINK_PKGSRCDIR.orcus?= ../../converters/orcus
+
+#.include "../../devel/boost-libs/buildlink3.mk"
+#.include "../../devel/zlib/buildlink3.mk"
+.endif # ORCUS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -orcus
diff --git a/converters/orcus/distinfo b/converters/orcus/distinfo
new file mode 100644
index 00000000000..9bdbcf39b06
--- /dev/null
+++ b/converters/orcus/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2013/08/24 16:12:10 jaapb Exp $
+
+SHA1 (liborcus-0.5.1.tar.bz2) = 9303d513e4b63a1d6e4bce7cfeb13635e568b466
+RMD160 (liborcus-0.5.1.tar.bz2) = 53c0cc12a3264b970f81ebb5b5c43208cee70688
+Size (liborcus-0.5.1.tar.bz2) = 1445106 bytes
+SHA1 (patch-bin_pack-release.sh) = 6eefed463a1bc44ce2cbceb128d347b3096768f0
+SHA1 (patch-configure) = b6d5ed475a5a5c761494d565d01cd595773650a0
+SHA1 (patch-src_parser_Makefile.am) = fb4e5b9bb037bec6b2dc55c47f3d4e74c61839c1
diff --git a/converters/orcus/patches/patch-bin_pack-release.sh b/converters/orcus/patches/patch-bin_pack-release.sh
new file mode 100644
index 00000000000..b027cd98c46
--- /dev/null
+++ b/converters/orcus/patches/patch-bin_pack-release.sh
@@ -0,0 +1,14 @@
+$NetBSD: patch-bin_pack-release.sh,v 1.1 2013/08/24 16:12:10 jaapb Exp $
+
+Use proper test equality operator
+--- bin/pack-release.sh.orig 2012-09-07 17:44:34.000000000 +0000
++++ bin/pack-release.sh
+@@ -23,7 +23,7 @@ popd > /dev/null
+
+ tar jcvfh $PACKAGE $DIR
+
+-if [ "$1" == "md5" ]; then
++if [ "$1" = "md5" ]; then
+ # prefix the package name with md5 sum.
+ MD5SUM=`md5sum $PACKAGE | sed -e 's/\ .*//g'`
+ mv $PACKAGE $MD5SUM-$PACKAGE
diff --git a/converters/orcus/patches/patch-configure b/converters/orcus/patches/patch-configure
new file mode 100644
index 00000000000..a18cbf53d86
--- /dev/null
+++ b/converters/orcus/patches/patch-configure
@@ -0,0 +1,23 @@
+$NetBSD: patch-configure,v 1.1 2013/08/24 16:12:10 jaapb Exp $
+
+Remove tac linuxism and use tail -r instead
+--- configure.orig 2013-04-13 01:56:48.000000000 +0000
++++ configure
+@@ -15667,7 +15667,7 @@ $as_echo "#define HAVE_BOOST_SYSTEM /**/
+
+ LDFLAGS_SAVE=$LDFLAGS
+ if test "x$ax_boost_user_system_lib" = "x"; then
+- for libextension in `ls $BOOSTLIBDIR/libboost_system*.a* $BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;' | tac` ; do
++ for libextension in `ls $BOOSTLIBDIR/libboost_system*.a* $BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;' | tail -r` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
+@@ -15715,7 +15715,7 @@ fi
+
+ done
+ if test "x$link_system" != "xyes"; then
+- for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
++ for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;' | tail -r` ; do
+ ax_lib=${libextension}
+ as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
diff --git a/converters/orcus/patches/patch-src_parser_Makefile.am b/converters/orcus/patches/patch-src_parser_Makefile.am
new file mode 100644
index 00000000000..eeb008731fb
--- /dev/null
+++ b/converters/orcus/patches/patch-src_parser_Makefile.am
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_parser_Makefile.am,v 1.1 2013/08/24 16:12:10 jaapb Exp $
+
+Link boost library properly
+--- src/parser/Makefile.am.orig 2013-04-12 14:25:03.000000000 +0000
++++ src/parser/Makefile.am
+@@ -18,7 +18,7 @@ liborcus_parser_@ORCUS_API_VERSION@_la_S
+ zip_archive.cpp \
+ zip_archive_stream.cpp
+
+-liborcus_parser_@ORCUS_API_VERSION@_la_LDFLAGS = -no-undefined
++liborcus_parser_@ORCUS_API_VERSION@_la_LDFLAGS = -no-undefined -lboost_system
+ liborcus_parser_@ORCUS_API_VERSION@_la_LIBADD = \
+ $(ZLIB_LIBS)
+