Diff cgnslib-4.3.0-r2 with a cgnslib-4.5.0
| /usr/portage/sci-libs/cgnslib/cgnslib-4.5.0.ebuild 2025-12-04 18:18:04.038573795 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2024 Gentoo Authors |
|
| 1 |
# Copyright 1999-2025 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| ... | ... | |
| 17 | 17 |
S="${WORKDIR}/CGNS-${PV}"
|
| 18 | 18 | |
| 19 | 19 |
LICENSE="ZLIB" |
| 20 |
SLOT="0/4" |
|
| 20 |
SLOT="0/$(ver_cut 1-2)" |
|
| 21 | 21 |
KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" |
| 22 | 22 |
IUSE="base-scope debug examples fortran hdf5 legacy mpi scoping szip test tools" |
| 23 | 23 | |
| ... | ... | |
| 42 | 42 |
szip? ( hdf5 ) |
| 43 | 43 |
" |
| 44 | 44 | |
| 45 |
PATCHES=( |
|
| 46 |
"${FILESDIR}"/${PN}-4.5.0-rpath.patch
|
|
| 47 |
"${FILESDIR}"/${PN}-4.5.0-tk-internal.patch
|
|
| 48 |
) |
|
| 49 | ||
| 45 | 50 |
pkg_setup() {
|
| 46 | 51 |
use fortran && fortran-2_pkg_setup |
| 47 | 52 |
} |
| 48 | 53 | |
| 49 | 54 |
src_prepare() {
|
| 50 |
# gentoo libdir |
|
| 51 | 55 |
sed \ |
| 52 | 56 |
-e 's|/lib|/'$(get_libdir)'|' \ |
| 53 | 57 |
-e '/DESTINATION/s|lib|'$(get_libdir)'|g' \ |
| 54 | 58 |
-i src/CMakeLists.txt || die |
| 59 | ||
| 55 | 60 |
cmake_src_prepare |
| 56 | 61 |
} |
| 57 | 62 | |
| 58 | 63 |
src_configure() {
|
| 59 |
# -Werror=lto-type-mismatch |
|
| 60 |
# https://bugs.gentoo.org/862684 |
|
| 61 |
# https://github.com/CGNS/CGNS/issues/758 |
|
| 62 |
filter-lto |
|
| 64 |
# Needed for uses an internal header (bug #934122) |
|
| 65 |
if use tools ; then |
|
| 66 |
local tk_ver=$(best_version dev-lang/tk) |
|
| 67 |
tk_ver=${tk_ver#dev-lang/tk-}
|
|
| 68 |
tk_ver=$(ver_cut 1-2 ${tk_ver})
|
|
| 69 |
append-cppflags -I"${ESYSROOT}/usr/$(get_libdir)/tk${tk_ver}/include/generic"
|
|
| 70 |
fi |
|
| 63 | 71 | |
| 64 | 72 |
local mycmakeargs=( |
| 65 | 73 |
-DCGNS_BUILD_SHARED=ON |
| ... | ... | |
| 88 | 96 | |
| 89 | 97 |
src_install() {
|
| 90 | 98 |
cmake_src_install |
| 91 |
dodoc README.md release_docs/{HISTORY,RELEASE,changes_from_2.5}.txt
|
|
| 99 | ||
| 92 | 100 |
rm "${ED}/usr/$(get_libdir)/libcgns.a" || die
|
| 101 | ||
| 102 |
dodoc README.md release_docs/{HISTORY.txt,RELEASE.md}
|
|
| 93 | 103 |
dodoc release_docs/*.pdf |
| 94 | 104 |
docompress -x /usr/share/doc/${PF}/examples
|
| 95 | 105 |
use examples && dodoc -r src/examples |