/[gentoo-x86]/dev-lang/nqc/nqc-2.5.1.ebuild
Gentoo

Contents of /dev-lang/nqc/nqc-2.5.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Fri Oct 23 15:48:24 2009 UTC (4 years, 9 months ago) by vostorga
Branch: MAIN
Changes since 1.13: +2 -2 lines
Adding || die to make install
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/nqc/nqc-2.5.1.ebuild,v 1.13 2009/09/23 16:52:35 patrick Exp $
4
5 inherit eutils
6
7 My_PV="`echo $PV|cut -d. -f1,2`.r`echo $PV|cut -d. -f3`"
8 My_P="${PN}-${My_PV}"
9 S=${WORKDIR}/${My_P}
10 DESCRIPTION="Not Quite C - C-like compiler for Lego Mindstorms"
11 SRC_URI="http://www.baumfamily.org/nqc/release/${My_P}.tgz"
12 HOMEPAGE="http://www.baumfamily.org/nqc/"
13
14 SLOT="0"
15 LICENSE="MPL-1.0"
16 KEYWORDS="ppc x86"
17 IUSE=""
18
19 DEPEND=""
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 epatch "${FILESDIR}/${P}-gcc34-fix.patch"
25 }
26
27 src_compile() {
28 ${#NQC_SERIAL} && NQC_SERIAL="/dev/ttyS0"
29 sed -e "s:/usr/local/bin:${D}/usr/bin:" -e "s:/usr/local/man:${D}/usr/share/man:" -e "s:-O6:${CFLAGS}:" < Makefile >makefile
30 # emake doesn't work
31 DEFAULT_SERIAL_NAME=\"${NQC_SERIAL}\" make || die
32 }
33
34 src_install() {
35 make DESTDIR="${D}" install || die "make install failed"
36 dodoc history.txt readme.txt scout.txt test.nqc
37 }
38
39 pkg_postinst() {
40 elog "To change the default serial name for nqc (/dev/ttyS0) set"
41 elog "the environment variable NQC_SERIAL and reemerge nqc, e.g.:"
42 elog " NQC_SERIAL='/dev/ttyS1' emerge nqc"
43 }

  ViewVC Help
Powered by ViewVC 1.1.20