mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
dev-perl/Lab-Measurement: add 3.931
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
parent
4a1629989e
commit
8bc11b4618
130
dev-perl/Lab-Measurement/Lab-Measurement-3.931.ebuild
Normal file
130
dev-perl/Lab-Measurement/Lab-Measurement-3.931.ebuild
Normal file
@ -0,0 +1,130 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DIST_EXAMPLES=( "examples/*" )
|
||||
|
||||
if [[ "${PV}" != "9999" ]]; then
|
||||
DIST_VERSION=${PV%.0}
|
||||
DIST_AUTHOR=AKHUETTEL
|
||||
KEYWORDS="~amd64"
|
||||
inherit perl-module
|
||||
else
|
||||
EGIT_REPO_URI="https://github.com/lab-measurement/Lab-Measurement.git"
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}-git"
|
||||
inherit perl-module git-r3
|
||||
fi
|
||||
|
||||
DESCRIPTION="Measurement control and automation with Perl"
|
||||
HOMEPAGE="https://www.labmeasurement.de"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
DZIL_PLUGINS=( Git PodWeaver AuthorsFromGit RPM Test-ReportPrereqs )
|
||||
|
||||
RDEPEND="
|
||||
dev-perl/Class-ISA
|
||||
>=dev-perl/Class-Method-Modifiers-2.110.0
|
||||
>=dev-perl/Clone-0.310.0
|
||||
>=dev-perl/Exception-Class-1.0.0
|
||||
dev-perl/Hook-LexWrap
|
||||
>=dev-perl/IO-Socket-Timeout-0.320.0
|
||||
dev-perl/List-MoreUtils
|
||||
dev-perl/Math-Round
|
||||
>=virtual/perl-Module-Load-0.260.0
|
||||
>=dev-perl/Moose-2.121.300
|
||||
>=dev-perl/MooseX-Params-Validate-0.180.0
|
||||
dev-perl/MooseX-StrictConstructor
|
||||
dev-perl/Net-RFC3161-Timestamp
|
||||
>=dev-perl/PDL-2.7.0
|
||||
dev-perl/PDL-Graphics-Gnuplot
|
||||
dev-perl/PDL-IO-CSV
|
||||
>=dev-perl/Role-Tiny-1.3.4
|
||||
dev-perl/Statistics-Descriptive
|
||||
>=dev-perl/TermReadKey-2.300.0
|
||||
dev-perl/Text-Diff
|
||||
dev-perl/Time-Monotonic
|
||||
>=dev-perl/Try-Tiny-0.220.0
|
||||
>=dev-perl/YAML-LibYAML-0.410.0
|
||||
>=dev-perl/namespace-autoclean-0.200.0
|
||||
sci-visualization/gnuplot
|
||||
dev-perl/Lab-VXI11
|
||||
dev-perl/USB-TMC
|
||||
"
|
||||
BDEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-perl/File-Slurper
|
||||
dev-perl/Test-Fatal
|
||||
dev-perl/Test-File
|
||||
dev-perl/Text-Diff
|
||||
dev-perl/aliased
|
||||
)
|
||||
"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
DEPEND="${DEPEND}
|
||||
dev-perl/Dist-Zilla"
|
||||
for dzp in "${DZIL_PLUGINS[@]}" ; do
|
||||
DEPEND="${DEPEND}
|
||||
dev-perl/Dist-Zilla-Plugin-${dzp}"
|
||||
done
|
||||
fi
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
mkdir -p "${S}" || die "Can't make ${S}"
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
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_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_prepare() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
dzil_to_distdir "${EGIT_CHECKOUT_DIR}" "${S}"
|
||||
fi
|
||||
cd "${S}" || die "Can't enter build dir"
|
||||
perl-module_src_prepare
|
||||
}
|
||||
@ -1 +1,2 @@
|
||||
DIST Lab-Measurement-3.823.tar.gz 614793 BLAKE2B 62a4a55ed72b3d164dbd8b8b65c76da2d62eda4c49fc95c0d93e50eca204a0a3969844b01bfb5532b338ee38717a926ea2be9c05ed1789542389f9d3b26d7256 SHA512 0f60e7ae20af98022dcb913e27ecaa22658d8038c3d4cf446df24b42bc4834cf4ea6d2a1b8ff04d02f4f0728ed4cbbc5cb79ca42ee6611675c09842c27c114a8
|
||||
DIST Lab-Measurement-3.931.tar.gz 323062 BLAKE2B 772e51ffd6e28451095799cf750e61643621de5f907e42e6ed98e769c6eab6745852e84084241be0f6f11a14f9aa969bca4ffbfa3ee3726f6bd125b1fc5350c0 SHA512 7ea2a6ae58fb1a6cec6ee18864b957b65617eff412aca5883f8d4e5888f14aa8fc60d7394780bdde9c6f7dbc2f2b7401ef4e9932eaa1dc0a12f79a4bbd3786dd
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user