summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-08-24 20:45:13 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-08-24 20:45:13 +0300
commit3a33f2966f834d3520b03df59018e3d0295fcc69 (patch)
tree3659aaf14090f23f793a297acc1df879c4cacc4a /net-im
parent7fcb54b4b7928c799f45b3c7800443d39b9f2ce7 (diff)
[toxcore] adaugat toxcore
Diffstat (limited to 'net-im')
-rw-r--r--net-im/blight/blight-9999.ebuild15
-rw-r--r--net-im/blight/files/blight-9999.patch24
-rw-r--r--net-im/gtox/gtox-9999.ebuild56
-rw-r--r--net-im/gtox/metadata.xml7
-rw-r--r--net-im/qtox/metadata.xml5
-rw-r--r--net-im/qtox/qtox-9999.ebuild39
-rw-r--r--net-im/ratox/ratox-9999.ebuild2
-rw-r--r--net-im/toxic/metadata.xml3
-rw-r--r--net-im/toxic/toxic-9999.ebuild39
-rw-r--r--net-im/utox/metadata.xml4
-rw-r--r--net-im/utox/utox-9999.ebuild18
11 files changed, 174 insertions, 38 deletions
diff --git a/net-im/blight/blight-9999.ebuild b/net-im/blight/blight-9999.ebuild
index ce4a0b83..3648b627 100644
--- a/net-im/blight/blight-9999.ebuild
+++ b/net-im/blight/blight-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-inherit git-2
+inherit eutils git-2
DESCRIPTION="Cross-platform graphical user interface for Tox written in Racket"
HOMEPAGE="https://github.com/lehitoskin/blight"
@@ -14,19 +14,22 @@ LICENSE="GPL-3"
SLOT="0"
RDEPEND="net-libs/tox
- >=dev-db/sqlite-3.8.2
- >=dev-scheme/racket-6.0.1[X]"
+ >=dev-db/sqlite-3.8.6
+ >=dev-scheme/racket-6.0.1[X]
+ dev-scheme/libtoxcore-racket
+ dev-scheme/libopenal-racket"
src_prepare() {
- raco pkg install --no-setup github://github.com/lehitoskin/libtoxcore-racket/master
epatch "$FILESDIR/${P}.patch"
epatch_user
}
src_compile() {
- emake
+ emake blight
+ emake blight-repl
}
src_install() {
- emake DESTDIR="${D}/usr" install
+ emake DESTDIR="${D}/usr" install-blight
+ emake DESTDIR="${D}/usr" install-repl
}
diff --git a/net-im/blight/files/blight-9999.patch b/net-im/blight/files/blight-9999.patch
index e47640b1..2451b6ab 100644
--- a/net-im/blight/files/blight-9999.patch
+++ b/net-im/blight/files/blight-9999.patch
@@ -1,7 +1,7 @@
diff -Naur a/config.rkt b/config.rkt
---- a/config.rkt 2014-05-30 17:05:42.212974487 -0700
-+++ b/config.rkt 2014-05-30 17:09:20.788966204 -0700
-@@ -26,7 +26,7 @@
+--- a/config.rkt 2014-12-14 18:49:30.181361600 -0800
++++ b/config.rkt 2014-12-14 18:52:13.599355467 -0800
+@@ -65,7 +65,7 @@
; location of sound directory (currently depends on running from same dir
; change to /usr/share/blight/sounds (or something) once a proper
; installer is to be had
@@ -10,3 +10,21 @@ diff -Naur a/config.rkt b/config.rkt
; list of sound files
(define sounds (list
(build-path sound-dir "New Message.wav")
+@@ -86,7 +86,7 @@
+ (define make-noise-default #t)
+
+ ; blight icons for the buddy list
+-(define icon-dir (build-path "icons"))
++(define icon-dir (build-path "/usr/share/blight/icons"))
+ ; list of icon files
+ (define icons (list
+ (build-path icon-dir "offline.png")
+@@ -97,7 +97,7 @@
+
+ (define avatar-dir (build-path tox-path "avatars"))
+
+-(define logo-dir (build-path "img"))
++(define logo-dir (build-path "/usr/share/icons/hicolor/128x128/apps"))
+
+ (define logo (build-path logo-dir "blight-logo-128px.png"))
+
diff --git a/net-im/gtox/gtox-9999.ebuild b/net-im/gtox/gtox-9999.ebuild
new file mode 100644
index 00000000..45661958
--- /dev/null
+++ b/net-im/gtox/gtox-9999.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils git-2 cmake-utils
+
+DESCRIPTION="A GTK3 Tox-Client"
+HOMEPAGE="https://github.com/kokutoru/gtox"
+SRC_URI=""
+EGIT_REPO_URI="git://github.com/kokutoru/gtox.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+#IUSE="+filter_audio gtk X"
+
+DEPEND="
+ dev-util/cmake
+ >=sys-devel/gcc-4.9.0
+ >=dev-cpp/gtkmm-3.16.0
+ dev-libs/atk
+ dev-libs/glib:2
+ dev-cpp/glibmm
+ dev-libs/flatbuffers
+ x11-libs/gtk+:3
+ x11-libs/cairo[X]
+ x11-libs/pango[X]
+ x11-libs/libnotify
+ gnome-base/librsvg
+ dev-db/sqlite:3
+ sys-devel/gettext
+ media-libs/libcanberra[gtk3,sound]
+ >=dev-cpp/gstreamermm-1.0.10
+ net-libs/tox[av]
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+CMAKE_USE_DIR="${S}/src"
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+}
diff --git a/net-im/gtox/metadata.xml b/net-im/gtox/metadata.xml
new file mode 100644
index 00000000..cc3fe249
--- /dev/null
+++ b/net-im/gtox/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-im/qtox/metadata.xml b/net-im/qtox/metadata.xml
index 1ed9f4e7..cd6cad4e 100644
--- a/net-im/qtox/metadata.xml
+++ b/net-im/qtox/metadata.xml
@@ -5,4 +5,9 @@
<email>simon-github@slevermann.de</email>
<name>Simon Levermann</name>
</maintainer>
+ <use>
+ <flag name="filter_audio">Adds support for filtering audio input</flag>
+ <flag name="gtk">Adds support for GTK and Status Notifier tray backends</flag>
+ <flag name="X">Adds support for X11</flag>
+ </use>
</pkgmetadata>
diff --git a/net-im/qtox/qtox-9999.ebuild b/net-im/qtox/qtox-9999.ebuild
index 0fc8ffaf..1df981a5 100644
--- a/net-im/qtox/qtox-9999.ebuild
+++ b/net-im/qtox/qtox-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@@ -14,26 +14,39 @@ EGIT_REPO_URI="git://github.com/tux3/qtox.git"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
-IUSE=""
+IUSE="+filter_audio gtk X"
DEPEND="
+ dev-qt/linguist-tools:5
dev-qt/qtconcurrent:5
dev-qt/qtcore:5
- dev-qt/qtgui:5[gif,jpeg,png]
+ dev-qt/qtgui:5[gif,jpeg,png,xcb]
dev-qt/qtnetwork:5
dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtsvg:5
dev-qt/qtxml:5
+ filter_audio? ( media-libs/libfilteraudio )
+ media-gfx/qrencode
media-libs/openal
- media-libs/opencv[-qt4,v4l]
- net-libs/tox[av]"
+ >=media-video/ffmpeg-2.6.3[webp,v4l]
+ gtk? ( dev-libs/atk
+ dev-libs/glib:2
+ x11-libs/gdk-pixbuf[X]
+ x11-libs/gtk+:2
+ x11-libs/cairo[X]
+ x11-libs/pango[X] )
+ net-libs/tox[av]
+ X? ( x11-libs/libX11
+ x11-libs/libXScrnSaver )"
RDEPEND="${DEPEND}"
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
if [[ $(tc-getCXX) == *g++ ]] ; then
if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 8 || $(gcc-major-version) -lt 4 ]] ; then
- eerror "You need at least sys-devel/gcc-4.8.0"
- die "You need at least sys-devel/gcc-4.8.0"
+ eerror "You need at least sys-devel/gcc-4.8.3"
+ die "You need at least sys-devel/gcc-4.8.3"
fi
fi
fi
@@ -44,11 +57,17 @@ src_prepare() {
}
src_configure() {
- eqmake5
+ use filter_audio || NO_FILTER_AUDIO="DISABLE_FILTER_AUDIO=YES"
+ use gtk || NO_GTK_SUPPORT="ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND=NO ENABLE_SYSTRAY_GTK_BACKEND=NO"
+ use X || NO_X_SUPPORT="DISABLE_PLATFORM_EXT=YES"
+ eqmake5 \
+ ${NO_FILTER_AUDIO} \
+ ${NO_GTK_SUPPORT} \
+ ${NO_X_SUPPORT}
}
src_install() {
dobin "${S}/qtox"
- doicon -s scalable "${FILESDIR}"/tox.svg
- make_desktop_entry "qtox" "qTox" "/usr/share/icons/hicolor/scalable/apps/tox.svg" "Network"
+ doicon -s scalable "${S}/img/icons/qtox.svg"
+ domenu "${S}/qTox.desktop"
}
diff --git a/net-im/ratox/ratox-9999.ebuild b/net-im/ratox/ratox-9999.ebuild
index 2799f959..b5c23cad 100644
--- a/net-im/ratox/ratox-9999.ebuild
+++ b/net-im/ratox/ratox-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-inherit git-2
+inherit eutils git-2
DESCRIPTION=" A minimal FIFO based client for Tox"
HOMEPAGE="http://git.2f30.org/ratox"
diff --git a/net-im/toxic/metadata.xml b/net-im/toxic/metadata.xml
index 35db8749..9a010970 100644
--- a/net-im/toxic/metadata.xml
+++ b/net-im/toxic/metadata.xml
@@ -6,7 +6,10 @@
<name>holgersson</name>
</maintainer>
<use>
+ <flag name="av">Enable audio support</flag>
<flag name="libnotify">Enable desktop notification support.</flag>
<flag name="sound-notify">Adds support for sound notifications.</flag>
+ <flag name="X">Adds support for X11</flag>
+
</use>
</pkgmetadata>
diff --git a/net-im/toxic/toxic-9999.ebuild b/net-im/toxic/toxic-9999.ebuild
index dbb19fd1..ae38dc3f 100644
--- a/net-im/toxic/toxic-9999.ebuild
+++ b/net-im/toxic/toxic-9999.ebuild
@@ -4,26 +4,28 @@
EAPI=5
-inherit autotools git-2 toolchain-funcs
+inherit autotools eutils git-2 toolchain-funcs
DESCRIPTION="CLI Frontend for Tox"
-HOMEPAGE="http://wiki.tox.im/Toxic"
+HOMEPAGE="https://wiki.tox.chat/clients/toxic"
SRC_URI=""
EGIT_REPO_URI="git://github.com/Tox/toxic
https://github.com/Tox/toxic"
LICENSE="GPL-3"
SLOT="0"
-IUSE="+libnotify +sound-notify"
+IUSE="+av +libnotify +sound-notify +X"
RDEPEND="
- dev-libs/libconfig
- net-libs/tox[av]
- media-libs/openal
- sys-libs/ncurses
- x11-libs/libX11
+ av? (
+ media-libs/openal
+ net-libs/tox[av] )
+ !av? ( net-libs/tox )
libnotify? ( x11-libs/libnotify )
- sound-notify? ( media-libs/freealut )"
+ sound-notify? ( media-libs/freealut )
+ X? ( x11-libs/libX11 )
+ sys-libs/ncurses
+ dev-libs/libconfig"
DEPEND="${RDEPEND}
app-text/asciidoc
virtual/pkgconfig"
@@ -32,23 +34,34 @@ src_prepare() {
# verbose build
sed -i \
-e 's/@$(CC)/$(CC)/' \
- build/Makefile || die
+ Makefile || die
epatch_user
}
src_compile() {
+ use av || export AV="DISABLE_AV=1"
use libnotify || export NOTIFY="DISABLE_DESKTOP_NOTIFY=1"
use sound-notify || export SOUND_NOTIFY="DISABLE_SOUND_NOTIFY=1"
+ use X || export X="DISABLE_X11=1"
emake \
CC="$(tc-getCC)" \
USER_CFLAGS="${CFLAGS}" \
USER_LDFLAGS="${LDFLAGS}" \
- PREFIX="/usr" ${NOTIFY} ${SOUND_NOTIFY} \
- -C build
+ PREFIX="/usr" ${NOTIFY} ${SOUND_NOTIFY} ${X} ${AV}
}
src_install() {
- emake install PREFIX="/usr" DESTDIR="${D}" -C build
+ use av || export AV="DISABLE_AV=1"
+ use libnotify || export NOTIFY="DISABLE_DESKTOP_NOTIFY=1"
+ use sound-notify || export SOUND_NOTIFY="DISABLE_SOUND_NOTIFY=1"
+ use X || export X="DISABLE_X11=1"
+
+ # ↑ needed workaround, without it "missing" things may compile again in install() –.–"
+
+ emake \
+ install PREFIX="/usr" DESTDIR="${D}" \
+ ${NOTIFY} ${SOUND_NOTIFY} ${X} ${AV} # part of workaround
+
}
pkg_postinst() {
diff --git a/net-im/utox/metadata.xml b/net-im/utox/metadata.xml
index cc3fe249..8c7121dd 100644
--- a/net-im/utox/metadata.xml
+++ b/net-im/utox/metadata.xml
@@ -4,4 +4,8 @@
<maintainer>
<email>maintainer-wanted@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="dbus">Adds dbus support for desktop notifications</flag>
+ <flag name="filter_audio">Adds support for filtering audio input</flag>
+ </use>
</pkgmetadata>
diff --git a/net-im/utox/utox-9999.ebuild b/net-im/utox/utox-9999.ebuild
index 41676f8e..77c583a8 100644
--- a/net-im/utox/utox-9999.ebuild
+++ b/net-im/utox/utox-9999.ebuild
@@ -1,22 +1,23 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
-inherit fdo-mime gnome2-utils toolchain-funcs git-2
+inherit eutils fdo-mime git-2 gnome2-utils toolchain-funcs
DESCRIPTION="Lightweight Tox client"
-HOMEPAGE="https://github.com/notsecure/uTox.git"
+HOMEPAGE="https://github.com/notsecure/uTox"
EGIT_REPO_URI="git://github.com/notsecure/uTox.git
https://github.com/notsecure/uTox.git"
LICENSE="GPL-3"
SLOT="0"
-IUSE="+dbus"
+IUSE="+dbus +filter_audio"
RDEPEND="net-libs/tox[av]
media-libs/freetype
+ filter_audio? ( media-libs/libfilteraudio )
media-libs/libv4l
media-libs/libvpx
media-libs/openal
@@ -31,6 +32,10 @@ src_prepare() {
}
src_configure() {
+ if use filter_audio && [ "${PROFILE_IS_HARDENED}" = 1 ]; then
+ ewarn "Building µTox with support for filter_audio using hardened profile results in"
+ ewarn "crash upon start. For details, see https://github.com/notsecure/uTox/issues/844"
+ fi
# respect CFLAGS
sed -i \
-e '/CFLAGS/s# -g ##' \
@@ -38,7 +43,10 @@ src_configure() {
}
src_compile() {
- emake CC="$(tc-getCC)" DBUS=$(usex dbus "1" "0")
+ emake \
+ CC="$(tc-getCC)" \
+ DBUS=$(usex dbus "1" "0") \
+ FILTER_AUDIO=$(usex filter_audio "1" "0")
}
src_install() {