Update gstreamer-1.18.4.ebuild
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e5526b3ffa
						
					
				
				
					commit
					52e9a07714
				
			@@ -35,7 +35,8 @@ DEPEND="${RDEPEND}
 | 
				
			|||||||
"
 | 
					"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
src_configure() {
 | 
					src_configure() {
 | 
				
			||||||
	multilib-minimal_src_configure
 | 
						vala_src_prepare
 | 
				
			||||||
 | 
						xdg_src_prepare
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
multilib_src_configure() {
 | 
					multilib_src_configure() {
 | 
				
			||||||
@@ -44,7 +45,7 @@ multilib_src_configure() {
 | 
				
			|||||||
	# helpers from there.
 | 
						# helpers from there.
 | 
				
			||||||
	# Disable static archives and examples to speed up build time
 | 
						# Disable static archives and examples to speed up build time
 | 
				
			||||||
	# Disable debug, as it only affects -g passing (debugging symbols), this must done through make.conf in gentoo
 | 
						# Disable debug, as it only affects -g passing (debugging symbols), this must done through make.conf in gentoo
 | 
				
			||||||
	local myconf=(
 | 
						local emesonargs=(
 | 
				
			||||||
		--libexecdir="${EPREFIX}"/usr/$(get_libdir)
 | 
							--libexecdir="${EPREFIX}"/usr/$(get_libdir)
 | 
				
			||||||
		--disable-benchmarks
 | 
							--disable-benchmarks
 | 
				
			||||||
		--disable-debug
 | 
							--disable-debug
 | 
				
			||||||
@@ -62,39 +63,19 @@ multilib_src_configure() {
 | 
				
			|||||||
		--with-package-origin="https://packages.gentoo.org/package/media-libs/gstreamer"
 | 
							--with-package-origin="https://packages.gentoo.org/package/media-libs/gstreamer"
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	if use caps ; then
 | 
						meson_src_configure
 | 
				
			||||||
		myconf+=( --with-ptp-helper-permissions=capabilities )
 | 
					 | 
				
			||||||
	else
 | 
					 | 
				
			||||||
		myconf+=(
 | 
					 | 
				
			||||||
			--with-ptp-helper-permissions=setuid-root
 | 
					 | 
				
			||||||
			--with-ptp-helper-setuid-user=nobody
 | 
					 | 
				
			||||||
			--with-ptp-helper-setuid-group=nobody
 | 
					 | 
				
			||||||
		)
 | 
					 | 
				
			||||||
	fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	ECONF_SOURCE="${S}" econf "${myconf[@]}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if multilib_is_native_abi; then
 | 
					 | 
				
			||||||
		local x
 | 
					 | 
				
			||||||
		for x in gst libs plugins; do
 | 
					 | 
				
			||||||
			ln -s "${S}"/docs/${x}/html docs/${x}/html || die
 | 
					 | 
				
			||||||
		done
 | 
					 | 
				
			||||||
	fi
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
multilib_src_install() {
 | 
					src_test() {
 | 
				
			||||||
	# can't do "default", we want to install docs in multilib_src_install_all
 | 
						virtx meson_src_test
 | 
				
			||||||
	emake DESTDIR="${D}" install
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	# Needed for orc-using gst plugins on hardened/PaX systems, bug #421579
 | 
					 | 
				
			||||||
	use orc && pax-mark -m "${ED}usr/$(get_libdir)/gstreamer-${SLOT}/gst-plugin-scanner"
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
multilib_src_install_all() {
 | 
					pkg_postinst() {
 | 
				
			||||||
	DOCS="AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE"
 | 
						xdg_pkg_postinst
 | 
				
			||||||
	einstalldocs
 | 
						gnome2_schemas_update
 | 
				
			||||||
	find "${ED}" -name '*.la' -delete || die
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# Needed for orc-using gst plugins on hardened/PaX systems, bug #421579
 | 
					pkg_postrm() {
 | 
				
			||||||
	use orc && pax-mark -m "${ED}usr/bin/gst-launch-${SLOT}"
 | 
						xdg_pkg_postrm
 | 
				
			||||||
 | 
						gnome2_schemas_update
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user