java-utils-2.eclass: Rework wltjr's new java-pkg_gen-cp
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 15 Oct 2016 20:41:49 +0000 (21:41 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Mon, 17 Oct 2016 15:15:22 +0000 (16:15 +0100)
commitb1698dfc057866498de619b23263fa769b482f66
tree207243ac78c57134ec4639c78aebaf19ecfb4a1e
parent823bcd0548c5613de190b19e98b84bc3ab4d26db
java-utils-2.eclass: Rework wltjr's new java-pkg_gen-cp

* Use an accurate regexp rather than naive string manipulation.
* Join the entries with , for a single call to java-config.
* Don't export the given variable as we haven't previously.
* die if the atom is invalid, particularly if the SLOT is missing.
* Avoid adding duplicates because this may get called more than once.
eclass/java-utils-2.eclass