Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101965 - add lemon to portage
Summary: add lemon to portage
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-08-10 04:19 UTC by Nuno Lopes
Modified: 2018-06-07 18:25 UTC (History)
1 user (show)

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


Attachments
a proposed ebuild (lemon-1.33.ebuild,569 bytes, text/plain)
2005-08-10 06:01 UTC, Nuno Lopes
Details
cvs snapshot (lemon.c.bz2,27.46 KB, application/octet-stream)
2005-08-10 11:33 UTC, Nuno Lopes
Details
ebuild take 2 (lemon-1.33.ebuild,474 bytes, text/plain)
2005-08-11 11:29 UTC, Nuno Lopes
Details
lemon-1.33.ebuild take 3 (lemon-1.33.ebuild,434 bytes, text/plain)
2005-09-01 05:55 UTC, Nuno Lopes
Details
lemon-3.6.13.ebuild (lemon-3.6.13.ebuild,640 bytes, text/plain)
2009-05-13 03:17 UTC, J M W
Details
files/lemon.patch (lemon.patch,754 bytes, text/plain)
2009-05-13 03:18 UTC, J M W
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Lopes 2005-08-10 04:19:34 UTC
Can you please add the 'lemon' parser to portage, please?

homepage: http://www.hwaci.com/sw/lemon/
debian package: http://packages.debian.org/unstable/devel/lemon

Thanks,
Nuno

P.S.: I would like to become this package maintainer, but I don't have a mentor..
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-10 04:48:28 UTC
(In reply to comment #0)
> P.S.: I would like to become this package maintainer, but I don't have a mentor..

What about attaching an ebuild first? ;)
Comment 2 Nuno Lopes 2005-08-10 06:01:11 UTC
Created attachment 65595 [details]
a proposed ebuild

ok, here it is an ebuild.
Some problems: this program is not distributed via .tar.gz packages. It can
only be downloaded from cvs or from a sqlite package. I've put the ebuild to
download the source from the on-line cvs tracker, but that has a problem,
because the file will then be named "lemon.c?v=1.x" instead of just lemon.c.
I'm not sure how that can be handled.

Please review this ebuild and let me know of any problems!
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-08-10 06:07:37 UTC
Hmm, using snaphosts for CVS ebuilds is preferred, live CVS ebuilds not that
good idea. ;-) So I'd suggest you make a snapshot tarball and modify the ebuild
accordingly. You can attach the tarball here when ready. 
Comment 4 Nuno Lopes 2005-08-10 06:15:20 UTC
but it doesn't download the latest version of the program, it just downloads the
revision specified in the ebuild.
Anyway, a snapshot is easy. Just fetch the
http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lemon.c?v=1.33 and bzip2/gzip it.
But with a snapshot I don't know how to adjust the SRC_URI var, because that way
the file must be downloaded from a mirror, not having an "official site".
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-08-10 06:21:15 UTC
(In reply to comment #4)
> Anyway, a snapshot is easy. Just fetch the
> http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lemon.c?v=1.33 and
bzip2/gzip it.
> But with a snapshot I don't know how to adjust the SRC_URI var, because that way
> the file must be downloaded from a mirror, not having an "official site".

The point is that abusing other people's CVS like this is not really nice, while
snapshots can be hosted in Gentoo distfiles repository and mirrored.
Comment 6 Nuno Lopes 2005-08-10 11:33:36 UTC
Created attachment 65612 [details]
cvs snapshot

OK, so here it is a cvs snapshot.
Comment 7 Nuno Lopes 2005-08-11 11:29:28 UTC
Created attachment 65687 [details]
ebuild take 2
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-08-27 05:25:07 UTC
Thanks for the updated ebuild. Keywords probably do not follow policy [1],
unless you really tested this on all those arches, then please fix them.

[1] http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3
Comment 9 Nuno Lopes 2005-09-01 05:55:06 UTC
Created attachment 67406 [details]
lemon-1.33.ebuild take 3

this should be fine now (I hope)
Comment 10 J M W 2009-05-07 06:08:57 UTC
Hi all. I'm working on an ebuild for netsurf, a browser which needs 
lemon in order to compile. I was going to write an ebuild for lemon, 
based on the lemon.c contained in the sqlite sources, but I saw this bug
and the only discussion I saw was regarding a cvs ebuild. I see several 
problems with this snapshot ebuild. 1) I do not see where the version 
number for this ebuild came from - was the sqlite in portage at v1.33 
when this ebuild was posted? If that was the justification it would make
more sense to base this ebuild on the version of lemon.c in the sqlite 
source tarball. 2) The cvs snapshot that was posted here is called
lemon.c.bz2, whereas the ebuild is looking for lemon-1.33.bz2. 3) the
ebuild doesn't fetch, because after all this time (4 years) the snapshot
is still not up on any of the mirrors. 4) even if I rename the snapshot 
posted here and put it in /usr/portage/distfiles it still doesn't
emerge because it can't find lemon.c. I need this package in portage, so
I will write a new ebuild for it. I will probably base it on the sqlite
source tarball, but if anyone disagrees, chime in here. Also, if anyone
knows what I should use for a version number, or if I need a version
number, please let me know. 

Comment 11 J M W 2009-05-13 03:15:16 UTC
I've written the ebuid for lemon. While writing it, I ran into this bug:
http://www.sqlite.org/cvstrac/tktview?tn=3857, for which I had to write a patch. Please 
add this ebuild to portage. Thanks. 
Comment 12 J M W 2009-05-13 03:17:24 UTC
Created attachment 191101 [details]
lemon-3.6.13.ebuild

=dev-util/lemon-3.6.13.ebuild
Comment 13 J M W 2009-05-13 03:18:40 UTC
Created attachment 191102 [details]
files/lemon.patch

=Patch so lemon will be able to find lempar.c in /usr/share/lemon