--- app-text/aspell/aspell-0.60.5.ebuild +++ app-text/aspell/aspell-0.60.5.ebuild @@ -17,6 +17,24 @@ KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="gpm nls" +# Build PDEPEND from list of language codes provided in the tree. +# The PDEPEND string is static - this code just makes it easier to maintain. +def="app-dicts/aspell-en" +for l in \ + "af" "be" "bg" "br" "ca" "cs" "cy" "da" "de" "el" \ + "en" "eo" "es" "et" "fi" "fo" "fr" "ga" "gl" "he" \ + "hr" "is" "it" "nl" "no" "pl" "pt" "ro" "ru" "sk" \ + "sl" "sr" "sv" "uk" "vi"; do + dep="linguas_${l}? ( app-dicts/aspell-${l} )" + [[ -z ${PDEPEND} ]] && + PDEPEND="${dep}" || + PDEPEND="${PDEPEND} +${dep}" + def="!linguas_${l}? ( ${def} )" +done +PDEPEND="${PDEPEND} +${def}" + RDEPEND=">=sys-libs/ncurses-5.2 gpm? ( sys-libs/gpm ) nls? ( virtual/libintl )"