LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-22-2011, 08:36 PM   #1
cycojesus
Member
 
Registered: Dec 2005
Location: Lyon, France
Distribution: Slackware-current
Posts: 116

Rep: Reputation: 79
Lightbulb [ANN] gem2tgz 1.0


Slackers worldwide, I give you gem2tgz.

<Here I'd bury debian under a smelly pile of trolls' feces but let's not for now, however tempting it is...>

in 176 lines of shell gem2tgz makes Slackware and Ruby's gems become BFF by making packages out of gems so that Slackware know about them and can manage them like any other packages.

Code:
Usage: /usr/bin/gem2tgz <options>
Options:
	-a | --backup | --all-locals
		Generate packages for ALL gems installed locally

	-g | --gem <name>
		gem to package [no default]
	-v | --version <x.x.x>
		Package a specific version [default: latest]
	-t | --tag <tag>
		Set a specific tag for the package's name [default: gem2txz]
	-n | --nodeps
		Do not build packages of dependencies [default: package all dependencies]
	-i | --install
		Install the package [default: no]
	-o | --output <dir>
		Directory where the resulting package will be [default: /tmp]

	-h | --help
		What you're reading at this very moment
After semi-extensive testing here it looks pretty solid to me and time has come to release it into the wild, so:
- here's the github repository: https://github.com/cycojesus/gem2tgz
- here's a ready-made package: http://cycojesus.free.fr/files/gem2t...arch-1cyco.txz

Please enjoy and any/all feedback is welcome

Last edited by cycojesus; 02-23-2011 at 06:24 AM. Reason: renamed to gem2tgz
 
Old 02-22-2011, 10:22 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
If it's not too much trouble, how about doing up everything necessary for a SlackBuilds.org submission similar to cpan2tgz?

On that note, probably it would be better to call this "gem2tgz" and implement the ability to compress using xz and perhaps others instead. That's (obviously) your call though.

Last edited by rworkman; 02-22-2011 at 10:23 PM.
 
Old 02-23-2011, 06:15 AM   #3
cycojesus
Member
 
Registered: Dec 2005
Location: Lyon, France
Distribution: Slackware-current
Posts: 116

Original Poster
Rep: Reputation: 79
Thanks. The first version was made around the same time Slackware moved to the .txz format so the name meant to reflect this change. Nevertheless I agree that Slackware still has a strong association with "tgz" and for consistency I'll rename (and edit the links here).

As for SBo, I'm an extensive user of it and I'll see to submit gem2tgz once I get github to serve a tagged archive. That could be the start of my contribution to SBo with those of my slackbuilds that are submittable (I tend to have scripts that pull directly from git|hg|svn|...)
 
  


Reply

Tags
package management, ruby, rubygems, slackware, tool



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] compat32pkg 1.2.110112 phenixia2003 Slackware 6 02-25-2011 04:31 AM
[ANN] mkslack 3.8 released dive Slackware 2 02-09-2011 05:49 PM
[ANN] sbopkg 0.34.1 is released slakmagik Slackware 3 02-06-2011 02:57 PM
Hello from Ann Arbor! lindners LinuxQuestions.org Member Intro 1 07-07-2010 05:58 AM
Hello from Ann Arbor joemac LinuxQuestions.org Member Intro 1 01-19-2010 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration