logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

wpewebkit-2.32.1.ebuild (2937B)


  1. # Copyright 1999-2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. CMAKE_MAKEFILE_GENERATOR="ninja"
  5. PYTHON_COMPAT=( python3_{7..9} )
  6. USE_RUBY="ruby24 ruby25 ruby26 ruby27 ruby30"
  7. inherit cmake python-any-r1 ruby-single
  8. DESCRIPTION="WebKit port optimized for embedded devices"
  9. HOMEPAGE="https://wpewebkit.org/"
  10. LICENSE="LGPL-2+ BSD"
  11. SRC_URI="https://wpewebkit.org/releases/${P}.tar.xz"
  12. SLOT="1.0" # WPE_API_VERSION
  13. KEYWORDS="~amd64"
  14. IUSE="accessibility doc examples experimental jpeg2k qt +gstreamer sandbox systemd +webdriver +webcrypto X"
  15. RDEPEND="
  16. >=x11-libs/cairo-1.16.0:=[X?]
  17. >=media-libs/fontconfig-2.13.0:=
  18. >=media-libs/freetype-2.9.0:=
  19. >=dev-libs/glib-2.44.0:=
  20. >=media-libs/harfbuzz-1.4.2:=[icu(+)]
  21. >=dev-libs/icu-60.2:=
  22. virtual/jpeg:0=
  23. >=media-libs/libepoxy-1.4.0:=
  24. >=dev-libs/libgcrypt-1.7.0:=
  25. >=net-libs/libsoup-2.54.0:=
  26. >=dev-libs/libxml2-2.8.0:=
  27. media-libs/libpng:=
  28. dev-db/sqlite:3=
  29. media-libs/libwebp:=
  30. gui-libs/libwpe:=
  31. sys-libs/zlib:=
  32. >=dev-libs/libxslt-1.1.7
  33. >=media-libs/woff2-1.0.2
  34. jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= )
  35. webcrypto? (
  36. dev-libs/libtasn1:=
  37. >=dev-libs/libgcrypt-1.7.0:=
  38. )
  39. qt? (
  40. dev-qt/qtcore:5=
  41. dev-qt/qtquickcontrols:5=
  42. dev-qt/qtgui:5=
  43. dev-qt/qttest:5=
  44. >=gui-libs/wpebackend-fdo-1.3.0:=
  45. )
  46. gstreamer? (
  47. >=media-libs/gstreamer-1.16:1.0
  48. >=media-libs/gst-plugins-base-1.16:1.0[egl]
  49. >=media-plugins/gst-plugins-opus-1.16:1.0
  50. >=media-libs/gst-plugins-bad-1.16:1.0
  51. )
  52. accessibility? (
  53. >=dev-libs/atk-2.16.0:=
  54. app-accessibility/at-spi2-atk:=
  55. )
  56. sandbox? ( sys-apps/bubblewrap )
  57. systemd? ( sys-apps/systemd:= )
  58. "
  59. DEPEND="
  60. ${RDEPEND}
  61. ${PYTHON_DEPS}
  62. ${RUBY_DEPS}
  63. >=dev-lang/perl-5.10
  64. virtual/perl-JSON-PP
  65. doc? ( >=dev-util/gtk-doc-1.10 )
  66. "
  67. src_configure() {
  68. # Ruby situation is a bit complicated. See bug 513888
  69. local rubyimpl
  70. local ruby_interpreter=""
  71. for rubyimpl in ${USE_RUBY}; do
  72. if has_version -b "virtual/rubygems[ruby_targets_${rubyimpl}]"; then
  73. ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})"
  74. fi
  75. done
  76. # This will rarely occur. Only a couple of corner cases could lead us to
  77. # that failure. See bug 513888
  78. [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found"
  79. local mycmakeargs=(
  80. "-DPORT=WPE"
  81. -DENABLE_ACCESSIBILITY=$(usex accessibility)
  82. -DENABLE_BUBBLEWRAP_SANDBOX=$(usex sandbox)
  83. -DUSE_WOFF2=ON
  84. -DSHOULD_INSTALL_JS_SHELL=ON
  85. -DENABLE_ENCRYPTED_MEDIA=OFF
  86. -DENABLE_EXPERIMENTAL_FEATURES=$(usex experimental)
  87. -DENABLE_GTKDOC=$(usex doc)
  88. -DUSE_OPENJPEG=$(usex jpeg2k)
  89. -DENABLE_WPE_QT_API=$(usex qt)
  90. -DENABLE_MINIBROWSER=$(usex examples)
  91. -DENABLE_VIDEO=$(usex gstreamer)
  92. -DENABLE_WEB_AUDIO=$(usex gstreamer)
  93. -DENABLE_WEBDRIVER=$(usex webdriver)
  94. -DENABLE_WEB_CRYPTO=$(usex webcrypto)
  95. -DENABLE_XSLT=ON
  96. -DUSE_SYSTEMD=$(usex systemd) # Whether to enable journald logging
  97. ${ruby_interpreter}
  98. )
  99. cmake_src_configure
  100. }