New package (bug #107419)
authorLeonardo Boshell <leonardop@gentoo.org>
Fri, 18 Nov 2005 17:57:02 +0000 (17:57 +0000)
committerLeonardo Boshell <leonardop@gentoo.org>
Fri, 18 Nov 2005 17:57:02 +0000 (17:57 +0000)
Package-Manager: portage-2.0.53_rc7

dev-tex/hyphen_show/ChangeLog [new file with mode: 0644]
dev-tex/hyphen_show/Manifest [new file with mode: 0644]
dev-tex/hyphen_show/files/digest-hyphen_show-20000425 [new file with mode: 0644]
dev-tex/hyphen_show/files/hyphen_show-gcc34.patch [new file with mode: 0644]
dev-tex/hyphen_show/hyphen_show-20000425.ebuild [new file with mode: 0644]
dev-tex/hyphen_show/metadata.xml [new file with mode: 0644]

diff --git a/dev-tex/hyphen_show/ChangeLog b/dev-tex/hyphen_show/ChangeLog
new file mode 100644 (file)
index 0000000..14bd13e
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for dev-tex/hyphen_show
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/hyphen_show/ChangeLog,v 1.1 2005/11/18 17:57:01 leonardop Exp $
+
+*hyphen_show-20000425 (18 Nov 2005)
+
+  18 Nov 2005; Leonardo Boshell <leonardop@gentoo.org>
+  +hyphen_show-20000425.ebuild, +files/hyphen_show-gcc34.patch:
+  New package. Reported on bug #107419; ebuild and patch submitted by Ulrich
+  Mueller.
+ 
diff --git a/dev-tex/hyphen_show/Manifest b/dev-tex/hyphen_show/Manifest
new file mode 100644 (file)
index 0000000..4b9a838
--- /dev/null
@@ -0,0 +1,5 @@
+MD5 5b583cecd015a42d8c2159769b0f80d5 ChangeLog 460
+MD5 e0ed767c31df3b5cbdf3cb90ce502b0b files/digest-hyphen_show-20000425 75
+MD5 a4cb3cdb30d4212802249894858c7073 files/hyphen_show-gcc34.patch 2314
+MD5 9ef6f4362f1c45a4ae9ca5fddc9c0446 hyphen_show-20000425.ebuild 819
+MD5 c472f5fd1646eb8bca71d8df5cb2bdcc metadata.xml 164
diff --git a/dev-tex/hyphen_show/files/digest-hyphen_show-20000425 b/dev-tex/hyphen_show/files/digest-hyphen_show-20000425
new file mode 100644 (file)
index 0000000..a42162e
--- /dev/null
@@ -0,0 +1 @@
+MD5 e406e89b28db5884b0d8bf8ba117a173 hyphen-show_20000425.orig.tar.gz 8723
diff --git a/dev-tex/hyphen_show/files/hyphen_show-gcc34.patch b/dev-tex/hyphen_show/files/hyphen_show-gcc34.patch
new file mode 100644 (file)
index 0000000..9da98c9
--- /dev/null
@@ -0,0 +1,78 @@
+--- hyphen-show-20000425/hyphen_show.c.orig    2002-01-29 00:08:12.000000000 +0100
++++ hyphen-show-20000425/hyphen_show.c 2005-09-29 09:34:01.000000000 +0200
+@@ -79,9 +79,9 @@
+                                 Linux (gcc),
+                                 SGI IRIS 5.2                              */
+   #include <sys/fcntl.h>
+-  int close(int);
+-  int read(int,char *,unsigned);
+-  int isalpha(char);
++  #include <unistd.h>
++  #include <stdlib.h>
++  #include <ctype.h>
+ #endif
+ 
+ int gchar(unsigned char *);
+@@ -106,7 +106,6 @@
+ char zugelassen(char, unsigned char);
+ char* text_clear(char *, int *);
+ void eop(void);
+-long pow(int,int);
+ void eingabe(long *, unsigned char);
+ void right(unsigned char);
+ void w0(void);
+@@ -114,7 +113,7 @@
+ void x0(void);
+ void x(unsigned char);
+ void down(unsigned char);
+-void y0(void);
++void y_0(void);
+ void y(unsigned char);
+ void z0(void);
+ void z(unsigned char);
+@@ -491,24 +490,16 @@
+     s_p = 0;
+   }
+ 
+-long pow(int b,int p)
+-  { int w,k;
+-    w = b;
+-    for (k=1; k < p; k++) {w = w *b;};
+-    return w;
+-  }
+-
+ void eingabe(long* dd, unsigned char k)
+-  { char neg; unsigned char hk;
++  { unsigned char hk;
+     long hn,hw; 
+     hw = (int) e_inbyte();
+-    neg = FALSE;
+-    if (hw > 127) {neg = TRUE;};
++    if (hw > 127) hw -= 256;
+     for (hn = 2; hn <= (long) k; hn++) 
+     { hk = e_inbyte();
+       hw = hw*256+hk;
+     };
+-    if (neg == TRUE) {*dd = -(pow(2,k*8))+hw; } else *dd = hw;
++    *dd = hw;
+   }
+ 
+ void right(unsigned char code)
+@@ -544,7 +535,7 @@
+     if (d_v > v_grenze_zeile) a_outimage();
+   }
+ 
+-void y0(void)
++void y_0(void)
+   { if (d_y > y_grenze)  a_outimage();
+     if (abs(d_y) > y_grenze_zeile) a_outimage();
+   }
+@@ -698,7 +689,7 @@
+       else if (k == 152) {x0();}                /* x0                       */
+       else if (k <= 156) {x(k);}                /* x1 bis x4                */
+       else if (k <= 160) {down(k);}             /* down1 bis down4          */
+-      else if (k == 161) {y0();}                /* y0                       */
++      else if (k == 161) {y_0();}               /* y0                       */
+       else if (k <= 165) {y(k);}                /* y1 bis y4                */
+       else if (k == 166) {z0();}                /* z0                       */
+       else if (k <= 170) {z(k);}                /* z1 bis z4                */
diff --git a/dev-tex/hyphen_show/hyphen_show-20000425.ebuild b/dev-tex/hyphen_show/hyphen_show-20000425.ebuild
new file mode 100644 (file)
index 0000000..e23edc4
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/hyphen_show/hyphen_show-20000425.ebuild,v 1.1 2005/11/18 17:57:01 leonardop Exp $
+
+inherit eutils toolchain-funcs
+
+MY_PN=${PN//_/-}
+DESCRIPTION="Show hyphenations in DVI files"
+HOMEPAGE="http://packages.debian.org/stable/tex/hyphen-show"
+SRC_URI="mirror://debian/pool/main/h/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND=""
+S=${WORKDIR}/${MY_PN}-${PV}
+
+
+src_unpack() {
+       unpack "${A}"
+       epatch "${FILESDIR}"/${PN}-gcc34.patch
+}
+
+src_compile() {
+       $(tc-getCC) ${CFLAGS} hyphen_show.c \
+               -o hyphen_show || die "Compilation failed"
+}
+
+src_install() {
+       dobin hyphen_show
+       doman hyphen_show.1
+       dodoc README.hyphen_show
+}
diff --git a/dev-tex/hyphen_show/metadata.xml b/dev-tex/hyphen_show/metadata.xml
new file mode 100644 (file)
index 0000000..06689a1
--- /dev/null
@@ -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>