diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-perl/App-cpanminus | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-perl/App-cpanminus')
-rw-r--r-- | dev-perl/App-cpanminus/App-cpanminus-9999.ebuild | 108 | ||||
-rw-r--r-- | dev-perl/App-cpanminus/Manifest | 1 |
2 files changed, 109 insertions, 0 deletions
diff --git a/dev-perl/App-cpanminus/App-cpanminus-9999.ebuild b/dev-perl/App-cpanminus/App-cpanminus-9999.ebuild new file mode 100644 index 000000000000..5c7c7bda4a07 --- /dev/null +++ b/dev-perl/App-cpanminus/App-cpanminus-9999.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} == 9999 ]]; then + GITHUB_USER=miyagawa + GITHUB_REPO=cpanminus + EGIT_REPO_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}.git" + EGIT_BRANCH="devel" + EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-git" + VCS_ECLASS="git-r3" +else + DIST_AUTHOR=MIYAGAWA + DIST_VERSION=1.7044 + KEYWORDS="amd64 ~ppc x86" +fi +inherit perl-module ${VCS_ECLASS} + +DESCRIPTION="Get, unpack, build and install modules from CPAN" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +GIT_DEPENDS=" + dev-perl/Dist-Milla + dev-perl/Dist-Zilla + dev-perl/Dist-Zilla-Plugin-Run + dev-perl/Perl-Version + dev-perl/App-FatPacker + dev-perl/Module-Install + dev-perl/Module-Signature + dev-perl/Perl-Strip +" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( virtual/perl-Test-Simple ) +" +[[ ${PV} == 9999 ]] && BDEPEND+=" ${GIT_DEPENDS}" + +dzil_env_setup() { + # NextRelease noise :( + mkdir -p ~/.dzil/ + local user="$(whoami)" + local host="$(hostname)" + printf '[%%User]\nname = %s\nemail = %s' "${user}" "${user}@${host}" >> ~/.dzil/config.ini +} +dzil_to_distdir() { + local dzil_root dest has_missing modname dzil_version + dzil_root="$1" + dest="$2" + + cd "${dzil_root}" || die "Can't enter git workdir '${dzil_root}'"; + + dzil_env_setup + + dzil_version="$(dzil version)" || die "Error invoking 'dzil version'" + einfo "Generating CPAN dist with ${dzil_version}" + + has_missing="" + + einfo "Checking dzil authordeps" + while IFS= read -d $'\n' -r modname; do + if [[ -z "${has_missing}" ]]; then + has_missing=1 + eerror "'dzil authordeps' indicates missing build dependencies" + eerror "These will prevent building, please report a bug" + eerror "Missing:" + fi + eerror " ${modname}" + done < <( dzil authordeps --missing --versions ) + + [[ -z "${has_missing}" ]] || die "Satisfy all missing authordeps first" + + einfo "Checking dzil build deps" + while IFS= read -d $'\n' -r modname; do + if [[ -z "${has_missing}" ]]; then + has_missing=1 + ewarn "'dzil listdeps' indicates missing build dependencies" + ewarn "These may prevent building, please report a bug if they do" + ewarn "Missing:" + fi + ewarn " ${modname}" + done < <( dzil listdeps --missing --versions --author ) + + einfo "Generating release" + dzil build --notgz --in "${dest}" || die "Unable to build CPAN dist in '${dest}'" +} + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + "${VCS_ECLASS}"_src_unpack + mkdir -p "${S}" || die "Can't make ${S}" + else + default + fi +} + +src_prepare() { + if [[ ${PV} == 9999 ]]; then + # Uses git sources in WORKDIR/rex-git + # to generate a CPAN-style tree in ${S} + # before letting perl-module.eclass do the rest + dzil_to_distdir "${EGIT_CHECKOUT_DIR}/App-cpanminus" "${S}" + fi + cd "${S}" || die "Can't enter build dir" + perl-module_src_prepare +} diff --git a/dev-perl/App-cpanminus/Manifest b/dev-perl/App-cpanminus/Manifest index 4ec68dbf00cb..986efa93f2dd 100644 --- a/dev-perl/App-cpanminus/Manifest +++ b/dev-perl/App-cpanminus/Manifest @@ -1,3 +1,4 @@ DIST App-cpanminus-1.7044.tar.gz 316368 BLAKE2B 093f48282349be882afbdb2480e42ea73ece061fe01919c8d7bbf8890ccb83a699be0a54126556620e03b1cf9da195a9c266186c9b84427d4bba57ebd11b62a9 SHA512 85e88de8fbefabdfd84fe8aeaa8294d58d63e27276cd6d8b8dfc5dc4cd6c30c12f5859f30e4930842d6d06af50c88d71358dee49c93821234c811aa39de822d7 EBUILD App-cpanminus-1.704.400.ebuild 414 BLAKE2B 8e9095dfca2926878b0e9dfaa19b728a5b1e8e313e3341ba5aa30e8bf3ad42eb00fa66e499653d2cfb7af60998f1b9673499435452e27a09f8ea9e56c6e3e012 SHA512 aa95f15af95f0ccd5ba9745e8c2ba9abca5550fcde2f2ce91056561054934ce624c459e4b8cbc33be1342d36f7eb121ff0018524c5f71cf06f178c94869c0c29 +EBUILD App-cpanminus-9999.ebuild 2820 BLAKE2B 22f2052c1fdf895a3a0bb26c3a403100082266766d3d4a3f3a19f6ca55e50897b2e4dd330e5f9d53b49a2739d7e221822277892d310ebe5e68d40bd7938c0413 SHA512 8344c27b6534c2dd21df5df340ecee380727576ac1facd9ef4db10fec6a7c85e7df9502931c294cf53c86ffa9037513e03be23f608914af46b01a65e38dcfcf4 MISC metadata.xml 422 BLAKE2B 93640a71db70d4e732c859d97d59f06550c053d4d964f90d99870bc4f8147e2c54a765e4a48fe71af6aa56906486e8e424fdb454d52db821edbc682d1c9af471 SHA512 a425a03857673eeb031ecbff9012a7d6f9d3fac567f39409f80df3891247cf820313a4499630b676b765a657d8f8bca0059cf776b7ed9e3761145b40da2fabb0 |