blob: d61a7d3eb5b016a07f97bae9ebc3acbe777614e6 (
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
40
41
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=CAPOEIRAB
DIST_VERSION=3.094
DIST_EXAMPLES=("examples/*")
inherit perl-module
DESCRIPTION="Interface to URL shortening sites"
LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
examples? (
dev-perl/Config-Auto
>=virtual/perl-Getopt-Long-2.400.0
>=dev-perl/Try-Tiny-0.240.0
)
virtual/perl-Carp
>=dev-perl/libwww-perl-5.835.0
"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
test? (
>=virtual/perl-Test-Simple-0.880.0
>=dev-perl/Try-Tiny-0.240.0
)
"
src_prepare() {
einfo "Downgrading 'shorten' to an example"
mkdir -p "${S}/examples" || die
mv "${S}/bin/shorten" "${S}/examples/" || die
sed -i -e '/bin\/shorten/d' "${S}/Makefile.PL" || die
sed -i -e 's/^bin\/shorten$/examples\/shorten/' "${S}/MANIFEST" || die
perl-module_src_prepare
}
|