From 832a23118c93779651c9b37a8eb4dbfe8c1be217 Mon Sep 17 00:00:00 2001 From: Mamoru Komachi Date: Sat, 21 Feb 2004 15:25:51 +0000 Subject: Initial import. Ebuild submitted by Victor Iggy , closing bug #15980 --- app-text/pdf2html/ChangeLog | 11 +++++ app-text/pdf2html/Manifest | 5 +++ app-text/pdf2html/files/digest-pdf2html-1.4 | 1 + app-text/pdf2html/files/pdf2html-1.4-gentoo.patch | 54 +++++++++++++++++++++++ app-text/pdf2html/metadata.xml | 5 +++ app-text/pdf2html/pdf2html-1.4.ebuild | 37 ++++++++++++++++ 6 files changed, 113 insertions(+) create mode 100644 app-text/pdf2html/ChangeLog create mode 100644 app-text/pdf2html/Manifest create mode 100644 app-text/pdf2html/files/digest-pdf2html-1.4 create mode 100644 app-text/pdf2html/files/pdf2html-1.4-gentoo.patch create mode 100644 app-text/pdf2html/metadata.xml create mode 100644 app-text/pdf2html/pdf2html-1.4.ebuild (limited to 'app-text/pdf2html') diff --git a/app-text/pdf2html/ChangeLog b/app-text/pdf2html/ChangeLog new file mode 100644 index 000000000000..637db03ecbbe --- /dev/null +++ b/app-text/pdf2html/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-text/pdf2html +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/pdf2html/ChangeLog,v 1.1 2004/02/21 15:25:51 usata Exp $ + +*pdf2html-1.4 (21 Feb 2004) + + 21 Feb 2004; Mamoru KOMACHI metadata.xml, + pdf2html-1.4.ebuild: + Initial import. Ebuild submitted by Victor Iggy , + closing bug #15980 + diff --git a/app-text/pdf2html/Manifest b/app-text/pdf2html/Manifest new file mode 100644 index 000000000000..a94233be11f8 --- /dev/null +++ b/app-text/pdf2html/Manifest @@ -0,0 +1,5 @@ +MD5 432d4cab2c49e15675465af717422329 pdf2html-1.4.ebuild 985 +MD5 c472f5fd1646eb8bca71d8df5cb2bdcc metadata.xml 164 +MD5 ede3d4a07ed47f78fd8b9f3b1df646d2 ChangeLog 423 +MD5 ba84b2f461163b40ecbeee73d9202a5b files/digest-pdf2html-1.4 60 +MD5 4ad2f1e70c01cc1a86a6843736efc867 files/pdf2html-1.4-gentoo.patch 2277 diff --git a/app-text/pdf2html/files/digest-pdf2html-1.4 b/app-text/pdf2html/files/digest-pdf2html-1.4 new file mode 100644 index 000000000000..6d86282ad2f2 --- /dev/null +++ b/app-text/pdf2html/files/digest-pdf2html-1.4 @@ -0,0 +1 @@ +MD5 cefb8fac9366cc7f793740e9d397af1a pdf2html-1.4.tgz 22976 diff --git a/app-text/pdf2html/files/pdf2html-1.4-gentoo.patch b/app-text/pdf2html/files/pdf2html-1.4-gentoo.patch new file mode 100644 index 000000000000..715b829b1c2a --- /dev/null +++ b/app-text/pdf2html/files/pdf2html-1.4-gentoo.patch @@ -0,0 +1,54 @@ +--- pbm2png.c.orig 2003-09-16 20:12:55.000000000 +0900 ++++ pbm2png.c 2004-02-21 22:09:57.415786664 +0900 +@@ -145,15 +145,13 @@ + sprintf(string,"%s%d.html",basename,index); + f=fopen(string,"w"); + +- fprintf(f,"%s\n",titlestring); ++ fprintf(f,"%s\n",titlestring); + fprintf(f,"

%s, Page %d

\n",titlestring,index+pageoffset); + fprintf(f,"

"); + fprintf(f,"\n
"); ++ fprintf(f,""); + fprintf(f,"
"); + if (index) + { +- fprintf(f,"\n",basename,index-1); ++ fprintf(f,"\n",basename,index-1); + } + else + { +@@ -162,18 +160,15 @@ + fprintf(f,""); + if (index +-\n",basename,index+1); ++ fprintf(f," \n",basename,index+1); + } + else + { + fprintf(f,"\n"); + } +- fprintf(f,"
+-
"); +- fprintf(f,"
",basename,index); ++ fprintf(f,"\n",basename,index); + fprintf(f,""); + fclose(f); + } +@@ -438,9 +433,8 @@ + int a,z; + + if (argc<7){ +- fprintf(stderr,"Usage: pbm2png +- [starting_filenumber [invert]]\n"); +- return 0; ++ fprintf(stderr,"Usage: pbm2png [starting_filenumber [invert]]\n"); ++ return 0; + } + dpi=atol(argv[1]); + ppm=dpi*1000/25.4; diff --git a/app-text/pdf2html/metadata.xml b/app-text/pdf2html/metadata.xml new file mode 100644 index 000000000000..06689a1a9114 --- /dev/null +++ b/app-text/pdf2html/metadata.xml @@ -0,0 +1,5 @@ + + + +text-markup + diff --git a/app-text/pdf2html/pdf2html-1.4.ebuild b/app-text/pdf2html/pdf2html-1.4.ebuild new file mode 100644 index 000000000000..c57a5c522064 --- /dev/null +++ b/app-text/pdf2html/pdf2html-1.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/pdf2html/pdf2html-1.4.ebuild,v 1.1 2004/02/21 15:25:51 usata Exp $ + +SLOT="0" + +DESCRIPTION="Converts pdf files to html files" +SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/pdf2html/${P}.tgz" +HOMEPAGE="http://atrey.karlin.mff.cuni.cz/~clock/twibright/pdf2html/" + +KEYWORDS="~x86 -alpha" +LICENSE="GPL-2" +DEPEND=">=media-libs/libpng-1.2.5 + >=app-text/ghostscript-7.05.5 + >=sys-libs/zlib-1.1.4 + >=media-gfx/imagemagick-5.4.9" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + emake CFLAGS="${CFLAGS}" || die "Compile has failed" + echo "cp /usr/share/${P}/*.png ." >> pdf2html +} + +src_install() { + dobin pbm2png pbm2eps9 pdf2html ps2eps9 || die "install failed" + + insinto /usr/share/${P} + doins *.png *.html + + dodoc CHANGELOG INSTALL README VERSION || die "install failed" +} -- cgit v1.2.3-65-gdbad