diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/pdf2html |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/pdf2html')
-rw-r--r-- | app-text/pdf2html/Manifest | 7 | ||||
-rw-r--r-- | app-text/pdf2html/files/pdf2html-1.4-gentoo.patch | 54 | ||||
-rw-r--r-- | app-text/pdf2html/files/pdf2html-1.4-libpng15.patch | 10 | ||||
-rw-r--r-- | app-text/pdf2html/metadata.xml | 8 | ||||
-rw-r--r-- | app-text/pdf2html/pdf2html-1.4.ebuild | 47 |
5 files changed, 126 insertions, 0 deletions
diff --git a/app-text/pdf2html/Manifest b/app-text/pdf2html/Manifest new file mode 100644 index 000000000000..85b0f1ed9ef4 --- /dev/null +++ b/app-text/pdf2html/Manifest @@ -0,0 +1,7 @@ +AUX pdf2html-1.4-gentoo.patch 2277 SHA256 c4fb059289ccb1e20a85cf79d91dbe7aaa3feb83fa37bdd70f694191f5aaab26 SHA512 5639f201a04d14347e13e4ff13d3b88c534f614dfaa0dac6494420e71a0c29ccfef83984fbfe4b130d91fa21c97b32f615abb2c875a2b447e48f542ce976ced1 WHIRLPOOL 49d03a363e7c44fff589ef2d1150c9c7de3e9fbbd4085215dc19b92e6a13ec83f78c96bb3955f9fcf278b91749c731e2fd6dc7341ef5d5e2ce111ffa0ee36f09 +AUX pdf2html-1.4-libpng15.patch 218 SHA256 f5e6a9c3682e0d2dbbe39192e1801001fc7b20d1bf54b87d6428c0f2745e9021 SHA512 2a0a80a639432cfdb067872d12c9c6ab9e5239a2f945d0fe362d1abfa4e8d203b377981807c686fccc53ed1afaee0b651345c8cd959f8cf268b5728c4145cb56 WHIRLPOOL e55efb8d02ac0d6aba7894bb6abce45f7495e289cfdac5bb1c9afc23cc6cf2f95f688935a31baded341bf7edf4b6e47662cad4da21d90254829cec433820edf2 +DIST pdf2html-1.4.tgz 22976 SHA256 71ee70c56ec1629442518992e1de743287d7b8799d0aae75e3be8095f7245b61 SHA512 00488c5e6303e1609294e7873c892866d19f3ee820f22f2d75436de22037bf3e4e1a565b7db29df5f6b20a76c5e2df4786e39e1d803cd7cca88274da65c7bbbb WHIRLPOOL b2b85e7bf705fcb1cbeca36d66593342725bcc6cccf699ae443b0150f757ed54ead385c7f7e84302a51d3cc995a3ee066980447d6948518f685edf7236df7d87 +EBUILD pdf2html-1.4.ebuild 1083 SHA256 2adbf25280936bae534ac8eb0cafa82b612e69c9a8f3311215b1600bbcc66724 SHA512 0de389bd8d2c32a4daef3a433a9f336b3f22d0e6c1b1d8c485605b22a251dd99732db0b3994a75a32ac5272ed28b57db099e4b9a5879062b087069a4b907694d WHIRLPOOL 2334dcfe28c329168f1d58526402232028e7c08cb266e57216c0479b521d5a0174dc06ffdf553547f4965869e93c44ac96bc66f2fb569f210439514389df49fe +MISC ChangeLog 2498 SHA256 bdcef36f1e7fb109be345fb99bcacc2c1665bd0788f3018c089f5eeba13382fc SHA512 d992baa75615b66d71876fe353020b87ab40cb410974a6b3eb1a0a8e2e7fbccca735f8beac7e12d40caed2c153a82db7198b9c4cf85a40e6730942cbcd614f31 WHIRLPOOL a09ce5903c4641d2f2f6b9d4fe60dbbd92b2f58f5cff0de43df9adcb03fa5c883ee5051d281affa33b910c0c54d77847022e7d0e28fcab0cd4f21d01476e70de +MISC ChangeLog-2015 2452 SHA256 4b2b7241b73a9849981169cc057ba5c7b2578fafbe1c7713e53c974605b23034 SHA512 8dcd2788081977936bdde663d8381bb2a4ca5fb36bfd7f626e29f293040a89c41184cfc0b07ab68ee6e57e7591570df260742bf91b1941304025a37bebb19a66 WHIRLPOOL a67189c08840da4f9b51ab040b24aa2bec73e4652b67e00b1f683648693094e471b910636b59a64df163bea298a358fa6877327fad55eb8e22331b1df5640030 +MISC metadata.xml 245 SHA256 b3de478821488be2cdc91b078e21c911dc384af882c5c44631a47dfa91516dc8 SHA512 1653777623e2c15e1ce13229e396723b2cc9c214983e0f8592de98c01a31badc6c38c6735ed44f937d145883b43fb6f049af3eddb9ff96b18c96ccf8f67dd690 WHIRLPOOL 701a78fc2214f5fd4bd781477f85e87e716b8d76ea831a0fa4afc8871c4286cc363679f1ff4f844555ad4f77cc7265208b83e805f56c22fc4baeed1062280c08 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/files/pdf2html-1.4-libpng15.patch b/app-text/pdf2html/files/pdf2html-1.4-libpng15.patch new file mode 100644 index 000000000000..72a0e1b65af9 --- /dev/null +++ b/app-text/pdf2html/files/pdf2html-1.4-libpng15.patch @@ -0,0 +1,10 @@ +--- pbm2png.c ++++ pbm2png.c +@@ -23,6 +23,7 @@ + #include <stdlib.h> + #include <string.h> + #include <unistd.h> ++#include <zlib.h> /* Z_BEST_COMPRESSION */ + #include <png.h> + #include <sys/types.h> + #include <sys/stat.h> diff --git a/app-text/pdf2html/metadata.xml b/app-text/pdf2html/metadata.xml new file mode 100644 index 000000000000..13170c3184d8 --- /dev/null +++ b/app-text/pdf2html/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>tex@gentoo.org</email> + <name>Gentoo TeX Project</name> +</maintainer> +</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..6447a075494d --- /dev/null +++ b/app-text/pdf2html/pdf2html-1.4.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit eutils toolchain-funcs + +DESCRIPTION="Converts pdf files to html files" +HOMEPAGE="http://atrey.karlin.mff.cuni.cz/~clock/twibright/pdf2html/" +SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/pdf2html/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND=">=media-libs/libpng-1.4 + sys-libs/zlib" +RDEPEND="${DEPEND} + app-text/ghostscript-gpl + >=media-gfx/imagemagick-6" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-libpng15.patch +} + +src_compile() { + tc-export CC + # Rewrite the Makefile as that's simpler + echo "LDLIBS=-lpng" > Makefile + echo "all: pbm2png" >> Makefile + emake + echo "pbm2eps9: pbm2eps9.o printer.o" > Makefile + emake pbm2eps9 + + echo "cp \"${EPREFIX}\"/usr/share/${P}/*.png ." >> pdf2html +} + +src_install() { + dobin pbm2png pbm2eps9 pdf2html ps2eps9 + + insinto /usr/share/${P} + doins *.png *.html + + dodoc CHANGELOG README VERSION +} |