ruby question
Bradley Giesbrecht
pixilla at macports.org
Thu Apr 5 11:12:57 PDT 2012
On Apr 5, 2012, at 10:46 AM, Aljaž Srebrnič wrote:
> On 02/apr/2012, at 19:20, Ryan Schmidt wrote:
>
>>
>> On Apr 1, 2012, at 16:16, Aljaž Srebrnič wrote:
>>
>>> I was trying to craft a port for the earthquake ruby gem (a CLI for twitter), but I stumbled on some puzzling things: apparently, earthquake needs ruby 1.9, why is ruby available as ruby19 and not simply ruby (whih installs the 1.8 version)? And if we go the python way, why there's no ruby-select?
>>
>> The ruby port should probably be renamed to / replaced_by ruby18.
>>
>> There should probably be a ruby-select port.
>>
>> The ruby portgroup would then need to be overhauled as well.
>>
>> I don't think anybody's worked on the ruby ports in awhile; if you're interested you should coordinate with the ruby maintainer.
>
> I pinged him/her, but no response… The select stuff is quite obscure to me, however, Is there some documentation about it? I couldn't find anything in the guide or wiki… :/
>
>>
>>
>>> Slightly related: I wanna install earthquake, but get the source using github. Just add both PortGroups and then ruby.setup first and then github.setup?
>>
>> Yes, the github portgroup should be able to coexist with other portgroups.
> Thanks for the info ;)
>
> However, I took a peek in the python_select port and tried to emulate it, and quickly noticed an issue: ruby 1.8 does not provide the rake command (available as rb-rake port) but it is bundled with ruby19! I haven't the foggiest on how to implement that :/
Caveat, everything below I figured out for myself and I may be wrong, but it does seem pretty simple.
Looking at the mysql_select port I just created:
"base" includes a list of ALL that ANY mysql_select port would want to create convenient simlinks for:
/opt/local/etc/select/mysql/base
"none" is basically a pseudo mysql_select object that skips all the base items by use of the "-" placeholder:
/opt/local/etc/select/mysql/none
"mysql55" is a list of all the "base" items that the mysql55 port provides and all the items the mysql55 does not provide get the "-" placeholder:
/opt/local/etc/select/mysql/mysql55
You can look at the files without installing anything.
cat $(port dir mysql_select)/files/* $(port dir mysql55)/files/mysql55
Regards,
Bradley Giesbrecht (pixilla)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120405/cbca414f/attachment.bin>
More information about the macports-dev
mailing list