Diff libowfat-0.32-r1 with a libowfat-0.32-r5
| /usr/portage/dev-libs/libowfat/libowfat-0.32-r5.ebuild 2024-07-02 13:51:44.525851471 +0300 | ||
|---|---|---|
| 1 | 
    # Copyright 1999-2022 Gentoo Authors  | 
  |
| 1 | 
    # Copyright 1999-2024 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() {
   | 
  
| 41 | 
    # Primary use case is for code by the same author. Which then fails with  | 
  |
| 42 | 
    # LTO errors. It builds a static library only, anyway. Result: LTO can be  | 
  |
| 43 | 
    # used if you don't upgrade the compiler. If you do, the compiler errors,  | 
  |
| 44 | 
    # or if you are unlucky, ICEs. Just don't use LTO, there is no point...  | 
  |
| 45 | 
    filter-lto  | 
  |
| 46 | ||
| 26 | 47 | 
    emake \  | 
  
| 27 | 48 | 
    CC="$(tc-getCC)" \  | 
  
| 49 | 
    AR="$(tc-getAR)" \  | 
  |
| 50 | 
    RANLIB="$(tc-getRANLIB)" \  | 
  |
| 28 | 51 | 
    		CFLAGS="-I. ${CFLAGS}" \
   | 
  
| 29 | 52 | 
    		DIET="${EPREFIX}/usr/bin/diet -Os" \
   | 
  
| 30 | 53 | 
    		prefix="${EPREFIX}/usr" \
   |