From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-portage/g-cpan/g-cpan-0.16.6.ebuild | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 app-portage/g-cpan/g-cpan-0.16.6.ebuild (limited to 'app-portage/g-cpan/g-cpan-0.16.6.ebuild') diff --git a/app-portage/g-cpan/g-cpan-0.16.6.ebuild b/app-portage/g-cpan/g-cpan-0.16.6.ebuild new file mode 100644 index 000000000000..876c6180f0f3 --- /dev/null +++ b/app-portage/g-cpan/g-cpan-0.16.6.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit perl-module +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/gentoo-perl/g-cpan.git" + inherit git-r3 + SRC_URI="" +else + SRC_URI="https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +fi + +DESCRIPTION="g-cpan: generate and install CPAN modules using portage" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Perl/g-cpan" + +LICENSE="|| ( Artistic GPL-2 )" +SLOT="0" +IUSE="" + +DEPEND="dev-lang/perl + >=dev-perl/YAML-0.60 + >=dev-perl/Shell-EnvImporter-1.70.0-r2 + dev-perl/Log-Agent" +RDEPEND="${DEPEND}" + +src_install() { + perl-module_src_install + diropts "-m0755" + dodir "/var/tmp/g-cpan" + dodir "/var/log/g-cpan" + keepdir "/var/log/g-cpan" +} + +pkg_postinst() { + elog "You may wish to adjust the permissions on /var/tmp/g-cpan" + elog "if you have users besides root expecting to use g-cpan." + elog "Please note that some CPAN packages need additional manual" + elog "parameters or tweaking, due to bugs in their build systems." +} -- cgit v1.2.3