OS X.
aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/kdelibs.rb
blob: 2ea19f1eb79a545e946b31c3f68a591f2ca922e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'formula'

class Kdelibs <Formula
  url 'ftp://ftp.kde.org/pub/kde/stable/4.4.1/src/kdelibs-4.4.1.tar.bz2'
  homepage 'http://www.kde.org/'
  md5 '5057908fb9dcf7997a87fe27a382bfc9'

  depends_on 'cmake'
  depends_on 'qt'
  depends_on 'automoc4'
  depends_on 'pcre'
  depends_on 'jpeg'
  depends_on 'giflib'
  depends_on 'strigi'
  depends_on 'soprano'
  depends_on 'shared-desktop-ontologies'
  depends_on 'gettext'

  depends_on 'libpng' unless File.exist? "/usr/X11R6/lib"

  def install
    gettext = Formula.factory 'gettext'
    FileUtils.mkdir('build')
    FileUtils.cd('build')
    system "cmake .. #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{gettext.prefix} -DBUNDLE_INSTALL_DIR=#{bin}"
    system "make install"
  end

  def caveats
    <<-END_CAVEATS
    WARNING: this doesn't actually work for running KDE applications yet!

    Please don't just add the Macports patches and expect them to be pulled.
    I'm avoiding adding patches that haven't been committed to KDE upstream
    (which I have commit access to). Instead of requesting I add these,
    consider writing and testing an upstream-suitable patch.

    Thanks for your patience!
    END_CAVEATS
  end
end