1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 if [[ ${PV} == "9999" ]] ; then
8 EGIT_REPO_URI="https://github.com/gentoo-perl/g-cpan.git"
12 SRC_URI="https://github.com/gentoo-perl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
16 DESCRIPTION="Autogenerate and install ebuilds for CPAN modules"
17 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Perl/g-cpan"
19 LICENSE="|| ( Artistic GPL-2 )"
24 virtual/perl-File-Path
25 virtual/perl-File-Spec
29 dev-perl/Shell-EnvImporter
30 virtual/perl-Term-ANSIColor
33 RDEPEND="${COMMONDEPEND}
34 >=sys-apps/portage-2.0.0
36 DEPEND="${COMMONDEPEND}
37 virtual/perl-ExtUtils-MakeMaker
38 test? ( >=virtual/perl-Test-Simple-0.940.0 )
42 perl-module_src_install
43 diropts -m0775 -o portage -g portage
44 dodir "/var/tmp/g-cpan"
45 dodir "/var/log/g-cpan"
46 keepdir "/var/log/g-cpan"
50 elog "If you want to use g-cpan as non root user you may wish to adjust"
51 elog "the permissions on /var/tmp/g-cpan or add users to the portage group."
52 elog "Please note that some CPAN packages need additional manual"
53 elog "parameters or tweaking, due to bugs in their build systems."