diff options
-rw-r--r-- | packages/net-im/psi/psi-scm.exheres-0 | 95 |
1 files changed, 41 insertions, 54 deletions
diff --git a/packages/net-im/psi/psi-scm.exheres-0 b/packages/net-im/psi/psi-scm.exheres-0 index 223a1f5..885d18d 100644 --- a/packages/net-im/psi/psi-scm.exheres-0 +++ b/packages/net-im/psi/psi-scm.exheres-0 @@ -33,7 +33,7 @@ SCM_psiplusl10n_REPOSITORY="https://github.com/psi-plus/psi-plus-l10n.git" require scm-git -require qmake [ slot=5 ] +require cmake [ api=2 ] DOWNLOADS="" SLOT="0" @@ -55,7 +55,6 @@ MYOPTIONS=" xscreensaver [[ description = [ support xscrinsaver (preventing) ] ]] linguas: ( ${LANGS} ) ( providers: - aspell [[ description = [ spell checking support ] ]] hunspell [[ description = [ spell checking support ] ]] enchant [[ description = [ spell checking support ] ]] ) @@ -67,6 +66,7 @@ MYOPTIONS=" [[ number-selected = at-most-one ]] " + DEPENDENCIES=" build+run: app-crypt/qca[qt5] @@ -80,7 +80,6 @@ DEPENDENCIES=" crypt? ( app-crypt/qca[gnupg] ) whiteboarding? ( x11-libs/qtsvg:5 ) xscreensaver? ( x11-libs/libXScrnSaver ) - providers:aspell? ( app-spell/aspell ) providers:enchant? ( app-spell/enchant ) providers:hunspell? ( app-spell/hunspell ) providers:webengine? ( @@ -91,7 +90,6 @@ DEPENDENCIES=" providers:webkit? ( x11-libs/qtwebkit:5 ) build: doc? ( app-doc/doxygen ) - extras? ( sys-devel/qconf[>=2.4] ) suggestion: x11-libs/qtimageformats [[ description = [ for webp image format support ] @@ -99,8 +97,22 @@ DEPENDENCIES=" ]] " -#$DEFAULT_SRC_PREPARE_PATCHES=( -#) +CMAKE_SRC_CONFIGURE_OPTIONS=( + 'extras IS_PSIPLUS' + 'extras BUILD_PSIMEDIA' +) + +CMAKE_SRC_CONFIGURE_OPTION_USES=( + 'providers:webkit WEBKIT' + 'providers:webengine WEBENGINE' + 'providers:enchant ENCHANT' + 'providers:hunspell HUNSPELL' +) + +CMAKE_SRC_CONFIGURE_PARAMS+=( + -DBUNDLED_IRIS=ON + -DUSE_CCACHE=OFF +) pkg_setup() { MY_PN=psi @@ -110,80 +122,55 @@ pkg_setup() { } src_prepare() { - default + cd "${WORKBASE}/${PNV}" edo mv ../psiplus psi-plus edo mv ../psiplusl10n psi-l10n edo mv ../resources resources if option extras; then - edo cp -a "${WORK}/psi-plus/iconsets" . + edo cp -a "${WORKBASE}/${PNV}/psi-plus/iconsets" . if option iconsets; then - edo cp -a "${WORK}/resources/iconsets" . + edo cp -a "${WORKBASE}/${PNV}/resources/iconsets" . fi - expatch "${WORK}/psi-plus/patches"/*.diff - option sql && expatch "${WORK}/psi-plus/patches/dev/psi-new-history.patch" - vergen="${WORK}/psi-plus/admin/psi-plus-nightly-version" + expatch "${WORKBASE}/${PNV}/psi-plus/patches"/*.diff + option sql && expatch "${WORKBASE}/${PNV}/psi-plus/patches/dev/psi-new-history.patch" + vergen="${WORKBASE}/${PNV}/psi-plus/admin/psi-plus-nightly-version" local features=() -# option webkit && features+="--webkit" -# option webengine && features+="--webengine" -# option sql && features+="--sql" + option providers:webkit && features+="--webkit" + option providers:webengine && features+="--webengine" + option sql && features+="--sql" features="$(option providers:webkit && echo '--webkit') $(option providers:webengine && echo '--webengine') $(option sql && echo '--sql')" NIGHTLY_VER=$("${vergen}" ./ $features) elog "Prepared version: ${NIGHTLY_VER}" echo "${NIGHTLY_VER}" > version || die "Failed to write version file" - edo qconf fi - edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORK}"/configure - edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORK}"/iris/configure + edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORKBASE}/${PNV}"/configure + edo sed -e "s/pkg-config/$(exhost --target)-pkg-config/g" -i "${WORKBASE}/${PNV}"/iris/configure + cd "${WORK}" + default } src_configure() { - CONF=( - --prefix=/usr/$(exhost --target) - --no-separate-debug-info - --enable-qdbus - $(option_enable providers:aspell aspell) - $(option_enable providers:enchant enchant) - $(option_enable providers:hunspell hunspell) - $(option_enable xscreensaver xss) - $(option_enable whiteboarding) - ) - - option debug && CONF+=("--debug") - option providers:webengine && CONF+=("--enable-webkit" "--with-webkit=qtwebengine") - option providers:webkit && CONF+=("--enable-webkit" "--with-webkit=qtwebkit") - - # This may generate warnings if passed option already matches with default. - # Just ignore them. It's how qconf-based configure works and will be fixed in - # future qconf versions. - edo ./configure "${CONF[@]}" - - - eqmake psi.pro - edo rm -rf psi-plus - + option providers:webengine && CMAKE_SRC_CONFIGURE_PARAMS+=( -DENABLE_WEBKIT=ON ) + option providers:webkit && CMAKE_SRC_CONFIGURE_PARAMS+=( -DENABLE_WEBKIT=ON ) + ! option providers:webkit && ! option providers:webengine && CMAKE_SRC_CONFIGURE_PARAMS+=( -DENABLE_WEBKIT=OFF ) + cmake_src_configure } -src_compile() { - emake - option doc && emake -C doc api_public -} - - src_install() { - default + cmake_src_install # rm "${ED}"/usr/share/${MY_PN}/{COPYING,README.html} || die "Installed file set seems to be changed by upstream" - newdoc iconsets/roster/README README.roster - newdoc iconsets/system/README README.system - newdoc certs/README README.certs - dodoc README.html +# newdoc iconsets/roster/README README.roster +# newdoc iconsets/system/README README.system +# newdoc certs/README README.certs +# dodoc README.html option doc && HTML_DOCS=( doc/api/. ) emagicdocs mylrelease=lrelease-qt5 - cd "${WORK}"/psi-l10n + cd "${WORKBASE}/${PNV}"/psi-l10n insinto /usr/$(exhost --target)/share/${MY_PN} for lang in ${LANGS}; do if option "linguas:${lang}"; then |