diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-02-21 15:25:51 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-02-21 15:25:51 +0000 |
commit | 832a23118c93779651c9b37a8eb4dbfe8c1be217 (patch) | |
tree | 4c60b48580e961b75ec87abd1fa56ddbed81a746 /app-text/pdf2html | |
parent | marked stable on x86. (diff) | |
download | historical-832a23118c93779651c9b37a8eb4dbfe8c1be217.tar.gz historical-832a23118c93779651c9b37a8eb4dbfe8c1be217.tar.bz2 historical-832a23118c93779651c9b37a8eb4dbfe8c1be217.zip |
Initial import. Ebuild submitted by Victor Iggy <lamer0@lamer0.com>, closing bug #15980
Diffstat (limited to 'app-text/pdf2html')
-rw-r--r-- | app-text/pdf2html/ChangeLog | 11 | ||||
-rw-r--r-- | app-text/pdf2html/Manifest | 5 | ||||
-rw-r--r-- | app-text/pdf2html/files/digest-pdf2html-1.4 | 1 | ||||
-rw-r--r-- | app-text/pdf2html/files/pdf2html-1.4-gentoo.patch | 54 | ||||
-rw-r--r-- | app-text/pdf2html/metadata.xml | 5 | ||||
-rw-r--r-- | app-text/pdf2html/pdf2html-1.4.ebuild | 37 |
6 files changed, 113 insertions, 0 deletions
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 <usata@gentoo.org> metadata.xml, + pdf2html-1.4.ebuild: + Initial import. Ebuild submitted by Victor Iggy <lamer0@lamer0.com>, + 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,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\" +-alink=\"#ffff00\">\n",titlestring); ++ fprintf(f,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\" alink=\"#ffff00\">\n",titlestring); + fprintf(f,"<h1>%s, Page %d</h1>\n",titlestring,index+pageoffset); + fprintf(f,"<p><table border=0 cellspacing=0 cellpadding=2><tr>"); + fprintf(f,"<td valign=\"top\"><table border=0 cellpadding=0 cellspacing=0><tr><td>"); + if (index) + { +- fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0 +-></a>\n",basename,index-1); ++ fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0></a>\n",basename,index-1); + } + else + { +@@ -162,18 +160,15 @@ + fprintf(f,"</td><td>"); + if (index<filenumber-1) + { +- fprintf(f,"<a href=\"%s%d.html\"> +-<img src=\"right.png\" border=0></a>\n",basename,index+1); ++ fprintf(f,"<a href=\"%s%d.html\"> <img src=\"right.png\" border=0></a>\n",basename,index+1); + } + else + { + fprintf(f,"<img src=\"right.png\" border=0>\n"); + } +- fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\"> +-<img src=\"idx.png\" border=0 ></a></td>"); ++ fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\"><img src=\"idx.png\" border=0 ></a></td>"); + fprintf(f,"</tr></table>"); +- fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\" +-></td>\n</tr></table>",basename,index); ++ fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\"></td>\n</tr></table>",basename,index); + fprintf(f,"</body></html>"); + fclose(f); + } +@@ -438,9 +433,8 @@ + int a,z; + + if (argc<7){ +- fprintf(stderr,"Usage: pbm2png <dpi> <basename> <titlestring> +-<bottom_html_code> <pageoffset> <ifname> [starting_filenumber [invert]]\n"); +- return 0; ++ fprintf(stderr,"Usage: pbm2png <dpi> <basename> <titlestring> <bottom_html_code> <pageoffset> <ifname> [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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>text-markup</herd> +</pkgmetadata> 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" +} |