Fix antlr2 support in kdesdk

This commit is contained in:
Manuel Tortosa 2010-12-24 02:21:44 +01:00
parent 4c8190aec0
commit e9c84d6aaf
2 changed files with 17 additions and 6 deletions

View File

@ -24,7 +24,7 @@ pkgname=('kdesdk-common'
'kdesdk-cervisia'
'kdesdk-kapptemplate'
'kdesdk-lokalize'
# 'kdesdk-kbugbuster'
# 'kdesdk-kbugbuster'
'kdesdk-okteta'
'kdesdk-kdeaccounts-plugin'
'kdesdk-kcachegrind'
@ -51,17 +51,17 @@ options=('docs' '!splithdr' 'splitdbg' 'log')
makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' "kdebase-runtime>=${_kdever}" 'antlr2'
"kdepimlibs>=${_kdever}" 'subversion' "kdebindings-python>=${_kdever}" "kdepim-runtime>=${_kdever}")
source=($_mirror/${_origname}-$_kdever.tar.bz2)
md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`)
source=("$_mirror/${_origname}-$_kdever.tar.bz2"
'fix-antlr2-executable.patch')
md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
'2545efa41b5fcb5fec53c453d0f23c25')
#
# build function
#
build()
{
cd ${srcdir}/${_origname}-${pkgver}
patch -Np1 -i ${srcdir}/fix-antlr2-executable.patch
# FIXME: plugin doesnt build: https://bugs.kde.org/show_bug.cgi?id=217769
sed -i -e "/snippets_tng/d" kate/plugins/CMakeLists.txt || return 1

View File

@ -0,0 +1,11 @@
--- kdesdk-4.5.3/cmake/modules/FindAntlr2.cmake~ 2010-10-31 00:37:32.603339350 +0200
+++ kdesdk-4.5.3/cmake/modules/FindAntlr2.cmake 2010-10-31 00:38:13.183339348 +0200
@@ -34,7 +34,7 @@
if(NOT ANTLR2_EXECUTABLE)
- find_program(ANTLR2_EXECUTABLE NAMES runantlr antlr)
+ find_program(ANTLR2_EXECUTABLE NAMES runantlr2 antlr2)
endif(NOT ANTLR2_EXECUTABLE)