Skip to content

Commit

Permalink
app-portage/g-cpan: migrate to EAPI=7 & add detection of use prefix
Browse files Browse the repository at this point in the history
prefix detecting is matter for diropts with portage user-group options

Signed-off-by: Sergiy Borodych <[email protected]>
Signed-off-by: Andreas K. Hüttel <[email protected]>
  • Loading branch information
bor authored and akhuettel committed Apr 10, 2020
1 parent 667979f commit 04afeef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions app-portage/g-cpan/g-cpan-0.16.9-r1.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"
Expand Down
9 changes: 7 additions & 2 deletions app-portage/g-cpan/g-cpan-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 04afeef

Please sign in to comment.