aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-12-18 20:09:52 +0800
committerbapt <bapt@FreeBSD.org>2012-12-18 20:09:52 +0800
commit49a5b1ab0bad7d79f3d0b1b72da83a61124049d7 (patch)
tree78f1acd86bec4bd64622df2d633a226c606fa734 /print
parentd2ce8513494209e18e20e70791be0f8746306bf6 (diff)
downloadfreebsd-ports-gnome-49a5b1ab0bad7d79f3d0b1b72da83a61124049d7.tar.gz
freebsd-ports-gnome-49a5b1ab0bad7d79f3d0b1b72da83a61124049d7.tar.zst
freebsd-ports-gnome-49a5b1ab0bad7d79f3d0b1b72da83a61124049d7.zip
Lbrary and tools providing ability to interpret and import Microsoft Publisher
content into various applications.
Diffstat (limited to 'print')
-rw-r--r--print/Makefile1
-rw-r--r--print/libmspub/Makefile26
-rw-r--r--print/libmspub/distinfo2
-rw-r--r--print/libmspub/files/patch-src__lib__MSPUBParser.cpp20
-rw-r--r--print/libmspub/pkg-descr4
-rw-r--r--print/libmspub/pkg-plist12
6 files changed, 65 insertions, 0 deletions
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 <bsd.port.mk>
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<unsigned> 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