From 3a33f2966f834d3520b03df59018e3d0295fcc69 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Mon, 24 Aug 2015 20:45:13 +0300 Subject: [toxcore] adaugat toxcore --- net-im/toxic/metadata.xml | 3 +++ net-im/toxic/toxic-9999.ebuild | 39 ++++++++++++++++++++++++++------------- 2 files changed, 29 insertions(+), 13 deletions(-) (limited to 'net-im/toxic') 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 @@ holgersson + Enable audio support Enable desktop notification support. Adds support for sound notifications. + Adds support for X11 + 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() { -- cgit v1.2.3