summaryrefslogtreecommitdiff
path: root/app-dicts/aspell-be/aspell-be-0.01-r1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-dicts/aspell-be/aspell-be-0.01-r1.ebuild')
-rw-r--r--app-dicts/aspell-be/aspell-be-0.01-r1.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/app-dicts/aspell-be/aspell-be-0.01-r1.ebuild b/app-dicts/aspell-be/aspell-be-0.01-r1.ebuild
index f7393d3d18e9..e2f9bb303f25 100644
--- a/app-dicts/aspell-be/aspell-be-0.01-r1.ebuild
+++ b/app-dicts/aspell-be/aspell-be-0.01-r1.ebuild
@@ -4,16 +4,20 @@
EAPI=7
ASPELL_LANG="Belarusian"
+ASPELL_VERSION=5
+MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
+
inherit aspell-dict-r1
-SRC_URI="mirror://gnu/aspell/dict/be/aspell5-be-${PV}.tar.bz2"
-S="${WORKDIR}/aspell5-be-${PV}"
+SRC_URI="mirror://gnu/${PN%-*}/dict/${PN/aspell-/}/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
IUSE="classic"
src_prepare() {
- use classic || local PATCHES=( "${FILESDIR}"/aspell5-be-${PV}-official.patch )
+ ! use classic && local PATCHES=( "${FILESDIR}"/aspell5-be-${PV}-official.patch )
+
default
}