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/dev-embedded/icdprog/icdprog-0.3.ebuild

41 lines
868 B

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/icdprog/icdprog-0.3.ebuild,v 1.8 2011/05/28 00:40:02 radhermit Exp $
DESCRIPTION="Microchip PIC Programmer using ICD hardware"
HOMEPAGE="http://icdprog.sf.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="sys-devel/gcc
>=sys-apps/sed-4"
RDEPEND=""
src_unpack() {
unpack ${A}
for f in "${S}"/src/Makefile "${S}"/src/icddump/Makefile; do
sed -e 's|^CFLAGS.*|CFLAGS += -Wall|' -i ${f}
done
}
src_compile() {
cd "${S}"/src
emake
cd "${S}"/src/icddump
emake
}
src_install() {
dobin src/icdprog
dobin src/icddump/icddump
dodoc README src/README.coders
}
pkg_postinst() {
elog "Please read the README if the ICD seems to be very slow."
}