Diff libowfat-0.32-r1 with a libowfat-0.32-r5
/usr/portage/dev-libs/libowfat/libowfat-0.32-r5.ebuild 2023-10-09 14:52:29.524368351 +0300 | ||
---|---|---|
1 | 1 |
# Copyright 1999-2022 Gentoo Authors |
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI="7" |
|
4 |
EAPI="8" |
|
5 | 5 | |
6 | 6 |
inherit flag-o-matic toolchain-funcs |
7 | 7 | |
... | ... | |
17 | 17 |
RDEPEND="diet? ( >=dev-libs/dietlibc-0.33_pre20090721 )" |
18 | 18 |
DEPEND="${RDEPEND}" |
19 | 19 | |
20 |
PATCHES=( |
|
21 |
"${FILESDIR}"/${P}-gcc10.patch |
|
22 |
"${FILESDIR}"/${P}-ar.patch |
|
23 |
) |
|
24 | ||
20 | 25 |
pkg_setup() { |
21 | 26 |
# Required for mult/umult64.c to be usable |
22 | 27 |
append-flags -fomit-frame-pointer |
23 | 28 |
} |
24 | 29 | |
30 |
src_prepare() { |
|
31 |
default |
|
32 | ||
33 |
# do not define "__pure__", this the gcc builtin (bug #806505) |
|
34 |
sed 's#__pure__;#__attribute__((__pure__));#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die |
|
35 |
sed 's#__pure__$#__attrib__pure__#' -i fmt.h scan.h byte.h stralloc.h str.h critbit.h || die |
|
36 |
# remove unneeded definition of __deprecated__ |
|
37 |
sed '/^#define __deprecated__$/d' -i scan/scan_iso8601.c scan/scan_httpdate.c || die |
|
38 |
} |
|
39 | ||
25 | 40 |
src_compile() { |
26 | 41 |
emake \ |
27 | 42 |
CC="$(tc-getCC)" \ |
43 |
AR="$(tc-getAR)" \ |
|
44 |
RANLIB="$(tc-getRANLIB)" \ |
|
28 | 45 |
CFLAGS="-I. ${CFLAGS}" \ |
29 | 46 |
DIET="${EPREFIX}/usr/bin/diet -Os" \ |
30 | 47 |
prefix="${EPREFIX}/usr" \ |