summaryrefslogtreecommitdiff
path: root/textproc/odt2tex
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2016-07-26 12:53:11 +0000
committerwiz <wiz@pkgsrc.org>2016-07-26 12:53:11 +0000
commitd3648c0d8e1c3af041419dd46df10f8d1ba57368 (patch)
treec1fab483ecc9a44509e560f545f2e18f9fe298a1 /textproc/odt2tex
parent276d46b8f187b3e456e7d86755fc7d025cd0b736 (diff)
downloadpkgsrc-d3648c0d8e1c3af041419dd46df10f8d1ba57368.tar.gz
Import odt2tex-0.0.12 as textproc/odt2tex.
odt2tex is a simple command line tool that converts ODT (Libre/OpenOffice text documents) to LaTeX .tex input files. It is released under the MIT license and written in plain C depending only on two further libraries: libzip and expat.
Diffstat (limited to 'textproc/odt2tex')
-rw-r--r--textproc/odt2tex/DESCR4
-rw-r--r--textproc/odt2tex/Makefile16
-rw-r--r--textproc/odt2tex/PLIST2
-rw-r--r--textproc/odt2tex/distinfo7
-rw-r--r--textproc/odt2tex/patches/patch-Makefile31
5 files changed, 60 insertions, 0 deletions
diff --git a/textproc/odt2tex/DESCR b/textproc/odt2tex/DESCR
new file mode 100644
index 00000000000..ba62451b9e0
--- /dev/null
+++ b/textproc/odt2tex/DESCR
@@ -0,0 +1,4 @@
+odt2tex is a simple command line tool that converts ODT (Libre/OpenOffice
+text documents) to LaTeX .tex input files. It is released under the
+MIT license and written in plain C depending only on two further
+libraries: libzip and expat.
diff --git a/textproc/odt2tex/Makefile b/textproc/odt2tex/Makefile
new file mode 100644
index 00000000000..27f51025efa
--- /dev/null
+++ b/textproc/odt2tex/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2016/07/26 12:53:11 wiz Exp $
+
+DISTNAME= odt2tex-0.0.12
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=simonaw/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://www.chronowerks.de/odt/
+COMMENT= Convert ODT (Libre/OpenOffice text documents) to LaTeX input files
+LICENSE= mit
+
+USE_TOOLS+= pkg-config
+
+.include "../../archivers/libzip/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/odt2tex/PLIST b/textproc/odt2tex/PLIST
new file mode 100644
index 00000000000..34d76d8d92c
--- /dev/null
+++ b/textproc/odt2tex/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/26 12:53:11 wiz Exp $
+bin/odt2tex
diff --git a/textproc/odt2tex/distinfo b/textproc/odt2tex/distinfo
new file mode 100644
index 00000000000..8c279faeae7
--- /dev/null
+++ b/textproc/odt2tex/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/07/26 12:53:11 wiz Exp $
+
+SHA1 (odt2tex-0.0.12.tar.gz) = a258823a176435a5c630b20c11976d63f6a0c693
+RMD160 (odt2tex-0.0.12.tar.gz) = cfb612594dcc303d0737ba0b3beb955eea6eb593
+SHA512 (odt2tex-0.0.12.tar.gz) = fa51f96f02176927e2f7d6d475c9dc888b874cf0c329e4df22938626e6f01a1206bca751b6712a6adc7bc7213733bc28b60999add2692e3e2725b86251d6e2f9
+Size (odt2tex-0.0.12.tar.gz) = 1018780 bytes
+SHA1 (patch-Makefile) = ba465a5a40f65dc5b16637a172726dcc8568b3c9
diff --git a/textproc/odt2tex/patches/patch-Makefile b/textproc/odt2tex/patches/patch-Makefile
new file mode 100644
index 00000000000..0193f8439f1
--- /dev/null
+++ b/textproc/odt2tex/patches/patch-Makefile
@@ -0,0 +1,31 @@
+$NetBSD: patch-Makefile,v 1.1 2016/07/26 12:53:11 wiz Exp $
+
+Fix include paths and link paths, and fix install target.
+
+--- Makefile.orig 2016-07-26 03:17:27.000000000 +0000
++++ Makefile
+@@ -1,12 +1,12 @@
+ compiler = gcc
+ target = odt2tex
+-incdirs = -Iinc
++incdirs = -Iinc `pkg-config --cflags libzip`
+ src = src
+ rm = rm
+ inc = inc
+ optimize = -O2
+ flags = -pipe -Wall $(optimize)
+-libs = -lexpat -lzip
++libs = -lexpat `pkg-config --libs libzip`
+ strip = -s
+
+ # Objects for Main Binary
+@@ -32,7 +32,8 @@ clean :
+ -@$(rm) $(target) $(src)/*.o 2>/dev/null
+
+ install:
+- install -D $(target) $(DESTDIR)
++ install -d $(DESTDIR)$(PREFIX)/bin
++ install $(target) $(DESTDIR)$(PREFIX)/bin
+
+ test:
+ ./odt2tex in=testdoc.odt out=testdoc-out