--- /dev/null
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 vala
+
+DESCRIPTION="A collection of different plugins for Geany"
+HOMEPAGE="https://plugins.geany.org"
+SRC_URI="https://plugins.geany.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="gtk3 +autoclose +automark +commander ctags debugger +defineformat devhelp enchant git gpg gtkspell lua markdown multiterm nls +overview python scope soup webkit"
+REQUIRED_USE="gtk3? ( !debugger !devhelp !multiterm !python !scope )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND=">=dev-util/geany-1.26[!gtk3?]
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ autoclose? ( gtk3? ( x11-libs/gtk+:3 ) !gtk3? ( x11-libs/gtk+:2 ) )
+ commander? ( gtk3? ( x11-libs/gtk+:3 ) !gtk3? ( x11-libs/gtk+:2 ) )
+ ctags? ( dev-util/ctags )
+ debugger? ( x11-libs/vte:0 )
+ defineformat? ( gtk3? ( x11-libs/gtk+:3 ) !gtk3? ( x11-libs/gtk+:2 ) )
+ devhelp? (
+ gnome-base/gconf:2
+ net-libs/webkit-gtk:2
+ x11-libs/gtk+:2
+ x11-libs/libwnck:1
+ )
+ enchant? ( app-text/enchant )
+ git? ( dev-libs/libgit2 )
+ gpg? ( app-crypt/gpgme )
+ gtkspell? (
+ gtk3? (
+ app-text/gtkspell:3
+ )
+ !gtk3? (
+ app-text/gtkspell:2
+ )
+ )
+ lua? ( =dev-lang/lua-5.1*:= )
+ markdown? (
+ app-text/discount
+ gtk3? (
+ net-libs/webkit-gtk:3
+ x11-libs/gtk+:3
+ )
+ !gtk3? (
+ net-libs/webkit-gtk:2
+ x11-libs/gtk+:2
+ )
+ )
+ multiterm? (
+ $(vala_depend)
+ x11-libs/gtk+:2
+ >=x11-libs/vte-0.28:0
+ )
+ python? (
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )
+ scope? ( x11-libs/vte:0 )
+ soup? ( net-libs/libsoup )
+ webkit? (
+ gtk3? (
+ net-libs/webkit-gtk:3
+ x11-libs/gtk+:3
+ )
+ !gtk3? (
+ net-libs/webkit-gtk:2
+ x11-libs/gtk+:2
+ )
+ x11-libs/gdk-pixbuf:2
+ )"
+RDEPEND="${COMMON_DEPEND}
+ scope? ( sys-devel/gdb )"
+DEPEND="${COMMON_DEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # bundled lib buster
+ rm markdown/peg-markdown/markdown_lib.c || die
+ # devhelp plugin bundles devhelp
+
+ default
+
+ use multiterm && vala_src_prepare
+
+ # make fails if LINGUAS contains a language which is not translated
+ local po_linguas=""
+ for lang in $LINGUAS; do
+ if [[ -e "$S/po/$lang.po" ]]; then
+ po_linguas="${po_linguas} $lang"
+ fi
+ done
+ # only filter LINGUAS if defined
+ if [[ -n "${LINGUAS+x}" ]]; then
+ LINGUAS=$po_linguas
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-cppcheck
+ --disable-extra-c-warnings
+ $(use_enable !gtk3 geanydoc)
+ # GeanyGenDoc requires ctpl which isn’t yet in portage
+ --disable-geanygendoc
+ # peg-markdown is bundled, use app-text/discount instead
+ --disable-peg-markdown
+ --enable-addons
+ --enable-codenav
+ --enable-geanyextrasel
+ --enable-geanyinsertnum
+ --enable-geanylatex
+ --enable-geanylipsum
+ --enable-geanymacro
+ --enable-geanynumberedbookmarks
+ --enable-geanyprj
+ --enable-geanyvc
+ --enable-lineoperations
+ --enable-pairtaghighlighter
+ --enable-pohelper
+ --enable-pretty-printer
+ --enable-projectorganizer
+ --enable-sendmail
+ --enable-shiftcolumn
+ --enable-tableconvert
+ --enable-treebrowser
+ --enable-xmlsnippets
+ $(use_enable autoclose)
+ $(use_enable automark)
+ $(use_enable commander)
+ $(use_enable ctags geanyctags)
+ $(use_enable debugger)
+ $(use_enable defineformat)
+ $(use_enable devhelp)
+ $(use_enable enchant spellcheck)
+ $(use_enable git gitchangebar)
+ $(use_enable gpg geanypg)
+ $(use_enable gtkspell)
+ $(use_enable markdown)
+ $(use_enable multiterm)
+ $(use_enable lua geanylua)
+ $(use_enable nls)
+ $(use_enable overview)
+ $(use_enable python geanypy)
+ $(use_enable scope)
+ # Having updatechecker… when you’re using a package manager?
+ $(use_enable soup updatechecker)
+ $(use_enable soup geniuspaste)
+ $(use_enable webkit webhelper)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --modules
+
+ # make installs all translations if LINGUAS is empty
+ if [[ -n "${LINGUAS+x}" && -z "$LINGUAS" ]]; then
+ rm -r "${D}/usr/share/locale/" || die
+ fi
+}
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<use>
+ <flag name="gtk3">Use GTK+3 instead of GTK+2</flag>
<flag name="autoclose">Enable the autoclose plugin.</flag>
<flag name="automark">Enable the automark plugin</flag>
<flag name="commander">Enable the commander plugin which provides a command panel for rapid access to any action.</flag>
<flag name="devhelp">Enable the devhelp plugin which integrates <pkg>dev-util/devhelp</pkg></flag>
<flag name="enchant">Enable spell checking using enchant</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</flag>
+ <flag name="gtkspell">Use gtkspell for dictionary support in GeanyVC</flag>
<flag name="markdown">Enable the markdown plugin which uses <pkg>app-text/discount</pkg> and <pkg>net-libs/webkit-gtk</pkg> to display a realtime preview markdown.</flag>
<flag name="multiterm">Enable the multiterm plugin</flag>
<flag name="overview">Enable overview plugin</flag>