From 91ba6909b80f8f1609b768d305b2ad4e9a8fbb33 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Tue, 4 Oct 2016 11:23:14 +0300 Subject: [PATCH] mc: move one-liner patch into recipe --- app-misc/mc/mc-4.8.18.recipe | 7 ++++++- app-misc/mc/patches/mc-4.8.18.patch | 11 ----------- 2 files changed, 6 insertions(+), 12 deletions(-) delete mode 100644 app-misc/mc/patches/mc-4.8.18.patch diff --git a/app-misc/mc/mc-4.8.18.recipe b/app-misc/mc/mc-4.8.18.recipe index eca0787d8..e58837617 100644 --- a/app-misc/mc/mc-4.8.18.recipe +++ b/app-misc/mc/mc-4.8.18.recipe @@ -11,7 +11,6 @@ LICENSE="GNU GPL v2" REVISION="1" SOURCE_URI="http://ftp.midnight-commander.org/mc-$portVersion.tar.xz" CHECKSUM_SHA256="f7636815c987c1719c4f5de2dcd156a0e7d097b1d10e4466d2bdead343d5bece" -PATCHES="mc-$portVersion.patch" ARCHITECTURES="x86_gcc2 x86 x86_64" @@ -56,6 +55,12 @@ BUILD_PREREQUIRES=" cmd:tar " +PATCH() +{ + sed -i '1i #define REAL_UNIX_SYSTEM' lib/tty/tty-slang.h +} + + BUILD() { CFLAGS="-D_BSD_SOURCE" LIBS=-lnetwork runConfigure configure \ diff --git a/app-misc/mc/patches/mc-4.8.18.patch b/app-misc/mc/patches/mc-4.8.18.patch deleted file mode 100644 index 85f5cea92..000000000 --- a/app-misc/mc/patches/mc-4.8.18.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff --git a/lib/tty/tty-slang.h b/lib/tty/tty-slang.h ---- a/lib/tty/tty-slang.h -+++ b/lib/tty/tty-slang.h -@@ -1,6 +1,7 @@ - - #ifndef MC__TTY_SLANG_H - #define MC__TTY_SLANG_H -+#define REAL_UNIX_SYSTEM - - #ifdef HAVE_SLANG_SLANG_H - #include