summaryrefslogtreecommitdiffstats
path: root/sci-electronics/lpc2k_pgm/lpc2k_pgm-1.02.ebuild
blob: a1b3de4dfb8683ff70e0d60b54b30faf430e713e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 

inherit eutils

DESCRIPTION="Bootloader Utility For Philips LPC 2xxx ARM7 Chips"
SRC_URI="http://www.pjrc.com/arm/lpc2k_pgm/lpc2k_pgm_1.02.tar.gz"
HOMEPAGE="http://www.pjrc.com/arm/lpc2k_pgm/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 amd64"
IUSE="gtk"
DEPEND="gtk? ( >=x11-libs/gtk+-2.0 )"

S=${WORKDIR}/${PN}

src_unpack() {
    unpack ${PN}_${PV}.tar.gz || die
    cd ${PN}
    epatch ${FILESDIR}/lpc2k_pgm-ds-console.patch.gz || die
    chmod +x configure compile depcomp install-sh missing
}

src_compile() {
    ./configure || die
    make || die
}

src_install() {
    into /usr
    dobin lpc2k_pgm || die
    use gtk && ( dobin lpc2k_pgm_gtk2 || die )
}