diff options
author | Martin Väth <martin@mvath.de> | 2022-01-12 05:58:03 +0100 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2022-01-12 05:58:03 +0100 |
commit | e47a935a5a4b95f7824526ffba78308d9f4369fd (patch) | |
tree | 9d9ca63a02e6279ef361730e6e22bb5fa1459128 | |
parent | acct-{group,user} for flexlm trackballs noip-updater schedule (diff) | |
download | mv-e47a935a5a4b95f7824526ffba78308d9f4369fd.tar.gz mv-e47a935a5a4b95f7824526ffba78308d9f4369fd.tar.bz2 mv-e47a935a5a4b95f7824526ffba78308d9f4369fd.zip |
app-dicts/startdict-*: Bump to EAPI=8
Signed-off-by: Martin Väth <martin@mvath.de>
19 files changed, 195 insertions, 18 deletions
diff --git a/app-dicts/stardict-dictd-BritannicaConcise/stardict-dictd-BritannicaConcise-2.4.2.ebuild b/app-dicts/stardict-dictd-BritannicaConcise/stardict-dictd-BritannicaConcise-2.4.2.ebuild index db31babd..54ac0585 100644 --- a/app-dicts/stardict-dictd-BritannicaConcise/stardict-dictd-BritannicaConcise-2.4.2.ebuild +++ b/app-dicts/stardict-dictd-BritannicaConcise/stardict-dictd-BritannicaConcise-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" DICT_PREFIX="" inherit stardict diff --git a/app-dicts/stardict-dictd-BritannicaConcise/stardict-dictd-BritannicaConcise-2.4.2.ebuilde b/app-dicts/stardict-dictd-BritannicaConcise/stardict-dictd-BritannicaConcise-2.4.2.ebuilde new file mode 100644 index 00000000..1a0dc8e7 --- /dev/null +++ b/app-dicts/stardict-dictd-BritannicaConcise/stardict-dictd-BritannicaConcise-2.4.2.ebuilde @@ -0,0 +1,11 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +DICT_PREFIX="" +inherit stardict +DESCRIPTION="Stardict Dictionary for Dictd.org's The Britannica Concise Encyclopedia" +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-dictd-cced/stardict-dictd-cced-2.4.2.ebuild b/app-dicts/stardict-dictd-cced/stardict-dictd-cced-2.4.2.ebuild index 75455030..6e835d05 100644 --- a/app-dicts/stardict-dictd-cced/stardict-dictd-cced-2.4.2.ebuild +++ b/app-dicts/stardict-dictd-cced/stardict-dictd-cced-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" DICT_PREFIX="" inherit stardict diff --git a/app-dicts/stardict-dictd-cced/stardict-dictd-cced-2.4.2.ebuilde b/app-dicts/stardict-dictd-cced/stardict-dictd-cced-2.4.2.ebuilde new file mode 100644 index 00000000..cbee1d9d --- /dev/null +++ b/app-dicts/stardict-dictd-cced/stardict-dictd-cced-2.4.2.ebuilde @@ -0,0 +1,12 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +DICT_PREFIX="" +inherit stardict +DESCRIPTION="Stardict Dictionary for Dictd.org's Collins Cobuild English Dictionary" +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php" + +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-dictd-longman/stardict-dictd-longman-2.4.2.ebuild b/app-dicts/stardict-dictd-longman/stardict-dictd-longman-2.4.2.ebuild index 793b0451..316a85d5 100644 --- a/app-dicts/stardict-dictd-longman/stardict-dictd-longman-2.4.2.ebuild +++ b/app-dicts/stardict-dictd-longman/stardict-dictd-longman-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" DICT_PREFIX="" inherit stardict diff --git a/app-dicts/stardict-dictd-longman/stardict-dictd-longman-2.4.2.ebuilde b/app-dicts/stardict-dictd-longman/stardict-dictd-longman-2.4.2.ebuilde new file mode 100644 index 00000000..922cb928 --- /dev/null +++ b/app-dicts/stardict-dictd-longman/stardict-dictd-longman-2.4.2.ebuilde @@ -0,0 +1,11 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +DICT_PREFIX="" +inherit stardict +DESCRIPTION="Stardict Dictionary for Dictd.org's Longman Dictionary of Contemporary English" +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-dictd-merrianwebster/stardict-dictd-merrianwebster-2.4.2.ebuild b/app-dicts/stardict-dictd-merrianwebster/stardict-dictd-merrianwebster-2.4.2.ebuild index 8380f921..c6bcccd9 100644 --- a/app-dicts/stardict-dictd-merrianwebster/stardict-dictd-merrianwebster-2.4.2.ebuild +++ b/app-dicts/stardict-dictd-merrianwebster/stardict-dictd-merrianwebster-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" DICT_PREFIX="" inherit stardict diff --git a/app-dicts/stardict-dictd-merrianwebster/stardict-dictd-merrianwebster-2.4.2.ebuilde b/app-dicts/stardict-dictd-merrianwebster/stardict-dictd-merrianwebster-2.4.2.ebuilde new file mode 100644 index 00000000..c6bb6651 --- /dev/null +++ b/app-dicts/stardict-dictd-merrianwebster/stardict-dictd-merrianwebster-2.4.2.ebuilde @@ -0,0 +1,11 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +DICT_PREFIX="" +inherit stardict +DESCRIPTION="Stardict Dictionary for Dictd.org's Merrian Webster 10th dictionary" +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-dictd-oald/stardict-dictd-oald-2.4.2.ebuild b/app-dicts/stardict-dictd-oald/stardict-dictd-oald-2.4.2.ebuild index ea54f28b..d8dd41be 100644 --- a/app-dicts/stardict-dictd-oald/stardict-dictd-oald-2.4.2.ebuild +++ b/app-dicts/stardict-dictd-oald/stardict-dictd-oald-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" DICT_PREFIX="" inherit stardict diff --git a/app-dicts/stardict-dictd-oald/stardict-dictd-oald-2.4.2.ebuilde b/app-dicts/stardict-dictd-oald/stardict-dictd-oald-2.4.2.ebuilde new file mode 100644 index 00000000..e6c85732 --- /dev/null +++ b/app-dicts/stardict-dictd-oald/stardict-dictd-oald-2.4.2.ebuilde @@ -0,0 +1,11 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +DICT_PREFIX="" +inherit stardict +DESCRIPTION="Stardict Dictionary for Dictd.org's Oxford Advanced Learner's Dictionary" +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-dictd-thesaurus-ee/stardict-dictd-thesaurus-ee-2.4.2.ebuild b/app-dicts/stardict-dictd-thesaurus-ee/stardict-dictd-thesaurus-ee-2.4.2.ebuild index e5d10fd1..518814d4 100644 --- a/app-dicts/stardict-dictd-thesaurus-ee/stardict-dictd-thesaurus-ee-2.4.2.ebuild +++ b/app-dicts/stardict-dictd-thesaurus-ee/stardict-dictd-thesaurus-ee-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" DICT_PREFIX="" inherit stardict diff --git a/app-dicts/stardict-dictd-thesaurus-ee/stardict-dictd-thesaurus-ee-2.4.2.ebuilde b/app-dicts/stardict-dictd-thesaurus-ee/stardict-dictd-thesaurus-ee-2.4.2.ebuilde new file mode 100644 index 00000000..aa0092f0 --- /dev/null +++ b/app-dicts/stardict-dictd-thesaurus-ee/stardict-dictd-thesaurus-ee-2.4.2.ebuilde @@ -0,0 +1,11 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +DICT_PREFIX="" +inherit stardict +DESCRIPTION="Stardict Dictionary for Dictd.org's English Thesaurus" +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-freedict-deu-eng/stardict-freedict-deu-eng-2.4.2.ebuild b/app-dicts/stardict-freedict-deu-eng/stardict-freedict-deu-eng-2.4.2.ebuild index 9874d6a8..8c842927 100644 --- a/app-dicts/stardict-freedict-deu-eng/stardict-freedict-deu-eng-2.4.2.ebuild +++ b/app-dicts/stardict-freedict-deu-eng/stardict-freedict-deu-eng-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" FROM_LANG="German" TO_LANG="English" diff --git a/app-dicts/stardict-freedict-deu-eng/stardict-freedict-deu-eng-2.4.2.ebuilde b/app-dicts/stardict-freedict-deu-eng/stardict-freedict-deu-eng-2.4.2.ebuilde new file mode 100644 index 00000000..5792f606 --- /dev/null +++ b/app-dicts/stardict-freedict-deu-eng/stardict-freedict-deu-eng-2.4.2.ebuilde @@ -0,0 +1,13 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +FROM_LANG="German" +TO_LANG="English" +DICT_PREFIX="dictd_www.freedict.de_" +DESCRIPTION="" +inherit stardict +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.freedict.de.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-freedict-deu-ita/stardict-freedict-deu-ita-2.4.2.ebuild b/app-dicts/stardict-freedict-deu-ita/stardict-freedict-deu-ita-2.4.2.ebuild index 191af05e..c894e930 100644 --- a/app-dicts/stardict-freedict-deu-ita/stardict-freedict-deu-ita-2.4.2.ebuild +++ b/app-dicts/stardict-freedict-deu-ita/stardict-freedict-deu-ita-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 RESTRICT="fetch" FROM_LANG="German" TO_LANG="Italian" diff --git a/app-dicts/stardict-freedict-deu-ita/stardict-freedict-deu-ita-2.4.2.ebuilde b/app-dicts/stardict-freedict-deu-ita/stardict-freedict-deu-ita-2.4.2.ebuilde new file mode 100644 index 00000000..b1bb0548 --- /dev/null +++ b/app-dicts/stardict-freedict-deu-ita/stardict-freedict-deu-ita-2.4.2.ebuilde @@ -0,0 +1,13 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +RESTRICT="fetch" +FROM_LANG="German" +TO_LANG="Italian" +DICT_PREFIX="dictd_www.freedict.de_" +DESCRIPTION="" +inherit stardict +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.freedict.de.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/app-dicts/stardict-freedict-ita-deu/stardict-freedict-ita-deu-2.4.2.ebuild b/app-dicts/stardict-freedict-ita-deu/stardict-freedict-ita-deu-2.4.2.ebuild index 49ef00f8..d3331c39 100644 --- a/app-dicts/stardict-freedict-ita-deu/stardict-freedict-ita-deu-2.4.2.ebuild +++ b/app-dicts/stardict-freedict-ita-deu/stardict-freedict-ita-deu-2.4.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2010-2018 Gentoo Authors and Martin V\"ath +# Copyright 2010-2022 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 FROM_LANG="Italian" TO_LANG="German" DICT_PREFIX="dictd_www.freedict.de_" diff --git a/app-dicts/stardict-freedict-ita-deu/stardict-freedict-ita-deu-2.4.2.ebuilde b/app-dicts/stardict-freedict-ita-deu/stardict-freedict-ita-deu-2.4.2.ebuilde new file mode 100644 index 00000000..2db2062d --- /dev/null +++ b/app-dicts/stardict-freedict-ita-deu/stardict-freedict-ita-deu-2.4.2.ebuilde @@ -0,0 +1,13 @@ +# Copyright 2010-2021 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +FROM_LANG="Italian" +TO_LANG="German" +DICT_PREFIX="dictd_www.freedict.de_" +DESCRIPTION="" +inherit stardict +RESTRICT="fetch" +HOMEPAGE="http://stardict.sourceforge.net/Dictionaries_dictd-www.freedict.de.php" +KEYWORDS="amd64 ~arm64 x86" +IUSE="" diff --git a/eclass/stardict.eclass b/eclass/stardict.eclass new file mode 100644 index 00000000..61be2bd8 --- /dev/null +++ b/eclass/stardict.eclass @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors and Martin V\"ath +# Distributed under the terms of the GNU General Public License v2 + +# @ECLASS: stardict.eclass +# @MAINTAINER: +# No maintainer <maintainer-needed@gentoo.org> +# @AUTHOR: +# Alastair Tse <liquidx@gentoo.org> +# @BLURB: Convenience class to do stardict dictionary installations. +# @DESCRIPTION: +# Usage: +# - Variables to set : +# * FROM_LANG - From this language +# * TO_LANG - To this language +# * DICT_PREFIX - SRC_URI prefix, like "dictd_www.mova.org_" +# * DICT_SUFFIX - SRC_URI after the prefix. + +EXPORT_FUNCTIONS src_compile src_install + +if [[ -z ${_STARDICT_ECLASS} ]] ; then +_STARDICT_ECLASS=1 + +RESTRICT="strip" + +[ -z "${DICT_SUFFIX}" ] && DICT_SUFFIX=${PN#stardict-[[:lower:]]*-} +[ -z "${DICT_P}" ] && DICT_P=stardict-${DICT_PREFIX}${DICT_SUFFIX}-${PV} + +if [ -n "${FROM_LANG}" -a -n "${TO_LANG}" ]; then + DESCRIPTION="Stardict Dictionary ${FROM_LANG} to ${TO_LANG}" +elif [ -z "${DESCRIPTION}" ]; then + DESCRIPTION="Another Stardict Dictionary" +fi + +HOMEPAGE="http://stardict.sourceforge.net/" +SRC_URI="mirror://sourceforge/stardict/${DICT_P}.tar.bz2" +S="${WORKDIR}"/${DICT_P} + +LICENSE="GPL-2" +SLOT="0" +IUSE="+zlib" + +DEPEND=" + || ( + >=app-text/stardict-2.4.2 + app-text/sdcv + app-text/goldendict + ) + zlib? ( + app-arch/gzip + app-text/dictd + )" + +stardict_src_compile() { + if use zlib; then + for file in *.idx; do + [[ -f $file ]] && gzip ${file} + done + for file in *.dict; do + [[ -f $file ]] && dictzip ${file} + done + fi +} + +stardict_src_install() { + insinto /usr/share/stardict/dic + doins *.dict.dz* + doins *.idx* + doins *.ifo +} + +fi |