Сравнение g-cpan-0.17.0 с g-cpan-0.18.0-r1

/usr/portage/app-portage/g-cpan/g-cpan-0.18.0-r1.ebuild 2023-10-09 14:52:28.844368334 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit perl-module
7 7

  
8
if [[ ${PV} == "9999" ]] ; then
8
if [[ ${PV} == 9999 ]] ; then
9 9
	EGIT_REPO_URI="https://github.com/gentoo-perl/g-cpan.git"
10 10
	inherit git-r3
11
	SRC_URI=""
12 11
else
13
	SRC_URI="https://github.com/gentoo-perl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14
	KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
12
	SRC_URI="https://github.com/gentoo-perl/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
13
	KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
15 14
fi
16 15

  
17 16
DESCRIPTION="Autogenerate and install ebuilds for CPAN modules"
......
22 21
IUSE="test"
23 22
RESTRICT="!test? ( test )"
24 23

  
25
COMMONDEPEND="
24
COMMON_DEPEND="
26 25
	dev-perl/Config-Tiny
27 26
	virtual/perl-File-Path
28 27
	virtual/perl-File-Spec
......
34 33
	virtual/perl-Term-ANSIColor
35 34
	>=dev-perl/YAML-0.60
36 35
"
37
RDEPEND="${COMMONDEPEND}
36
RDEPEND="
37
	${COMMON_DEPEND}
38 38
	>=sys-apps/portage-2.0.0
39 39
"
40
DEPEND="${COMMONDEPEND}
40
BDEPEND="
41
	${COMMON_DEPEND}
41 42
	virtual/perl-ExtUtils-MakeMaker
42 43
	test? ( >=virtual/perl-Test-Simple-0.940.0 )
43 44
"
44 45

  
45 46
src_install() {
46 47
	perl-module_src_install
48

  
47 49
	if ! use prefix; then
48 50
		diropts -m0775 -o portage -g portage
49 51
	else
50 52
		diropts -m0775
51 53
	fi
52
	dodir "/var/tmp/g-cpan"
53
	dodir "/var/log/g-cpan"
54
	keepdir "/var/log/g-cpan"
54

  
55
	dodir /var/tmp/g-cpan
56
	dodir /var/log/g-cpan
57
	keepdir /var/log/g-cpan
58
}
59

  
60
pkg_preinst() {
61
	has_version "<app-portage/g-cpan-0.18.0-r1" && HAD_EAPI5_GCPAN=1
55 62
}
56 63

  
57 64
pkg_postinst() {
65
	if [[ ${HAD_EAPI5_GCPAN:-0} -eq 1 ]] ; then
66
		ewarn "Please re-create your overlay with generated g-cpan ebuilds!"
67
		ewarn "The old ebuilds will use EAPI 5 and be incompatible with newer"
68
		ewarn "Perl eclass changes. This newer version of g-cpan (0.18.0+)"
69
		ewarn "generates EAPI 8 ebuilds without this problem, but it cannot"
70
		ewarn "change existing ebuilds. See bug #819513."
71
	fi
72

  
58 73
	elog "If you want to use g-cpan as non root user you may wish to adjust"
59 74
	elog "the permissions on /var/tmp/g-cpan or add users to the portage group."
60 75
	elog "Please note that some CPAN packages need additional manual"
Спасибо!