Difference between revisions of "Ruby Gem package guidelines"

From ArchWiki
Jump to: navigation, search
(added links to related articles with Template:Package Guidelines)
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Package development (English)]]
+
[[Category:Package development]]
{{i18n|Ruby Gem Package Guidelines}}
+
[[it:Ruby Gem Package Guidelines]]
 
+
{{Article summary start}}
+
{{Article summary text|Writing [[PKGBUILD]]s for sowtware written in [[Ruby]].}}
+
 
{{Package Guidelines}}
 
{{Package Guidelines}}
{{Article summary end}}
+
 
 +
Writing [[PKGBUILD]]s for software written in [[Ruby]].
  
 
== Package Naming ==
 
== Package Naming ==
Line 19: Line 17:
  
 
== Example PKGBUILD ==
 
== Example PKGBUILD ==
An example PKGBUILD can be found at {{Ic|/usr/share/pacman/PKGBUILD-perl.proto}}, which is in the {{Pkg|abs}} package.  
+
An example PKGBUILD can be found at {{Ic|/usr/share/pacman/PKGBUILD-rubygem.proto}}, which is in the {{Pkg|abs}} package.
  
 
== Automation ==
 
== Automation ==

Revision as of 13:16, 13 June 2012

Template:Package Guidelines

Writing PKGBUILDs for software written in Ruby.

Package Naming

For libraries, use ruby-gemname. For applications, use the program name. In either case, the name should be entirely lowercase

Examples

For examples, please see github-gemAUR ruby-json_pureAUR ruby-hpricotAUR.

Notes

Add --verbose to gem arguments to recive additional information in case of troubles.

Warning: Usage of --no-user-install gem argument is mandatory since latest Ruby versions (See FS#28681 for details).

Example PKGBUILD

An example PKGBUILD can be found at /usr/share/pacman/PKGBUILD-rubygem.proto, which is in the abs package.

Automation

Abhishek Dasgupta wrote gem2arch to aid in automating the process of creating a ruby gem PKGBUILD. Make sure to manually check the PKGBUILD after generation. There are multiple versions of this tool in AUR (Search for gem2arch).

The gem installation can also be automated completely with the tool pacgemAUR which creates a temporary PKGBUILD, calls makepkg and namcap. The resulting package is then installed with sudo pacman.