Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 481596
Collapse All | Expand All

(-)/usr/portage/www-plugins/pipelight/pipelight-9999.ebuild (-3 / +5 lines)
Lines 37-45 Link Here
37
	# does not support DESTDIR, so we use sed to adjust it before running it to
37
	# does not support DESTDIR, so we use sed to adjust it before running it to
38
	# properly duplicate the plugins.
38
	# properly duplicate the plugins.
39
	# XXX: Patch the script to support DESTDIR and send the patch upstream.
39
	# XXX: Patch the script to support DESTDIR and send the patch upstream.
40
	sed -e "s:^\(PIPELIGHT_LIBRARY_PATH=\"\)\\(.*\):\1${ED}usr/$(get_libdir)/${PN}\":" \
40
	cp "${D}/usr/bin/pipelight-plugin" "${T}"
41
		"${DESTDIR}/usr/bin/pipelight-plugin" > "${T}/pipelight-plugin" \
41
	sed -i -e "s:^\(PIPELIGHT_SHARE_PATH=\"\)/\\(.*\):\1${ED}\2:" \
42
		|| die "Generating temporary pipelight-plugin failed"
42
		-e "s:^\(PIPELIGHT_LIBRARY_PATH=\"\)/\\(.*\):\1${ED}\2:" \
43
		-e "s:^\(PLUGIN_PATH=\"\)/\\(.*\):\1${ED}\2:" \
44
		"${T}/pipelight-plugin" || die "Generating temporary pipelight-plugin failed"
43
	chmod u+x "${T}/pipelight-plugin" \
45
	chmod u+x "${T}/pipelight-plugin" \
44
		|| die "Setting permissions on temporary pipelight-plugin failed"
46
		|| die "Setting permissions on temporary pipelight-plugin failed"
45
47

Return to bug 481596