From fc5a22d45cb2f8fe55572ed5dba9d2b3bd41fd8c Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 10 Oct 2020 12:33:43 +0300 Subject: app-misc/bdfresize: Minor changes Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Azat Bahawi --- app-misc/bdfresize/bdfresize-1.5.ebuild | 9 +++------ app-misc/bdfresize/files/bdfresize-1.5-gcc.patch | 12 ------------ 2 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 app-misc/bdfresize/files/bdfresize-1.5-gcc.patch (limited to 'app-misc') diff --git a/app-misc/bdfresize/bdfresize-1.5.ebuild b/app-misc/bdfresize/bdfresize-1.5.ebuild index 688ad0f..dcb95e9 100644 --- a/app-misc/bdfresize/bdfresize-1.5.ebuild +++ b/app-misc/bdfresize/bdfresize-1.5.ebuild @@ -3,8 +3,6 @@ EAPI=7 -inherit toolchain-funcs - DESCRIPTION="A tool for resizing BDF format fonts" HOMEPAGE="http://openlab.jp/efont/dist/tools/bdfresize/" SRC_URI="http://openlab.jp/efont/dist/tools/bdfresize/${P}.tar.gz" @@ -18,8 +16,7 @@ DEPEND="" RDEPEND="${DEPEND}" BDEPEND="" -PATCHES=( ${FILESDIR}/${P}-gcc.patch ) - -src_compile() { - emake CC="$(tc-getCC)" +src_prepare() { + default + sed -e '/*malloc();/d' -i charresize.c || die } diff --git a/app-misc/bdfresize/files/bdfresize-1.5-gcc.patch b/app-misc/bdfresize/files/bdfresize-1.5-gcc.patch deleted file mode 100644 index 015d306..0000000 --- a/app-misc/bdfresize/files/bdfresize-1.5-gcc.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/charresize.c b/charresize.c -index b6c694a..795bff4 100644 ---- a/charresize.c -+++ b/charresize.c -@@ -46,7 +46,6 @@ static int bit[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 }; - void - processChar(void) - { -- char *malloc(); - char *srcimage; - int *dstgray; - -- cgit 1.4.1