2015-08-31 21:48:42 +00:00
|
|
|
# Template file for 'geany-plugins'
|
|
|
|
pkgname=geany-plugins
|
2016-07-13 14:48:43 +00:00
|
|
|
version=1.28.0
|
2016-03-15 05:43:04 +00:00
|
|
|
revision=1
|
2015-08-31 21:48:42 +00:00
|
|
|
build_style=gnu-configure
|
2015-11-15 16:31:42 +00:00
|
|
|
configure_args="--enable-all-plugins"
|
2015-08-31 21:48:42 +00:00
|
|
|
hostmakedepends="automake gettext-devel intltool libtool pkg-config vala
|
|
|
|
glib-devel python-devel"
|
|
|
|
makedepends="geany-devel lua51-devel ctpl-devel libwnck2-devel GConf-devel
|
2015-11-15 16:31:42 +00:00
|
|
|
webkitgtk2-devel zlib-devel gpgme-devel enchant-devel pygtk-devel libgit2-devel"
|
2015-08-31 21:48:42 +00:00
|
|
|
_short_desc="Geany IDE plugins"
|
|
|
|
short_desc="${_short_desc} meta-package"
|
|
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://plugins.geany.org"
|
2015-11-15 16:31:42 +00:00
|
|
|
distfiles="https://github.com/geany/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
2016-07-13 14:48:43 +00:00
|
|
|
checksum=a7ec7efc7d2e40cecd1cdb3810f5c16b04ccf1b4eba4e61521d33aeade89f849
|
2015-08-31 21:48:42 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2015-09-13 18:34:56 +00:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# Use cross prefix for python
|
|
|
|
sed -e "s;-L\$ac_python_libdir;-L${XBPS_CROSS_BASE}/usr/lib;g" \
|
|
|
|
-e "s;PYTHON_CPPFLAGS=\$python_path;PYTHON_CPPFLAGS=-I${XBPS_CROSS_BASE}/usr/include/python2.7;g" -i configure
|
|
|
|
fi
|
2015-08-31 21:48:42 +00:00
|
|
|
}
|
|
|
|
|
2015-09-13 18:34:56 +00:00
|
|
|
pre_build() {
|
|
|
|
# XXX: Compile 'leg' for host arch.
|
2015-11-20 02:53:03 +00:00
|
|
|
make CC=cc CFLAGS="-fPIE" -C "markdown/peg-markdown/peg-0.1.9"
|
2015-09-13 18:34:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# These plugins require extra dependencies
|
2015-08-31 21:48:42 +00:00
|
|
|
geany-plugins-extra_package() {
|
|
|
|
short_desc="${_short_desc} - extra plugins"
|
|
|
|
pkg_install() {
|
|
|
|
for p in devhelp geanygendoc geanylua geanypg geanypy geniuspaste \
|
2015-11-15 16:31:42 +00:00
|
|
|
git-changebar markdown pretty-printer spellcheck updatechecker webhelper; do
|
2015-08-31 21:48:42 +00:00
|
|
|
if [ -x ${DESTDIR}/usr/lib/geany/${p}.so ]; then
|
|
|
|
vmove usr/lib/geany/${p}.so
|
|
|
|
fi
|
|
|
|
if [ -x ${DESTDIR}/usr/share/geany-plugins/${p} ]; then
|
|
|
|
vmove usr/share/geany-plugins/${p}
|
|
|
|
fi
|
|
|
|
if [ -x ${DESTDIR}/usr/share/doc/geany-plugins/${p} ]; then
|
|
|
|
vmove usr/share/doc/geany-plugins/${p}
|
|
|
|
fi
|
|
|
|
done
|
2015-09-13 18:34:56 +00:00
|
|
|
|
|
|
|
vmove usr/lib/geany-plugins/geanylua
|
|
|
|
vmove usr/lib/geany/geanypy
|
2015-08-31 21:48:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|