From 49a5b1ab0bad7d79f3d0b1b72da83a61124049d7 Mon Sep 17 00:00:00 2001 From: bapt Date: Tue, 18 Dec 2012 12:09:52 +0000 Subject: Lbrary and tools providing ability to interpret and import Microsoft Publisher content into various applications. --- print/Makefile | 1 + print/libmspub/Makefile | 26 ++++++++++++++++++++++ print/libmspub/distinfo | 2 ++ .../libmspub/files/patch-src__lib__MSPUBParser.cpp | 20 +++++++++++++++++ print/libmspub/pkg-descr | 4 ++++ print/libmspub/pkg-plist | 12 ++++++++++ 6 files changed, 65 insertions(+) create mode 100644 print/libmspub/Makefile create mode 100644 print/libmspub/distinfo create mode 100644 print/libmspub/files/patch-src__lib__MSPUBParser.cpp create mode 100644 print/libmspub/pkg-descr create mode 100644 print/libmspub/pkg-plist diff --git a/print/Makefile b/print/Makefile index e53a5a763d8c..847904464331 100644 --- a/print/Makefile +++ b/print/Makefile @@ -168,6 +168,7 @@ SUBDIR += libgnomeprintmm SUBDIR += libharu SUBDIR += libijs + SUBDIR += libmspub SUBDIR += libotf SUBDIR += libpaper SUBDIR += libppd diff --git a/print/libmspub/Makefile b/print/libmspub/Makefile new file mode 100644 index 000000000000..f98dcf901eaf --- /dev/null +++ b/print/libmspub/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= libmspub +PORTVERSION= 0.0.3 +CATEGORIES= print graphics devel +MASTER_SITES= http://dev-www.libreoffice.org/src/ + +MAINTAINER= office@FreeBSD.org +COMMENT= Library providing ability to interpret and import Microsoft Publisher content + +LICENSE= LGPL21 MPL GPLv2 +LICENSE_COMB= dual + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/ptr_container/ptr_map.hpp:${PORTSDIR}/devel/boost-libs +LIB_DEPENDS= wpd-0.9:${PORTSDIR}/textproc/libwpd \ + wpg-0.2:${PORTSDIR}/graphics/libwpg + +CPPFLAGS+= -I${LOCALBASE}/include +USE_XZ= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-werror +USE_GNOME= gnomehack +USE_LDCONFIG= yes +USE_PKGCONFIG= build + +.include diff --git a/print/libmspub/distinfo b/print/libmspub/distinfo new file mode 100644 index 000000000000..5239e308e1de --- /dev/null +++ b/print/libmspub/distinfo @@ -0,0 +1,2 @@ +SHA256 (libmspub-0.0.3.tar.xz) = e27c3021006080298357101a724563c23835c89757527217fb7f9357549ab15f +SIZE (libmspub-0.0.3.tar.xz) = 339552 diff --git a/print/libmspub/files/patch-src__lib__MSPUBParser.cpp b/print/libmspub/files/patch-src__lib__MSPUBParser.cpp new file mode 100644 index 000000000000..144d5604d1cb --- /dev/null +++ b/print/libmspub/files/patch-src__lib__MSPUBParser.cpp @@ -0,0 +1,20 @@ +--- ./src/lib/MSPUBParser.cpp.orig 2012-08-21 11:40:41.000000000 +0200 ++++ ./src/lib/MSPUBParser.cpp 2012-12-18 13:01:33.120360905 +0100 +@@ -1151,7 +1151,7 @@ + ParagraphStyle ret; + + bool isList = false; +- uint32_t bulletChar = '\u0000'; ++ uint32_t bulletChar = 0; + NumberingType numberingType = STANDARD_WESTERN; + NumberingDelimiter numberingDelimiter = NO_DELIMITER; + boost::optional numberIfRestarted; +@@ -1256,7 +1256,7 @@ + } + if (isList) + { +- if (bulletChar != '\u0000') ++ if (bulletChar) + { + ret.m_listInfo = ListInfo(bulletChar); + } diff --git a/print/libmspub/pkg-descr b/print/libmspub/pkg-descr new file mode 100644 index 000000000000..0304c1220023 --- /dev/null +++ b/print/libmspub/pkg-descr @@ -0,0 +1,4 @@ +library and tools providing ability to interpret and import Microsoft Publisher +content into various applications + +WWW: http://www.freedesktop.org/wiki/Software/libmspub/ diff --git a/print/libmspub/pkg-plist b/print/libmspub/pkg-plist new file mode 100644 index 000000000000..cbf830551934 --- /dev/null +++ b/print/libmspub/pkg-plist @@ -0,0 +1,12 @@ +bin/pub2raw +bin/pub2xhtml +include/libmspub-0.0 +include/libmspub-0.0/libmspub +include/libmspub-0.0/libmspub/MSPUBDocument.h +include/libmspub-0.0/libmspub/MSPUBStringVector.h +include/libmspub-0.0/libmspub/libmspub.h +lib/libmspub-0.0.a +lib/libmspub-0.0.la +lib/libmspub-0.0.so +lib/libmspub-0.0.so.0 +libdata/pkgconfig/libmspub-0.0.pc -- cgit