summaryrefslogtreecommitdiff
path: root/dev-perl/PAR-Packer/PAR-Packer-1.64.0-r1.ebuild
blob: bf606eb502ed073fe41ff354a47ef54c5dea7136 (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 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DIST_AUTHOR="RSCHUPP"
DIST_VERSION=1.064
inherit perl-module

DESCRIPTION="PAR Packager"

SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
		dev-perl/Getopt-ArgvFile
		dev-perl/IPC-Run3
		dev-perl/Module-ScanDeps
		dev-perl/PAR
"
DEPEND="${RDEPEND}"

src_prepare() {
	# rename pp binary to parp to avoid conflict with dev-libs/nss
	mv script/pp script/parp
	sed -i \
		-e 's#blib/man1/pp.1#blib/man1/parp.1#' \
		-e 's#script/pp#script/parp#' \
		Makefile.PL MANIFEST || die
	# fix tests to match
	sed -i -e 's/blib script pp/blib script parp/' t/utils.pl t/*.t || die
	sed -i -e 's/pp:/parp:/g' contrib/automated_pp_test/automated_pp_test.pl || die
	export DEBUG=1 # prevent binary being stripped (Bug 972351)
	default
}

src_install() {
	default
	ewarn "/usr/bin/pp has been installed as /usr/bin/parp"
	ewarn "to avoid a name conflict with dev-libs/nss"
}