diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-22 01:51:51 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-07-22 01:51:51 +0300 |
commit | 58969e4f1757e77f7dabe4027430403a4abf6281 (patch) | |
tree | f9b516dc0b179dd69ebba835aa18e105fd6d4971 | |
parent | e43de2fe4ad1635a8275aadce38ff01aad4f6afe (diff) |
tox redone, renamed to toxcore
qtox redone
-rw-r--r-- | packages/net-im/qtox/qtox-1.16.3.exheres-0 | 6 | ||||
-rw-r--r-- | packages/net-im/qtox/qtox-scm.exheres-0 | 52 | ||||
-rw-r--r-- | packages/net-im/qtox/qtox.exlib | 56 | ||||
-rw-r--r-- | packages/net-libs/toxcore/files/confd (renamed from packages/net-libs/tox/files/confd) | 0 | ||||
-rw-r--r-- | packages/net-libs/toxcore/files/initd (renamed from packages/net-libs/tox/files/initd) | 0 | ||||
-rw-r--r-- | packages/net-libs/toxcore/files/systemd/tox-bootstrapd.service (renamed from packages/net-libs/tox/files/systemd/tox-bootstrapd.service) | 0 | ||||
-rw-r--r-- | packages/net-libs/toxcore/files/tox-bootstrapd.conf (renamed from packages/net-libs/tox/files/tox-bootstrapd.conf) | 0 | ||||
-rw-r--r-- | packages/net-libs/toxcore/toxcore-0.2.4.exheres-0 | 6 | ||||
-rw-r--r-- | packages/net-libs/toxcore/toxcore-scm.exheres-0 | 6 | ||||
-rw-r--r-- | packages/net-libs/toxcore/toxcore.exlib (renamed from packages/net-libs/tox/tox-scm.exheres-0) | 34 |
10 files changed, 94 insertions, 66 deletions
diff --git a/packages/net-im/qtox/qtox-1.16.3.exheres-0 b/packages/net-im/qtox/qtox-1.16.3.exheres-0 new file mode 100644 index 0000000..6e8464e --- /dev/null +++ b/packages/net-im/qtox/qtox-1.16.3.exheres-0 @@ -0,0 +1,6 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require qtox + +PLATFORMS="~amd64 ~x86" diff --git a/packages/net-im/qtox/qtox-scm.exheres-0 b/packages/net-im/qtox/qtox-scm.exheres-0 index 3983635..6e8464e 100644 --- a/packages/net-im/qtox/qtox-scm.exheres-0 +++ b/packages/net-im/qtox/qtox-scm.exheres-0 @@ -1,56 +1,6 @@ # Distributed under the terms of the GNU General Public License v2 # Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> -require github [ user=qTox project=qTox ] -require cmake [ api=2 ] +require qtox -DOWNLOADS="" -SLOT="0" PLATFORMS="~amd64 ~x86" -SUMMARY="Most feature-rich GUI for net-libs/tox using Qt5" -HOMEPAGE="https://github.com/qTox/qTox" -MYOPTIONS=" - gtk - ( providers: - ffmpeg - libav - ) - [[ number-selected = exactly-one ]] -" - -DEPENDENCIES=" - build+run: - app-crypt/sqlcipher - media-libs/qrencode - media-libs/openal - media-libs/libexif - net-libs/tox[av] - x11-libs/libX11 - x11-libs/libXScrnSaver - x11-libs/qtbase:5[gui][sql] - x11-libs/qtsvg - 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] - ) - providers:ffmpeg? ( media/ffmpeg ) - providers:libav? ( media/libav ) - " - -DEFAULT_SRC_PREPARE_PATCHES=( - "${FILES}"/cflags.patch -) - - -src_configure() { - local cmakeparams=() - cmakeparams+=( - -DENABLE_STATUSNOTIFIER=$(option gtk && echo gtk) - -DENABLE_GTK_SYSTRAY=$(option gtk && echo gtk) - ) - ecmake "${cmakeparams[@]}" -} diff --git a/packages/net-im/qtox/qtox.exlib b/packages/net-im/qtox/qtox.exlib new file mode 100644 index 0000000..f57e78c --- /dev/null +++ b/packages/net-im/qtox/qtox.exlib @@ -0,0 +1,56 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require github [ user=qTox project=qTox tag=v${PV} ] +require cmake [ api=2 ] + +export_exlib_phases src_configure + +SLOT="0" +SUMMARY="Most feature-rich GUI for net-libs/tox using Qt5" +HOMEPAGE="https://github.com/qTox/qTox" +MYOPTIONS=" + gtk + ( providers: + ffmpeg + libav + ) + [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build+run: + app-crypt/sqlcipher + media-libs/qrencode + media-libs/openal + media-libs/libexif + net-libs/toxcore[av] + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/qtbase:5[gui][sql] + x11-libs/qtsvg + 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] + ) + providers:ffmpeg? ( media/ffmpeg ) + providers:libav? ( media/libav ) + " + +DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}"/cflags.patch +) + + +qtox_src_configure() { + local cmakeparams=() + cmakeparams+=( + -DENABLE_STATUSNOTIFIER=$(option gtk && echo gtk) + -DENABLE_GTK_SYSTRAY=$(option gtk && echo gtk) + ) + ecmake "${cmakeparams[@]}" +} diff --git a/packages/net-libs/tox/files/confd b/packages/net-libs/toxcore/files/confd index 33f850b..33f850b 100644 --- a/packages/net-libs/tox/files/confd +++ b/packages/net-libs/toxcore/files/confd diff --git a/packages/net-libs/tox/files/initd b/packages/net-libs/toxcore/files/initd index 101d329..101d329 100644 --- a/packages/net-libs/tox/files/initd +++ b/packages/net-libs/toxcore/files/initd diff --git a/packages/net-libs/tox/files/systemd/tox-bootstrapd.service b/packages/net-libs/toxcore/files/systemd/tox-bootstrapd.service index ae2f238..ae2f238 100644 --- a/packages/net-libs/tox/files/systemd/tox-bootstrapd.service +++ b/packages/net-libs/toxcore/files/systemd/tox-bootstrapd.service diff --git a/packages/net-libs/tox/files/tox-bootstrapd.conf b/packages/net-libs/toxcore/files/tox-bootstrapd.conf index 3413f59..3413f59 100644 --- a/packages/net-libs/tox/files/tox-bootstrapd.conf +++ b/packages/net-libs/toxcore/files/tox-bootstrapd.conf diff --git a/packages/net-libs/toxcore/toxcore-0.2.4.exheres-0 b/packages/net-libs/toxcore/toxcore-0.2.4.exheres-0 new file mode 100644 index 0000000..8e145c2 --- /dev/null +++ b/packages/net-libs/toxcore/toxcore-0.2.4.exheres-0 @@ -0,0 +1,6 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +require toxcore + +PLATFORMS="~amd64 ~x86" diff --git a/packages/net-libs/toxcore/toxcore-scm.exheres-0 b/packages/net-libs/toxcore/toxcore-scm.exheres-0 new file mode 100644 index 0000000..8e145c2 --- /dev/null +++ b/packages/net-libs/toxcore/toxcore-scm.exheres-0 @@ -0,0 +1,6 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +require toxcore + +PLATFORMS="~amd64 ~x86" diff --git a/packages/net-libs/tox/tox-scm.exheres-0 b/packages/net-libs/toxcore/toxcore.exlib index e6f5359..63b2927 100644 --- a/packages/net-libs/tox/tox-scm.exheres-0 +++ b/packages/net-libs/toxcore/toxcore.exlib @@ -1,27 +1,31 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -SCM_REPOSITORY="https://github.com/TokTok/c-toxcore.git" - -require scm-git systemd-service +require github [ user=TokTok project=c-toxcore tag=v${PV} ] +#require scm-git +require systemd-service require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 1.12 1.11 ] need_libtool=false ] -DOWNLOADS="" +export_exlib_phases src_configure src_install + SLOT="0" -PLATFORMS="~amd64 ~x86" SUMMARY="Encrypted P2P, messaging, and audio/video calling platform" DESCRIPTION="" HOMEPAGE="https://tox.chat" LICENCES="GPL-3+" MYOPTIONS=" - av - daemon - log-debug [[ requires = [ -log-error -log-info -log-trace -log-warn ] ]] - log-error [[ requires = [ -log-debug -log-info -log-trace -log-warn ] ]] - log-info [[ requires = [ -log-debug -log-error -log-trace -log-warn ] ]] - log-trace [[ requires = [ -log-debug -log-error -log-info -log-warn ] ]] - log-warn [[ requires = [ -log-debug -log-error -log-info -log-trace ] ]] - ntox" + av [[ description = [ Enable audio/video support ] ]] + daemon [[ description = [ Build and install tox network booststrap daemon ] ]] + ntox [[ description = [ Build testing console-based client ] ]] + ( + log-debug [[ description = [ Turn on debug logging ] ]] + log-error [[ description = [ Turn on error logging ] ]] + log-info [[ description = [ Turn on info logging ] ]] + log-trace [[ description = [ Turn on trace logging ] ]] + log-warn [[ description = [ Turn on warn logging ] ]] + ) + [[ number-selected = at-most-one ]] +" DEPENDENCIES=" build+run: @@ -31,7 +35,7 @@ DEPENDENCIES=" dev-libs/libsodium " -src_configure() { +toxcore_src_configure() { myconf=() if option log-debug; then myconf+=( --enable-logging ) @@ -57,7 +61,7 @@ src_configure() { } -src_install() { +toxcore_src_install() { default_src_install if option daemon; then newconfd "${FILESDIR}"/confd tox-dht-daemon |