Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174975 - new package: dev-libs/stfl-0.8 (ebuild attached)
Summary: new package: dev-libs/stfl-0.8 (ebuild attached)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Andrej Kacian (RETIRED)
URL: http://www.clifford.at/stfl/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-04-17 19:56 UTC by Tim Weber
Modified: 2007-04-18 05:47 UTC (History)
0 users

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


Attachments
stfl-0.8.ebuild (stfl-0.8.ebuild,596 bytes, text/plain)
2007-04-17 19:57 UTC, Tim Weber
Details
Improved stfl ebuild (stfl-0.8.ebuild,1.33 KB, text/plain)
2007-04-17 23:43 UTC, Andrej Kacian (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Weber 2007-04-17 19:56:31 UTC
STFL is a library which implements a curses-based widget set for text terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby.

This library is a dependency of the "newsbeuter" feed reader (http://synflood.at/newsbeuter.html). I'll write an ebuild for newsbeuter tomorrow.

This is not my first ebuild, but there can be errors in it nevertheless. I'm especially unsure wheter dev-libs is the correct category and whether the ebuild should be called stfl or libstfl. Also, the "examples" installation procedure is a bit ugly because I couldn't figure out how to use doins with sub-directories.

I've tested the ebuild, of course, and it works like a charm. Any suggestions and comments are welcome.
Comment 1 Tim Weber 2007-04-17 19:57:12 UTC
Created attachment 116557 [details]
stfl-0.8.ebuild

My ebuild proposal.
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2007-04-17 23:43:00 UTC
Created attachment 116577 [details]
Improved stfl ebuild

I'll take this, as newsbeuter (I'll take that as well) seems to be a really nice newsreader.

Attaching improved ebuild, which adds correct deps, as well as some sed tweaks to keep sandbox happy. Please give it a try and comment/improve.
Comment 3 Tim Weber 2007-04-18 05:24:28 UTC
There's an "if use swig" section, but swig is not in IUSE. Maybe you should install the swig examples "if use perl || use python"?

Otherwise it seems to work fine.
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2007-04-18 05:41:15 UTC
(In reply to comment #3)
> There's an "if use swig" section, but swig is not in IUSE. Maybe you should
> install the swig examples "if use perl || use python"?

Yes, this was there before I realized that swig is merely used to build bindings for python/perl/ruby, and I forgot to remove it. Files in that subdir do not need to be installed.

> Otherwise it seems to work fine.
> 

Great, I'll commit it then.

One thing I'd like to do, though, is to tweak Makefile so that bindings are not built if a relevant USE flag is disabled. Currently, for example ruby bindings are built if ruby is installed, even if you have USE="-ruby".
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2007-04-18 05:47:41 UTC
Committed. I have also changed ebuild to only install example.* from perl/python/ruby subdirs, as other files from there are only used for building the bindings.

Thanks for the contribution!