homebrew-core/Formula/kdelibs.rb

42 lines
1.5 KiB
Ruby
Raw Normal View History

2010-01-30 11:48:43 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Kdelibs < Formula
2011-02-09 22:24:46 +00:00
url 'ftp://ftp.kde.org/pub/kde/stable/4.6.0/src/kdelibs-4.6.0.tar.bz2'
2010-01-30 11:48:43 +00:00
homepage 'http://www.kde.org/'
2011-02-09 22:24:46 +00:00
md5 '9ee32f375809a42a4a8d512bd06a612b'
2010-01-30 11:48:43 +00:00
depends_on 'cmake' => :build
depends_on 'automoc4' => :build
depends_on 'gettext'
2010-01-30 11:48:43 +00:00
depends_on 'pcre'
depends_on 'jpeg'
depends_on 'giflib'
depends_on 'libpng' unless File.exist? "/usr/X11R6/lib"
2010-01-30 11:48:43 +00:00
depends_on 'strigi'
depends_on 'soprano'
depends_on 'shared-desktop-ontologies'
depends_on 'shared-mime-info'
depends_on 'attica'
2010-10-16 20:54:46 +00:00
depends_on 'docbook'
2010-07-29 07:34:18 +00:00
depends_on 'd-bus'
depends_on 'qt'
2011-02-09 22:24:46 +00:00
depends_on 'libdbusmenu-qt'
2010-01-30 11:48:43 +00:00
def patches
2011-02-09 22:24:46 +00:00
# To fix https://bugs.kde.org/show_bug.cgi?id=209903. Committed upstream.
"https://projects.kde.org/projects/kde/kdelibs/repository/revisions/f04c3a64885c652ab3dfb6f5dd2106409b027360/diff.diff"
"https://projects.kde.org/projects/kde/kdelibs/repository/revisions/19f4bf0c212a28e79ef9b8d0cb35068951e58a85/diff.diff"
end
2010-01-30 11:48:43 +00:00
def install
gettext_prefix = Formula.factory('gettext').prefix
2010-10-16 20:54:46 +00:00
docbook_prefix = Formula.factory('docbook').prefix
2011-02-09 22:24:46 +00:00
docbook_dtd = "#{docbook_prefix}/docbook/xml/4.5"
docbook_xsl = Dir.glob("#{docbook_prefix}/docbook/xsl/*").first
mkdir 'build'
cd 'build'
2011-02-09 22:24:46 +00:00
system "cmake .. #{std_cmake_parameters} -DCMAKE_PREFIX_PATH=#{gettext_prefix} -DDOCBOOKXML_CURRENTDTD_DIR=#{docbook_dtd} -DDOCBOOKXSL_DIR=#{docbook_xsl} -DBUILD_doc=FALSE -DBUNDLE_INSTALL_DIR=#{bin}"
2010-01-30 11:48:43 +00:00
system "make install"
end
end