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

(-)/usr/portage/eclass/mozextension.eclass (-2 / +8 lines)
Lines 47-54 Link Here
47
47
48
	x="${1}"
48
	x="${1}"
49
	cd ${x}
49
	cd ${x}
50
	# determine id for extension
50
	# Determine install.rdf type & determine id for extension
51
	emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) || die "failed to determine extension id"
51
	if grep -e 'xmlns:NC' ${x}/install.rdf; then
52
		emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) \
53
		|| die "failed to determine extension id"
54
	else
55
		emid=$(tr -d "\n" < ${x}/install.rdf | sed -ne 's|<em:targetApplication>.*</em:targetApplication>||g; s|.*<em:id>\(.*\)</em:id>.*|\1|;p;q') \
56
		|| die "failed to determine extension id"
57
	fi
52
	insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid}
58
	insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid}
53
	doins -r "${x}"/* || die "failed to copy extension"
59
	doins -r "${x}"/* || die "failed to copy extension"
54
}
60
}

Return to bug 183492