summaryrefslogtreecommitdiff
blob: 492213647f5b1e38ca7a0bcb6081b1a9e1c285bc (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

MODULE_AUTHOR=SKNPP
MODULE_VERSION=2.3
inherit perl-module

DESCRIPTION="Pragma to implement lvalue accessors with options"
SRC_URI+=" https://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${P}-patch.tar.bz2"

SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="
	dev-perl/Module-Build
"

SRC_TEST=do

EPATCH_SUFFIX=patch
PATCHES=(
	"${WORKDIR}"/${MY_PN:-${PN}}-patch
)
src_prepare() {
	einfo "Removing unwanted author tests"
	rm -f "${S}/t/test_pod.t"
	rm -f "${S}/t/test_pod_coverage.t"
	# This silences warnings by EUMM about missing files.
	grep -v '^t/test_pod' "${S}/MANIFEST" > "${S}/MANIFEST.tmp"
	mv -f -- "${S}/MANIFEST.tmp" "${S}/MANIFEST"
}