summaryrefslogtreecommitdiff
blob: dc098e98c9aa8d8bd2baff4ec4151458d1595b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DIST_AUTHOR=TLINDEN
DIST_VERSION=2.02
DIST_EXAMPLES=("samples/*")
inherit perl-module

DESCRIPTION="Commandline interface to http://dict.leo.org/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"

RDEPEND="
	virtual/perl-Carp
	dev-perl/IO-Socket-SSL
	dev-perl/HTML-TableParser
	virtual/perl-MIME-Base64
	dev-perl/XML-Simple
"
BDEPEND="${RDEPEND}
	virtual/perl-ExtUtils-MakeMaker
"

src_prepare() {
	einfo "Renaming leo to Leo"
	mv "${S}/"{l,L}eo || die
	sed -i "s/'leo'/'Leo'/" "${S}/"Makefile.PL || die
	sed -i "s/^leo$/Leo/" "${S}/"MANIFEST || die
	perl-module_src_prepare
}

pkg_postinst() {
	elog "We renamed leo to Leo"
	elog "due to conflicts with app-editors/leo"
}