diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-04-23 18:31:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-04-23 18:31:41 +0000 |
commit | 89df37e75aaf44e82f8cd10e41f82ddbdf300586 (patch) | |
tree | c90ff31eed4d02377fa9b1cc1da387c2ee1f1bf7 /sys-apps/iotools | |
parent | version bump + copyright line fix for old ebuild (diff) | |
download | gentoo-2-89df37e75aaf44e82f8cd10e41f82ddbdf300586.tar.gz gentoo-2-89df37e75aaf44e82f8cd10e41f82ddbdf300586.tar.bz2 gentoo-2-89df37e75aaf44e82f8cd10e41f82ddbdf300586.zip |
Version bump.
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'sys-apps/iotools')
-rw-r--r-- | sys-apps/iotools/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/iotools/iotools-1.5.ebuild | 50 |
2 files changed, 56 insertions, 1 deletions
diff --git a/sys-apps/iotools/ChangeLog b/sys-apps/iotools/ChangeLog index 18a29f668647..6af4335836e7 100644 --- a/sys-apps/iotools/ChangeLog +++ b/sys-apps/iotools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/iotools # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/iotools/ChangeLog,v 1.4 2013/02/18 19:24:46 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/iotools/ChangeLog,v 1.5 2013/04/23 18:31:41 vapier Exp $ + +*iotools-1.5 (23 Apr 2013) + + 23 Apr 2013; Mike Frysinger <vapier@gentoo.org> +iotools-1.5.ebuild: + Version bump. 18 Feb 2013; Mike Frysinger <vapier@gentoo.org> iotools-1.4.ebuild: Use LC_ALL=C sorting for cmds #457850 by Jason Mours. diff --git a/sys-apps/iotools/iotools-1.5.ebuild b/sys-apps/iotools/iotools-1.5.ebuild new file mode 100644 index 000000000000..bab503af02d8 --- /dev/null +++ b/sys-apps/iotools/iotools-1.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/iotools/iotools-1.5.ebuild,v 1.1 2013/04/23 18:31:41 vapier Exp $ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="Simple commands to access hardware device registers" +HOMEPAGE="http://code.google.com/p/iotools/" +SRC_URI="http://iotools.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static make-symlinks" + +src_prepare() { + sed -i 's:-Werror::' Makefile || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + STATIC=$(usex static 1 0) \ + IOTOOLS_DEBUG="${CFLAGS}" +} + +src_install() { + dosbin iotools + + # Note: This is done manually because invoking the iotools binary + # when cross-compiling will likely fail. + local known_cmds="and btr bts busy_loop cmos_read cmos_write cpu_list cpuid io_read16 io_read32 io_read8 io_write16 io_write32 io_write8 mem_dump mem_read16 mem_read32 mem_read64 mem_read8 mem_write16 mem_write32 mem_write64 mem_write8 mmio_dump mmio_read16 mmio_read32 mmio_read64 mmio_read8 mmio_write16 mmio_write32 mmio_write64 mmio_write8 not or pci_list pci_read16 pci_read32 pci_read8 pci_write16 pci_write32 pci_write8 rdmsr rdtsc runon shl shr smbus_quick smbus_read16 smbus_read8 smbus_readblock smbus_receive_byte smbus_send_byte smbus_write16 smbus_write8 smbus_writeblock wrmsr xor" + if ! tc-is-cross-compiler ; then + local check_cmds=$(echo $(./iotools --list-cmds 2>/dev/null | grep '^ ' | LC_ALL=C sort)) + if [[ ${known_cmds} != "${check_cmds:-${known_cmds}}" ]] ; then + eerror "known_cmds = ${known_cmds}" + eerror "check_cmds = ${check_cmds}" + die "need to update known_cmds cache in the ebuild" + fi + fi + + if use make-symlinks ; then + local cmd + for cmd in ${known_cmds} ; do + dosym iotools /usr/sbin/${cmd} + done + fi +} |