summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-12-09 09:25:11 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-12-09 09:25:11 +0300
commit6734c813443937c702607c79cabf853693ae3c40 (patch)
tree777665eaee517776d30c25d79a7a266a7e102112
parent2f8c2e01f5031014cbbdd967bb8f266e5d89062e (diff)
psi: added plugins support (not finished yet)
-rw-r--r--packages/net-im/psi/files/disable_plugins.patch15
-rw-r--r--packages/net-im/psi/psi-scm.exheres-021
2 files changed, 35 insertions, 1 deletions
diff --git a/packages/net-im/psi/files/disable_plugins.patch b/packages/net-im/psi/files/disable_plugins.patch
new file mode 100644
index 0000000..ae21e80
--- /dev/null
+++ b/packages/net-im/psi/files/disable_plugins.patch
@@ -0,0 +1,15 @@
+diff --git a/generic/CMakeLists.txt b/generic/CMakeLists.txt
+index 61524bb..b7090b1 100644
+--- a/generic/CMakeLists.txt
++++ b/generic/CMakeLists.txt
+@@ -24,10 +24,7 @@ set( plugins_list
+ imageplugin
+ imagepreviewplugin
+ jabberdiskplugin
+- juickplugin
+ messagefilterplugin
+- omemoplugin
+- otrplugin
+ pepchangenotifyplugin
+ qipxstatusesplugin
+ screenshotplugin
diff --git a/packages/net-im/psi/psi-scm.exheres-0 b/packages/net-im/psi/psi-scm.exheres-0
index 885d18d..8ce4610 100644
--- a/packages/net-im/psi/psi-scm.exheres-0
+++ b/packages/net-im/psi/psi-scm.exheres-0
@@ -19,6 +19,7 @@ SCM_SECONDARY_REPOSITORIES="
psiplus
resources
psiplusl10n
+ psiplusplugins
"
SCM_iris_REPOSITORY="https://github.com/psi-im/iris.git"
@@ -28,9 +29,10 @@ SCM_httpparser_REPOSITORY="https://github.com/nodejs/http-parser.git"
SCM_psiplus_REPOSITORY="https://github.com/psi-plus/main.git"
SCM_resources_REPOSITORY="https://github.com/psi-plus/resources.git"
-#SCM_l10n_REPOSITORY="https://github.com/psi-im/psi-l10n.git"
SCM_psiplusl10n_REPOSITORY="https://github.com/psi-plus/psi-plus-l10n.git"
+SCM_psiplusplugins_REPOSITORY="https://github.com/psi-im/plugins.git"
+
require scm-git
require cmake [ api=2 ]
@@ -49,6 +51,7 @@ MYOPTIONS="
(
sql [[ description = [ support sql backend for data storage ] ]]
iconsets [[ description = [ install additional icon sets ] ]]
+ plugins [[ description = [ build all available psi-plus plugins ] ]]
)
[[ *requires = extras ]]
whiteboarding [[ description = [ Build whiteboarding plugin ] ]]
@@ -109,6 +112,10 @@ CMAKE_SRC_CONFIGURE_OPTION_USES=(
'providers:hunspell HUNSPELL'
)
+CMAKE_SRC_CONFIGURE_OPTION_ENABLES=(
+ 'plugins PLUGINS'
+)
+
CMAKE_SRC_CONFIGURE_PARAMS+=(
-DBUNDLED_IRIS=ON
-DUSE_CCACHE=OFF
@@ -126,6 +133,18 @@ src_prepare() {
edo mv ../psiplus psi-plus
edo mv ../psiplusl10n psi-l10n
edo mv ../resources resources
+ edo mv ../psiplusplugins/deprecated/* src/plugins/deprecated
+ edo rmdir ../psiplusplugins/deprecated
+ edo mv ../psiplusplugins/* src/plugins
+#TODO: fix plugins build
+# disabling broken for now
+# disabling omemo: required additional libraryes
+# disabling otr: required additional libraryes
+# disabling juick: forcing webkit
+ edo cd src/plugins
+ expatch "${FILES}"/disable_plugins.patch
+ edo cd ../../
+
if option extras; then
edo cp -a "${WORKBASE}/${PNV}/psi-plus/iconsets" .
if option iconsets; then