You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-block/nwutil/nwutil-1.4.ebuild

42 lines
1.1 KiB

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-block/nwutil/nwutil-1.4.ebuild,v 1.3 2005/08/03 05:32:01 vapier Exp $
inherit eutils
DEB_VER=3
DESCRIPTION="Netwinder hardware utilities"
HOMEPAGE="http://packages.debian.org/stable/base/nwutil"
SRC_URI="mirror://debian/pool/main/n/nwutil/${PN}_${PV}.orig.tar.gz
mirror://debian/pool/main/n/nwutil/${PN}_${PV}-${DEB_VER}.diff.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* arm"
IUSE=""
DEPEND=""
S=${WORKDIR}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/${PN}_${PV}-${DEB_VER}.diff
epatch "${FILESDIR}"/${PV}-errno.patch
epatch "${FILESDIR}"/${PV}-rename-debug.patch
epatch "${FILESDIR}"/${P}-temp.patch
mv {,nw}debug.c
mv {,nw}debug.8
}
src_compile() {
emake CFLAGS="${CFLAGS}" || die "emake main failed"
emake -C flashlogo || die "emake flashlogo failed"
}
src_install() {
make DESTDIR="${D}" install || die "install main failed"
make DESTDIR="${D}" install -C flashlogo || die "install flashlogo failed"
}