SHARE
TWEET

psi-plugins.ebuild

a guest Jun 7th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-plugins-9999.ebuild,v 1.12 2011/06/30 09:23:16 pva Exp $
  4.  
  5. EAPI=5
  6.  
  7. PSI_URI="git://github.com/psi-im"
  8. EGIT_REPO_URI="${PSI_URI}/psi.git"
  9. PSI_PLUGINS_URI="${PSI_URI}/plugins.git"
  10. EGIT_MIN_CLONE_TYPE="single"
  11. EGIT_SUBMODULES=()
  12.  
  13. inherit cmake-utils eutils git-r3
  14.  
  15. DESCRIPTION="Psi plugins"
  16. HOMEPAGE="http://psi-im.org/"
  17. LICENSE="GPL-2"
  18. SLOT="0"
  19. KEYWORDS=""
  20.  
  21. PSI_PLUGINS="
  22. attentionplugin
  23. autoreplyplugin
  24. battleshipgameplugin
  25. birthdayreminderplugin
  26. chessplugin
  27. cleanerplugin
  28. conferenceloggerplugin
  29. contentdownloaderplugin
  30. enummessagesplugin
  31. extendedmenuplugin
  32. extendedoptionsplugin
  33. gnupgplugin
  34. gomokugameplugin
  35. historykeeperplugin
  36. httpuploadplugin
  37. icqdieplugin
  38. imageplugin
  39. imagepreviewplugin
  40. jabberdiskplugin
  41. juickplugin
  42. messagefilterplugin
  43. otrplugin
  44. pepchangenotifyplugin
  45. qipxstatusesplugin
  46. ripperccplugin
  47. screenshotplugin
  48. skinsplugin
  49. stopspamplugin
  50. storagenotesplugin
  51. translateplugin
  52. videostatusplugin
  53. watcherplugin
  54. "
  55.  
  56. IUSE="${PSI_PLUGINS} qt4 qt5"
  57.  
  58. REQUIRED_USE="^^ ( qt4 qt5 )"
  59.  
  60. RDEPEND="
  61.     qt4? (
  62.         dev-qt/qtcore:4
  63.         dev-qt/qtgui:4
  64.         ripperccplugin? (
  65.             dev-qt/qtgui:4
  66.             dev-qt/qtnetwork:4
  67.             dev-libs/qjson
  68.         )
  69.         httpuploadplugin? ( dev-qt/qtnetwork:4 )
  70.         contentdownloaderplugin? ( dev-qt/qtnetwork:4 )
  71.         videostatusplugin? (
  72.             dev-qt/qtx11extras
  73.             dev-qt/qtdbus:4
  74.         )
  75.         screenshotplugin? (
  76.             dev-qt/qtnetwork:4
  77.             dev-qt/qtx11extras
  78.         )
  79.         juickplugin? (
  80.             dev-qt/qtnetwork:4
  81.             dev-qt/qtwebkit:4
  82.         )
  83.         imagepreviewplugin? (
  84.             dev-qt/qtnetwork:4
  85.             dev-qt/qtwebkit:4
  86.         )
  87.     )
  88.     qt5? (
  89.         dev-qt/qtwidgets:5
  90.         dev-qt/qtxml:5
  91.         httpuploadplugin? ( dev-qt/qtnetwork:5 )
  92.         contentdownloaderplugin? ( dev-qt/qtnetwork:5 )
  93.         videostatusplugin? (
  94.             dev-qt/qtx11extras
  95.             dev-qt/qtdbus:5
  96.         )
  97.         screenshotplugin? (
  98.             dev-qt/qtnetwork:5
  99.             dev-qt/qtprintsupport:5
  100.             dev-qt/qtx11extras
  101.         )
  102.         juickplugin? (
  103.             dev-qt/qtcore:5
  104.             dev-qt/qtnetwork:5
  105.             <dev-qt/qtcore-5.7.0 (
  106.                 dev-qt/qtwebkit:5
  107.             )
  108.             >=dev-qt/qtcore-5.7.0 (
  109.                 dev-qt/qtwebengine
  110.             )
  111.         )
  112.         imagepreviewplugin? (
  113.             dev-qt/qtcore:5
  114.             dev-qt/qtnetwork:5
  115.             <dev-qt/qtcore-5.7.0 (
  116.                 dev-qt/qtwebkit:5
  117.             )
  118.             >=dev-qt/qtcore-5.7.0 (
  119.                 dev-qt/qtwebengine
  120.             )
  121.         )
  122.         otrplugin? ( dev-qt/qtconcurrent )
  123.         ripperccplugin? (
  124.             dev-qt/qtgui:5
  125.             dev-qt/qtnetwork:5
  126.         )
  127.     )
  128.     otrplugin? (
  129.         net-libs/libotr
  130.         app-text/htmltidy
  131.         dev-libs/libgpg-error
  132.         dev-libs/libgcrypt
  133.     )
  134. "
  135. DEPEND="${RDEPEND}
  136. "
  137. RESTRICT="test"
  138.  
  139. pkg_setup() {
  140.     MY_PN=psi-plugins
  141. }
  142.  
  143. src_unpack() {
  144.     git-r3_src_unpack
  145.     unset EGIT_BRANCH EGIT_COMMIT
  146.     EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/plugins" \
  147.     EGIT_REPO_URI="${PSI_PLUGINS_URI}" \
  148.     git-r3_src_unpack
  149. }
  150.  
  151. src_configure() {
  152.     local plugins=""
  153.     local EXTRA_FLAGS="-DONLY_PLUGINS=ON"
  154.     if use ripperccplugin || use battleshipgameplugin; then
  155.         EXTRA_FLAGS="${EXTRA_FLAGS} -BUILD_DEV_PLUGINS=ON"
  156.     fi
  157.     for p in ${PSI_PLUGINS}; do
  158.         use "${p}" && plugins="${plugins};${p}"
  159.     done
  160.     local mycmakeargs=(
  161.         $(cmake-utils_use_use qt5 QT5)
  162.         $(echo -DCMAKE_INSTALL_PREFIX=/usr)
  163.         $(echo ${EXTRA_FLAGS} -DBUILD_PLUGINS=${plugins})
  164.     )
  165.     cmake-utils_src_configure
  166. }
  167.  
  168. src_compile() {
  169.     cmake-utils_src_compile
  170. }
  171.  
  172. src_install() {
  173.     #emake INSTALL_ROOT="${D}" install
  174.     cmake-utils_src_install
  175. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top