summary refs log tree commit diff
path: root/app-misc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app-misc/bdfresize/bdfresize-1.5.ebuild7
-rw-r--r--app-misc/bdfresize/files/malloc.patch12
2 files changed, 15 insertions, 4 deletions
diff --git a/app-misc/bdfresize/bdfresize-1.5.ebuild b/app-misc/bdfresize/bdfresize-1.5.ebuild
index e628348..18748e9 100644
--- a/app-misc/bdfresize/bdfresize-1.5.ebuild
+++ b/app-misc/bdfresize/bdfresize-1.5.ebuild
@@ -16,7 +16,6 @@ DEPEND=""
 RDEPEND="${DEPEND}"
 BDEPEND=""
 
-src_prepare() {
-	default
-	sed -e '/*malloc();/d' -i charresize.c || die
-}
+PATCHES=(
+	"${FILESDIR}/malloc.patch"
+)
diff --git a/app-misc/bdfresize/files/malloc.patch b/app-misc/bdfresize/files/malloc.patch
new file mode 100644
index 0000000..256798b
--- /dev/null
+++ b/app-misc/bdfresize/files/malloc.patch
@@ -0,0 +1,12 @@
+diff --git i/charresize.c w/charresize.c
+index b6c694a..795bff4 100644
+--- i/charresize.c
++++ w/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;
+

Consider giving Nix/NixOS a try! <3