added html2ps ebuild
git-svn-id: svn+ssh://svnintern.kmrc.de/projects/gentoo/iwm-overlay@8843 cbe59ace-07ea-0310-918e-868702b5370d
This commit is contained in:
parent
aabb40d39e
commit
3294b067c0
4
app-text/html2ps/Manifest
Normal file
4
app-text/html2ps/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
AUX html2ps-1.0_beta5-conf.patch 1797 RMD160 bfaa67e8dc1042f609b0a88149860f9152cd11cb SHA1 28e26d2777fc57792e3e538e3ca117bf7d1dde9d SHA256 d43ebebcc9d16877b7292b22c2eb95719362960eb54e9e1dd0cac6d40a9a9bcb
|
||||
AUX html2ps-1.0_beta5-perl.patch 413 RMD160 35a8e381b04ef2543f8667b5141cf21fe6417d50 SHA1 79cc6aafedd9f195cf0531dd2f1cb339a2d3fc51 SHA256 22893ef3ab14c80daa8c1dcc1a9ea49bc7628e06a07245ca8383375d2ddbcaf2
|
||||
DIST html2ps-1.0b5.tar.gz 128059 RMD160 2cb1f3d1664b90b0413fa5cc6ed3134dab909bb1 SHA1 e95d40728260685af9cc9fdb53bb4d8979026024 SHA256 f71e425d5db2eda9578f4f4b019b14da42d39f69a802e5bdb9d4609ae8903e93
|
||||
EBUILD html2ps-1.0_beta5.ebuild 802 RMD160 1159aaaf3cda1fbe6bfe0f3038bfc97e24969079 SHA1 eee1c040b3925d09d328fd57a6c0a0aad6f90360 SHA256 740dc39aba3a98cd130f900932a32906cdc0aeb478d99c847c6d0c584226a9b0
|
54
app-text/html2ps/files/html2ps-1.0_beta5-conf.patch
Normal file
54
app-text/html2ps/files/html2ps-1.0_beta5-conf.patch
Normal file
@ -0,0 +1,54 @@
|
||||
diff -uNr html2ps-1.0b5.orig/html2ps html2ps-1.0b5/html2ps
|
||||
--- html2ps-1.0b5.orig/html2ps 2005-12-10 17:03:15.000000000 -0200
|
||||
+++ html2ps-1.0b5/html2ps 2005-12-12 10:55:39.000000000 -0200
|
||||
@@ -26,8 +26,8 @@
|
||||
# Set the name of the global configuration file. See the installation notes
|
||||
# and manual page for more details on configuration files.
|
||||
|
||||
-$globrc='/opt/misc/lib/html2ps/html2psrc';
|
||||
-$ug='/opt/misc/lib/html2ps/html2ps.html';
|
||||
+$globrc='/etc/html2psrc';
|
||||
+$ug='/usr/share/doc/html2ps.html';
|
||||
|
||||
$conf=<<'EOR';
|
||||
@html2ps {
|
||||
@@ -480,6 +480,17 @@
|
||||
&pagedef;
|
||||
($pagew,$pageh)=split /\s+/, $AT_page{'size'} if(defined $AT_page{'size'});
|
||||
|
||||
+# try autoconfiguration (basing on paths known from packages)
|
||||
+eval "require Image::Magick"; $package{'PerlMagick'}=!$@;
|
||||
+$package{'ImageMagick'} = ( -x "/usr/bin/mogrify" );
|
||||
+$package{'pbmplus'} = ( -x "/usr/bin/giftoppm" );
|
||||
+$package{'netpbm'} = ( -x "/usr/bin/giftopnm" );
|
||||
+$package{'djpeg'} = ( -x "/usr/bin/djpeg" );
|
||||
+$package{'Ghostscript'} = ( -x "/usr/bin/gs" );
|
||||
+$package{'TeX'} = ( -x "/usr/bin/tex" );
|
||||
+$package{'dvips'} = ( -x "/usr/bin/dvips" );
|
||||
+eval "require LWP::UserAgent"; $package{'libwww-perl'}=!$@;
|
||||
+
|
||||
require Image::Magick if($package{'PerlMagick'});
|
||||
$geturl=$package{'geturl'};
|
||||
$ulanch="f";
|
||||
diff -uNr html2ps-1.0b5.orig/html2psrc html2ps-1.0b5/html2psrc
|
||||
--- html2ps-1.0b5.orig/html2psrc 1969-12-31 21:00:00.000000000 -0300
|
||||
+++ html2ps-1.0b5/html2psrc 2005-12-12 10:56:30.000000000 -0200
|
||||
@@ -0,0 +1,18 @@
|
||||
+/* Global configuration file for html2ps */
|
||||
+
|
||||
+@html2ps {
|
||||
+ package {
|
||||
+ path: "/usr/X11R6/bin:/usr/bin";
|
||||
+ }
|
||||
+ paper {
|
||||
+ type: A4;
|
||||
+ }
|
||||
+ hyphenation {
|
||||
+ en {
|
||||
+ file: "/usr/share/texmf/tex/generic/hyphen/hyphen.tex";
|
||||
+ }
|
||||
+ pl {
|
||||
+ file: "/usr/share/texmf/tex/generic/hyphen/plhyph.tex";
|
||||
+ }
|
||||
+ }
|
||||
+}
|
11
app-text/html2ps/files/html2ps-1.0_beta5-perl.patch
Normal file
11
app-text/html2ps/files/html2ps-1.0_beta5-perl.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -uNr html2ps-1.0b5.orig/html2ps html2ps-1.0b5/html2ps
|
||||
--- html2ps-1.0b5.orig/html2ps 2005-12-10 17:03:15.000000000 -0200
|
||||
+++ html2ps-1.0b5/html2ps 2005-12-12 11:03:15.000000000 -0200
|
||||
@@ -1,6 +1,4 @@
|
||||
-: # Use perl
|
||||
-eval 'exec perl -S $0 "$@"'
|
||||
- if $running_under_some_shell;
|
||||
+#! /usr/bin/perl
|
||||
|
||||
# This is html2ps version 1.0 beta5, an HTML-to-PostScript converter.
|
||||
# Copyright (C) 1995-2005 Jan Karrman.
|
38
app-text/html2ps/html2ps-1.0_beta5.ebuild
Normal file
38
app-text/html2ps/html2ps-1.0_beta5.ebuild
Normal file
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2005 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_PV=${PV/_beta/b}
|
||||
|
||||
DESCRIPTION="HTML to PostScript converter"
|
||||
HOMEPAGE="http://user.it.uu.se/~jan/html2ps.html"
|
||||
SRC_URI="http://user.it.uu.se/~jan/${PN}-${MY_PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
DEPEND="dev-lang/perl
|
||||
tcltk? ( dev-lang/tk )"
|
||||
|
||||
IUSE="tcltk"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
epatch "${FILESDIR}/${P}-conf.patch"
|
||||
epatch "${FILESDIR}/${P}-perl.patch"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
dobin html2ps
|
||||
doman html2ps.1 html2psrc.5
|
||||
dodoc COPYING README html2ps.html sample
|
||||
insinto /etc ; doins html2psrc
|
||||
if use tcltk; then
|
||||
dobin contrib/xhtml2ps/xhtml2ps
|
||||
newdoc contrib/xhtml2ps/README README.xhtml2ps
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user