Diff libad9361-iio-0.2-r1 with a libad9361-iio-0.3

/usr/portage/net-libs/libad9361-iio/libad9361-iio-0.3.ebuild 2023-10-09 14:52:34.476368476 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
14 14
	SRC_URI="https://github.com/analogdevicesinc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 15
	KEYWORDS="~amd64 ~arm ~riscv ~x86"
16 16
fi
17
IUSE="doc"
17 18

  
18 19
LICENSE="LGPL-2.1"
19 20
SLOT="0/${PV}"
20 21

  
21 22
RDEPEND="net-libs/libiio:="
22 23
DEPEND="${RDEPEND}"
24
BDEPEND="doc? ( app-doc/doxygen )"
23 25

  
24 26
PATCHES=(
25 27
	"${FILESDIR}"/${PN}-0.2-fix-lld-tests.patch
26 28
	"${FILESDIR}"/${PN}-0.2-libdir-pkgconfig.patch
27
	"${FILESDIR}"/${PN}-0.2-cmake-gnuinstalldirs.patch
29
	"${FILESDIR}"/${PN}-0.3-cmake-gnuinstalldirs.patch
28 30
)
31

  
32
src_configure() {
33
	local mycmakeargs=(
34
		-DWITH_DOC="$(usex doc)"
35
		-DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${P}"
36
	)
37
	cmake_src_configure
38
}
39

  
40
src_install() {
41
	cmake_src_install
42
	if use doc; then
43
		mv "${ED}/usr/share/doc/ad93610-doc" "${ED}/usr/share/doc/${P}" || die
44
	fi
45
}
Thank you!