-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add perl-dbi and perl-devel-checklib (#29181)
Signed-off-by: Dentrax <[email protected]>
- Loading branch information
Showing
2 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package: | ||
name: perl-dbi | ||
version: "1.645" | ||
epoch: 0 | ||
description: Database independent interface for Perl | ||
copyright: | ||
- license: GPL-1.0-or-later OR Artistic-1.0-Perl | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- perl | ||
- perl-dev | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
repository: https://github.com/perl5-dbi/dbi | ||
expected-commit: 87e6c731b464dc862afd1ba95c8b362fcfbee0db | ||
tag: ${{package.version}} | ||
|
||
- runs: | | ||
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 | ||
- runs: make DESTDIR="${{targets.destdir}}" install | ||
|
||
- uses: strip | ||
|
||
subpackages: | ||
- name: perl-dbi-doc | ||
pipeline: | ||
- uses: split/manpages | ||
description: perl-dbi manpages | ||
|
||
update: | ||
enabled: true | ||
ignore-regex-patterns: | ||
- _ | ||
github: | ||
identifier: perl5-dbi/dbi | ||
use-tag: true | ||
|
||
test: | ||
pipeline: | ||
- name: Smoke test for DBI module | ||
runs: | | ||
perl -e "use DBI; print 'DBI loaded'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package: | ||
name: perl-devel-checklib | ||
version: "1.16" | ||
epoch: 0 | ||
description: check that a library is available | ||
copyright: | ||
- license: GPL-1.0-or-later OR Artistic-1.0-Perl | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- perl | ||
- perl-dev | ||
|
||
pipeline: | ||
- uses: fetch | ||
with: | ||
expected-sha256: 869d38c258e646dcef676609f0dd7ca90f085f56cf6fd7001b019a5d5b831fca | ||
uri: https://cpan.metacpan.org/authors/id/M/MA/MATTN/Devel-CheckLib-${{package.version}}.tar.gz | ||
|
||
- runs: | | ||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') | ||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor | ||
make | ||
- runs: | | ||
make DESTDIR="${{targets.destdir}}" install | ||
find "${{targets.destdir}}" \( -name perllocal.pod -o -name .packlist \) -delete | ||
- uses: strip | ||
|
||
subpackages: | ||
- name: perl-devel-checklib-doc | ||
pipeline: | ||
- uses: split/manpages | ||
description: perl-devel-checklib manpages | ||
|
||
update: | ||
enabled: true | ||
release-monitor: | ||
identifier: 5894 | ||
|
||
test: | ||
environment: | ||
contents: | ||
packages: | ||
- build-base # Required to compile basic C code | ||
- gcc # Required to compile basic C code | ||
pipeline: | ||
- name: Smoke test for Perl module | ||
runs: | | ||
perl -e "use Devel::CheckLib; print 'CheckLib loaded'" | ||
- name: Check for existing library (libc) | ||
runs: | | ||
perl -MDevel::CheckLib -e 'Devel::CheckLib::check_lib_or_exit(lib => "c")' | ||
- name: Compile and link with existing library (libc) | ||
runs: | | ||
perl -MDevel::CheckLib -e 'Devel::CheckLib::assert_lib(lib => "c")' | ||
- name: Compile and link with multiple libraries | ||
runs: | | ||
perl -MDevel::CheckLib -e 'Devel::CheckLib::assert_lib(lib => ["c", "m"])' |