logo

overlay

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

visurf-9999.ebuild (2823B)


  1. # Copyright 1999-2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=7
  4. inherit netsurf desktop git-r3
  5. DESCRIPTION="power-user frontend for netsurf"
  6. HOMEPAGE="https://git.sr.ht/~sircmpwn/visurf"
  7. EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/visurf"
  8. LICENSE="GPL-2 MIT"
  9. SLOT="0"
  10. KEYWORDS=""
  11. IUSE="bmp duktape truetype +gif javascript +jpeg mng
  12. +png +psl rosprite +svg +svgtiny +webp"
  13. REQUIRED_USE="duktape? ( javascript )"
  14. RDEPEND="
  15. >=dev-libs/libcss-9999
  16. >=net-libs/libdom-0.3
  17. >=net-libs/libhubbub-0.3
  18. >=dev-libs/libnsutils-0.1.0
  19. dev-libs/libxml2:2
  20. net-misc/curl
  21. dev-libs/wayland
  22. x11-libs/cairo
  23. x11-libs/pango
  24. x11-libs/libxkbcommon
  25. dev-libs/libutf8proc:=
  26. bmp? ( >=media-libs/libnsbmp-0.1 )
  27. gif? ( >=media-libs/libnsgif-0.1 )
  28. javascript? (
  29. >=dev-libs/nsgenbind-0.7
  30. duktape? ( dev-lang/duktape:= )
  31. !duktape? ( dev-lang/spidermonkey:0= )
  32. )
  33. jpeg? ( >=virtual/jpeg-0-r2:0 )
  34. mng? ( >=media-libs/libmng-1.0.10-r2 )
  35. png? ( >=media-libs/libpng-1.2.51:0 )
  36. psl? ( media-libs/libnspsl )
  37. rosprite? ( >=media-libs/librosprite-0.1.2-r1 )
  38. svg? ( svgtiny? ( >=media-libs/libsvgtiny-0.1.3-r1 )
  39. !svgtiny? ( gnome-base/librsvg:2 ) )
  40. webp? ( >=media-libs/libwebp-0.3.0 )
  41. "
  42. DEPEND="${RDEPEND}"
  43. BDEPEND="
  44. duktape? ( app-editors/vim-core )
  45. dev-libs/check
  46. dev-perl/HTML-Parser
  47. >=dev-util/netsurf-buildsystem-1.7-r1
  48. virtual/pkgconfig
  49. dev-libs/wayland-protocols
  50. "
  51. PATCHES=(
  52. "${FILESDIR}/netsurf-3.10-julia-libutf8proc-header-location.patch"
  53. )
  54. src_prepare() {
  55. default
  56. # do not delete gtk frontend, virsurf/res uses gtk/res
  57. rm -r frontends/{amiga,atari,beos,monkey,riscos,windows,framebuffer} || die
  58. mkdir -p build/Linux-visurf || die
  59. }
  60. _emake() {
  61. netsurf_define_makeconf
  62. local netsurf_makeconf=(
  63. "${NETSURF_MAKECONF[@]}"
  64. COMPONENT_TYPE=binary
  65. NETSURF_USE_BMP=$(usex bmp YES NO)
  66. NETSURF_USE_GIF=$(usex gif YES NO)
  67. NETSURF_USE_JPEG=$(usex jpeg YES NO)
  68. NETSURF_USE_PNG=$(usex png YES NO)
  69. NETSURF_USE_NSPSL=$(usex psl YES NO)
  70. NETSURF_USE_MNG=$(usex mng YES NO)
  71. NETSURF_USE_WEBP=$(usex webp YES NO)
  72. NETSURF_USE_MOZJS=$(usex javascript $(usex duktape NO YES) NO)
  73. NETSURF_USE_JS=NO
  74. NETSURF_USE_DUKTAPE=$(usex javascript $(usex duktape YES NO) NO)
  75. NETSURF_USE_NSSVG=$(usex svg $(usex svgtiny YES NO) NO)
  76. NETSURF_USE_RSVG=$(usex svg $(usex svgtiny NO YES) NO)
  77. NETSURF_USE_ROSPRITE=$(usex rosprite YES NO)
  78. PKG_CONFIG=$(tc-getPKG_CONFIG)
  79. NETSURF_FB_FONTLIB=$(usex truetype freetype internal)
  80. NETSURF_FB_FONTPATH="${EPREFIX}/usr/share/fonts/dejavu"
  81. NETSURF_USE_VIDEO=NO
  82. TARGET=visurf
  83. )
  84. emake "${netsurf_makeconf[@]}" $@
  85. }
  86. src_compile() {
  87. _emake
  88. }
  89. src_test() {
  90. _emake test
  91. }
  92. src_install() {
  93. _emake DESTDIR="${D}" install
  94. make_desktop_entry "${EPREFIX}"/usr/bin/netsurf-vi \
  95. NetSurf-vi \
  96. netsurf \
  97. "Network;WebBrowser"
  98. }