| # Copyright 1999-2011 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Id$ |
| |
| EAPI=4 |
| |
| inherit toolchain-funcs |
| |
| DESCRIPTION="Open file lister (replaces fuser and lsof -m)" |
| HOMEPAGE="http://jengelh.medozas.de/projects/hxtools/" |
| SRC_URI="http://jftp.medozas.de/hxtools/hxtools-${PV}.tar.xz" |
| |
| LICENSE="public-domain" |
| SLOT="0" |
| KEYWORDS="~amd64" |
| IUSE="" |
| |
| DEPEND=">=sys-libs/libhx-3.4" |
| RDEPEND="${DEPEND}" |
| |
| S="${WORKDIR}"/hxtools-${PV} |
| |
| src_configure() { |
| # We're just building a single utility. Don't bother |
| # with the build system. |
| : |
| } |
| |
| src_compile() { |
| CC=$(tc-getCC) CFLAGS=${CFLAGS} LDLIBS="-lHX" \ |
| emake V=1 -C sadmin ofl |
| } |
| |
| src_install() { |
| dobin sadmin/ofl |
| doman doc/ofl.1 |
| } |