General relativity and deformed gauge theories