blob: 93b8e6d936fe06ec80568605979369ab64d5c4e2 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/nqc/nqc-2.5.1.ebuild,v 1.13 2009/09/23 16:52:35 patrick Exp $
inherit eutils
My_PV="`echo $PV|cut -d. -f1,2`.r`echo $PV|cut -d. -f3`"
My_P="${PN}-${My_PV}"
S=${WORKDIR}/${My_P}
DESCRIPTION="Not Quite C - C-like compiler for Lego Mindstorms"
SRC_URI="http://www.baumfamily.org/nqc/release/${My_P}.tgz"
HOMEPAGE="http://www.baumfamily.org/nqc/"
SLOT="0"
LICENSE="MPL-1.0"
KEYWORDS="ppc x86"
IUSE=""
DEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-gcc34-fix.patch"
}
src_compile() {
${#NQC_SERIAL} && NQC_SERIAL="/dev/ttyS0"
sed -e "s:/usr/local/bin:${D}/usr/bin:" -e "s:/usr/local/man:${D}/usr/share/man:" -e "s:-O6:${CFLAGS}:" < Makefile >makefile
# emake doesn't work
DEFAULT_SERIAL_NAME=\"${NQC_SERIAL}\" make || die
}
src_install() {
make DESTDIR=${D} install
dodoc history.txt readme.txt scout.txt test.nqc
}
pkg_postinst() {
elog "To change the default serial name for nqc (/dev/ttyS0) set"
elog "the environment variable NQC_SERIAL and reemerge nqc, e.g.:"
elog " NQC_SERIAL='/dev/ttyS1' emerge nqc"
}
|