summaryrefslogtreecommitdiff
path: root/packages/net-im
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-im')
-rw-r--r--packages/net-im/qtox/qtox-1.16.3.exheres-06
-rw-r--r--packages/net-im/qtox/qtox-scm.exheres-052
-rw-r--r--packages/net-im/qtox/qtox.exlib56
3 files changed, 63 insertions, 51 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[@]}"
+}