Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 280744

Summary: [kde-testing] ebuild for kdebindings-ruby (kde 4)
Product: Gentoo Linux Reporter: Stefano Crocco <stefano.crocco>
Component: New packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: dilfridge, gentryx, wmgrunewald
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kdebindings-ruby ebuild
Custom cmake module needed by my ebuild
patch needed to build the nepomuk bindings
patch needed to build the soprano bindings
a small fix to the original ebuild
ebuild for kde 4.3
patch to make the nepomuk bindings compile with ruby 1.9

Description Stefano Crocco 2009-08-08 13:32:54 UTC
I wrote an ebuild for the kde 4 ruby bindings (korundum4). Currently, it only works for the live version, since the one I use. I'm installing kde 4.3 on another computer and, when it finishes, I'll be able to modify it for kde 4.3 (it will take some days however, as it's an old computer).

The ebuild I wrote builds the bindings for both ruby 1.8 and ruby 1.9. The user can choose which one(s) he wants with two use flags. To provide this feature, however, I had to significantly tweak the build system (there are comments on what I did inside the ebuild). Originally, I thought to write two different ebuilds for ruby 1.8 and ruby 1.9, but then I saw that there were a number of files which were in common between the two and had to change my mind.

Reproducible: Always
Comment 1 Stefano Crocco 2009-08-08 13:33:42 UTC
Created attachment 200574 [details]
kdebindings-ruby ebuild
Comment 2 Stefano Crocco 2009-08-08 13:36:47 UTC
Created attachment 200575 [details]
Custom cmake module needed by my ebuild

This cmake module is used in the ebuild I wrote to gather data about both ruby 1.8 and ruby 1.9. The one normally used by the kdebindings build system, which is included in KDE only uses the version of ruby corresponding to the ruby executable
Comment 3 Stefano Crocco 2009-08-08 13:41:57 UTC
Created attachment 200581 [details, diff]
patch needed to build the nepomuk bindings

Without this patch, some libraries needed to build the nepomuk bindings aren't passed to the linker
Comment 4 Stefano Crocco 2009-08-08 13:42:45 UTC
Created attachment 200582 [details, diff]
patch needed to build the soprano bindings

Without this patch, some libraries needed by soprano aren't passed to the linker
Comment 5 Stefano Crocco 2009-08-08 13:50:05 UTC
Created attachment 200584 [details]
a small fix to the original ebuild

Sorry, the ebuild I originally submitted had a small problem. This one fixes it.

By the way, if it is not clear (it's the first time I submit an ebuild so I'm a bit unsure on how to proceed), the FindRUBIES.cmake file should be put in the files subdirectory of the directory where the ebuild is.
Comment 6 Stefano Crocco 2009-08-15 12:45:11 UTC
Created attachment 201322 [details]
ebuild for kde 4.3

As I promised, here's an ebuild for kde 4.3. It's almost the same as the live ebuild I already posted, but it requires an additional patch to have the nepomuk bindings build with ruby 1.9
Comment 7 Stefano Crocco 2009-08-15 12:47:03 UTC
Created attachment 201323 [details, diff]
patch to make the nepomuk bindings compile with ruby 1.9

The issue fixed by this patch has already been fixed in kdebindings trunk, so this patch is only needed for the 4.3 ebuild
Comment 8 Andreas Schäfer 2009-09-16 07:32:41 UTC
Great stuff. I've just tried it and it works like a charm. I had to fix bug 285073 though. Thanks!
Comment 9 W. Grunewald 2009-12-05 00:10:46 UTC
When will this be included in the official repository?
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2010-02-16 19:43:42 UTC
Sorry, I did not notice your work when starting with kdebindings-ruby. 

It's in the tree now (for 4.4.0), so I'll mark this bug as resolved. 

The in-tree version provides support for multiple ruby implementations (via the ruby-ng eclass, which does similar tricks as you do manually), but I've only tested everything so far for ruby18. 

I'll go through your code and see what we can use. 


*** This bug has been marked as a duplicate of bug 275941 ***
Comment 11 W. Grunewald 2010-02-20 17:26:58 UTC
I cannot build this, see bug 306067.