aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2018-12-16 19:24:09 +0000
committerng0 <ng0@n0.is>2018-12-16 19:24:09 +0000
commitba2ba34b7f256350c6b7230973034a9065a81a0f (patch)
tree314f54644b497b4d2794227aa7f12eef081b93c8
parenta16d1c0125521d5ccb886f8e06ba8c20b6c1716b (diff)
downloadyoubroketheinternet-overlay-ba2ba34b7f256350c6b7230973034a9065a81a0f.tar.gz
youbroketheinternet-overlay-ba2ba34b7f256350c6b7230973034a9065a81a0f.zip
net-im/gajim because it is getting embarassing old in portage
-rw-r--r--net-im/gajim/Manifest3
-rw-r--r--net-im/gajim/files/0.16.6-0001-Add-config-option-to-activate-XEP-0146.patch45
-rw-r--r--net-im/gajim/files/disable-gspell-1.1.0.patch21
-rw-r--r--net-im/gajim/gajim-0.16.6-r1.ebuild126
-rw-r--r--net-im/gajim/gajim-0.16.9.ebuild125
-rw-r--r--net-im/gajim/gajim-1.0.3-r3.ebuild87
-rw-r--r--net-im/gajim/metadata.xml15
7 files changed, 422 insertions, 0 deletions
diff --git a/net-im/gajim/Manifest b/net-im/gajim/Manifest
new file mode 100644
index 0000000..8055cbb
--- /dev/null
+++ b/net-im/gajim/Manifest
@@ -0,0 +1,3 @@
1DIST gajim-0.16.6.tar.bz2 4564505 BLAKE2B 0446d826afc782ceba4fe67d6c7173d60264ec1b5a227f0da62285ea1d083143b4895e4472c2df499de419f9a34c59d9afa1ac2348052defb100438782a3df46 SHA512 6c8c2a38429468a1e6f02aae730ff947c649960e8cc672457c1e1733ab2dad6534b1e5ac2e1c0c385e331a6ba817c6e67c1a27443632b9fd43e7ab76ad66c935
2DIST gajim-0.16.9.tar.bz2 4469275 BLAKE2B 451f09cde9d177932429b9ece900e09c58ac43b5f97cd64cf70e75d13f2261ab52ee35e02e8680c83a5d81d7574bca561532dd1327f1109b0cc872956b1a05f7 SHA512 d8ddae3826bbcd4458b016b3cf6b0472b41db4b9026b300b058d9cef403195e38423ff950fcbf6fed0cdbbb485a274905a9a5945028c4cbb24d1a38c72bf4cbb
3DIST gajim-1.0.3.tar.bz2 5964743 BLAKE2B af4bf2206a962eb68c4df09359fa3a0ccaca1e886d4fad67d9839f5fd4c1fd359c7ee7933d39d8c1ae7dcbde6b72548fef3564a467653064d4d37aa1db234c04 SHA512 a6d7f92a22a9dddc8a4b07eda0aae0b6fb4db57c73133ee19937f7e2a2a82c5351051d1f3627c94a44434276ed001b83d375f708f177962125af66cda8579ec8
diff --git a/net-im/gajim/files/0.16.6-0001-Add-config-option-to-activate-XEP-0146.patch b/net-im/gajim/files/0.16.6-0001-Add-config-option-to-activate-XEP-0146.patch
new file mode 100644
index 0000000..046c72c
--- /dev/null
+++ b/net-im/gajim/files/0.16.6-0001-Add-config-option-to-activate-XEP-0146.patch
@@ -0,0 +1,45 @@
1From 285392b27db7cb01b0566b4bda3920e6559b75e4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <forenjunkie@chello.at>
3Date: Fri, 26 May 2017 23:10:05 +0200
4Subject: [PATCH] Add config option to activate XEP-0146 commands
5
6Some of the Commands have security implications, thats why we disable them per default
7Fixes #8378
8---
9 src/common/commands.py | 7 ++++---
10 src/common/config.py | 1 +
11 2 files changed, 5 insertions(+), 3 deletions(-)
12
13diff --git a/src/common/commands.py b/src/common/commands.py
14index 40d700710..46d6947f8 100644
15--- a/src/common/commands.py
16+++ b/src/common/commands.py
17@@ -345,9 +345,10 @@ class ConnectionCommands:
18 def __init__(self):
19 # a list of all commands exposed: node -> command class
20 self.__commands = {}
21- for cmdobj in (ChangeStatusCommand, ForwardMessagesCommand,
22- LeaveGroupchatsCommand, FwdMsgThenDisconnectCommand):
23- self.__commands[cmdobj.commandnode] = cmdobj
24+ if gajim.config.get('remote_commands'):
25+ for cmdobj in (ChangeStatusCommand, ForwardMessagesCommand,
26+ LeaveGroupchatsCommand, FwdMsgThenDisconnectCommand):
27+ self.__commands[cmdobj.commandnode] = cmdobj
28
29 # a list of sessions; keys are tuples (jid, sessionid, node)
30 self.__sessions = {}
31diff --git a/src/common/config.py b/src/common/config.py
32index 3884d9e1d..7c1313fc4 100644
33--- a/src/common/config.py
34+++ b/src/common/config.py
35@@ -313,6 +313,7 @@ class Config:
36 'ignore_incoming_attention': [opt_bool, False, _('If True, Gajim will ignore incoming attention requestd ("wizz").')],
37 'remember_opened_chat_controls': [ opt_bool, True, _('If enabled, Gajim will reopen chat windows that were opened last time Gajim was closed.')],
38 'positive_184_ack': [ opt_bool, False, _('If enabled, Gajim will show an icon to show that sent message has been received by your contact')],
39+ 'remote_commands': [opt_bool, False, _('If True, Gajim will execute XEP-0146 Commands.')],
40 }, {})
41
42 __options_per_key = {
43--
442.12.2
45
diff --git a/net-im/gajim/files/disable-gspell-1.1.0.patch b/net-im/gajim/files/disable-gspell-1.1.0.patch
new file mode 100644
index 0000000..45c16a1
--- /dev/null
+++ b/net-im/gajim/files/disable-gspell-1.1.0.patch
@@ -0,0 +1,21 @@
1--- a/gajim/common/app.py 2018-11-06 23:57:20.088079001 +0100
2+++ a/gajim/common/app.py 2018-11-06 23:58:36.638834033 +0100
3@@ -299,17 +299,7 @@
4 pass
5
6 # GSPELL
7- try:
8- gi.require_version('Gspell', '1')
9- from gi.repository import Gspell
10- langs = Gspell.language_get_available()
11- for lang in langs:
12- log('gajim').info('%s (%s) dict available',
13- lang.get_name(), lang.get_code())
14- if langs:
15- _dependencies['GSPELL'] = True
16- except (ImportError, ValueError):
17- pass
18+ # [REMOVED BY EBUILD]
19
20 # Print results
21 for dep, val in _dependencies.items():
diff --git a/net-im/gajim/gajim-0.16.6-r1.ebuild b/net-im/gajim/gajim-0.16.6-r1.ebuild
new file mode 100644
index 0000000..8d50c46
--- /dev/null
+++ b/net-im/gajim/gajim-0.16.6-r1.ebuild
@@ -0,0 +1,126 @@
1# Copyright 1999-2017 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=5
5
6PYTHON_COMPAT=( python2_7 )
7PYTHON_REQ_USE="sqlite,xml"
8
9AUTOTOOLS_AUTORECONF=true
10
11inherit autotools-utils python-r1 versionator
12
13MY_PV=${PV/_/-}
14MY_P="${PN}-${MY_PV}"
15
16DESCRIPTION="Jabber client written in PyGTK"
17HOMEPAGE="https://www.gajim.org/"
18SRC_URI="
19 https://www.gajim.org/downloads/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
20# test? ( https://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )"
21
22LICENSE="GPL-3"
23SLOT="0"
24KEYWORDS="amd64 arm x86 ~x86-fbsd"
25IUSE="crypt dbus gnome gnome-keyring kde idle jingle libnotify networkmanager nls spell +srv test X xhtml zeroconf"
26
27REQUIRED_USE="
28 ${PYTHON_REQUIRED_USE}
29 libnotify? ( dbus )
30 gnome? ( gnome-keyring )
31 zeroconf? ( dbus )"
32
33COMMON_DEPEND="
34 ${PYTHON_DEPS}
35 dev-python/pygtk:2[${PYTHON_USEDEP}]
36 x11-libs/gtk+:2"
37DEPEND="${COMMON_DEPEND}
38 >=dev-util/intltool-0.40.1
39 virtual/pkgconfig
40 >=sys-devel/gettext-0.17-r1"
41RDEPEND="${COMMON_DEPEND}
42 dev-python/pyasn1[${PYTHON_USEDEP}]
43 >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
44 !>=dev-python/pyopenssl-17.4.0[${PYTHON_USEDEP}]
45 >=dev-python/python-nbxmpp-0.5.3[${PYTHON_USEDEP}]
46 crypt? (
47 app-crypt/gnupg
48 dev-python/pycrypto[${PYTHON_USEDEP}]
49 )
50 dbus? (
51 dev-python/dbus-python[${PYTHON_USEDEP}]
52 dev-libs/dbus-glib
53 libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
54 zeroconf? ( net-dns/avahi[dbus,gtk,python,${PYTHON_USEDEP}] )
55 )
56 gnome? (
57 dev-python/libgnome-python[${PYTHON_USEDEP}]
58 dev-python/egg-python[${PYTHON_USEDEP}]
59 )
60 gnome-keyring? ( dev-python/gnome-keyring-python[${PYTHON_USEDEP}] )
61 idle? ( x11-libs/libXScrnSaver )
62 jingle? ( net-libs/farstream:0.1[python,${PYTHON_USEDEP}] )
63 kde? ( kde-apps/kwalletmanager )
64 networkmanager? (
65 dev-python/dbus-python[${PYTHON_USEDEP}]
66 net-misc/networkmanager
67 )
68 spell? ( app-text/gtkspell:2 )
69 srv? (
70 || (
71 dev-python/libasyncns-python[${PYTHON_USEDEP}]
72 net-dns/bind-tools
73 )
74 )
75 xhtml? ( dev-python/docutils[${PYTHON_USEDEP}] )"
76
77RESTRICT="test"
78
79PATCHES=(
80 "${FILESDIR}/${PV}-0001-Add-config-option-to-activate-XEP-0146.patch" )
81
82S="${WORKDIR}"/${MY_P}
83
84src_prepare() {
85 autotools-utils_src_prepare
86 python_copy_sources
87}
88
89src_configure() {
90 configuration() {
91 local myeconfargs=(
92 $(use_enable nls)
93 $(use_with X x)
94 --docdir="/usr/share/doc/${PF}"
95 --libdir="$(python_get_sitedir)"
96 --enable-site-packages
97 )
98 run_in_build_dir autotools-utils_src_configure
99 }
100 python_foreach_impl configuration
101}
102
103src_compile() {
104 compilation() {
105 run_in_build_dir autotools-utils_src_compile
106 }
107 python_foreach_impl compilation
108}
109
110src_test() {
111 testing() {
112 run_in_build_dir ${PYTHON} test/runtests.py --verbose 3 || die
113 }
114 python_foreach_impl testing
115}
116
117src_install() {
118 installation() {
119 run_in_build_dir autotools-utils_src_install
120 python_optimize
121 }
122 python_foreach_impl installation
123
124 rm "${ED}/usr/share/doc/${PF}/README.html" || die
125 dohtml README.html
126}
diff --git a/net-im/gajim/gajim-0.16.9.ebuild b/net-im/gajim/gajim-0.16.9.ebuild
new file mode 100644
index 0000000..50310bd
--- /dev/null
+++ b/net-im/gajim/gajim-0.16.9.ebuild
@@ -0,0 +1,125 @@
1# Copyright 1999-2017 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=5
5
6PYTHON_COMPAT=( python2_7 )
7PYTHON_REQ_USE="sqlite,xml"
8
9AUTOTOOLS_AUTORECONF=true
10
11inherit autotools-utils gnome2-utils python-r1 versionator xdg-utils
12
13MY_PV=${PV/_/-}
14MY_P="${PN}-${MY_PV}"
15
16DESCRIPTION="Jabber client written in PyGTK"
17HOMEPAGE="https://www.gajim.org/"
18SRC_URI="
19 https://www.gajim.org/downloads/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
20# test? ( https://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )"
21
22LICENSE="GPL-3"
23SLOT="0"
24KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd"
25IUSE="crypt dbus gnome gnome-keyring idle jingle libnotify networkmanager nls spell +srv test X xhtml zeroconf"
26
27REQUIRED_USE="
28 ${PYTHON_REQUIRED_USE}
29 libnotify? ( dbus )
30 gnome? ( gnome-keyring )
31 zeroconf? ( dbus )"
32
33COMMON_DEPEND="
34 ${PYTHON_DEPS}
35 dev-python/pygtk:2[${PYTHON_USEDEP}]
36 x11-libs/gtk+:2"
37DEPEND="${COMMON_DEPEND}
38 >=dev-util/intltool-0.40.1
39 virtual/pkgconfig
40 >=sys-devel/gettext-0.17-r1"
41RDEPEND="${COMMON_DEPEND}
42 dev-python/pyasn1[${PYTHON_USEDEP}]
43 >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
44 >=dev-python/python-nbxmpp-0.6.1[${PYTHON_USEDEP}]
45 crypt? ( >=dev-python/python-gnupg-0.4.0[${PYTHON_USEDEP}] )
46 dbus? (
47 dev-python/dbus-python[${PYTHON_USEDEP}]
48 dev-libs/dbus-glib
49 libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
50 zeroconf? ( net-dns/avahi[dbus,gtk,python,${PYTHON_USEDEP}] )
51 )
52 gnome? (
53 dev-python/libgnome-python[${PYTHON_USEDEP}]
54 dev-python/egg-python[${PYTHON_USEDEP}]
55 )
56 gnome-keyring? ( dev-python/gnome-keyring-python[${PYTHON_USEDEP}] )
57 idle? ( x11-libs/libXScrnSaver )
58 jingle? ( net-libs/farstream:0.1[python,${PYTHON_USEDEP}] )
59 networkmanager? (
60 dev-python/dbus-python[${PYTHON_USEDEP}]
61 net-misc/networkmanager
62 )
63 spell? ( app-text/gtkspell:2 )
64 srv? (
65 || (
66 dev-python/libasyncns-python[${PYTHON_USEDEP}]
67 net-dns/bind-tools
68 )
69 )
70 xhtml? ( dev-python/docutils[${PYTHON_USEDEP}] )"
71
72RESTRICT="test"
73
74S="${WORKDIR}"/${MY_P}
75
76src_prepare() {
77 autotools-utils_src_prepare
78 python_copy_sources
79}
80
81src_configure() {
82 configuration() {
83 local myeconfargs=(
84 $(use_enable nls)
85 $(use_with X x)
86 --docdir="/usr/share/doc/${PF}"
87 --libdir="$(python_get_sitedir)"
88 --enable-site-packages
89 )
90 run_in_build_dir autotools-utils_src_configure
91 }
92 python_foreach_impl configuration
93}
94
95src_compile() {
96 compilation() {
97 run_in_build_dir autotools-utils_src_compile
98 }
99 python_foreach_impl compilation
100}
101
102src_test() {
103 testing() {
104 run_in_build_dir ${PYTHON} test/runtests.py --verbose 3 || die
105 }
106 python_foreach_impl testing
107}
108
109src_install() {
110 installation() {
111 run_in_build_dir autotools-utils_src_install
112 python_optimize
113 }
114 python_foreach_impl installation
115}
116
117pkg_postinst() {
118 gnome2_icon_cache_update
119 xdg_desktop_database_update
120}
121
122pkg_postrm() {
123 gnome2_icon_cache_update
124 xdg_desktop_database_update
125}
diff --git a/net-im/gajim/gajim-1.0.3-r3.ebuild b/net-im/gajim/gajim-1.0.3-r3.ebuild
new file mode 100644
index 0000000..3f52531
--- /dev/null
+++ b/net-im/gajim/gajim-1.0.3-r3.ebuild
@@ -0,0 +1,87 @@
1# Copyright 1999-2018 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=6
5
6PYTHON_COMPAT=( python3_{5,6} )
7PYTHON_REQ_USE="sqlite,xml"
8DISTUTILS_SINGLE_IMPL=1
9
10inherit gnome2-utils distutils-r1 versionator xdg-utils
11
12DESCRIPTION="Jabber client written in PyGTK"
13HOMEPAGE="https://www.gajim.org/"
14SRC_URI="https://www.gajim.org/downloads/$(get_version_component_range 1-2)/${P}.tar.bz2"
15#https://ftp.gajim.org/plugins_1/plugin_installer.zip -> ${P}-plugin_installer.zip"
16
17LICENSE="GPL-3"
18SLOT="0"
19KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
20IUSE="gpg +crypt remote idle jingle keyring networkmanager upnp geoclue spell +webp rst omemo"
21
22COMMON_DEPEND="
23 dev-libs/gobject-introspection[cairo,${PYTHON_USEDEP}]
24 x11-libs/gtk+:3[introspection]"
25DEPEND="${COMMON_DEPEND}
26 app-arch/unzip
27 >=dev-util/intltool-0.40.1
28 virtual/pkgconfig
29 >=sys-devel/gettext-0.17-r1"
30RDEPEND="${COMMON_DEPEND}
31 dev-python/pyasn1[${PYTHON_USEDEP}]
32 dev-python/pycairo[${PYTHON_USEDEP}]
33 dev-python/pygobject:3[${PYTHON_USEDEP}]
34 >=dev-python/python-nbxmpp-0.6.6[${PYTHON_USEDEP}]
35 dev-python/pyopenssl[${PYTHON_USEDEP}]
36 dev-python/idna[${PYTHON_USEDEP}]
37 dev-python/precis-i18n[${PYTHON_USEDEP}]
38 dev-python/pycurl[${PYTHON_USEDEP}]
39 crypt? ( dev-python/pycryptodome[${PYTHON_USEDEP}] )
40 gpg? ( >=dev-python/python-gnupg-0.4.0[${PYTHON_USEDEP}] )
41 idle? ( x11-libs/libXScrnSaver )
42 remote? (
43 >=dev-python/dbus-python-1.2.0[${PYTHON_USEDEP}]
44 dev-libs/dbus-glib
45 )
46 rst? ( dev-python/docutils[${PYTHON_USEDEP}] )
47 keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
48 jingle? (
49 net-libs/farstream:0.2[introspection]
50 media-libs/gstreamer:1.0[introspection]
51 media-libs/gst-plugins-base:1.0[introspection]
52 media-libs/gst-plugins-ugly:1.0
53 )
54 networkmanager? ( net-misc/networkmanager[introspection] )
55 upnp? ( net-libs/gupnp-igd[introspection] )
56 geoclue? ( app-misc/geoclue[introspection] )
57 spell? (
58 app-text/gspell[introspection]
59 app-text/hunspell
60 )
61 omemo? (
62 dev-python/python-axolotl[${PYTHON_USEDEP}]
63 dev-python/qrcode[${PYTHON_USEDEP}]
64 )
65 webp? ( dev-python/pillow[${PYTHON_USEDEP}] )
66"
67
68RESTRICT="test"
69
70src_prepare() {
71 ewarn "I will not update the Gajim ebuilds in the future since they are"
72 ewarn "available in the pzskc383 repo. Please use that instead."
73
74 default
75
76 use spell || eapply "${FILESDIR}/disable-gspell.patch"
77}
78
79pkg_postinst() {
80 gnome2_icon_cache_update
81 xdg_desktop_database_update
82}
83
84pkg_postrm() {
85 gnome2_icon_cache_update
86 xdg_desktop_database_update
87}
diff --git a/net-im/gajim/metadata.xml b/net-im/gajim/metadata.xml
new file mode 100644
index 0000000..4ed46fb
--- /dev/null
+++ b/net-im/gajim/metadata.xml
@@ -0,0 +1,15 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3<pkgmetadata>
4 <maintainer type="person">
5 <email>aidecoe@gentoo.org</email>
6 </maintainer>
7 <longdescription>
8 A fully featured and easy to use GTK+ Jabber client written in PyGTK.
9 </longdescription>
10 <use>
11 <flag name="idle">Enable idle module</flag>
12 <flag name="srv">SRV capabilities</flag>
13 <flag name="xhtml">Enable XHTML support</flag>
14 </use>
15</pkgmetadata>