logo

overlay

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

libsoup-2.70.0.ebuild (2610B)


  1. # Copyright 1999-2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. VALA_USE_DEPEND="vapigen"
  5. inherit gnome.org meson multilib-minimal vala xdg
  6. DESCRIPTION="HTTP client/server library for GNOME"
  7. HOMEPAGE="https://wiki.gnome.org/Projects/libsoup"
  8. LICENSE="LGPL-2.1+"
  9. SLOT="2.4"
  10. IUSE="+brotli gssapi gtk-doc +introspection samba ssl test +vala"
  11. REQUIRED_USE="vala? ( introspection )"
  12. KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
  13. DEPEND="
  14. >=dev-libs/glib-2.58:2[${MULTILIB_USEDEP}]
  15. >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}]
  16. >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
  17. >=net-libs/libpsl-0.20[${MULTILIB_USEDEP}]
  18. brotli? ( app-arch/brotli:=[${MULTILIB_USEDEP}] )
  19. gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
  20. introspection? ( >=dev-libs/gobject-introspection-1.54:= )
  21. samba? ( net-fs/samba )
  22. "
  23. RDEPEND="${DEPEND}
  24. >=net-libs/glib-networking-2.38.2[ssl?,${MULTILIB_USEDEP}]
  25. "
  26. BDEPEND="
  27. dev-util/glib-utils
  28. gtk-doc? ( >=dev-util/gtk-doc-1.20
  29. app-text/docbook-xml-dtd:4.1.2 )
  30. >=sys-devel/gettext-0.19.8
  31. >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
  32. vala? ( $(vala_depend) )
  33. "
  34. # test? ( www-servers/apache[ssl,apache2_modules_auth_digest,apache2_modules_alias,apache2_modules_auth_basic,
  35. # apache2_modules_authn_file,apache2_modules_authz_host,apache2_modules_authz_user,apache2_modules_dir,
  36. # apache2_modules_mime,apache2_modules_proxy,apache2_modules_proxy_http,apache2_modules_proxy_connect]
  37. # dev-lang/php[apache2,xmlrpc]
  38. # net-misc/curl
  39. # net-libs/glib-networking[ssl])"
  40. PATCHES=(
  41. # Disable apache tests until they are usable on Gentoo, bug #326957
  42. "${FILESDIR}"/disable-apache-tests.patch
  43. )
  44. src_prepare() {
  45. use vala && vala_src_prepare
  46. xdg_src_prepare
  47. }
  48. src_configure() {
  49. # FIXME: we need addpredict to workaround bug #324779 until
  50. # root cause (bug #249496) is solved
  51. # But necessary while apache tests are disabled
  52. #addpredict /usr/share/snmp/mibs/.index
  53. multilib-minimal_src_configure
  54. }
  55. multilib_src_configure() {
  56. local emesonargs=(
  57. $(meson_feature gssapi)
  58. -Dkrb5_config="${CHOST}-krb5-config"
  59. $(meson_feature samba ntlm)
  60. -Dntlm_auth="${EPREFIX}/usr/bin/ntlm_auth"
  61. $(meson_feature brotli)
  62. -Dgnome=false
  63. -Dintrospection=$(multilib_native_usex introspection enabled disabled)
  64. -Dvapi=$(multilib_native_usex vala enabled disabled)
  65. -Dgtk_doc=$(multilib_native_usex gtk-doc true false)
  66. $(meson_use test tests)
  67. )
  68. meson_src_configure
  69. }
  70. multilib_src_compile() {
  71. meson_src_compile
  72. }
  73. multilib_src_test() {
  74. meson_src_test
  75. }
  76. multilib_src_install() {
  77. meson_src_install
  78. }