| 1 |
gem2deb is a set of tools to create Debian packages from Rubygems |
| 2 |
|
| 3 |
The workflow looks like: |
| 4 |
Download gem: |
| 5 |
gem fetch foo |
| 6 |
| |
| 7 |
v |
| 8 |
Create a tarball. It contains the gem spec as metadata.yml |
| 9 |
gem2tgz foo-1.2.gem |
| 10 |
| |
| 11 |
v |
| 12 |
Convert to a Debian source package with sane defaults: |
| 13 |
dh-make-ruby foo-1.2.tar.gz |
| 14 |
| |
| 15 |
v |
| 16 |
Modify, if needed |
| 17 |
| |
| 18 |
v |
| 19 |
Build the package: |
| 20 |
dpkg-buildpackage -us -uc |
| 21 |
|
| 22 |
Alternatively, you can use the gem2deb command, that tries to do |
| 23 |
everything automatically. |
| 24 |
|
| 25 |
The generated Debian source package uses Debhelper with a specific build system |
| 26 |
called "ruby". That buildsystem uses the dh_ruby tool for the various steps |
| 27 |
(clean, build, test, install). |
| 28 |
|
| 29 |
Building from source and testing this package: |
| 30 |
============================================== |
| 31 |
# install build-dependencies, look at the Build-Depends line |
| 32 |
# in debian/control |
| 33 |
|
| 34 |
# build the package |
| 35 |
dpkg-buildpackage -us -uc |
| 36 |
# install |
| 37 |
sudo debi |
| 38 |
# or simply: "rake install" |
| 39 |
|
| 40 |
Developers: |
| 41 |
Lucas Nussbaum <[email protected]> |
| 42 |
Antonio Terceiro <[email protected]> |
| 43 |
|
| 44 |
License: GPLv3 or later |