summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-02-21 15:25:51 +0000
committerMamoru Komachi <usata@gentoo.org>2004-02-21 15:25:51 +0000
commit77609a449cf3f9aeb2030c1ab1b6316c283ce434 (patch)
tree57acaf647a73f3b007c6811584632af11281acf5 /app-text/pdf2html
parentmarked stable on x86. (Manifest recommit) (diff)
downloadgentoo-2-77609a449cf3f9aeb2030c1ab1b6316c283ce434.tar.gz
gentoo-2-77609a449cf3f9aeb2030c1ab1b6316c283ce434.tar.bz2
gentoo-2-77609a449cf3f9aeb2030c1ab1b6316c283ce434.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/ChangeLog11
-rw-r--r--app-text/pdf2html/Manifest2
-rw-r--r--app-text/pdf2html/files/digest-pdf2html-1.41
-rw-r--r--app-text/pdf2html/files/pdf2html-1.4-gentoo.patch54
-rw-r--r--app-text/pdf2html/metadata.xml5
-rw-r--r--app-text/pdf2html/pdf2html-1.4.ebuild37
6 files changed, 110 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..8a0871271374
--- /dev/null
+++ b/app-text/pdf2html/Manifest
@@ -0,0 +1,2 @@
+MD5 8008c792104745a60453aaa82ac13577 pdf2html-1.4.ebuild 774
+MD5 ba84b2f461163b40ecbeee73d9202a5b files/digest-pdf2html-1.4 60
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"
+}