blob: 0a653c9e1be29868b3ed786f55a1bc15e08d16c1 (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/yapide/yapide-0.1.1.ebuild,v 1.2 2007/07/15 03:57:21 mr_bones_ Exp $
inherit eutils toolchain-funcs
DESCRIPTION="Yet Another PIC IDE: a Microchip PIC simulator"
HOMEPAGE="http://www.mtoussaint.de/yapide.html"
SRC_URI="http://www.mtoussaint.de/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE=""
RDEPEND="virtual/libc
=x11-libs/qt-3*
dev-embedded/gputils"
DEPEND="${RDEPEND}"
S="${WORKDIR}/YaPIDE-${PV}"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}-configure.patch
epatch "${FILESDIR}"/${P}-make.patch
}
src_compile() {
addwrite "${QTDIR}/etc/settings"
# this isn't autoconf
tc-export CXX
./configure || die
emake src/Makefile || die
sed -i -e "s:^CFLAGS.*-D_REENTRANT:CFLAGS = ${CFLAGS} -D_REENTRANT:" \
-e "s:^CXXFLAGS.*-D_REENTRANT:CXXFLAGS = ${CXXFLAGS} -D_REENTRANT:" \
src/Makefile
emake || die
}
src_install() {
dobin src/yapide
dodoc KNOWNBUGS README
}
|