Diff bino-1.6.8 with a bino-2.0

/usr/portage/media-video/bino/bino-2.0.ebuild 2023-10-09 14:52:31.816368409 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools flag-o-matic qmake-utils xdg
6
inherit cmake xdg
7 7

  
8 8
DESCRIPTION="Stereoscopic and multi-display media player"
9 9
HOMEPAGE="https://bino3d.org/"
10
SRC_URI="https://bino3d.org/releases/${P}.tar.xz"
10
SRC_URI="https://bino3d.org/releases/${P}.tar.gz"
11 11

  
12 12
LICENSE="GPL-3"
13 13
SLOT="0"
14
KEYWORDS="amd64 x86"
15
IUSE="debug doc lirc video_cards_nvidia"
14
KEYWORDS="amd64"
16 15

  
17
# <ffmpeg-5 for bug #907682 and bug #834400. >=bino-2 uses Qt 6 and drops ffmpeg.
18 16
RDEPEND="
19
	dev-qt/qtcore:5
20
	dev-qt/qtgui:5
21
	dev-qt/qtopengl:5
22
	dev-qt/qtwidgets:5
23
	>=media-libs/glew-1.6.0:0=
24
	>=media-libs/libass-0.9.9
25
	>=media-libs/openal-1.15.1
26
	virtual/libintl
27
	<media-video/ffmpeg-5:=
28
	lirc? ( app-misc/lirc )
29
	video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )"
17
	dev-qt/qtbase:6[gui,opengl,widgets]
18
	dev-qt/qtmultimedia:6
19
	dev-qt/qtsvg:6
20
"
30 21
DEPEND="${RDEPEND}"
31
BDEPEND="sys-devel/gettext
32
	virtual/pkgconfig"
22
BDEPEND="
23
	dev-qt/qttools:6[linguist]
24
	virtual/pandoc
25
"
26

  
27
src_compile() {
28
	local mycmakeargs=(
29
		# Unpackaged
30
		-DCMAKE_DISABLE_FIND_PACKAGE_QVR=ON
31
	)
33 32

  
34
PATCHES=(
35
	"${FILESDIR}"/${PN}-1.6.8-time-include.patch
36
	"${FILESDIR}"/${PN}-1.6.8-respect-AR.patch
37
)
38

  
39
src_prepare() {
40
	default
41

  
42
	# Needed for AR patch
43
	eautoreconf
44
}
45

  
46
src_configure() {
47
	if use video_cards_nvidia; then
48
		append-cppflags "-I${ESYSROOT}/usr/include/NVCtrl"
49
		append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/opengl/nvidia/lib -L${ESYSROOT}/usr/$(get_libdir)"
50
		append-libs "Xext"
51
	fi
52

  
53
	if use lirc; then
54
		append-cppflags "-I${ESYSROOT}/usr/include/lirc"
55
		append-libs "lirc_client"
56
	fi
57

  
58
	# Fix a compilation error because of a multiple definitions error in glew
59
	append-ldflags "-zmuldefs"
60

  
61
	export MOC="$(qt5_get_bindir)"/moc
62
	export RCC="$(qt5_get_bindir)"/rcc
63

  
64
	econf \
65
		$(use_with video_cards_nvidia xnvctrl) \
66
		$(use_with lirc) \
67
		$(use_enable debug) \
68
		--without-equalizer \
69
		--with-qt-version=5
70
}
71

  
72
src_install() {
73
	default
74

  
75
	if ! use doc; then
76
		rm -rf "${ED}"/usr/share/doc/${PF}/html || die
77
	fi
33
	cmake_src_configure
78 34
}
Thank you!