diff options
Diffstat (limited to 'net-im/toxic')
-rw-r--r-- | net-im/toxic/Manifest | 5 | ||||
-rw-r--r-- | net-im/toxic/metadata.xml | 2 | ||||
-rw-r--r-- | net-im/toxic/toxic-0.8.2.ebuild | 99 |
3 files changed, 105 insertions, 1 deletions
diff --git a/net-im/toxic/Manifest b/net-im/toxic/Manifest index e62862b8401e..def0edd63f9d 100644 --- a/net-im/toxic/Manifest +++ b/net-im/toxic/Manifest @@ -1,4 +1,7 @@ AUX toxic-0.8.0-verbose-build-log.patch 9264 BLAKE2B c4e94a50711fc3804b11afb260ab82936d563b1bff3d87e106d5897d660b4138864dda1cd2f01d3d0a3a024efc731d4dc97008d0f4022e6124613ff141ea264a SHA512 5f3b1e2c20ff04b11ef40eee0953954c0274044aeefa4c4cde5fd4028591ebedc94d671383656d5af219e2d6ed9bf998ba092a821528e80f6617a4cb85ef003d DIST toxic-0.8.0.tar.gz 1145799 BLAKE2B 01dd14d28feac0aadd1e87d8538910601b532e8cb02219091a863502eb80f812a034eecf06f131ff878509dfc1eb40e5f9baf7547180346eeb03bdb7dea4a6ed SHA512 3c59edb61b1bcdbfa3a8391a1a1ceccc6c9c38b49c1709813d60480b180fb39607806116b9dcd1de35ebb02e23e95d78c8191f04a4875e06e27fa43bc9800b33 +DIST toxic-0.8.2.tar.gz 1146526 BLAKE2B 0a1c80313963287e88aa489ecf4614365a3d94c770cdfb3b1f3afd0bf2b70639c35b9c5ce52408647abdaac9822c9529b603ec1883779f5486ff63001d98ff5e SHA512 258e873404315c9a1f59d67f524089afebad88d800116bd9e53c8bc35bd9dd6b66cfcd90db06181f01330ba0a302456510fac5c01fdbfde7d475aa5d6b1070aa +DIST toxic_patches-0.8.2.tar.gz 3859 BLAKE2B 4a19226cea6c7ce60f599fbd4f74171f26b3812259f0f8997997526bde7beb6fe64b922f25fe77e0ac8f9b185db116d2e626cb889631a1508786b92f9bbc8927 SHA512 737cc53e814567e10ad8b7431be63ab8f99b76bb150490c31e03309c4e51ee34a798d141cbde446cbbc4b5c0145ca468f3456a2af4b966c80792cdccc6562b46 EBUILD toxic-0.8.0-r1.ebuild 2057 BLAKE2B 6758c830e8cf0f58d76c7e2a09d767aa4c5a94acdd082ffb10898c217db6c02d83ad2dbb51df571cbd246427ef1262506d99fe6aff086f7d76796f04f3ea7da3 SHA512 415e828401566250b63a95cd245b61b2237a2081737b6fb6860e031e331fdf309643ed8fc2982eae322d2c1a5bc48be97d49e369cf4a7cfb4f7f02ed8ac29022 -MISC metadata.xml 782 BLAKE2B b16c2b1eb3bfbab3f58868edb8d3a3ab587563fc2b57b00d28be50d6380dba3ffed70d43ebb1d44b51a319aa93540cc88c59cf78bfb3582b91100e2fd4847357 SHA512 77c3aeaef93ed547c02d66f9856ed6c34d3937133831296d0e0abee713634216045d08ba43fcfa303747bb65f4fe1574962e6ccc10aff46642b5fc7c8e2c0caa +EBUILD toxic-0.8.2.ebuild 2259 BLAKE2B e71336c2ba6967780dbfcb4ec865429955d513679197f3e59ca4ba7277010a9b41cdcccb45c7d5771c3b379170f86d6d611cc3d80e3aafebd5ba7dcf3e86d069 SHA512 3864d5b5de55b14e0a1786229fc6a61611d137c8f9b9c832898dc6865de683d77f34866141ae8111118e5af4e23ab96bbeaaaf071a268d0c2c8e7c5f8c3740ba +MISC metadata.xml 933 BLAKE2B a91cff36d985a0f854b7eda20c7746f87b4b4bd8a64b6d03fa8f6fea655378e05d899a6769362408b800b0ede3e2177d3d7c6d64fe0d78642ded3a789afe52a7 SHA512 9e45ea9ceb2cac0adbe27eecf4d470abaaab588d805c4db9ffe3b2f72801a38291e145a017e4202313da8888f8279de1a410a0676b615de4827e50fde2ec2f64 diff --git a/net-im/toxic/metadata.xml b/net-im/toxic/metadata.xml index 7982519991a9..d4103ec575aa 100644 --- a/net-im/toxic/metadata.xml +++ b/net-im/toxic/metadata.xml @@ -14,8 +14,10 @@ </longdescription> <use> <flag name="audio">Enables audio calling</flag> + <flag name="notification">Enables desktop notifications with libnotify, with sound support.</flag> <flag name="notifications">Enables desktop notifications with libnotify, with sound support.</flag> <flag name="qrcode">Enables QR code support</flag> + <flag name="sound">Enables audio calling</flag> <flag name="video">Enables video calling</flag> </use> </pkgmetadata> diff --git a/net-im/toxic/toxic-0.8.2.ebuild b/net-im/toxic/toxic-0.8.2.ebuild new file mode 100644 index 000000000000..ac48eccb5065 --- /dev/null +++ b/net-im/toxic/toxic-0.8.2.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_4 python3_5 python3_6 ) + +inherit python-single-r1 xdg + +DESCRIPTION="A curses-based client for Tox" +HOMEPAGE="https://github.com/JFreegman/toxic" +SRC_URI="https://github.com/JFreegman/toxic/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/fx-carton/toxic_patches/archive/v${PV}.tar.gz -> ${PN}_patches-${PV}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+X +sound notification +python +qrcode +video" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# Not a typo; net-libs/tox only has a 'both or neither' option +RDEPEND=" + net-libs/tox:0/0.2 + dev-libs/libconfig + net-misc/curl:0= + sys-libs/ncurses:0= + notification? ( x11-libs/libnotify ) + python? ( ${PYTHON_DEPS} ) + qrcode? ( media-gfx/qrencode:= ) + sound? ( + media-libs/openal + media-libs/freealut + net-libs/tox:0/0.2[av] + ) + video? ( + media-libs/libvpx:= + net-libs/tox:0/0.2[av] + x11-libs/libX11 + ) +" +DEPEND=" + virtual/pkgconfig + ${RDEPEND} +" + +PATCHES=( + "${WORKDIR}/${PN}_patches-${PV}/${P}-make-qrencode-optional.patch" + ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + if [[ ${PV} = 0.8.2 ]]; then + sed -i \ + -e 's/^\(TOXIC_VERSION =\).*$/\1 0.8.2/' \ + cfg/global_vars.mk || die + else + die "Remove stale version hack" + fi + sed -i '/^VIDEO = /s/DISABLE_AV/DISABLE_VI/g' cfg/checks/check_features.mk || die + find . '(' -name '*.mk' -o -name 'Makefile' ')' -exec sed -i 's/^\t@/\t/' {} + || die +} + +src_configure() { + export USER_CFLAGS="${CFLAGS}" + export USER_LDFLAGS="${LDFLAGS}" + if ! use sound; then + export DISABLE_AV=1 + export DISABLE_SOUND_NOTIFY=1 + fi + if ! use video; then + export DISABLE_VI=1 + fi + if ! use X; then + export DISABLE_X11=1 + fi + if ! use notification; then + export DISABLE_DESKTOP_NOTIFY=1 + fi + if ! use qrcode; then + export DISABLE_QRCODE=1 + export DISABLE_QRPNG=1 + fi + if use python; then + export ENABLE_PYTHON=1 + fi + sed -i \ + -e "s,/usr/local,${EPREFIX}/usr,g" \ + cfg/global_vars.mk || die "PREFIX sed failed" +} + +src_install() { + default + if ! use sound; then + rm -r "${ED%/}"/usr/share/${PN}/sounds || die "Could not remove sounds directory" + fi +} |