require 'formula'

class Automoc4 <Formula
  @url='ftp://ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
  @homepage='http://techbase.kde.org/Development/Tools/Automoc4'
  @md5='91bf517cb940109180ecd07bc90c69ec'

  depends_on 'cmake'
  depends_on 'qt'

  def install
    system "cmake . #{std_cmake_parameters}"
    system "make install"
  end
end

require 'formula'

class Automoc4 <Formula
  @url='http://ftp-stud.fht-esslingen.de/Mirrors/ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
  @homepage='http://techbase.kde.org/Development/Tools/Automoc4'
  @md5='91bf517cb940109180ecd07bc90c69ec'

  depends_on 'cmake'

  def install
    system "cmake . #{std_cmake_parameters}"
    system "make install"
  end
end

--- 
+++ 
@@ -1,11 +1,12 @@
 require 'formula'
 
 class Automoc4 <Formula
-  @url='http://ftp-stud.fht-esslingen.de/Mirrors/ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
+  @url='ftp://ftp.kde.org/pub/kde/stable/automoc4/0.9.88/automoc4-0.9.88.tar.bz2'
   @homepage='http://techbase.kde.org/Development/Tools/Automoc4'
   @md5='91bf517cb940109180ecd07bc90c69ec'
 
   depends_on 'cmake'
+  depends_on 'qt'
 
   def install
     system "cmake . #{std_cmake_parameters}"
Use KDE FTP and add needed Qt dependency for Automoc4.
