2010-01-30 11:48:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Kdelibs <Formula
|
2010-03-16 22:28:26 +00:00
|
|
|
url 'ftp://ftp.kde.org/pub/kde/stable/4.4.1/src/kdelibs-4.4.1.tar.bz2'
|
2010-01-30 11:48:43 +00:00
|
|
|
homepage 'http://www.kde.org/'
|
2010-03-16 22:28:26 +00:00
|
|
|
md5 '5057908fb9dcf7997a87fe27a382bfc9'
|
2010-01-30 11:48:43 +00:00
|
|
|
|
|
|
|
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')
|
2010-03-18 15:42:56 +00:00
|
|
|
system "cmake .. #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{gettext.prefix} -DBUNDLE_INSTALL_DIR=#{bin}"
|
2010-01-30 11:48:43 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-03-19 12:25:11 +00:00
|
|
|
|
|
|
|
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
|
2010-01-30 11:48:43 +00:00
|
|
|
end
|