Gentoo Archives: gentoo-commits

From: "Amadeusz Piotr Żołnowski" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/gajim/
Date: Tue, 14 Nov 2017 23:00:32
Message-Id: 1510700422.d6f71af392212350ea0f336a377668c0726dde26.aidecoe@gentoo
1 commit: d6f71af392212350ea0f336a377668c0726dde26
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 14 22:27:55 2017 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 14 23:00:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6f71af3
7
8 net-im/gajim: Bump revision for upcoming fixes
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 net-im/gajim/gajim-0.16.8-r1.ebuild | 119 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 119 insertions(+)
14
15 diff --git a/net-im/gajim/gajim-0.16.8-r1.ebuild b/net-im/gajim/gajim-0.16.8-r1.ebuild
16 new file mode 100644
17 index 00000000000..d23fd218737
18 --- /dev/null
19 +++ b/net-im/gajim/gajim-0.16.8-r1.ebuild
20 @@ -0,0 +1,119 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=5
25 +
26 +PYTHON_COMPAT=( python2_7 )
27 +PYTHON_REQ_USE="sqlite,xml"
28 +
29 +AUTOTOOLS_AUTORECONF=true
30 +
31 +inherit autotools-utils python-r1 versionator
32 +
33 +MY_PV=${PV/_/-}
34 +MY_P="${PN}-${MY_PV}"
35 +
36 +DESCRIPTION="Jabber client written in PyGTK"
37 +HOMEPAGE="https://www.gajim.org/"
38 +SRC_URI="
39 + https://www.gajim.org/downloads/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
40 +# test? ( https://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
45 +IUSE="crypt dbus gnome gnome-keyring kde idle jingle libnotify networkmanager nls spell +srv test X xhtml zeroconf"
46 +
47 +REQUIRED_USE="
48 + ${PYTHON_REQUIRED_USE}
49 + libnotify? ( dbus )
50 + gnome? ( gnome-keyring )
51 + zeroconf? ( dbus )"
52 +
53 +COMMON_DEPEND="
54 + ${PYTHON_DEPS}
55 + dev-python/pygtk:2[${PYTHON_USEDEP}]
56 + x11-libs/gtk+:2"
57 +DEPEND="${COMMON_DEPEND}
58 + >=dev-util/intltool-0.40.1
59 + virtual/pkgconfig
60 + >=sys-devel/gettext-0.17-r1"
61 +RDEPEND="${COMMON_DEPEND}
62 + dev-python/pyasn1[${PYTHON_USEDEP}]
63 + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
64 + >=dev-python/python-nbxmpp-0.5.6[${PYTHON_USEDEP}]
65 + crypt? (
66 + app-crypt/gnupg
67 + dev-python/pycrypto[${PYTHON_USEDEP}]
68 + )
69 + dbus? (
70 + dev-python/dbus-python[${PYTHON_USEDEP}]
71 + dev-libs/dbus-glib
72 + libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
73 + zeroconf? ( net-dns/avahi[dbus,gtk,python,${PYTHON_USEDEP}] )
74 + )
75 + gnome? (
76 + dev-python/libgnome-python[${PYTHON_USEDEP}]
77 + dev-python/egg-python[${PYTHON_USEDEP}]
78 + )
79 + gnome-keyring? ( dev-python/gnome-keyring-python[${PYTHON_USEDEP}] )
80 + idle? ( x11-libs/libXScrnSaver )
81 + jingle? ( net-libs/farstream:0.1[python,${PYTHON_USEDEP}] )
82 + kde? ( kde-apps/kwalletmanager )
83 + networkmanager? (
84 + dev-python/dbus-python[${PYTHON_USEDEP}]
85 + net-misc/networkmanager
86 + )
87 + spell? ( app-text/gtkspell:2 )
88 + srv? (
89 + || (
90 + dev-python/libasyncns-python[${PYTHON_USEDEP}]
91 + net-dns/bind-tools
92 + )
93 + )
94 + xhtml? ( dev-python/docutils[${PYTHON_USEDEP}] )"
95 +
96 +RESTRICT="test"
97 +
98 +S="${WORKDIR}"/${MY_P}
99 +
100 +src_prepare() {
101 + autotools-utils_src_prepare
102 + python_copy_sources
103 +}
104 +
105 +src_configure() {
106 + configuration() {
107 + local myeconfargs=(
108 + $(use_enable nls)
109 + $(use_with X x)
110 + --docdir="/usr/share/doc/${PF}"
111 + --libdir="$(python_get_sitedir)"
112 + --enable-site-packages
113 + )
114 + run_in_build_dir autotools-utils_src_configure
115 + }
116 + python_foreach_impl configuration
117 +}
118 +
119 +src_compile() {
120 + compilation() {
121 + run_in_build_dir autotools-utils_src_compile
122 + }
123 + python_foreach_impl compilation
124 +}
125 +
126 +src_test() {
127 + testing() {
128 + run_in_build_dir ${PYTHON} test/runtests.py --verbose 3 || die
129 + }
130 + python_foreach_impl testing
131 +}
132 +
133 +src_install() {
134 + installation() {
135 + run_in_build_dir autotools-utils_src_install
136 + python_optimize
137 + }
138 + python_foreach_impl installation
139 +}