Gentoo Archives: gentoo-commits

From: Daniel Campbell <zlg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/toxic/
Date: Fri, 28 Oct 2016 08:00:12
Message-Id: 1477641526.93f1ff22265f65a700fd788b3a5b0c3b27c41fbf.zlg@gentoo
1 commit: 93f1ff22265f65a700fd788b3a5b0c3b27c41fbf
2 Author: Daniel Campbell <zlg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 28 07:58:46 2016 +0000
4 Commit: Daniel Campbell <zlg <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 28 07:58:46 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93f1ff22
7
8 net-im/toxic: new package
9
10 Package-Manager: portage-2.3.2
11
12 net-im/toxic/Manifest | 1 +
13 net-im/toxic/metadata.xml | 22 +++++++++++++++++++
14 net-im/toxic/toxic-0.7.1.ebuild | 48 +++++++++++++++++++++++++++++++++++++++++
15 3 files changed, 71 insertions(+)
16
17 diff --git a/net-im/toxic/Manifest b/net-im/toxic/Manifest
18 new file mode 100644
19 index 00000000..ecea0ac
20 --- /dev/null
21 +++ b/net-im/toxic/Manifest
22 @@ -0,0 +1 @@
23 +DIST toxic-0.7.1.tar.gz 1137112 SHA256 414ca2cd369e277872c7248c43f82afa0ac2f6c8fa5fc8e93f7c3e8ab6d11b9c SHA512 c304b07a67ed27a25394590eb8759b5dd957605be4eb9e64590d4580da0977e1cd201e8b95ae1b31e995772560510ceb0643028696e2df69e1f5d0dff575b553 WHIRLPOOL 228193bb78bf38bd5f5f5ff371a87f12561edcb5729337b58198df36e5ec55b99f2c2ca84f5b471846e7f84445f1c5181c5fa71ff287f62d5e34f833a45747d6
24
25 diff --git a/net-im/toxic/metadata.xml b/net-im/toxic/metadata.xml
26 new file mode 100644
27 index 00000000..4032c88
28 --- /dev/null
29 +++ b/net-im/toxic/metadata.xml
30 @@ -0,0 +1,22 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>zlg@g.o</email>
36 + <name>Daniel Campbell</name>
37 + </maintainer>
38 + <upstream>
39 + <maintainer>
40 + <email>jfreegman@×××.chat</email>
41 + <name>JFreegman</name>
42 + </maintainer>
43 + <remote-id type="github">jfreegman/toxic</remote-id>
44 + </upstream>
45 + <longdescription lang="en">
46 + An ncurses-based Tox client written in C. Supports audio calling, file sharing, and desktop notifications.
47 + </longdescription>
48 + <use>
49 + <flag name="notifications">Enables desktop notifications with libnotify</flag>
50 + <flag name="av">Enables audio calling and/or audio notifications</flag>
51 + </use>
52 +</pkgmetadata>
53
54 diff --git a/net-im/toxic/toxic-0.7.1.ebuild b/net-im/toxic/toxic-0.7.1.ebuild
55 new file mode 100644
56 index 00000000..f4e6509
57 --- /dev/null
58 +++ b/net-im/toxic/toxic-0.7.1.ebuild
59 @@ -0,0 +1,48 @@
60 +# Copyright 1999-2016 Gentoo Foundation
61 +# Distributed under the terms of the GNU General Public License v2
62 +# $Id$
63 +
64 +EAPI=6
65 +
66 +DESCRIPTION="A curses-based client for Tox."
67 +HOMEPAGE="https://github.com/JFreegman/toxic"
68 +SRC_URI="https://github.com/JFreegman/toxic/archive/${PV}.tar.gz -> ${P}.tar.gz"
69 +
70 +LICENSE="GPL-3"
71 +SLOT="0"
72 +KEYWORDS="~amd64 ~x86"
73 +IUSE="+X +av notifications"
74 +
75 +RDEPEND="
76 + net-libs/tox[av?]
77 + dev-libs/libconfig
78 + media-gfx/qrencode
79 + net-misc/curl
80 + sys-libs/ncurses:0=
81 + av? ( media-libs/openal media-libs/freealut )
82 + notifications? ( x11-libs/libnotify )
83 +"
84 +DEPEND="${RDEPEND}"
85 +
86 +src_configure() {
87 + if ! use av; then
88 + export DISABLE_AV=1
89 + export DISABLE_SOUND_NOTIFY=1
90 + fi
91 + if ! use X; then
92 + export DISABLE_X11=1
93 + fi
94 + if ! use notifications; then
95 + export DISABLE_DESKTOP_NOTIFY=1
96 + fi
97 + sed -i \
98 + -e "s,/usr/local,${EPREFIX}/usr,g" \
99 + cfg/global_vars.mk || die "PREFIX sed failed"
100 +}
101 +
102 +src_install() {
103 + default
104 + if ! use av; then
105 + rm -r "${ED%/}"/usr/share/${PN}/sounds || die "Could not remove sound dir"
106 + fi
107 +}