Skip to content

Instantly share code, notes, and snippets.

class Uniconverter < Formula
desc "command line universal vector graphics translator"
homepage "http://sk1project.org/modules.php?name=Products&product=uniconvertor"
head "https://github.com/sk1project/sk1-wx", :using => :git
resource "Pillow" do
url "https://pypi.python.org/packages/source/P/Pillow/Pillow-2.9.0.zip"
sha256 "d1db8dfed77547076037d589b598e04f2cbc1a7835d3d3f137bf20c8994854d5"
end
require 'fileutils'
require 'tmpdir'
# FileUtils.mv
#
# Ruby 1.8.7's FileUtils.mv calls File.rename on the src. However, File.rename
# raises Errno::EXDEV when src and dst exist on separate devices. The fallback
# is to perform a copy instead of a rename.
#
# However, there is a bug in 1.8.7's implementation. If src is a symlink or a