pastebin

Paste Search Dynamic
Recent pastes
QtWebEngine
  1. # Copyright 1999-2019 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3.  
  4. EAPI=7
  5. PYTHON_COMPAT=( python2_7 )
  6. inherit multiprocessing pax-utils python-any-r1 qt5-build
  7.  
  8. DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
  9.  
  10. if [[ ${QT5_BUILD_TYPE} == release ]]; then
  11.         KEYWORDS="~amd64 ~arm ~arm64 ~x86"
  12. fi
  13.  
  14. IUSE="alsa bindist designer jumbo-build pax_kernel pulseaudio
  15.         +system-ffmpeg +system-icu widgets"
  16. REQUIRED_USE="designer? ( widgets )"
  17.  
  18. RDEPEND="
  19.         app-arch/snappy:=
  20.         dev-libs/glib:2
  21.         dev-libs/nspr
  22.         dev-libs/nss
  23.         ~dev-qt/qtcore-${PV}
  24.         ~dev-qt/qtdeclarative-${PV}
  25.         ~dev-qt/qtgui-${PV}
  26.         ~dev-qt/qtnetwork-${PV}
  27.         ~dev-qt/qtpositioning-${PV}
  28.         ~dev-qt/qtprintsupport-${PV}
  29.         ~dev-qt/qtwebchannel-${PV}[qml]
  30.         dev-libs/expat
  31.         dev-libs/libevent:=
  32.         dev-libs/libxml2[icu]
  33.         dev-libs/libxslt
  34.         dev-libs/re2:=
  35.         media-libs/fontconfig
  36.         media-libs/freetype
  37.         media-libs/harfbuzz:=
  38.         media-libs/lcms:2
  39.         media-libs/libjpeg-turbo:=
  40.         media-libs/libpng:0=
  41.         >=media-libs/libvpx-1.5:=[svc]
  42.         media-libs/libwebp:=
  43.         media-libs/mesa[egl]
  44.         media-libs/opus
  45.         sys-apps/dbus
  46.         sys-apps/pciutils
  47.         sys-libs/zlib[minizip]
  48.         virtual/libudev
  49.         x11-libs/libdrm
  50.         x11-libs/libX11
  51.         x11-libs/libXcomposite
  52.         x11-libs/libXcursor
  53.         x11-libs/libXdamage
  54.         x11-libs/libXext
  55.         x11-libs/libXfixes
  56.         x11-libs/libXi
  57.         x11-libs/libXrandr
  58.         x11-libs/libXrender
  59.         x11-libs/libXScrnSaver
  60.         x11-libs/libXtst
  61.         alsa? ( media-libs/alsa-lib )
  62.         designer? ( ~dev-qt/designer-${PV} )
  63.         pulseaudio? ( media-sound/pulseaudio:= )
  64.         system-ffmpeg? ( media-video/ffmpeg:0= )
  65.         system-icu? ( >=dev-libs/icu-60.2:= )
  66.         widgets? (
  67.                 ~dev-qt/qtdeclarative-${PV}[widgets]
  68.                 ~dev-qt/qtwidgets-${PV}
  69.         )
  70. "
  71. DEPEND="${RDEPEND}
  72.         ${PYTHON_DEPS}
  73.         >=app-arch/gzip-1.7
  74.         dev-util/gperf
  75.         dev-util/ninja
  76.         dev-util/re2c
  77.         sys-devel/bison
  78.         pax_kernel? ( sys-apps/elfix )
  79. "
  80.  
  81. PATCHES+=(
  82.         "${FILESDIR}/${PN}-5.12.0-nouveau-disable-gpu.patch" # bug 609752
  83. )
  84.  
  85. src_prepare() {
  86.         use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-5.11.2-paxmark-mksnapshot.patch" )
  87.  
  88.         if ! use jumbo-build; then
  89.                 sed -i -e 's|use_jumbo_build=true|use_jumbo_build=false|' \
  90.                         src/core/config/common.pri || die
  91.         fi
  92.  
  93.         # bug 620444 - ensure local headers are used
  94.         find "${S}" -type f -name "*.pr[fio]" | xargs sed -i -e 's|INCLUDEPATH += |&$$QTWEBENGINE_ROOT/include |' || die
  95.  
  96.         qt_use_disable_config alsa webengine-alsa src/core/config/linux.pri
  97.         qt_use_disable_config pulseaudio webengine-pulseaudio src/core/config/linux.pri
  98.  
  99.         qt_use_disable_mod designer webenginewidgets src/plugins/plugins.pro
  100.  
  101.         qt_use_disable_mod widgets widgets src/src.pro
  102.  
  103.         qt5-build_src_prepare
  104. }
  105.  
  106. src_configure() {
  107.         export NINJA_PATH=/usr/bin/ninja
  108.         export NINJAFLAGS="${NINJAFLAGS:--j$(makeopts_jobs) -l$(makeopts_loadavg "${MAKEOPTS}" 0) -v}"
  109.  
  110.         local myqmakeargs=(
  111.                 --
  112.                 -opus
  113.                 -printing-and-pdf
  114.                 -webp
  115.                 $(usex alsa '-alsa' '')
  116.                 $(usex bindist '' '-proprietary-codecs')
  117.                 $(usex pulseaudio '-pulseaudio' '')
  118.                 $(usex system-ffmpeg '-ffmpeg' '')
  119.                 $(usex system-icu '-webengine-icu' '')
  120.         )
  121.         qt5-build_src_configure
  122. }
  123.  
  124. src_install() {
  125.         qt5-build_src_install
  126.  
  127.         # bug 601472
  128.         if [[ ! -f ${D}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
  129.                 die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
  130.         fi
  131.  
  132.         pax-mark m "${D}${QT5_LIBEXECDIR}"/QtWebEngineProcess
  133. }
Parsed in 0.045 seconds