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 )"
25 virtual/perl-File-Path
26 virtual/perl-File-Spec
31 dev-perl/Shell-EnvImporter
32 virtual/perl-Term-ANSIColor
35 RDEPEND="${COMMONDEPEND}
36 >=sys-apps/portage-2.0.0
38 DEPEND="${COMMONDEPEND}
39 virtual/perl-ExtUtils-MakeMaker
40 test? ( >=virtual/perl-Test-Simple-0.940.0 )
44 perl-module_src_install
45 diropts -m0775 -o portage -g portage
46 dodir "/var/tmp/g-cpan"
47 dodir "/var/log/g-cpan"
48 keepdir "/var/log/g-cpan"
52 elog "If you want to use g-cpan as non root user you may wish to adjust"
53 elog "the permissions on /var/tmp/g-cpan or add users to the portage group."
54 elog "Please note that some CPAN packages need additional manual"
55 elog "parameters or tweaking, due to bugs in their build systems."