blob: dd3e32e866915d65370a8c30d662f34e503b7f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit 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 ctags debugger enchant git gpg gtkspell lua markdown multiterm nls pretty-printer python scope soup"
REQUIRED_USE="
gtk3? ( !debugger !multiterm !python )
!gtk3? ( !markdown )
python? ( ${PYTHON_REQUIRED_USE} )
"
DEPEND="
dev-libs/glib:2
>=dev-util/geany-1.35[gtk3=]
gtk3? ( x11-libs/gtk+:3 )
!gtk3? ( x11-libs/gtk+:2 )
ctags? ( dev-util/ctags )
debugger? ( x11-libs/vte:0 )
enchant? ( app-text/enchant:= )
git? ( dev-libs/libgit2:= )
gpg? ( app-crypt/gpgme:1= )
gtkspell? (
gtk3? ( app-text/gtkspell:3= )
!gtk3? ( app-text/gtkspell:2 )
)
lua? ( dev-lang/lua:0= )
markdown? (
app-text/discount
net-libs/webkit-gtk:4
)
multiterm? (
$(vala_depend)
>=x11-libs/vte-0.28:0
)
pretty-printer? ( dev-libs/libxml2:2 )
python? (
$(python_gen_cond_dep '
dev-python/pygtk[${PYTHON_MULTI_USEDEP}]
')
${PYTHON_DEPS}
)
scope? (
gtk3? ( x11-libs/vte:2.91 )
!gtk3? ( x11-libs/vte:0 )
)
soup? ( net-libs/libsoup:2.4 )
"
RDEPEND="${DEPEND}
scope? ( sys-devel/gdb )
"
BDEPEND="virtual/pkgconfig
nls? ( sys-devel/gettext )
"
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
default
use multiterm && vala_src_prepare
}
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-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-workbench
--enable-xmlsnippets
$(use_enable debugger)
$(use_enable ctags geanyctags)
$(use_enable !gtk3 geanydoc)
$(use_enable lua geanylua)
$(use_enable gpg geanypg)
$(use_enable python geanypy)
$(use_enable soup geniuspaste)
$(use_enable git gitchangebar)
$(use_enable markdown) --disable-peg-markdown # using app-text/discount instead
$(use_enable multiterm)
$(use_enable pretty-printer)
$(use_enable scope)
$(use_enable enchant spellcheck)
# Having updatechecker… when you’re using a package manager?
$(use_enable soup updatechecker)
# GeanyGenDoc requires ctpl which isn’t yet in portage
--disable-geanygendoc
# Require obsolete and vulnerable webkit-gtk versions
--disable-devhelp
--disable-webhelper
)
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
}
|