From 76039c4331fb36f24e2afd7ecbf74470353f5ca6 Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Wed, 30 Mar 2016 18:15:05 +0100 Subject: [PATCH] update kdevelop to kf5 version so kdev-python support py 3.5 --- kdev-php/PKGBUILD | 33 ++++++++++++++++++++++++ kdev-python/PKGBUILD | 39 ++++++++++++++-------------- kdevelop-pg-qt/PKGBUILD | 34 +++++++++++++------------ kdevelop-php/PKGBUILD | 48 ----------------------------------- kdevelop/PKGBUILD | 56 ++++++++++++++++++++++------------------- kdevplatform/PKGBUILD | 41 ++++++++++++++++-------------- 6 files changed, 122 insertions(+), 129 deletions(-) create mode 100644 kdev-php/PKGBUILD delete mode 100644 kdevelop-php/PKGBUILD diff --git a/kdev-php/PKGBUILD b/kdev-php/PKGBUILD new file mode 100644 index 000000000..7415eb733 --- /dev/null +++ b/kdev-php/PKGBUILD @@ -0,0 +1,33 @@ + +source ../kdeapps.conf + +pkgname=kdev-php +pkgver=4.90.91 +pkgrel=1 +pkgdesc="PHP language and documentation plugin for KDevelop" +arch=(i686 x86_64) +url="http://www.kdevelop.org/" +license=(GPL) +option=('debug') +depends=(kdevelop) +replaces=(kdevelop-php kdevelop-php-docs) +conflicts=(kdevelop-php kdevelop-php-docs) +provides=(kdevelop-php kdevelop-php-docs) +makedepends=(extra-cmake-modules kdoctools kdevelop-pg-qt) +source=(http://download.kde.org/unstable/kdevelop/$pkgver/src/${pkgname}-$pkgver.tar.xz) +sha1sums=('1b84ee03bfe94d14edf90304a78b7ff405935cd0') + +prepare() { + mkdir -p build +} + +build() { + cd build + cmake_kf5 ../${pkgname}-${pkgver} + make +} + +package() { + cd build + make DESTDIR="$pkgdir" install +} diff --git a/kdev-python/PKGBUILD b/kdev-python/PKGBUILD index cfdf71fe1..3694c0231 100644 --- a/kdev-python/PKGBUILD +++ b/kdev-python/PKGBUILD @@ -1,33 +1,32 @@ # maintainer: Neophytos Kolokotronis # contributor: Jakub Kozisek +source ../kdeapps.conf + pkgname=kdev-python -pkgver=1.7.2 -_pkgver=4.7.2 -_branch=stable +pkgver=4.90.91 +_branch=unstable pkgrel=1 -pkgdesc="Python language plugin for KDevelop" +pkgdesc="Python language and documentation plugin for KDevelop" arch=('x86_64') url="http://www.kdevelop.org/" -license=('GPL') -depends=('kdevelop') -makedepends=('cmake' 'automoc4' 'kdevelop-pg-qt') -source=("http://download.kde.org/${_branch}/kdevelop/${_pkgver}/src/${pkgname}-${pkgver}.tar.xz") -md5sums=('e0430e3e3872db3cee523f041235facb') +license=(GPL) +depends=(kdevelop) +makedepends=(extra-cmake-modules) +source=("http://download.kde.org/${_branch}/kdevelop/${pkgver}/src/${pkgname}-${pkgver}.tar.xz") +sha1sums=('5efb8ab1003a10534db1783a9cacc70d89a98b0e') + +prepare() { + mkdir -p build +} build() { - cd "${srcdir}/${pkgname}-${pkgver}" - mkdir build && cd build - cmake \ - -DCMAKE_BUILD_TYPE=RELWITHDEBINFO \ - -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \ - -DCMAKE_INSTALL_PREFIX=/usr \ - .. - make parser - make + cd build + cmake_kf5 ../${pkgname}-$pkgver + make } package() { - cd "${srcdir}/${pkgname}-${pkgver}/build" - make DESTDIR="${pkgdir}" install + cd build + make DESTDIR="$pkgdir" install } diff --git a/kdevelop-pg-qt/PKGBUILD b/kdevelop-pg-qt/PKGBUILD index fa5b1ae63..fe0c0f2dd 100644 --- a/kdevelop-pg-qt/PKGBUILD +++ b/kdevelop-pg-qt/PKGBUILD @@ -4,30 +4,32 @@ # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa +source ../kdeapps.conf + pkgname=kdevelop-pg-qt -pkgver=1.0.0 +pkgver=1.90.92 pkgrel=1 pkgdesc="KDevelop Parser Generator, a LL(1) parser generator used by KDevelop language plugins" arch=('i686' 'x86_64') url="http://www.kdevelop.org/" -license=('GPL') -depends=('kdelibs') -makedepends=('cmake' 'automoc4') -categories=('programming') -source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2") -sha1sums=('468bc91c5be16061dc265e9471f75462b32b73d5') +license=(GPL) +option=('debug') +depends=(qt5-base) +makedepends=(extra-cmake-modules) +source=("http://download.kde.org/unstable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz") +sha1sums=('cbe2ed7a0fa2a81ad3e3bd6da70e78c8ab2a99bf') + +prepare() { + mkdir -p build +} build() { - cd ${srcdir} - mkdir build - cd build - cmake ../${pkgname}-${pkgver} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release + cd build + cmake_kf5 ../$pkgname-$pkgver make } package() { - cd ${srcdir}/build - make DESTDIR=${pkgdir} install -} \ No newline at end of file + cd build + make DESTDIR="$pkgdir" install +} diff --git a/kdevelop-php/PKGBUILD b/kdevelop-php/PKGBUILD deleted file mode 100644 index 3f86c5060..000000000 --- a/kdevelop-php/PKGBUILD +++ /dev/null @@ -1,48 +0,0 @@ -pkgbase=kdevelop-php -pkgname=('kdevelop-php' 'kdevelop-php-docs') -pkgver=1.7.3 -_pkgver=4.7.3 -pkgrel=1 -pkgdesc="PHP plugin for Kdevelop" -arch=('x86_64') -url="http://www.kdevelop.org/" -license=('GPL') -depends=("kdevelop=${_pkgver}" "kdevelop-pg-qt") -makedepends=('cmake' 'automoc4') -categories=('programming') -options=('!makeflags') -source=(http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgbase}-{,docs-}${pkgver}.tar.bz2) -sha1sums=('e518207915a290e312f21ed13bead83d98f54c27' - '3514116a25775d39650a5dbf4fd495abda042f40') - -build() { - cd "${srcdir}" - mkdir build - cd build - cmake ../${pkgname}-${pkgver} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release - make - - cd "${srcdir}" - mkdir build-docs - cd build-docs - # kdevelop-php-docs - cmake ../${pkgname}-docs-${pkgver} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release - make -} - -package_kdevelop-php() { - optdepends=('kdevelop-php-docs: documentation') - cd "${srcdir}/build" - make DESTDIR="${pkgdir}" install -} - -package_kdevelop-php-docs() { - pkgdesc="Documentation for kdevelop-php" - depends=("kdevelop-php=${pkgver}") - cd "${srcdir}"/build-docs - make DESTDIR="${pkgdir}" install -} diff --git a/kdevelop/PKGBUILD b/kdevelop/PKGBUILD index ec11b1006..8944743d5 100644 --- a/kdevelop/PKGBUILD +++ b/kdevelop/PKGBUILD @@ -1,35 +1,39 @@ # Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kdevelop +source ../kdeapps.conf pkgname=kdevelop -pkgver=4.7.3 +pkgver=4.90.91 pkgrel=1 -pkgdesc="A C/C++ development environment for KDE" -arch=('x86_64') -url="http://www.kdevelop.org/" -license=('GPL') -depends=('kde-baseapps-katepart' 'kde-runtime' 'kdevplatform') -makedepends=('cmake' 'automoc4' 'docbook-xsl') -optdepends=('konsolepart4: embedded terminal' - #'oktetapart4: hex editor integration' > enable in kf5 version - 'git: Git support' - 'subversion: SVN support' - 'cvs: Concurrent Versions System support' - 'gdb: GNU Debugger support' - 'qt5-doc: Qt documentation integration' - 'cmake: cmake integration') -categories=('programming') -install=${pkgname}.install -source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2") -sha1sums=('5ebd56ee348d7688eff55ffc6a83018ccf42a4fb') +pkgdesc='A C/C++ development environment for KDE' +arch=(x86_64) +url='http://www.kdevelop.org/' +license=(GPL) +option=('debug') +depends=(kdevplatform clang libksysguard) +makedepends=(extra-cmake-modules kdoctools kdevelop-pg-qt clang llvm qt5-tools plasma-framework krunner okteta) +optdepends=('konsole: embedded terminal' + 'git: Git support' + 'subversion: SVN support' + 'cvs: CVS support' + 'gdb: GNU Debugger support' + 'qt5-doc: Qt documentation integration' + 'cmake: cmake integration' + 'qt5-tools: qthelp plugin' + 'okteta: hex editor integration' + 'plasma-framework: for the plasma addons') +conflicts=(kdevelop-qmljs) +replaces=(kdevelop-qmljs) +install="$pkgname.install" +source=("http://download.kde.org/unstable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz") +sha1sums=('b56ba171d6ec42259664c088d80588a765d9c132') + +prepare() { + mkdir -p build +} build() { - cd ${srcdir} - mkdir build - cd build - cmake ../${pkgname}-${pkgver} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_SKIP_RPATH=ON + cd build + cmake_kf5 ../${pkgname}-${pkgver} make } diff --git a/kdevplatform/PKGBUILD b/kdevplatform/PKGBUILD index 43de21d51..f93b21520 100644 --- a/kdevplatform/PKGBUILD +++ b/kdevplatform/PKGBUILD @@ -1,29 +1,32 @@ + +source ../kdeapps.conf + pkgname=kdevplatform -pkgver=1.7.3 -_pkgver=4.7.3 +pkgver=4.90.91 pkgrel=1 -pkgdesc="A C/C++ development platform for KDE" -arch=('x86_64') -url="http://www.kdevelop.org/" -license=('GPL') -depends=('kdelibs' 'boost' 'subversion' 'qjson') -#optdepends=("kompare: difference checking") > no kf5 version available yet -makedepends=('cmake' 'automoc4') -install=${pkgname}.install -source=("http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgname}-${pkgver}.tar.bz2") -sha1sums=('7201629fb4fa9bec83def4bf691f4eda41bfc555') +pkgdesc='A C/C++ development platform for KDE' +arch=(x86_64) +url='http://www.kdevelop.org/' +license=(GPL) +option=('debug') +depends=(grantlee-qt5 hicolor-icon-theme kcmutils threadweaver kitemmodels ktexteditor knotifyconfig knewstuff libkomparediff2 qt5-webkit) +makedepends=(extra-cmake-modules boost subversion) +optdepends=('subversion: Subversion plugin') +install="$pkgname.install" +source=("http://download.kde.org/unstable/kdevelop/$pkgver/src/$pkgname-$pkgver.tar.xz") +sha1sums=('aaeaf7833ed18941d44f43e5b0d87b60ae067751') + +prepare() { + mkdir -p build +} build() { - cd ${srcdir} - mkdir build cd build - cmake ../${pkgname}-${pkgver} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release + cmake_kf5 ../${pkgname}-${pkgver} make } package() { - cd ${srcdir}/build - make DESTDIR=${pkgdir} install + cd build + make DESTDIR="$pkgdir" install }