mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
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 <davidjames@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
3b5d677a36
commit
282d6fc94e
25
sdk_container/src/third_party/portage-stable/sys-apps/kbd/files/kbd-1.12-kbio.patch
vendored
Normal file
25
sdk_container/src/third_party/portage-stable/sys-apps/kbd/files/kbd-1.12-kbio.patch
vendored
Normal file
@ -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 <asm/param.h>
|
||||||
|
-#include <asm/kbio.h>
|
||||||
|
#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 <asm/kbio.h>
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
static void
|
||||||
|
usage(void)
|
||||||
|
{
|
36
sdk_container/src/third_party/portage-stable/sys-apps/kbd/kbd-1.15.ebuild
vendored
Normal file
36
sdk_container/src/third_party/portage-stable/sys-apps/kbd/kbd-1.15.ebuild
vendored
Normal file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user