gentoo/perl-core/Compress-Raw-Zlib/Compress-Raw-Zlib-2.212.0.ebuild
Michał Górny 83b8fe2494
*/*: Use := on virtual/zlib deps, part 5
Done via:

```
git grep -l 'virtual/zlib-' |
  xargs sed -i -r -e 's@virtual/zlib-[0-9.]*(-r[0-9]*)?@&:=@g'
git grep -l 'virtual/zlib-' | xargs sed -i -e 's@:=:=@:=@g'
pkgcheck scan --commits \
  -c SourcingCheck,VisibilityCheck,DependencyCheck --exit error
```

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 11:06:48 +01:00

36 lines
1021 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=PMQS
DIST_TEST=parallel
DIST_VERSION=2.212
inherit perl-module
DESCRIPTION="Low-Level Interface to zlib compression library"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
# We use the bundled version of zlib as the minimum version for the system copy
# Check on bumps! Look in https://github.com/pmqs/Compress-Raw-Zlib/commits/master/zlib-src.
RDEPEND=">=virtual/zlib-1.3.1:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/perl-ExtUtils-MakeMaker"
src_prepare() {
rm -rf "${S}"/zlib-src/ || die
sed -i '/^zlib-src/d' "${S}"/MANIFEST || die
perl-module_src_prepare
}
src_configure() {
export BUILD_ZLIB=False
export USE_ZLIB_NG=False
export OLD_ZLIB=True
export ZLIB_INCLUDE="${ESYSROOT}"/usr/include
export ZLIB_LIB="${ESYSROOT}"/usr/$(get_libdir)
perl-module_src_configure
}