Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50552 - txt2regex.ebuild (New Package)
Summary: txt2regex.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Ciaran McCreesh
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-05-09 08:53 UTC by Emil Erlandsson
Modified: 2007-08-25 23:12 UTC (History)
3 users (show)

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


Attachments
txt2regex-0.7.ebuild (txt2regex-0.7.ebuild,667 bytes, text/plain)
2004-05-09 08:55 UTC, Emil Erlandsson
Details
txt2regex-0.7-makefile.patch (txt2regex-0.7-makefile.patch,699 bytes, patch)
2004-05-09 08:55 UTC, Emil Erlandsson
Details | Diff
txt2regex-0.7.ebuild (txt2regex-0.7.ebuild,701 bytes, text/plain)
2004-05-09 10:09 UTC, Emil Erlandsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Erlandsson 2004-05-09 08:53:12 UTC
Hello,

This is a new ebuild for a program (or actually a very advanced Bash-script) called ^txt2regex$ (http://txt2regex.sourceforge.net). It is a great aid when creating regular expressions for a hand full of different languages (Perl, PHP etc). It transforms rules from plain text to regex.

I have created a small patch that corrects the Man-path in the Makefile, and also removes some Makefile output.

I suggest dev-util/txt2regex as category and name. Please find attatched txt2regex-0.7.ebuild and txt2regex-0.7-makefile.patch.

I want to become an Gentoo Developer, and this is my first contribution. Please give me some critique on it, and if possible, give me something else I could do =)

Emil
Comment 1 Emil Erlandsson 2004-05-09 08:55:12 UTC
Created attachment 31054 [details]
txt2regex-0.7.ebuild
Comment 2 Emil Erlandsson 2004-05-09 08:55:34 UTC
Created attachment 31055 [details, diff]
txt2regex-0.7-makefile.patch
Comment 3 Emil Erlandsson 2004-05-09 10:09:20 UTC
Created attachment 31060 [details]
txt2regex-0.7.ebuild

I forgot to add "newman txt2regex.man txt2regex.6" which installs the man-file.
Comment 4 Ciaran McCreesh 2004-05-24 14:05:03 UTC
I've committed a slightly modified version to CVS. I made the following changes:

* Slightly shorter DESCRIPTION
* No need for the patch, we can just pass MANDIR=
* Use einstall instead of make install
* No need for that DOCS global thing
* Added ~sparc ~mips to KEYWORDS, since I can test on those. I left in ~x86, since I assume you tested on that :)

Thanks very much for your contribution. Feel free to come on irc.freenode.net and pester me if you'd like to discuss any ebuild-related things (my nick is ciaranm).
Comment 5 Ciaran McCreesh 2004-05-24 14:13:46 UTC
Arch people -- this one's a bash script, so it should be arch neutral. Please consider adding in a keyword for your arch if you feel it's appropriate.

Simple test case:
* run txt2regex from inside a terminal
* ensure the display looks reasonable
* press a few number keys and check that the regexes are generated properly
* press . twice to exit

And another:
* Run "txt2regex --prog perl --make number2" and check that the output resembles:

### number LEVEL 2: level 1 plus optional float point

 RegEx perl: [+-]?[0-9]+(\.[0-9]{2})?
Comment 6 Bryan Østergaard (RETIRED) gentoo-dev 2004-05-25 17:51:40 UTC
Keyworded ~alpha.
Comment 7 Jason Huebel (RETIRED) gentoo-dev 2004-05-26 08:28:04 UTC
~amd64
Comment 8 SpanKY gentoo-dev 2004-06-11 18:22:30 UTC
added hppa
Comment 9 Ciaran McCreesh 2004-08-12 06:16:45 UTC
Marking as FIXED.