We did something like this in Fedora, if you are interested in considering a similar implementation. We decided to make pure Erlang packages be what we call "noarch" packages, and to move those into /usr/share/erlang/lib. Let me know if this interests you and I can point you at patches we have for it.
signature.asc
Description: This is a digitally signed message part

