geany-plugins: update to 1.34.0.

This commit is contained in:
maxice8 2018-12-19 18:50:31 -02:00 committed by maxice8
parent 8608a017a9
commit 099aa76690
2 changed files with 7 additions and 63 deletions

View File

@ -1,55 +0,0 @@
commit ca949e8add6c45603cc41c8a31495c205c16738e
Author: Enrico Tröger <enrico.troeger@uvena.de>
Date: Sat Mar 17 15:43:26 2018 +0100
Spellcheck: support new "enchant-2" package name
Fixes #728.
diff --git a/build/spellcheck.m4 b/build/spellcheck.m4
index 6f7e4d0..4ea5341 100644
--- build/spellcheck.m4
+++ build/spellcheck.m4
@@ -2,17 +2,34 @@ AC_DEFUN([GP_CHECK_SPELLCHECK],
[
GP_ARG_DISABLE([spellcheck], [auto])
+ ENCHANT_PACKAGE_NAME=enchant-2
ENCHANT_VERSION=1.3
ENCHANT_VERSION_1_5=1.5
ENCHANT_VERSION_2_0=2.0
- PKG_CHECK_MODULES([ENCHANT_1_5], [enchant >= ${ENCHANT_VERSION_1_5}],
- have_enchant_1_5=yes,
- have_enchant_1_5=no)
- PKG_CHECK_MODULES([ENCHANT_2_0], [enchant >= ${ENCHANT_VERSION_2_0}],
- have_enchant_2_0=yes,
- have_enchant_2_0=no)
+ ENCHANT_VERSION_2_2=2.2
+
+ # check for enchant package
+ PKG_CHECK_MODULES([ENCHANT_2_2], [${ENCHANT_PACKAGE_NAME} >= ${ENCHANT_VERSION_2_2}],
+ have_enchant_2_2=yes,
+ have_enchant_2_2=no)
+ if [[ x"$have_enchant_2_2" = "xyes" ]]; then
+ # we have got the new enchant-2 package
+ have_enchant_1_5=yes
+ have_enchant_2_0=yes
+ else
+ # check for old enchant package
+ PKG_CHECK_MODULES([ENCHANT_1_5], [enchant >= ${ENCHANT_VERSION_1_5}],
+ have_enchant_1_5=yes,
+ have_enchant_1_5=no)
+ PKG_CHECK_MODULES([ENCHANT_2_0], [enchant >= ${ENCHANT_VERSION_2_0}],
+ have_enchant_2_0=yes,
+ have_enchant_2_0=no)
+
+ ENCHANT_PACKAGE_NAME=enchant
+ fi
+
GP_CHECK_PLUGIN_DEPS([spellcheck], [ENCHANT],
- [enchant >= ${ENCHANT_VERSION}])
+ [${ENCHANT_PACKAGE_NAME} >= ${ENCHANT_VERSION}])
AM_CONDITIONAL([HAVE_ENCHANT_1_5], [test "$have_enchant_1_5" = yes])
AM_CONDITIONAL([HAVE_ENCHANT_2_0], [test "$have_enchant_2_0" = yes])

View File

@ -1,21 +1,21 @@
# Template file for 'geany-plugins'
pkgname=geany-plugins
version=1.33.0
revision=4
version=1.34.0
revision=1
build_style=gnu-configure
configure_args="PYTHON=/usr/bin/python2 --enable-all-plugins --disable-devhelp
--disable-markdown --disable-peg-markdown --disable-webhelper"
--disable-webhelper --disable-debugger --disable-geanypy --disable-multiterm"
hostmakedepends="automake gettext-devel intltool libtool pkg-config vala
glib-devel python-devel"
makedepends="geany-devel lua51-devel ctpl-devel libwnck2-devel GConf-devel
zlib-devel gpgme-devel enchant2-devel pygtk-devel libgit2-devel libsoup-devel
gtkspell-devel"
gtkspell-devel webkit2gtk-devel vte3-devel"
short_desc="Geany IDE plugins"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://plugins.geany.org"
distfiles="https://github.com/geany/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=e889073b573452c91b4d3d87ce45bd4bb57f63e4cde03dea25b6304c5a89bf55
distfiles="https://github.com/geany/${pkgname}/archive/${version}.tar.gz"
checksum=2c37cb4ece1a29230caa0527132e58d32d0c143f8bf64e2c3748058949a9395b
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
@ -36,7 +36,7 @@ pre_build() {
geany-plugins-extra_package() {
short_desc+=" - extra plugins"
pkg_install() {
for p in geanygendoc geanylua geanypg geanypy geniuspaste \
for p in geanygendoc geanylua geanypg geniuspaste \
git-changebar pretty-printer spellcheck updatechecker; do
if [ -x ${DESTDIR}/usr/lib/geany/${p}.so ]; then
vmove usr/lib/geany/${p}.so
@ -50,7 +50,6 @@ geany-plugins-extra_package() {
done
vmove usr/lib/geany-plugins/geanylua
vmove usr/lib/geany/geanypy
}
}