add x11-apps/bdfresize
This commit is contained in:
parent
d3af21e263
commit
ed40581a24
3 changed files with 35 additions and 0 deletions
15
x11-apps/bdfresize/bdfresize-1.5.ebuild
Normal file
15
x11-apps/bdfresize/bdfresize-1.5.ebuild
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Utility for resizing BDF fonts"
|
||||
HOMEPAGE="http://openlab.ring.gr.jp/efont/"
|
||||
SRC_URI="http://openlab.ring.gr.jp/efont/dist/tools/${PN}/${PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
SLOT="0"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/fix-unintialized-use.patch"
|
||||
"${FILESDIR}/remove-malloc-prototype.patch"
|
||||
)
|
10
x11-apps/bdfresize/files/fix-unintialized-use.patch
Normal file
10
x11-apps/bdfresize/files/fix-unintialized-use.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/bdfresize.c 2022-08-28 17:36:06.198455929 +0200
|
||||
+++ b/bdfresize.c 2022-08-28 17:36:09.041752803 +0200
|
||||
@@ -449,6 +449,7 @@
|
||||
void error(char *fmt)
|
||||
{
|
||||
char buf[100];
|
||||
+ buf[0] = 0;
|
||||
strcat(buf, "bdfresize: line %d: ");
|
||||
strcat(buf, fmt);
|
||||
fprintf(stderr, buf, line);
|
10
x11-apps/bdfresize/files/remove-malloc-prototype.patch
Normal file
10
x11-apps/bdfresize/files/remove-malloc-prototype.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/charresize.c 2022-08-28 17:31:57.825076099 +0200
|
||||
+++ b/charresize.c 2022-08-28 17:32:07.804939484 +0200
|
||||
@@ -46,7 +46,6 @@
|
||||
void
|
||||
processChar(void)
|
||||
{
|
||||
- char *malloc();
|
||||
char *srcimage;
|
||||
int *dstgray;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue