# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit cmake-utils git DESCRIPTION="M4-ATX power supply utility" HOMEPAGE="http://ram.umd.edu/wiki/Public/Software/m4api" SRC_URI="" EGIT_REPO_URI="git://ram.umd.edu/bits/m4api.git" CMAKE_MIN_VERSION="2.8" CMAKE_BUILD_DIR="${WORKDIR}"/${PN}_build S="${WORKDIR}"/${PN} LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="${DEPEND} =dev-libs/libusb-0.1*" RDEPEND="${DEPEND}" src_configure() { cmake-utils_src_configure } src_compile() { emake -C "${CMAKE_BUILD_DIR}" || die 'emake failed' } src_install() { emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" install || die 'emake install failed' dodoc readme.txt license.txt }