diff options
-rw-r--r-- | sys-power/cpufrequtils/cpufrequtils-006.ebuild | 48 | ||||
-rw-r--r-- | sys-power/cpufrequtils/files/cpufrequtils-006-nls.patch | 76 |
2 files changed, 0 insertions, 124 deletions
diff --git a/sys-power/cpufrequtils/cpufrequtils-006.ebuild b/sys-power/cpufrequtils/cpufrequtils-006.ebuild deleted file mode 100644 index a2f6d1562d72..000000000000 --- a/sys-power/cpufrequtils/cpufrequtils-006.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/cpufrequtils-006.ebuild,v 1.2 2010/01/15 19:50:27 vapier Exp $ - -inherit eutils toolchain-funcs multilib - -DESCRIPTION="Userspace utilities for the Linux kernel cpufreq subsystem" -HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html" -SRC_URI="mirror://kernel/linux/utils/kernel/cpufreq/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="debug nls" - -DEPEND="sys-fs/sysfsutils" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-005-build.patch - epatch "${FILESDIR}"/${PN}-006-nls.patch #205576 #292246 -} - -ft() { use $1 && echo true || echo false ; } - -src_compile() { - emake \ - OPTIMIZATION= V=true \ - DEBUG=$(ft debug) \ - NLS=$(ft nls) \ - CC=$(tc-getCC) LD=$(tc-getCC) AR=$(tc-getAR) STRIP=: RANLIB=$(tc-getRANLIB) \ - || die "emake failed" -} - -src_install() { - emake \ - DESTDIR="${D}" \ - NLS=$(ft nls) \ - mandir=/usr/share/man \ - libdir=/usr/$(get_libdir) \ - install || die "make install failed" - - newinitd "${FILESDIR}"/${PN}-init.d-006 ${PN} - newconfd "${FILESDIR}"/${PN}-conf.d-006 ${PN} - - dodoc AUTHORS README -} diff --git a/sys-power/cpufrequtils/files/cpufrequtils-006-nls.patch b/sys-power/cpufrequtils/files/cpufrequtils-006-nls.patch deleted file mode 100644 index fa0b6015c4a4..000000000000 --- a/sys-power/cpufrequtils/files/cpufrequtils-006-nls.patch +++ /dev/null @@ -1,76 +0,0 @@ -make nls/gettext support optional - -patch by -Jos van der Ende <seraph@xs4all.nl> -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 -+ CFLAGDEF += -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 - |