blob: 640aff8557306253512396e860e46af666a3e1b9 (
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
42
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=CAPOEIRAB
DIST_VERSION=3.093
DIST_EXAMPLES=("examples/*")
inherit perl-module
DESCRIPTION="Interface to URL shortening sites"
LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test examples"
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
"
DEPEND="${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
}
|