# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 COMMIT="2e30b1968a66147412f21002ea844122a0d5e2f0" inherit toolchain-funcs DESCRIPTION="Identifies the properties of SD cards and other media" HOMEPAGE="http://git.linaro.org/gitweb?p=people/arnd/flashbench.git" # Gitweb snapshots have a different checksum each time. Use this GitHub clone instead. SRC_URI="https://github.com/bradfa/flashbench/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" S="${WORKDIR}/${PN}-${COMMIT}" src_compile() { # Flags come from Makefile. local CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter" emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -lrt" flashbench emake CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" erase } src_install() { dobin "${PN}" newbin erase "${PN}-erase" # erase is too ambiguous. dodoc README }