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

Contents of /dev-lang/nqc/nqc-3.1_p6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Aug 21 18:33:20 2012 UTC (2 years, 2 months ago) by hasufell
Branch: MAIN
Changes since 1.4: +6 -11 lines
respect flags wrt #432200

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/nqc/nqc-3.1_p6.ebuild,v 1.4 2012/07/04 19:46:56 jlec Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Not Quite C - C-like compiler for Lego Mindstorms"
10 HOMEPAGE="http://bricxcc.sourceforge.net/nqc/"
11 SRC_URI="http://bricxcc.sourceforge.net/nqc/release/${P/_p/.r}.tgz"
12
13 LICENSE="MPL-1.0"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE="usb"
17
18 DEPEND="usb? ( dev-libs/legousbtower )"
19 RDEPEND="${DEPEND}"
20
21 S="${WORKDIR}"
22
23 pkg_setup() {
24 tc-export CXX
25 }
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${P}-{gcc-4.7,flags}.patch
29 }
30
31 src_configure() {
32 if use usb; then
33 sed -i Makefile -e 's|#.*USBOBJ =|USBOBJ =|g' || die "sed usb"
34 fi
35 }
36
37 src_install() {
38 dobin bin/*
39 newman nqc-man-2.1r1-0.man nqc.1
40 dodoc history.txt readme.txt scout.txt test.nqc
41 }
42
43 pkg_postinst() {
44 elog "To change the default serial name for nqc (/dev/ttyS0) set"
45 elog "the environment variable RCX_PORT or use the nqc command line"
46 elog "option -S to specify your serial port."
47 if use usb; then
48 echo
49 elog "You have enabled USB support. To use usb on the"
50 elog "command line use the -Susb command line option"
51 else
52 echo
53 elog "You have not enabled usb support and will be unable"
54 elog "to use the usb IR tower. To enable USB use the usb use flag"
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20