dev-util/geany-plugins: add 2.1

Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42999
Closes: https://github.com/gentoo/gentoo/pull/42999
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Chris Mayo
2025-07-14 19:28:29 +01:00
committed by Sam James
parent 74a6d9c09b
commit 6daf05f0e8
3 changed files with 139 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST geany-plugins-2.0.tar.bz2 3181264 BLAKE2B 6175f91a3a7effa081393e9397336e0f5f59846fdadd0e31584f237c14863016cc4ab1b17745e1e2804ad88161dc7e43aef97a2332a5c18a7f1baf10d2ea42ba SHA512 48d575459e5c9f905b8809796ea89a05f6e082a1bb1d29c9f44dd5de607a64ad65a27d18348312702d25cfbb80ea0348b9e806f8c0fe649ea558b5b4ccd84818
DIST geany-plugins-2.1.tar.bz2 3851685 BLAKE2B cd05f1046209dc8085e5bbcc5251bee2c8941d0e160ed434cad15d7b2d767f5de8b58a3feb95ca5110f6d89c49d6860fc4b56f17c97cba21e5e41e5ced131efc SHA512 aed8998c9fd7467b08c05cdf7a066c701b8ef73917e78f674d547282513be418063f37651d2fa0d345c4fdc5b8db3371837f3498263fa73c41497beb364294c6

View File

@@ -0,0 +1,136 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-1 )
inherit autotools lua-single
DESCRIPTION="A collection of different plugins for Geany"
HOMEPAGE="https://plugins.geany.org"
SRC_URI="https://plugins.geany.org/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ctags debugger enchant geniuspaste git gpg gtkspell lsp lua markdown nls pretty-printer scope test webhelper workbench"
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
dev-libs/glib:2
>=dev-util/geany-2.1
x11-libs/gtk+:3
ctags? ( dev-util/ctags )
debugger? ( x11-libs/vte:2.91 )
enchant? ( app-text/enchant:= )
geniuspaste? ( net-libs/libsoup:3.0 )
git? ( dev-libs/libgit2:= )
gpg? ( app-crypt/gpgme:= )
gtkspell? ( app-text/gtkspell:3= )
lsp? (
>=dev-libs/json-glib-1.10
>=dev-libs/jsonrpc-glib-3.44
)
lua? ( ${LUA_DEPS} )
markdown? (
app-text/discount:=
net-libs/webkit-gtk:4.1
)
pretty-printer? ( dev-libs/libxml2:2= )
scope? ( x11-libs/vte:2.91 )
webhelper? ( net-libs/webkit-gtk:4.1 )
workbench? ( dev-libs/libgit2:= )
"
DEPEND="${COMMON_DEPEND}
test? ( dev-libs/check )
"
RDEPEND="${COMMON_DEPEND}
scope? ( dev-debug/gdb )
"
BDEPEND="virtual/pkgconfig
nls? ( sys-devel/gettext )
"
pkg_setup() {
use lua && lua-single_pkg_setup
}
src_prepare() {
default
if ! use test; then
sed -i "s:gp_have_unittests=yes:gp_have_unittests=no:" build/unittests.m4 || die
fi
eautoreconf
}
src_configure() {
local myeconfargs=(
--disable-cppcheck
--disable-extra-c-warnings
$(use_enable nls)
--enable-utilslib
# Plugins
--enable-addons
--enable-autoclose
--enable-automark
--enable-codenav
--enable-commander
--enable-defineformat
--enable-geanydoc
--enable-geanyextrasel
--enable-geanyinsertnum
--enable-geanymacro
--enable-geanyminiscript
--enable-geanynumberedbookmarks
--enable-geanyprj
--enable-geanyvc $(use_enable gtkspell)
--enable-keyrecord
--enable-latex
--enable-lineoperations
--enable-lipsum
--enable-overview
--enable-pairtaghighlighter
--enable-pohelper
--enable-projectorganizer
--enable-sendmail
--enable-shiftcolumn
--enable-tableconvert
--enable-treebrowser
--enable-vimode
--enable-xmlsnippets
$(use_enable debugger)
$(use_enable ctags geanyctags)
$(use_enable lua geanylua)
$(use_enable geniuspaste)
$(use_enable gpg geanypg)
$(use_enable git gitchangebar)
$(use_enable lsp) --enable-system-jsonrpc
$(use_enable markdown) --disable-peg-markdown # using app-text/discount instead
$(use_enable pretty-printer)
$(use_enable scope)
$(use_enable enchant spellcheck)
$(use_enable webhelper)
$(use_enable workbench)
# GeanyGenDoc requires ctpl which isn't yet in portage
--disable-geanygendoc
# UpdateChecker not required when packaged
--disable-updatechecker
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
# make installs all translations if LINGUAS is empty
if [[ -z "${LINGUAS-x}" ]]; then
rm -r "${ED}/usr/share/locale/" || die
fi
}

View File

@@ -13,8 +13,10 @@
<flag name="ctags">Enable ctags plugin</flag>
<flag name="debugger">Enable the debugger plugin which interfaces with <pkg>dev-debug/gdb</pkg></flag>
<flag name="enchant">Enable spell checking using enchant</flag>
<flag name="geniuspaste">Enable the GeniusPaste plugin</flag>
<flag name="gpg">Enable geanypg plugin which integrates GPG using <pkg>app-crypt/gpgme</pkg></flag>
<flag name="gtkspell">Use gtkspell for dictionary support in GeanyVC</flag>
<flag name="lsp">Enable the Language Server Protocol plugin</flag>
<flag name="markdown">Enable the markdown plugin</flag>
<flag name="pretty-printer">Enable pretty-printer plugin</flag>
<flag name="scope">Enable the scope plugin which is a graphical GDB front-end</flag>