Not ure to understand you comment... Have you added support for XDG basedir spec?
Please notice that backward compatibility can be preserved by continue to use $HOME/.gnupg if it exits but using/creating XDG dirs when it is not exit.