SHARE
TWEET

Untitled

a guest Mar 13th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3.  
  4. EAPI=6
  5.  
  6. case $PV in *9999*) VCS_ECLASS="git-r3" ;; *) VCS_ECLASS="" ;; esac
  7.  
  8. inherit gnome2-utils xdg cmake-utils ${VCS_ECLASS}
  9.  
  10. if [ -n "${VCS_ECLASS}" ]; then
  11.     KEYWORDS=""
  12.     EGIT_REPO_URI="https://github.com/qomp/qomp.git"
  13.     EGIT_MIN_CLONE_TYPE="single"
  14. else
  15.     S="${WORKDIR}/${PN}-${P}"
  16.     KEYWORDS="amd64 ~ia64 x86"
  17.     SRC_URI="https://sourceforge.net/projects/qomp/files/${PV}/${PN}_${PV}_src.tar.gz"
  18. fi
  19.  
  20. DESCRIPTION="Quick(Qt) Online Music Player - one player for different online music hostings"
  21. HOMEPAGE="http://sourceforge.net/projects/qomp/"
  22. SLOT="0"
  23. LICENSE="GPL-3"
  24.  
  25. QOMP_PLUGINS="
  26.     urlplugin
  27.     prostopleerplugin
  28.     myzukaruplugin
  29.     notificationsplugin
  30.     yandexmusicplugin
  31.     lastfmplugin
  32.     tunetofileplugin
  33.     mprisplugin
  34. "
  35. IUSE="${QOMP_PLUGINS}"
  36.  
  37. DEPEND="
  38.     dev-qt/qtcore:5
  39.     dev-qt/qtgui:5
  40.     dev-qt/qtwidgets:5
  41.     dev-qt/qtmultimedia:5[gstreamer]
  42.     dev-qt/qtnetwork:5[ssl]
  43.     dev-qt/qtdbus:5
  44.     dev-qt/qtxml:5
  45.     dev-qt/qtx11extras:5
  46.     dev-libs/openssl:0
  47.     media-libs/taglib
  48.     >=media-libs/libcue-1.4.0
  49. "
  50.  
  51. RDEPEND="
  52.     ${DEPEND}
  53.     dev-qt/qtopengl:5
  54.     media-plugins/gst-plugins-libav:1.0
  55.     media-plugins/gst-plugins-soup:1.0
  56. "
  57.  
  58. pkg_setup() {
  59.     local plugins="filesystemplugin"
  60.     for p in ${QOMP_PLUGINS}; do
  61.         use "${p}" && plugins="${plugins};${p}"
  62.     done
  63.     MYCMAKEARGS="-DBUILD_PLUGINS=${plugins}"
  64. }
  65.  
  66. pkg_postinst() {
  67.     gnome2_icon_cache_update
  68.     xdg_pkg_postinst
  69. }
  70.  
  71. pkg_postrm() {
  72.     gnome2_icon_cache_update
  73.     xdg_pkg_postrm
  74. }
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