diff options
author | Sergiy Borodych <Sergiy.Borodych@gmail.com> | 2020-04-04 10:46:27 +0300 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-04-11 02:30:57 +0300 |
commit | 04afeefdc48ca15c17af9d536d70b5099854e8da (patch) | |
tree | 92cf99c2ec81bd3a21e2270464b2cfaca84d2d6d /app-portage | |
parent | app-portage/g-cpan: remove old versions (diff) | |
download | gentoo-04afeefdc48ca15c17af9d536d70b5099854e8da.tar.gz gentoo-04afeefdc48ca15c17af9d536d70b5099854e8da.tar.bz2 gentoo-04afeefdc48ca15c17af9d536d70b5099854e8da.zip |
app-portage/g-cpan: migrate to EAPI=7 & add detection of use prefix
prefix detecting is matter for diropts with portage user-group options
Signed-off-by: Sergiy Borodych <Sergiy.Borodych@gmail.com>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/g-cpan/g-cpan-0.16.9-r1.ebuild | 9 | ||||
-rw-r--r-- | app-portage/g-cpan/g-cpan-9999.ebuild | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/app-portage/g-cpan/g-cpan-0.16.9-r1.ebuild b/app-portage/g-cpan/g-cpan-0.16.9-r1.ebuild index d12aa9937dd1..8bf683d29b85 100644 --- a/app-portage/g-cpan/g-cpan-0.16.9-r1.ebuild +++ b/app-portage/g-cpan/g-cpan-0.16.9-r1.ebuild @@ -1,9 +1,10 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit perl-module + if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/gentoo-perl/g-cpan.git" inherit git-r3 @@ -41,7 +42,11 @@ DEPEND="${COMMONDEPEND} src_install() { perl-module_src_install - diropts -m0775 -o portage -g portage + if ! use prefix; then + diropts -m0775 -o portage -g portage + else + diropts -m0775 + fi dodir "/var/tmp/g-cpan" dodir "/var/log/g-cpan" keepdir "/var/log/g-cpan" diff --git a/app-portage/g-cpan/g-cpan-9999.ebuild b/app-portage/g-cpan/g-cpan-9999.ebuild index 5fad97abc0e7..fca42099a130 100644 --- a/app-portage/g-cpan/g-cpan-9999.ebuild +++ b/app-portage/g-cpan/g-cpan-9999.ebuild @@ -1,9 +1,10 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit perl-module + if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/gentoo-perl/g-cpan.git" inherit git-r3 @@ -43,7 +44,11 @@ DEPEND="${COMMONDEPEND} src_install() { perl-module_src_install - diropts -m0775 -o portage -g portage + if ! use prefix; then + diropts -m0775 -o portage -g portage + else + diropts -m0775 + fi dodir "/var/tmp/g-cpan" dodir "/var/log/g-cpan" keepdir "/var/log/g-cpan" |