Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89257 - Ebuild for NQC (Not Quite C) version 3.1-r1
Summary: Ebuild for NQC (Not Quite C) version 3.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Lars Weiler (RETIRED)
URL:
Whiteboard:
Keywords:
: 36578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-15 21:49 UTC by Andre Eisenbach
Modified: 2006-06-18 16:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed ebuild for NQC 3.1-r1 (nqc-3.1-r1.ebuild,872 bytes, text/plain)
2005-04-15 21:50 UTC, Andre Eisenbach
Details
nqc-3.1_p2.ebuild (nqc-3.1_p2.ebuild,1.25 KB, text/plain)
2005-08-24 16:51 UTC, will
Details
nqc-3.1_p2.patch (nqc-3.1_p2.patch,924 bytes, patch)
2005-08-24 16:53 UTC, will
Details | Diff
legousbtower-0.5.4.ebuild (legousbtower-0.5.4.ebuild,702 bytes, text/plain)
2005-08-24 16:55 UTC, will
Details
20-lego.rules (20-lego.rules,70 bytes, text/plain)
2005-08-24 16:58 UTC, will
Details
20-lego.rules (20-lego.rules,83 bytes, text/plain)
2005-08-28 12:42 UTC, will
Details
nqc-3.1_p2.ebuild (nqc-3.1_p2.ebuild,1.22 KB, text/plain)
2005-08-28 12:44 UTC, will
Details
nqc-3.1_p4.ebuild (nqc-3.1_p4.ebuild,1.33 KB, text/plain)
2006-04-10 14:04 UTC, will
Details
nqc-3.1_p4-usb.patch (nqc-3.1_p4-usb.patch,1.27 KB, patch)
2006-04-10 14:04 UTC, will
Details | Diff
legousbtower-0.5.4.ebuild (legousbtower-0.5.4.ebuild,954 bytes, text/plain)
2006-04-10 14:05 UTC, will
Details
Patch to make nqc work on AMD64 (nqc-3.1_p4-amd64.patch,558 bytes, patch)
2006-05-08 00:09 UTC, Arvid Norlander
Details | Diff
Updated nqc-3.1_p4.ebuild that supports AMD64 (nqc-3.1_p4.ebuild,1.39 KB, text/plain)
2006-05-08 00:27 UTC, Arvid Norlander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Eisenbach 2005-04-15 21:49:34 UTC
Attached is a new ebuild for NQC (Not Quite C) version 3.1-r1. NQC is a compiler which produces code to be executed on the Lego Mindstorms RCX systems.

This ebuild superceeds Bug #36578

Reproducible: Always
Steps to Reproduce:
Comment 1 Andre Eisenbach 2005-04-15 21:50:19 UTC
Created attachment 56419 [details]
Proposed ebuild for NQC 3.1-r1
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-18 04:11:16 UTC
*** Bug 36578 has been marked as a duplicate of this bug. ***
Comment 3 will 2005-08-24 16:44:40 UTC
I have been working on this ebuild for a while and finally have a working ebuild
for the latest version that supports usb.
Comment 4 will 2005-08-24 16:51:51 UTC
Created attachment 66819 [details]
nqc-3.1_p2.ebuild

I believe it is correct to use _p for patchlevels then -r. I may be wrong.
This ebuild depends on dev-libs/legousbtower.
Comment 5 will 2005-08-24 16:53:32 UTC
Created attachment 66820 [details, diff]
nqc-3.1_p2.patch

This is the patch for nqc. A couple lines are unneeded.
Comment 6 will 2005-08-24 16:55:25 UTC
Created attachment 66822 [details]
legousbtower-0.5.4.ebuild

This is the ebuild needed for usb IR tower support. If the kernel is 2.6 then
only the header is needed.
Comment 7 will 2005-08-24 16:58:13 UTC
Created attachment 66823 [details]
20-lego.rules

This is a udev rules file required to work around the fact that nqc looks for
/dev/usb/lego0 and the kernel gives it /dev/usb/legousbtower0. This may be
fixable with a patch to either nqc or legousbtower.h, but I don't know how to
do that.
Comment 8 will 2005-08-28 12:42:25 UTC
Created attachment 67107 [details]
20-lego.rules

An updated rule with proper permissions
Comment 9 will 2005-08-28 12:44:51 UTC
Created attachment 67108 [details]
nqc-3.1_p2.ebuild

Fixed if statements, usb use flag now works correctly.
Comment 10 Arvid Norlander 2005-12-23 14:40:34 UTC
Version 3.1-r3 is the current one. I have successfully installed it from source. 

Can someone make an ebuild for this version? 

Please add an usb useflag as I don't need USB-support for it (I have an old serial version of the tower). For me NQC uses /dev/ttyS0.
Comment 11 will 2005-12-23 16:54:41 UTC
I tested and my ebuild works on the new tarball without modification. Here is how to get it working:
In your overlay create the dirs dev-lang/nqc/files and dev-libs/nqc/files
Place nqc-3.1_p2.ebuild in dev-lang/nqc and rename it to nqc-3.1_p4.ebuild
Place nqc-3.1_p2.patch in dev-lang/nqc/files and rename it to nqc-3.1_p4.ebuild
Place legousbtower-0.5.4.ebuild in dev-libs/legousbtower
Place 20-lego.rules dev-libs/legousbtower/files
run ebuild dev-libs/legousbtower-0.5.4.ebuild digest
run ebuild dev-lang/nqc-3.1_p4.ebuild digest

The ebuild has a usb use flag so if it is disabled you will not have usb support. I use _p instead of -r because -r is a gentoo patch level. I may be wrong, but I would need a dev's decision.
Comment 12 Lars Weiler (RETIRED) gentoo-dev 2006-03-17 02:26:53 UTC
I test this ebuild this weekend when I have access to an RCX and add it into portage next week.  Thanks for your contributions so far!
Comment 13 Arvid Norlander 2006-03-17 04:11:13 UTC
(In reply to comment #12)
> I test this ebuild this weekend when I have access to an RCX and add it into
> portage next week.  Thanks for your contributions so far!
> 
An even newer version is available: NQC 3.1 r4
Comment 14 will 2006-04-10 14:03:00 UTC
I have updated the nqc and legousbtower ebuilds and patches. I fixed some bugs I noticed and got rid of the need for the 20-lego.rules hack. NQC now uses the default dev path. There is a fix for cases where usb is not used or wanted.
Comment 15 will 2006-04-10 14:04:17 UTC
Created attachment 84391 [details]
nqc-3.1_p4.ebuild
Comment 16 will 2006-04-10 14:04:48 UTC
Created attachment 84392 [details, diff]
nqc-3.1_p4-usb.patch
Comment 17 will 2006-04-10 14:05:24 UTC
Created attachment 84393 [details]
legousbtower-0.5.4.ebuild
Comment 18 Arvid Norlander 2006-05-08 00:09:12 UTC
Created attachment 86410 [details, diff]
Patch to make nqc work on AMD64

I made a patch to make nqc work on AMD64. I have not tried to add this patch to the ebuild (only tried it compiling manually).
Comment 19 Arvid Norlander 2006-05-08 00:27:16 UTC
Created attachment 86411 [details]
Updated nqc-3.1_p4.ebuild that supports AMD64

And here is a ebuild that patches for AMD64. I tested it and nqc can comunicate with the RCX (using USB tower).
Comment 20 Lars Weiler (RETIRED) gentoo-dev 2006-06-18 07:09:45 UTC
Finally, legousbtower and nqc-3.1_p4 are in portage now.  Thanks for your contribution!