Skip to content

Commit

Permalink
add perl-dbi and perl-devel-checklib (#29181)
Browse files Browse the repository at this point in the history
Signed-off-by: Dentrax <[email protected]>
  • Loading branch information
Dentrax authored Sep 23, 2024
1 parent 46ff1b1 commit 5ee6002
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
55 changes: 55 additions & 0 deletions perl-dbi.yaml
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'"
64 changes: 64 additions & 0 deletions perl-devel-checklib.yaml
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"])'

0 comments on commit 5ee6002

Please sign in to comment.