summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2010-06-06 23:41:12 +0000
committermarkd <markd@pkgsrc.org>2010-06-06 23:41:12 +0000
commit55e2a722650d5fa8402a0e9e3f934faf833a9ba5 (patch)
tree43236915a023540f10e7274eef3f4ce15faec09f /textproc
parent60a726109804a5fbc7d3de174166fcd03de8d9bf (diff)
downloadpkgsrc-55e2a722650d5fa8402a0e9e3f934faf833a9ba5.tar.gz
Import of lit2epub 0.1.1
Script to convert .lit files to valid epub - from ebook-tools.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/lit2epub/DESCR1
-rw-r--r--textproc/lit2epub/Makefile30
-rw-r--r--textproc/lit2epub/PLIST2
-rw-r--r--textproc/lit2epub/distinfo6
-rw-r--r--textproc/lit2epub/patches/patch-aa22
5 files changed, 61 insertions, 0 deletions
diff --git a/textproc/lit2epub/DESCR b/textproc/lit2epub/DESCR
new file mode 100644
index 00000000000..ae20c33b5eb
--- /dev/null
+++ b/textproc/lit2epub/DESCR
@@ -0,0 +1 @@
+Script to convert .lit files to valid epub - from ebook-tools.
diff --git a/textproc/lit2epub/Makefile b/textproc/lit2epub/Makefile
new file mode 100644
index 00000000000..13bd41b0bd0
--- /dev/null
+++ b/textproc/lit2epub/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/06/06 23:41:12 markd Exp $
+#
+
+DISTNAME= ebook-tools-0.1.1
+PKGNAME= lit2epub-0.1.1
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ebook-tools/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://ebook-tools.sourceforge.net/
+COMMENT= Convert .lit files to valid epub
+LICENSE= mit
+
+DEPENDS+= zip-[0-9]*:../../archivers/zip
+DEPENDS+= convertlit-[0-9]*:../../textproc/convertlit
+
+CONFLICTS+= ebook-tools<=0.1.1
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= bash:run
+REPLACE_BASH= src/tools/lit2epub
+NO_BUILD= yes
+
+INSTALLATION_DIRS= bin
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/src/tools/lit2epub ${DESTDIR}${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/lit2epub/PLIST b/textproc/lit2epub/PLIST
new file mode 100644
index 00000000000..d725fde8d30
--- /dev/null
+++ b/textproc/lit2epub/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/06/06 23:41:12 markd Exp $
+bin/lit2epub
diff --git a/textproc/lit2epub/distinfo b/textproc/lit2epub/distinfo
new file mode 100644
index 00000000000..1dacaf0ef0e
--- /dev/null
+++ b/textproc/lit2epub/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/06/06 23:41:12 markd Exp $
+
+SHA1 (ebook-tools-0.1.1.tar.gz) = 5c7c177914767412f3c8b145319fa4683755ac90
+RMD160 (ebook-tools-0.1.1.tar.gz) = 02ee38ed7175e94577f718cc68c468f4e9d229ea
+Size (ebook-tools-0.1.1.tar.gz) = 43280 bytes
+SHA1 (patch-aa) = e8b2df45fdcd985eb1df5ed6a56861af268f7d7c
diff --git a/textproc/lit2epub/patches/patch-aa b/textproc/lit2epub/patches/patch-aa
new file mode 100644
index 00000000000..b6bce96b176
--- /dev/null
+++ b/textproc/lit2epub/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/06/06 23:41:12 markd Exp $
+
+--- src/tools/lit2epub.orig 2008-06-07 21:09:38.000000000 +0200
++++ src/tools/lit2epub
+@@ -2,7 +2,7 @@
+ # Uses clit to convert .lit files to valid epub
+ # known issues: created metadata uses the old spec
+
+-CLIT=$(which clit)
++CLIT=$(which convertlit)
+
+ if [ "$?" != 0 ]; then
+ echo "Can't find clit, please make sure it is in your path"
+@@ -42,7 +42,7 @@ if [ "$?" != 0 ]; then
+ fi
+
+ else
+- TEMPDIR=$($MKTEMP -d)
++ TEMPDIR=$($MKTEMP -d -t lit2epub.tmp)
+ fi
+
+ WD=$(pwd)