testing/perl-algorithm-evolutionary: new aport

https://metacpan.org/release/Algorithm-Evolutionary/
Perl module for performing paradigm-free evolutionary algorithms

Requested by @firefly-cpp
This commit is contained in:
Celeste 2024-08-21 07:32:08 +00:00
parent f0f3980536
commit d4eef0486a

View file

@ -0,0 +1,43 @@
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-algorithm-evolutionary
pkgver=0.82.1
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Algorithm-Evolutionary
pkgdesc="Perl module for performing paradigm-free evolutionary algorithms"
url="https://metacpan.org/release/Algorithm-Evolutionary/"
arch="noarch"
license="GPL-2.0-only"
depends="
perl perl-algorithm-permute perl-bit-vector perl-clone perl-gd
perl-math-random perl-object-array perl-sort-key
perl-statistics-basic perl-string-random perl-tree-dag_node
perl-xml-parser perl-xml-parser-style-easytree perl-yaml
"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JM/JMERELO/Algorithm-Evolutionary-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
9b66853f51da2078f0965d20e410cab816a8651922ab6f8257c345f1e111acb7e0d3438e8437e3628567d712e3211fced771836c0a6082844b565cd74b3de5c0 Algorithm-Evolutionary-0.82.1.tar.gz
"