Diff rtmpdump-2.4_p20161210-r3 with a rtmpdump-2.4_p20190330

/usr/portage/media-video/rtmpdump/rtmpdump-2.4_p20190330.ebuild 2023-10-09 14:52:31.832368409 +0300
5 5

  
6 6
inherit multilib toolchain-funcs multilib-minimal flag-o-matic
7 7

  
8
DESCRIPTION="RTMP client intended to stream audio or video flash content"
8
DESCRIPTION="RTMP client, librtmp library intended to stream audio or video flash content"
9 9
HOMEPAGE="https://rtmpdump.mplayerhq.hu/"
10 10

  
11 11
# the library is LGPL-2.1, the command is GPL-2
12
LICENSE="GPL-2 LGPL-2.1"
12
LICENSE="LGPL-2.1 tools? ( GPL-2 )"
13 13
SLOT="0"
14
IUSE="gnutls ssl static-libs"
14
IUSE="gnutls ssl static-libs +tools"
15 15

  
16 16
DEPEND="ssl? (
17 17
		gnutls? (
18 18
			>=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP},nettle(+)]
19 19
			dev-libs/nettle:0=[${MULTILIB_USEDEP}]
20 20
		)
21
		!gnutls? (
22
			dev-libs/openssl:0=[${MULTILIB_USEDEP}]
23
		)
21
		!gnutls? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
24 22
		>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
25 23
	)"
26 24
RDEPEND="${DEPEND}"
......
35 33
	EGIT_REPO_URI="https://git.ffmpeg.org/rtmpdump.git"
36 34
	inherit git-r3
37 35
else
38
	KEYWORDS="amd64 arm arm64 hppa ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux"
39
	SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
36
	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
37
	SRC_URI="http://git.ffmpeg.org/gitweb/rtmpdump.git/snapshot/c5f04a58fc2aeea6296ca7c44ee4734c18401aa3.tar.gz -> ${P}.tar.gz"
38
	S="${WORKDIR}/${PN}-c5f04a5"
40 39
fi
41 40

  
42 41
pkg_setup() {
43
	if ! use ssl && use gnutls ; then
44
		ewarn "USE='gnutls' is ignored without USE='ssl'."
45
		ewarn "Please review the local USE flags for this package."
46
	fi
47
}
48

  
49
src_unpack() {
50
	if [[ ${PV} == *9999 ]] ; then
51
		git-r3_src_unpack
52
	else
53
		mkdir -p "${S}" || die "Can't create source directory"
54
		cd "${S}" || die
55
		unpack ${A}
42
	if ! use ssl; then
43
		if use gnutls; then
44
			ewarn "USE='gnutls' is ignored without USE='ssl'."
45
			ewarn "Please review the local USE flags for this package."
46
		fi
56 47
	fi
57 48
}
58 49

  
......
79 70
			crypto="OPENSSL"
80 71
		fi
81 72
	fi
82
	#fix multilib-script support. Bug #327449
83
	sed -i "/^libdir/s:lib$:$(get_libdir):" librtmp/Makefile || die
84
	if ! multilib_is_native_abi; then
73
	if ! multilib_is_native_abi || ! use tools ; then
85 74
		cd librtmp || die
86 75
	fi
87 76
	emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
......
90 79

  
91 80
multilib_src_install() {
92 81
	mkdir -p "${ED}"/usr/$(get_libdir) || die
93
	if multilib_is_native_abi; then
82
	if multilib_is_native_abi && use tools ; then
94 83
		dodoc README ChangeLog rtmpdump.1.html rtmpgw.8.html
95 84
	else
96 85
		cd librtmp || die
97 86
	fi
98 87
	emake DESTDIR="${D}" prefix="${EPREFIX}/usr" mandir='$(prefix)/share/man' \
99
		CRYPTO="${crypto}" install
88
		CRYPTO="${crypto}" libdir="${EPREFIX}/usr/$(get_libdir)" install
100 89
	find "${D}" -name '*.la' -delete || die
101 90
	use static-libs || find "${D}" -name '*.a' -delete || die
102 91
}
Thank you!