From 282d6fc94e955d67c42166b3c901bd624bcc9dc1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 25 Aug 2011 18:10:05 -0400 Subject: [PATCH] kbd: import current stable from upstream Gentoo BUG=None TEST=updated kbd, rebuilt x86-alex from source, booted it, checked `showkey --version` Change-Id: I542aef7f2d1c7f783a2c932c30bd8314b0818c2e Reviewed-on: http://gerrit.chromium.org/gerrit/6739 Reviewed-by: David James Tested-by: Mike Frysinger --- .../sys-apps/kbd/files/kbd-1.12-kbio.patch | 25 +++++++++++++ .../sys-apps/kbd/kbd-1.15.ebuild | 36 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/kbd/files/kbd-1.12-kbio.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/kbd/kbd-1.15.ebuild diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/kbd/files/kbd-1.12-kbio.patch b/sdk_container/src/third_party/portage-stable/sys-apps/kbd/files/kbd-1.12-kbio.patch new file mode 100644 index 0000000000..b2a80d9a34 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/kbd/files/kbd-1.12-kbio.patch @@ -0,0 +1,25 @@ +diff -Nura kbd-1.12/src/kbdrate.c kbd-1.12.nokbio/src/kbdrate.c +--- kbd-1.12/src/kbdrate.c 2004-01-16 16:45:31.000000000 -0300 ++++ kbd-1.12.nokbio/src/kbdrate.c 2006-10-23 11:30:11.000000000 -0300 +@@ -77,7 +77,6 @@ + + #ifdef __sparc__ + #include +-#include + #endif + + #ifndef KDKBDREP +diff -Nura kbd-1.12/src/setleds.c kbd-1.12.nokbio/src/setleds.c +--- kbd-1.12/src/setleds.c 2004-01-16 16:45:31.000000000 -0300 ++++ kbd-1.12.nokbio/src/setleds.c 2006-10-23 11:30:20.000000000 -0300 +@@ -14,10 +14,6 @@ + #include "nls.h" + #include "version.h" + +-#ifdef __sparc__ +-#include +-#endif +- + static void + usage(void) + { diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/kbd/kbd-1.15.ebuild b/sdk_container/src/third_party/portage-stable/sys-apps/kbd/kbd-1.15.ebuild new file mode 100644 index 0000000000..16df4240e3 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/kbd/kbd-1.15.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kbd/kbd-1.15.ebuild,v 1.16 2010/01/24 18:24:19 armin76 Exp $ + +inherit eutils + +DESCRIPTION="Keyboard and console utilities" +HOMEPAGE="http://freshmeat.net/projects/kbd/" +SRC_URI="ftp://ftp.altlinux.org/pub/people/legion/kbd/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="nls" + +RDEPEND="" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-1.12-kbio.patch +} + +src_compile() { + econf $(use_enable nls) || die + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog INSTALL NEWS README + dohtml doc/*.html +}