summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-10-23 11:55:08 +0000
committerSimon Stelling <blubb@gentoo.org>2006-10-23 11:55:08 +0000
commit0c7d122d5de233fd8e8022ee95bcc1de1fe064d8 (patch)
tree599bb1e9f26d08a83296bec1779d6098d5d886da /media-fonts/pcf2bdf
parentAdd missing dev-util/pkgconfig to DEPEND, see bug #152530. (diff)
downloadhistorical-0c7d122d5de233fd8e8022ee95bcc1de1fe064d8.tar.gz
historical-0c7d122d5de233fd8e8022ee95bcc1de1fe064d8.tar.bz2
historical-0c7d122d5de233fd8e8022ee95bcc1de1fe064d8.zip
revbump to fix bug 140093 and add ~amd64
Package-Manager: portage-2.1.2_pre3-r2
Diffstat (limited to 'media-fonts/pcf2bdf')
-rw-r--r--media-fonts/pcf2bdf/ChangeLog9
-rw-r--r--media-fonts/pcf2bdf/Manifest33
-rw-r--r--media-fonts/pcf2bdf/files/digest-pcf2bdf-1.04-r13
-rw-r--r--media-fonts/pcf2bdf/files/pcf2bdf-1.04-64bit.patch216
-rw-r--r--media-fonts/pcf2bdf/files/pcf2bdf-1.04-gzip.patch12
-rw-r--r--media-fonts/pcf2bdf/pcf2bdf-1.04-r1.ebuild37
6 files changed, 295 insertions, 15 deletions
diff --git a/media-fonts/pcf2bdf/ChangeLog b/media-fonts/pcf2bdf/ChangeLog
index 96f5a5664461..c713a37189fc 100644
--- a/media-fonts/pcf2bdf/ChangeLog
+++ b/media-fonts/pcf2bdf/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-fonts/pcf2bdf
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/pcf2bdf/ChangeLog,v 1.6 2006/09/01 18:11:15 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/pcf2bdf/ChangeLog,v 1.7 2006/10/23 11:55:08 blubb Exp $
+
+*pcf2bdf-1.04-r1 (23 Oct 2006)
+
+ 23 Oct 2006; Simon Stelling <blubb@gentoo.org>
+ +files/pcf2bdf-1.04-64bit.patch, +files/pcf2bdf-1.04-gzip.patch,
+ +pcf2bdf-1.04-r1.ebuild:
+ revbump to fix bug 140093 and add ~amd64
01 Sep 2006; Tobias Scherbaum <dertobi123@gentoo.org> pcf2bdf-1.04.ebuild:
ppc stable, bug #145688
diff --git a/media-fonts/pcf2bdf/Manifest b/media-fonts/pcf2bdf/Manifest
index fb57e70e118b..1395bc8779cc 100644
--- a/media-fonts/pcf2bdf/Manifest
+++ b/media-fonts/pcf2bdf/Manifest
@@ -1,15 +1,24 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX pcf2bdf-1.04-64bit.patch 8844 RMD160 472ce45263b738e73601573a9b2ad0e8f7a1036e SHA1 a7f7f8d3c1c7f371ecd6ff2971e43ad5524d9bf2 SHA256 07d7ef6607196a23be08814d143269fdd67b59e84386ea633e12787be594e6c1
+MD5 1dddedf5c47227e2f0e7bc26f1b3d0e8 files/pcf2bdf-1.04-64bit.patch 8844
+RMD160 472ce45263b738e73601573a9b2ad0e8f7a1036e files/pcf2bdf-1.04-64bit.patch 8844
+SHA256 07d7ef6607196a23be08814d143269fdd67b59e84386ea633e12787be594e6c1 files/pcf2bdf-1.04-64bit.patch 8844
+AUX pcf2bdf-1.04-gzip.patch 419 RMD160 699cccd44fdabf8162b3f653d95833b2d5bddd17 SHA1 6ac65909e198fde5829c9bb42f0c0dfd974e84dc SHA256 306e83b3f09b40f300129fc2edb9cc0925c534484c6be26462987103da889d48
+MD5 a7d0ac82116a15832daa834cb3a3931a files/pcf2bdf-1.04-gzip.patch 419
+RMD160 699cccd44fdabf8162b3f653d95833b2d5bddd17 files/pcf2bdf-1.04-gzip.patch 419
+SHA256 306e83b3f09b40f300129fc2edb9cc0925c534484c6be26462987103da889d48 files/pcf2bdf-1.04-gzip.patch 419
DIST pcf2bdf-1.04.tgz 9686 RMD160 6ded73f6610673b136a751c67ec8b8423ad0d87a SHA1 6fdcc10132e27d3c26ff7e4be541332ee5d4e927 SHA256 64d37fa8c8f3db53034e746a04928c18fb3494a7091aa6b70141008a9e2e893e
+EBUILD pcf2bdf-1.04-r1.ebuild 868 RMD160 ae4d1df156b7c4ab77eb85e0071c68a8d2837859 SHA1 550c7369ddbc967f4104cea83e5b9d842293d936 SHA256 ccb584ce66890003bb0290b0c4e50b1f945367fcb822529acc94eb24bee0fd77
+MD5 8aa7b78607f3f128e0320d342c27390a pcf2bdf-1.04-r1.ebuild 868
+RMD160 ae4d1df156b7c4ab77eb85e0071c68a8d2837859 pcf2bdf-1.04-r1.ebuild 868
+SHA256 ccb584ce66890003bb0290b0c4e50b1f945367fcb822529acc94eb24bee0fd77 pcf2bdf-1.04-r1.ebuild 868
EBUILD pcf2bdf-1.04.ebuild 728 RMD160 2c61fffa4c175de5a7c04d40dd6175cc564d0459 SHA1 81455e4b0bb1d8b6650f76abb3cd6869cfe39913 SHA256 f77cb086d6e204ef4feb5fe7d64422750dad6df952ea5a329eaf7bf75e724244
MD5 6a98d8a0cfee9950eb8025d2df6f8655 pcf2bdf-1.04.ebuild 728
RMD160 2c61fffa4c175de5a7c04d40dd6175cc564d0459 pcf2bdf-1.04.ebuild 728
SHA256 f77cb086d6e204ef4feb5fe7d64422750dad6df952ea5a329eaf7bf75e724244 pcf2bdf-1.04.ebuild 728
-MISC ChangeLog 833 RMD160 82da98cceef36127ca6a8b405e9b9073cf4013c7 SHA1 6932f9b8b632ebf265f8c062874247621c6c2924 SHA256 1d4bede586cab1757e104dae25244fa3874ade266756021663b14623e37437af
-MD5 195e9f9bff1d7ee307ae6eb04d7faf17 ChangeLog 833
-RMD160 82da98cceef36127ca6a8b405e9b9073cf4013c7 ChangeLog 833
-SHA256 1d4bede586cab1757e104dae25244fa3874ade266756021663b14623e37437af ChangeLog 833
+MISC ChangeLog 1047 RMD160 9606b0506335b163709d46baadc950d8fe9c597b SHA1 518177814bea883b1a080cfd68947808b6db7cfa SHA256 1680a609ea573f42d690ce37865da62a2cfa6aa015e496d4ae17e651dca588fe
+MD5 d25a5f5bceeafb6e87b4f3716c7db6b6 ChangeLog 1047
+RMD160 9606b0506335b163709d46baadc950d8fe9c597b ChangeLog 1047
+SHA256 1680a609ea573f42d690ce37865da62a2cfa6aa015e496d4ae17e651dca588fe ChangeLog 1047
MISC metadata.xml 158 RMD160 e563fdca0707ee5927deab77f2e5ef79816384ca SHA1 8e4ca6d183e52cdbea8cfba08b7a7910e648fc84 SHA256 9a8722fb0b5a1992b3942e85f23df4e08f10cabc2d783ca887479abe115b3ea8
MD5 295674d4bed87f5a7c2796e032ed561e metadata.xml 158
RMD160 e563fdca0707ee5927deab77f2e5ef79816384ca metadata.xml 158
@@ -17,10 +26,6 @@ SHA256 9a8722fb0b5a1992b3942e85f23df4e08f10cabc2d783ca887479abe115b3ea8 metadata
MD5 b1463e64ff6677418393c0646f240f61 files/digest-pcf2bdf-1.04 223
RMD160 1b67cf0cb60e3f64b0b69d057ee4ebfb0d25a9fc files/digest-pcf2bdf-1.04 223
SHA256 2d48e92dbb43882ede7a898ad2ab2d7b8a69149beeb8e807e54b3192a7e38e15 files/digest-pcf2bdf-1.04 223
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFE+nmwamhnQswr0vIRAsC1AJ4loEjfR6ML57MrySRjR8YA66Mi3ACfYy+4
-ccqUNqf6KQnUp0y+/nMkvjw=
-=O5sD
------END PGP SIGNATURE-----
+MD5 b1463e64ff6677418393c0646f240f61 files/digest-pcf2bdf-1.04-r1 223
+RMD160 1b67cf0cb60e3f64b0b69d057ee4ebfb0d25a9fc files/digest-pcf2bdf-1.04-r1 223
+SHA256 2d48e92dbb43882ede7a898ad2ab2d7b8a69149beeb8e807e54b3192a7e38e15 files/digest-pcf2bdf-1.04-r1 223
diff --git a/media-fonts/pcf2bdf/files/digest-pcf2bdf-1.04-r1 b/media-fonts/pcf2bdf/files/digest-pcf2bdf-1.04-r1
new file mode 100644
index 000000000000..70fe25ffdcee
--- /dev/null
+++ b/media-fonts/pcf2bdf/files/digest-pcf2bdf-1.04-r1
@@ -0,0 +1,3 @@
+MD5 8ce3b6a57491c67ef0cbf2f5413451f3 pcf2bdf-1.04.tgz 9686
+RMD160 6ded73f6610673b136a751c67ec8b8423ad0d87a pcf2bdf-1.04.tgz 9686
+SHA256 64d37fa8c8f3db53034e746a04928c18fb3494a7091aa6b70141008a9e2e893e pcf2bdf-1.04.tgz 9686
diff --git a/media-fonts/pcf2bdf/files/pcf2bdf-1.04-64bit.patch b/media-fonts/pcf2bdf/files/pcf2bdf-1.04-64bit.patch
new file mode 100644
index 000000000000..86d486560dca
--- /dev/null
+++ b/media-fonts/pcf2bdf/files/pcf2bdf-1.04-64bit.patch
@@ -0,0 +1,216 @@
+diff -urN pcf2bdf-1.04~/pcf2bdf.cc pcf2bdf-1.04/pcf2bdf.cc
+--- pcf2bdf-1.04~/pcf2bdf.cc 2002-10-20 18:35:29.000000000 +0200
++++ pcf2bdf-1.04/pcf2bdf.cc 2006-07-11 22:51:12.000000000 +0200
+@@ -4,9 +4,12 @@
+ * see xc/lib/font/bitmap/pcfread.c,pcfwrite.c for detail
+ */
+
++#define __STDC_FORMAT_MACROS
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <inttypes.h>
+
+ #if defined(_MSC_VER) // Microsoft Visual C++
+ # include <io.h>
+@@ -28,13 +31,14 @@
+ // miscellaneous definition ///////////////////////////////////////////////////
+
+
+-typedef bool bool8;
+-typedef unsigned char uint8;
+-typedef unsigned char byte8;
+-typedef short int16;
+-typedef unsigned short uint16;
+-typedef long int32;
+-typedef unsigned long uint32;
++typedef uint8_t bool8;
++typedef int8_t int8;
++typedef uint8_t uint8;
++typedef uint8_t byte8;
++typedef int16_t int16;
++typedef uint16_t uint16;
++typedef int32_t int32;
++typedef uint32_t uint32;
+
+ // section ID
+ enum type32 {
+@@ -436,12 +440,12 @@
+ {
+ if (verbose)
+ {
+- fprintf(stderr, "\t%s.leftSideBearing = %d\n", name, m->leftSideBearing);
+- fprintf(stderr, "\t%s.rightSideBearing = %d\n", name, m->rightSideBearing);
+- fprintf(stderr, "\t%s.characterWidth = %d\n", name, m->characterWidth);
+- fprintf(stderr, "\t%s.ascent = %d\n", name, m->ascent);
+- fprintf(stderr, "\t%s.descent = %d\n", name, m->descent);
+- fprintf(stderr, "\t%s.attributes = %04x\n", name, m->attributes);
++ fprintf(stderr, "\t%s.leftSideBearing = %" PRId16 "\n", name, m->leftSideBearing);
++ fprintf(stderr, "\t%s.rightSideBearing = %" PRId16 "\n", name, m->rightSideBearing);
++ fprintf(stderr, "\t%s.characterWidth = %" PRId16 "\n", name, m->characterWidth);
++ fprintf(stderr, "\t%s.ascent = %" PRId16 "\n", name, m->ascent);
++ fprintf(stderr, "\t%s.descent = %" PRId16 "\n", name, m->descent);
++ fprintf(stderr, "\t%s.attributes = %04" PRIx16 "\n", name, m->attributes);
+ }
+ }
+
+@@ -467,20 +471,20 @@
+ accelerators.maxOverlap = read_int32();
+ if (verbose)
+ {
+- fprintf(stderr, "\tnoOverlap = %d\n", (int)accelerators.noOverlap);
+- fprintf(stderr, "\tconstantMetrics = %d\n",
+- (int)accelerators.constantMetrics);
+- fprintf(stderr, "\tterminalFont = %d\n",
+- (int)accelerators.terminalFont);
+- fprintf(stderr, "\tconstantWidth = %d\n",
+- (int)accelerators.constantWidth);
+- fprintf(stderr, "\tinkInside = %d\n", (int)accelerators.inkInside);
+- fprintf(stderr, "\tinkMetrics = %d\n", (int)accelerators.inkMetrics);
+- fprintf(stderr, "\tdrawDirection = %d\n",
+- (int)accelerators.drawDirection);
+- fprintf(stderr, "\tfontAscent = %d\n", (int)accelerators.fontAscent);
+- fprintf(stderr, "\tfontDescent = %d\n", (int)accelerators.fontDescent);
+- fprintf(stderr, "\tmaxOverlap = %d\n", (int)accelerators.maxOverlap);
++ fprintf(stderr, "\tnoOverlap = %" PRId8 "\n", (int8)accelerators.noOverlap);
++ fprintf(stderr, "\tconstantMetrics = %" PRId8 "\n",
++ (int8)accelerators.constantMetrics);
++ fprintf(stderr, "\tterminalFont = %" PRId8 "\n",
++ (int8)accelerators.terminalFont);
++ fprintf(stderr, "\tconstantWidth = %" PRId8 "\n",
++ (int8)accelerators.constantWidth);
++ fprintf(stderr, "\tinkInside = %" PRId8 "\n", (int8)accelerators.inkInside);
++ fprintf(stderr, "\tinkMetrics = %" PRId8 "\n", (int8)accelerators.inkMetrics);
++ fprintf(stderr, "\tdrawDirection = %" PRId8 "\n",
++ (int8)accelerators.drawDirection);
++ fprintf(stderr, "\tfontAscent = %" PRId8 "\n", (int8)accelerators.fontAscent);
++ fprintf(stderr, "\tfontDescent = %" PRId8 "\n", (int8)accelerators.fontDescent);
++ fprintf(stderr, "\tmaxOverlap = %" PRId8 "\n", (int8)accelerators.maxOverlap);
+ }
+ read_metric(&accelerators.minBounds);
+ read_metric(&accelerators.maxBounds);
+@@ -667,7 +671,7 @@
+ }
+ else
+ if (verbose)
+- fprintf(stderr, "%ld\n", props[i].value.v);
++ fprintf(stderr, "%" PRId32 "\n", props[i].value.v);
+ }
+
+ // read old accelerators section
+@@ -711,7 +715,7 @@
+ break;
+ }
+ if (verbose)
+- fprintf(stderr, "\tnMetrics = %ld\n", nMetrics);
++ fprintf(stderr, "\tnMetrics = %" PRId32 "\n", nMetrics);
+ fontbbx = metrics[0];
+ for (i = 1; i < nMetrics; i++)
+ {
+@@ -746,10 +750,10 @@
+ //
+ if (verbose)
+ {
+- fprintf(stderr, "\t1<<format.scan = %d\n", 1 << format.scan);
++ fprintf(stderr, "\t1<<format.scan = %" PRId8 "\n", (int8)1 << format.scan);
+ fprintf(stderr, "\t%sSBit first\n", format.bit ? "M" : "L");
+ fprintf(stderr, "\t%sSByte first\n", format.byte ? "M" : "L");
+- fprintf(stderr, "\t1<<format.glyph = %d\n", 1 << format.glyph);
++ fprintf(stderr, "\t1<<format.glyph = %" PRId8 "\n", (int8)1 << format.glyph);
+ }
+ if (format.bit != BDF_format.bit)
+ {
+@@ -798,11 +802,11 @@
+ defaultCh = read_int16();
+ if (verbose)
+ {
+- fprintf(stderr, "\tfirstCol = %X\n", firstCol);
+- fprintf(stderr, "\tlastCol = %X\n", lastCol);
+- fprintf(stderr, "\tfirstRow = %X\n", firstRow);
+- fprintf(stderr, "\tlastRow = %X\n", lastRow);
+- fprintf(stderr, "\tdefaultCh = %X\n", defaultCh);
++ fprintf(stderr, "\tfirstCol = %" PRIX16 "\n", firstCol);
++ fprintf(stderr, "\tlastCol = %" PRIX16 "\n", lastCol);
++ fprintf(stderr, "\tfirstRow = %" PRIX16 "\n", firstRow);
++ fprintf(stderr, "\tlastRow = %" PRIX16 "\n", lastRow);
++ fprintf(stderr, "\tdefaultCh = %" PRIX16 "\n", defaultCh);
+ }
+ nEncodings = (lastCol - firstCol + 1) * (lastRow - firstRow + 1);
+ check_memory((encodings = new int16[nEncodings]));
+@@ -888,12 +892,12 @@
+ if (!is_exist_property_value("RESOLUTION_X") ||
+ !is_exist_property_value("RESOLUTION_Y"))
+ rx = ry = (int)(get_property_value("RESOLUTION") / 100.0 * 72.27) ;
+- fprintf(ofp, "SIZE %ld %ld %ld\n", get_property_value("PIXEL_SIZE"), rx, ry);
+- fprintf(ofp, "FONTBOUNDINGBOX %d %d %d %d\n\n",
++ fprintf(ofp, "SIZE %" PRId32 " %" PRId32 " %" PRId32 "\n", get_property_value("PIXEL_SIZE"), rx, ry);
++ fprintf(ofp, "FONTBOUNDINGBOX %" PRId16 " %" PRId16 " %" PRId16 " %" PRId16 "\n\n",
+ fontbbx.widthBits(), fontbbx.height(),
+ fontbbx.leftSideBearing, -fontbbx.descent);
+
+- int nPropsd = -1;
++ int32 nPropsd = -1;
+ if (!is_exist_property_value("DEFAULT_CHAR") &&
+ defaultCh != NO_SUCH_CHAR)
+ nPropsd ++;
+@@ -904,7 +908,7 @@
+ is_exist_property_value("RESOLUTION"))
+ nPropsd --;
+
+- fprintf(ofp, "STARTPROPERTIES %ld\n", nProps + nPropsd);
++ fprintf(ofp, "STARTPROPERTIES %" PRId32 "\n", nProps + nPropsd);
+ for (i = 0; i < nProps; i++)
+ {
+ if (strcmp(props[i].name.s, "FONT") == 0)
+@@ -917,16 +921,16 @@
+ if (props[i].isStringProp)
+ fprintf(ofp, "\"%s\"\n", props[i].value.s);
+ else
+- fprintf(ofp, "%ld\n", props[i].value.v);
++ fprintf(ofp, "%" PRId32 "\n", props[i].value.v);
+ }
+
+ if (!is_exist_property_value("DEFAULT_CHAR") &&
+ defaultCh != NO_SUCH_CHAR)
+- fprintf(ofp, "DEFAULT_CHAR %d\n", defaultCh);
++ fprintf(ofp, "DEFAULT_CHAR %" PRId16 "\n", defaultCh);
+ if (!is_exist_property_value("FONT_DESCENT"))
+- fprintf(ofp, "FONT_DESCENT %ld\n", accelerators.fontDescent);
++ fprintf(ofp, "FONT_DESCENT %" PRId32 "\n", accelerators.fontDescent);
+ if (!is_exist_property_value("FONT_ASCENT"))
+- fprintf(ofp, "FONT_ASCENT %ld\n", accelerators.fontAscent);
++ fprintf(ofp, "FONT_ASCENT %" PRId32 "\n", accelerators.fontAscent);
+ fprintf(ofp, "ENDPROPERTIES\n\n");
+
+ fprintf(ofp, "CHARS %d\n\n", nValidEncodings);
+@@ -945,14 +949,14 @@
+ else if (0x21 <= charcode && charcode <= 0x7e)
+ fprintf(ofp, "STARTCHAR %c\n", (char)charcode);
+ else
+- fprintf(ofp, "STARTCHAR %04X\n", charcode);
+- fprintf(ofp, "ENCODING %d\n", charcode);
+- fprintf(ofp, "SWIDTH %ld %d\n", m.swidth, 0);
+- fprintf(ofp, "DWIDTH %d %d\n", m.characterWidth, 0);
+- fprintf(ofp, "BBX %d %d %d %d\n",
++ fprintf(ofp, "STARTCHAR %04" PRIX16 "\n", charcode);
++ fprintf(ofp, "ENCODING %" PRId16 "\n", charcode);
++ fprintf(ofp, "SWIDTH %" PRId32 " %d\n", m.swidth, 0);
++ fprintf(ofp, "DWIDTH %" PRId16 " %d\n", m.characterWidth, 0);
++ fprintf(ofp, "BBX %" PRId16 " %" PRId16" %" PRId16 " %" PRId16"\n",
+ m.widthBits(), m.height(), m.leftSideBearing, -m.descent);
+ if (0 < m.attributes)
+- fprintf(ofp, "ATTRIBUTES %4X\n", (uint16)m.attributes);
++ fprintf(ofp, "ATTRIBUTES %4" PRIX16 "\n", (uint16)m.attributes);
+ fprintf(ofp, "BITMAP\n");
+
+ int widthBytes = m.widthBytes(format);
+@@ -964,7 +968,7 @@
+ for (int c = 0; c < widthBytes; c++)
+ {
+ if (c < w)
+- fprintf(ofp, "%02X", *b);
++ fprintf(ofp, "%02" PRIX8, *b);
+ b++;
+ }
+ fprintf(ofp, "\n");
diff --git a/media-fonts/pcf2bdf/files/pcf2bdf-1.04-gzip.patch b/media-fonts/pcf2bdf/files/pcf2bdf-1.04-gzip.patch
new file mode 100644
index 000000000000..01e7f5ec29e7
--- /dev/null
+++ b/media-fonts/pcf2bdf/files/pcf2bdf-1.04-gzip.patch
@@ -0,0 +1,12 @@
+diff -Nru pcf2bdf-orig/pcf2bdf.cc pcf2bdf/pcf2bdf.cc
+--- pcf2bdf-orig/pcf2bdf.cc 2006-10-08 21:12:13.000000000 +0200
++++ pcf2bdf/pcf2bdf.cc 2006-10-08 21:12:40.000000000 +0200
+@@ -599,7 +599,7 @@
+ fclose(ifp);
+ char buf[1024];
+ sprintf(buf, "gzip -dc %s", ifilename); // TODO
+- ifp = popen(buf, "rb");
++ ifp = popen(buf, "r");
+ _setmode(fileno(ifp), O_BINARY);
+ read_bytes = 0;
+ if (!ifp)
diff --git a/media-fonts/pcf2bdf/pcf2bdf-1.04-r1.ebuild b/media-fonts/pcf2bdf/pcf2bdf-1.04-r1.ebuild
new file mode 100644
index 000000000000..00e9a4152347
--- /dev/null
+++ b/media-fonts/pcf2bdf/pcf2bdf-1.04-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/pcf2bdf/pcf2bdf-1.04-r1.ebuild,v 1.1 2006/10/23 11:55:08 blubb Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="Converts PCF fonts to BDF fonts"
+HOMEPAGE="http://www.tsg.ne.jp/GANA/S/pcf2bdf/"
+SRC_URI="http://www.tsg.ne.jp/GANA/S/pcf2bdf/${P}.tgz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~x86"
+
+IUSE=""
+
+DEPEND="virtual/libc"
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch "${FILESDIR}"/${P}-64bit.patch
+ epatch "${FILESDIR}"/${P}-gzip.patch
+}
+
+src_compile() {
+ emake -f Makefile.gcc CC="$(tc-getCXX)" CFLAGS="${CXXFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ make -f Makefile.gcc \
+ PREFIX=${D}/usr \
+ MANPATH=${D}/usr/share/man/man1 \
+ install || die
+}