summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/cpufrequtils/files/cpufrequtils-007-nls.patch')
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-007-nls.patch76
1 files changed, 0 insertions, 76 deletions
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-007-nls.patch b/sys-power/cpufrequtils/files/cpufrequtils-007-nls.patch
deleted file mode 100644
index 402290b97c51..000000000000
--- a/sys-power/cpufrequtils/files/cpufrequtils-007-nls.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-make nls/gettext support optional
-
-patch by
-Sergey Dryabzhinsky <sergey.dryabzhinsky@gmail.com>
-Lars Wendler <polynomial-c@gentoo.org>
-
-http://bugs.gentoo.org/205576
-http://bugs.gentoo.org/292246
-
---- cpufrequtils-006/Makefile
-+++ cpufrequtils-006/Makefile
-@@ -147,6 +147,7 @@
- ifeq ($(strip $(NLS)),true)
- INSTALL_NLS += install-gmo
- COMPILE_NLS += update-gmo
-+ CPPFLAGS += -DNLS
- endif
-
- ifeq ($(strip $(CPUFRQ_BENCH)),true)
---- cpufrequtils-006/utils/info.c
-+++ cpufrequtils-006/utils/info.c
-@@ -10,7 +10,6 @@
- #include <errno.h>
- #include <stdlib.h>
- #include <string.h>
--#include <libintl.h>
- #include <locale.h>
-
- #include <getopt.h>
-@@ -18,9 +17,18 @@
- #include "cpufreq.h"
-
-
-+#ifdef NLS
-+#include <libintl.h>
- #define _(String) gettext (String)
- #define gettext_noop(String) String
- #define N_(String) gettext_noop (String)
-+#else
-+#define gettext_noop(String) String
-+#define _(String) gettext_noop (String)
-+#define gettext(String) gettext_noop (String)
-+#define N_(String) gettext_noop (String)
-+#define textdomain(String)
-+#endif
-
- #define LINE_LEN 10
-
---- cpufrequtils-006/utils/set.c
-+++ cpufrequtils-006/utils/set.c
-@@ -12,16 +12,24 @@
- #include <limits.h>
- #include <string.h>
- #include <ctype.h>
--#include <libintl.h>
- #include <locale.h>
-
- #include <getopt.h>
-
- #include "cpufreq.h"
-
-+#ifdef NLS
-+#include <libintl.h>
- #define _(String) gettext(String)
- #define gettext_noop(String) String
- #define N_(String) gettext_noop(String)
-+#else
-+#define gettext_noop(String) String
-+#define _(String) gettext_noop (String)
-+#define gettext(String) gettext_noop (String)
-+#define N_(String) gettext_noop (String)
-+#define textdomain(String)
-+#endif
-
- #define NORM_FREQ_LEN 32
-