]> gitweb.fluxo.info Git - debian.git/commitdiff
More on ruby packaging
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Oct 2014 15:49:28 +0000 (12:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 18 Oct 2014 15:49:28 +0000 (12:49 -0300)
TODO.md
ruby.md

diff --git a/TODO.md b/TODO.md
index 29421e048478d66641b56dc6ee480861ff21f91c..3ccec6228b79fb97cefcc90a39fd02c300ee4b8b 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -22,14 +22,14 @@ Backport
 --------
 
 * jekyll
-* newsbeuter
 * compton
 * grub-pc
 
 Port
 ----
 
-* pond.
+* [Pond](https://pond.imperialviolet.org/).
+* [Octopress](http://octopress.org/).
 * [leap-cli](https://leap.se) (check http://deb.leap.se).
 * [Blingbling](http://awesome.naquadah.org/wiki/Blingbling).
 * [x2go-server](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465821).
diff --git a/ruby.md b/ruby.md
index 0433f89fcf07d5c66ef5d1380fcfe79e34beee53..f53b375f3429c0d2cf81403e5a21d7176ed11c95 100644 (file)
--- a/ruby.md
+++ b/ruby.md
@@ -13,19 +13,48 @@ First, in a *fresh* vagrant box:
 
 Then we get the dependencies and build all packages:
 
-    dependencies="`gem list | cut -d '(' -f 1`"
+    dependencies=" `gem list | cut -d '(' -f 1` "
+
+Gem cleanup:
+
+    sudo gem uninstall $dependencies
+
+Check existing dependencies:
+
+    for item in $dependencies; do
+      package=ruby-"`echo $item | sed -e 's/_/-/'`"
+
+      if apt-cache search $package &> /dev/null; then
+        packages="$packages $package"
+        dependencies=$(echo $dependencies | sed -e "s/ $package //")
+        sudo apt-get install $package
+      fi
+    done
+
+Build remaining packages:
 
     for gem in $dependencies; do
       gem2deb $gem
     done
 
-Cleanup:
+Report:
 
-    sudo gem uninstall $dependencies
+    echo "Existing debian dependencies: $packages"
+    echo "New packages                : $dependencies"
+
+Test:
+
+    sudo dpkg -i *deb
+
+Deb cleanup:
+
+    sudo dpkg -r $dependencies
 
 Additional steps:
 
+* Backport existing dependencies if needed.
 * Fix `debian/control` and other FIXME's on each package.
 * Put `debian/` folder in a `debian` branch on each source.
 * [Review the code](https://manual.sarava.org/specs/code/).
+* Automate building with pbuilder.
 * Upstream pull requests.