summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz>2009-11-07 08:49:37 +0000
committerwiz <wiz>2009-11-07 08:49:37 +0000
commit63e12da67bea9086dcd440c66919af7316e6d4a0 (patch)
tree7ee1ddab8b350a85065efef47d2e68a2b552c8ed /textproc
parentbf55512aeb4f6b09bfd4487609d4490078dab92b (diff)
downloadpkgsrc-63e12da67bea9086dcd440c66919af7316e6d4a0.tar.gz
Initial import of p5-mobiperl-0.0.43:
MobiPerl is a collection of tools for generating and manipulating MobiPocket files written in Perl. MobiPerl currently consists of the following Perl programs: * html2mobi - Convert HTML file to a MobiPocket file. * opf2mobi - Convert an opf file structure to a MobiPocket file. * lit2mobi - Convert a lit file to a MobiPocket file. * mobi2html - Explode a DRM free MobiPocket file. * mobi2mobi - Manipulate meta data for a MobiPocket file. * mobils - An "ls" program for MobiPocket files. Since no official documentation for the MobiPocket is available there might be some mistakes in the generation of the MobiPocket files. It seems to work but there might be remaining bugs. So always keep your original files so you can repeat the conversion if necessary.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-mobiperl/DESCR17
-rw-r--r--textproc/p5-mobiperl/Makefile53
-rw-r--r--textproc/p5-mobiperl/PLIST21
-rw-r--r--textproc/p5-mobiperl/distinfo5
4 files changed, 96 insertions, 0 deletions
diff --git a/textproc/p5-mobiperl/DESCR b/textproc/p5-mobiperl/DESCR
new file mode 100644
index 00000000000..7e8b9c746b3
--- /dev/null
+++ b/textproc/p5-mobiperl/DESCR
@@ -0,0 +1,17 @@
+MobiPerl is a collection of tools for generating and manipulating
+MobiPocket files written in Perl.
+
+MobiPerl currently consists of the following Perl programs:
+
+* html2mobi - Convert HTML file to a MobiPocket file.
+* opf2mobi - Convert an opf file structure to a MobiPocket file.
+* lit2mobi - Convert a lit file to a MobiPocket file.
+* mobi2html - Explode a DRM free MobiPocket file.
+* mobi2mobi - Manipulate meta data for a MobiPocket file.
+* mobils - An "ls" program for MobiPocket files.
+
+Since no official documentation for the MobiPocket is available
+there might be some mistakes in the generation of the MobiPocket
+files. It seems to work but there might be remaining bugs. So always
+keep your original files so you can repeat the conversion if
+necessary.
diff --git a/textproc/p5-mobiperl/Makefile b/textproc/p5-mobiperl/Makefile
new file mode 100644
index 00000000000..952fb4cb6c0
--- /dev/null
+++ b/textproc/p5-mobiperl/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/11/07 08:49:37 wiz Exp $
+#
+
+DISTNAME= mobiperl-0.0.43
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= textproc
+# no https support in pkgsrc
+MASTER_SITES= # https://dev.mobileread.com/dist/tompe/mobiperl/
+EXTRACT_SUFX= .tar
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://dev.mobileread.com/trac/mobiperl/wiki
+COMMENT= Tools for generating and manipulating MobiPocket files
+LICENSE= gnu-gpl-v3
+
+DEPENDS+= p5-Palm-[0-9]*:../../databases/p5-Palm
+DEPENDS+= p5-Getopt-Mixed-[0-9]*:../../devel/p5-Getopt-Mixed
+DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD
+DEPENDS+= p5-Image-Size-[0-9]*:../../graphics/p5-Image-Size
+DEPENDS+= p5-Image-BMP-[0-9]*:../../graphics/p5-Image-BMP
+DEPENDS+= p5-Encode-[0-9]*:../../textproc/p5-Encode
+DEPENDS+= p5-XML-Parser-Lite-Tree-[0-9]*:../../textproc/p5-XML-Parser-Lite-Tree
+DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate
+DEPENDS+= p5-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS= bin ${PERL5_INSTALLVENDORLIB}/MobiPerl
+INSTALLATION_DIRS+= ${PERL5_INSTALLVENDORLIB}/Palm
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+
+REPLACE_PERL= *mobi*
+USE_TOOLS+= pod2man
+
+do-build:
+ cd ${WRKSRC} && \
+ pod2man mobi2mobi > mobi2mobi.1; \
+ pod2man mobils > mobils.1; \
+ pod2man mobi2html > mobi2html.1; \
+ pod2man lit2mobi > lit2mobi.1; \
+ pod2man opf2mobi > opf2mobi.1; \
+ pod2man html2mobi > html2mobi.1
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/MobiPerl/* ${DESTDIR}${PERL5_INSTALLVENDORLIB}/MobiPerl
+ ${INSTALL_DATA} ${WRKSRC}/Palm/* ${DESTDIR}${PERL5_INSTALLVENDORLIB}/Palm
+.for file in html2mobi lit2mobi mobi2html mobi2mobi mobils opf2mobi
+ ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${DESTDIR}${PREFIX}/bin
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/p5-mobiperl/PLIST b/textproc/p5-mobiperl/PLIST
new file mode 100644
index 00000000000..19262ecd780
--- /dev/null
+++ b/textproc/p5-mobiperl/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/07 08:49:37 wiz Exp $
+bin/html2mobi
+bin/lit2mobi
+bin/mobi2html
+bin/mobi2mobi
+bin/mobils
+bin/opf2mobi
+${PERL5_SUB_INSTALLVENDORLIB}/MobiPerl/Config.pm
+${PERL5_SUB_INSTALLVENDORLIB}/MobiPerl/EXTH.pm
+${PERL5_SUB_INSTALLVENDORLIB}/MobiPerl/LinksInfo.pm
+${PERL5_SUB_INSTALLVENDORLIB}/MobiPerl/MobiFile.pm
+${PERL5_SUB_INSTALLVENDORLIB}/MobiPerl/MobiHeader.pm
+${PERL5_SUB_INSTALLVENDORLIB}/MobiPerl/Opf.pm
+${PERL5_SUB_INSTALLVENDORLIB}/MobiPerl/Util.pm
+${PERL5_SUB_INSTALLVENDORLIB}/Palm/Doc.pm
+man/man1/html2mobi.1
+man/man1/lit2mobi.1
+man/man1/mobi2html.1
+man/man1/mobi2mobi.1
+man/man1/mobils.1
+man/man1/opf2mobi.1
diff --git a/textproc/p5-mobiperl/distinfo b/textproc/p5-mobiperl/distinfo
new file mode 100644
index 00000000000..7b2bfed0606
--- /dev/null
+++ b/textproc/p5-mobiperl/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/11/07 08:49:37 wiz Exp $
+
+SHA1 (mobiperl-0.0.43.tar) = d2ced934fae28a9272febddc994f60951fc9068c
+RMD160 (mobiperl-0.0.43.tar) = 3946e88a5b89e73c507b26df5636974bccbaa1f6
+Size (mobiperl-0.0.43.tar) = 225280 bytes