Takahiro Kambe wrote:
Yes. But, adding ${RUBY_PKGPREFIX} has another aspect that multiple binary packages could easily coexist. (So, I prefer to prefix for myself.)
For what it's worth, I used my judgement and decided that if a package was used primarily as standalone scripts, than I didn't add ${RUBY_PKGPREFIX}, but if it was used mostly as a library, then I did.
I'll explain what I've done and what I hope to commit to pkgsrc after the branch.
About 1/3 of the packages in Ruby packages in pkgsrc are available as gems. I've converted these to install using the rubygems.mk framework. In approximately 20 of those packages, I've updated the software to the latest gem available, but for all others I bumped the PKGREVISION.
For two packages that use extconf.rb, I've experimented with adding gem support to the package by providing a Rakefile to build the gem. These are ruby-termios and ruby-ncurses. This process turned out to be very simple.
I've also looked through rubyforge.org to look for widely-used Ruby software and created new packages for them using the rubygem.mk framework. I have approximately 50 new packages that I've added to my local pkgsrc. The fact that I was able to create this many packages in a few days shows just how easy it is to use gems for installation. In choosing names for these packages, I've consistently used only lowercase letters in the package names and converted underscores to dashes.
The total list of packages that I've touched is included below. It includes packages that are new, packages that will be updated to the latest release, and packages whose PKGREVISION is bumped as a result of converting to install as a gem. Almost all of these packages have MAINTAINER as either taca%NetBSD.org@localhost or minskim%NetBSD.org@localhost, so hopefully I can get the approval of both of you to commit my changes.
Comments? Thanks, -- Johnny C. Lam archivers/ruby-zip comms/ruby-termios databases/ruby-activerecord databases/ruby-activerecord-odbc databases/ruby-acts-as-versioned databases/ruby-odbc databases/ruby-postgres-pr databases/ruby-postgresql databases/ruby-sqlite3 devel/ZenTest devel/hoe devel/rake devel/ruby-SDL devel/ruby-abstract devel/ruby-activesupport devel/ruby-cmd devel/ruby-fastthread devel/ruby-flexmock devel/ruby-gettext devel/ruby-highline devel/ruby-inline devel/ruby-logging devel/ruby-needle devel/ruby-ncurses devel/ruby-parsetree devel/ruby-priority-queue devel/ruby-rbtree devel/ruby-rgl devel/ruby-rspec devel/ruby-stream devel/ruby2ruby devel/rubyforge graphics/ruby-RMagick graphics/ruby-gd graphics/ruby-gnuplot graphics/ruby-imlib2 graphics/ruby-opengl graphics/ruby-rcairo mail/ruby-actionmailer mail/ruby-mime-types mail/ruby-tmail misc/ruby-daemons misc/ruby-gem_plugin misc/ruby-launchy security/ruby-net-sftp security/ruby-net-ssh sysutils/capistrano sysutils/puppet sysutils/ruby-directory-watcher sysutils/ruby-facter textproc/ruby-builder textproc/ruby-coderay textproc/ruby-feed-normalizer textproc/ruby-ferret textproc/ruby-hpricot textproc/ruby-json textproc/ruby-json-pure textproc/ruby-libxml textproc/ruby-markaby textproc/ruby-maruku textproc/ruby-redcloth textproc/ruby-rttool textproc/ruby-simple-rss textproc/ruby-syntax textproc/ruby-xmlparser textproc/xhtmldiff time/ruby-tzinfo www/camping www/erubis www/heel www/merb www/mongrel www/mongrel-cluster www/mongrel-config www/mongrel-console www/mongrel-upload-progress www/rails www/ruby-actionpack www/ruby-activeresource www/ruby-cgi-multipart-eof-fix www/ruby-fcgi www/ruby-mechanize www/webby