From b6cfc0c19effe2d9f7b8ab303cd00636f16da253 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 19 Apr 2024 12:05:02 +0100 Subject: gentoo auto-resync : 19:04:2024 - 12:05:02 --- sci-libs/Manifest.gz | Bin 44815 -> 44808 bytes sci-libs/cartopy/Manifest | 6 +- sci-libs/cartopy/cartopy-0.21.1.ebuild | 83 ------------------- sci-libs/cartopy/cartopy-0.22.0.ebuild | 85 +++++++++++++++++++ sci-libs/cartopy/cartopy-0.23.0.ebuild | 87 ++++++++++++++++++++ .../files/cartopy-0.23.0-backport-test-fixes.patch | 13 +++ sci-libs/dsdp/Manifest | 1 - sci-libs/dsdp/dsdp-5.8-r3.ebuild | 90 --------------------- 8 files changed, 190 insertions(+), 175 deletions(-) delete mode 100644 sci-libs/cartopy/cartopy-0.21.1.ebuild create mode 100644 sci-libs/cartopy/cartopy-0.22.0.ebuild create mode 100644 sci-libs/cartopy/cartopy-0.23.0.ebuild create mode 100644 sci-libs/cartopy/files/cartopy-0.23.0-backport-test-fixes.patch delete mode 100644 sci-libs/dsdp/dsdp-5.8-r3.ebuild (limited to 'sci-libs') diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz index 6bc6e41c21a4..d07a7648f8f4 100644 Binary files a/sci-libs/Manifest.gz and b/sci-libs/Manifest.gz differ diff --git a/sci-libs/cartopy/Manifest b/sci-libs/cartopy/Manifest index b55238f95264..6cb82b979239 100644 --- a/sci-libs/cartopy/Manifest +++ b/sci-libs/cartopy/Manifest @@ -1,7 +1,11 @@ AUX cartopy-0.21.1-fix-test.patch 1108 BLAKE2B c88a6a68bf0c0737d31049ac2c5a24791779ccc2b29f767056796c138928b04ffea47d8989dec02ed19725527d512920f07c991eb80f1534b83bf842df48b30e SHA512 010f1c844d21c60dca18dbc5530fcbebb5da99bd4a126e6c844bcb32c55533114c53694fbfc381e9a3aecabab8d11d9fb33a826597b9b66eae30c07f304f44e6 AUX cartopy-0.21.1-fix-test_proj92.patch 5677 BLAKE2B 6ec667d840e4c7909a5c17ed858cd9dd2ea7c8022ece40cdbad00be2b36167e485864c2698969fc033c7c43882fab4b14bd8e3febeaec7c9727c3f34ad84c22f SHA512 e13235d0ee16dbb0748495fc0d697df450f9f4ea7f66845331c5dc3208f70502ebf9c7288730cdd060b20b489b0b2e729bbcb99616a2b6ddf12e42fc45427b06 AUX cartopy-0.21.1-fix-test_proj92_1.patch 2002 BLAKE2B 891615c88200d3a4ed84ecdbdc1150c82524734dc06c8240534788c0395d5e5244d9a6faeafedf174e1172fb929c36a27b9e2a2aa205293063471dc925e1218b SHA512 156704f18ca398c8327ed3a111cfd87696a0d5f7907d4e8c34ce3e0c8a99eea4930c241f88f6a9c8fe8bfab34148cbbe995a6f471332c97ad88aa0d4d9c567e0 +AUX cartopy-0.23.0-backport-test-fixes.patch 520 BLAKE2B 57edd4f30665f243a7e710f3341fae647c897aab5066adf2749fd3c084adc67a730203d29dc3c5d19b8b963ecde2c41cbfd8a5da2c82e8775161d2ee4621a1ef SHA512 701b61807388962d2be57da2b7d32a0cd0b84584119cd0772d8b2a1da15e9cf233a048c2bd3ac08bd353732f7c2ae36bf500983569c1c42fec093752a9c570bd DIST cartopy-0.21.1.gh.tar.gz 10815884 BLAKE2B 4137f593b6ce35270f9df5016529250a07c57ec5a95843db8740eb494f55109b5129cf72153b0216e4f786771bf5cedde3caaecd40175fe9ad5c6fb65ad84788 SHA512 de1d09ee3bf6af13bcc7cc4bb1f7c13335ba67e05d2ad64efa0fb00bdb74c7e13c6fc44822d5ac1d70ee7d39b2322280c1395dc66119b9ecd94ca26014e413a1 +DIST cartopy-0.22.0.gh.tar.gz 10907762 BLAKE2B 0524efb2359f72da4e73cc74c41b03f4e335163dea4b86f5b8907b2a20521ce81a42fceebbdd7e582315b33aed0dfdf159469dfa13516c9c46a8f887f847fa21 SHA512 195cc69170c826240e03918de39925459c94c36b76f1a87b8ec3bca7c00ed577eb8c727ccda1511c0f691ac5aea043d3d02d7bfb603624548e63c9a7dc644ad5 +DIST cartopy-0.23.0.gh.tar.gz 10645484 BLAKE2B aa9306e9f5bd85ae28be4802aac1a36d67df5812e9d188ad20d27103eaff1856b7d48e256459519b4e647bdf17fc207e8473ec6ead7413db113311fe821faba6 SHA512 8f357faad592db03c564d2c87f6d1600d2a04a68b71b250925c222cea418b8588f2eb48f64d3ec7210650a34372777ef8416c8f129af7911661615759d2c60b5 EBUILD cartopy-0.21.1-r1.ebuild 2301 BLAKE2B 0cad49a11e61991c6f2eb42575769941d7944f5b1a802d894d45525ffa045b43f9491123a02f20ee7cf8faf4fa5a792c21096ce1552628542839d8a1765abe15 SHA512 ed4e5e0f66f270fb298276f222f1fc3b68a99288f7714610df7cc772586e1214fc26497e14f542496d56cf21d07922a97bfb89f256a465b76bf85d5af7836e29 -EBUILD cartopy-0.21.1.ebuild 2103 BLAKE2B 40b5cbc22d3ecae968c8e7739264ff3b80c2953d2644e2df0c5d0e82a283a74e583129dea6c4c5b381738527607dc6cc378421c9ac233831b9e55b29e4244016 SHA512 276ac9f06c63821133e8a0d6e752d7a96a09bd1ebc60acbf74825b56ef7f2e2fdad5e874611612c3889aa285348f561776bdaa9d0ac9a00b50183fd2661b3de7 +EBUILD cartopy-0.22.0.ebuild 2153 BLAKE2B 47c7563e70117d433b2d1450efa2fd21666f85d88de9ffcda0378435cb5f087549d3e688ac43706ec6c9f28cd3394de96545c8d4846b84162a2dcc063873226d SHA512 3e3cb0519d3fc86ba19ba2205d9f836b8641da8e02a7635cc8c6706fdad778dce0fc670fb652074461c16d9d069db0101c813fa14194aed8fcce7a50289c18d3 +EBUILD cartopy-0.23.0.ebuild 2193 BLAKE2B 82d5147690bbe2081793db394666cbd1ad41c68a8f18a55f7f6e555d7551273f617db996b4298a062f7436635b0b00f085b9cf3773267705082af22562e63fe7 SHA512 4afffbef0971f207444de7013d948993fac1bac211310fd5f10fa2c2f92e338638bb19023a99b49819b88329563510bfc28e11ba67c477e19855dc7dfa1f15ca MISC metadata.xml 729 BLAKE2B 38605f8140ccae8c9edf2b5eb7bf394e9c99fd089fa998c98422967cc12d3b808d3b7901d3746da25558c9211e47deec01a3d5856176cda8a868c0151a03fed8 SHA512 f3fb714f50475c2e0f4150d20423195fffb39243aefd313e9a9d0fa834364a928a712006d6e1e1def77b902f8c349a4045d3081fe38697054e744441e622a591 diff --git a/sci-libs/cartopy/cartopy-0.21.1.ebuild b/sci-libs/cartopy/cartopy-0.21.1.ebuild deleted file mode 100644 index bad3ea5841c3..000000000000 --- a/sci-libs/cartopy/cartopy-0.21.1.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 multibuild multiprocessing virtualx - -MY_PV=${PV/_beta/b} -MY_P=${PN}-${MY_PV} - -DESCRIPTION="Python package for geospatial data processing and analysis" -HOMEPAGE="https://scitools.org.uk/cartopy" -SRC_URI="https://github.com/SciTools/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" -S="${WORKDIR}"/${MY_P} - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - sci-libs/gdal[python,${PYTHON_SINGLE_USEDEP}] - sci-libs/geos - $(python_gen_cond_dep ' - >=dev-python/numpy-1.19[${PYTHON_USEDEP}] - dev-python/shapely[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - dev-python/pillow[jpeg,${PYTHON_USEDEP}] - dev-python/pyproj[${PYTHON_USEDEP}] - sci-libs/pyshp[${PYTHON_USEDEP}] - ') -" -DEPEND="${RDEPEND}" -BDEPEND=" - $(python_gen_cond_dep ' - dev-python/setuptools-scm[${PYTHON_USEDEP}] - dev-python/cython[${PYTHON_USEDEP}] - ') - test? ( - $(python_gen_cond_dep ' - dev-python/filelock[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/flufl-lock[${PYTHON_USEDEP}] - dev-python/pytest-mpl[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ') - ) -" - -PATCHES=( "${FILESDIR}"/${P}-fix-test.patch ) - -EPYTEST_IGNORE=( - # Require network access, not covered by markers - lib/cartopy/tests/mpl/test_crs.py - lib/cartopy/tests/mpl/test_gridliner.py -) - -distutils_enable_tests pytest - -python_prepare_all() { - export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} - - # Prepare matplotlib backend for test suite - export MPLCONFIGDIR="${T}" - echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die - - distutils-r1_python_prepare_all -} - -python_test() { - cd "${BUILD_DIR}" || die - - # Drop all tests needing network access - virtx epytest -n "$(makeopts_jobs)" -m "not network and not natural_earth" || die "test failed" -} diff --git a/sci-libs/cartopy/cartopy-0.22.0.ebuild b/sci-libs/cartopy/cartopy-0.22.0.ebuild new file mode 100644 index 000000000000..cfc80da1d172 --- /dev/null +++ b/sci-libs/cartopy/cartopy-0.22.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{9..11} ) + +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 multiprocessing virtualx + +MY_PV=${PV/_beta/b} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Python package for geospatial data processing and analysis" +HOMEPAGE="https://scitools.org.uk/cartopy" +SRC_URI="https://github.com/SciTools/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}"/${MY_P} + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + sci-libs/gdal[python,${PYTHON_SINGLE_USEDEP}] + sci-libs/geos + $(python_gen_cond_dep ' + >=dev-python/numpy-1.19[${PYTHON_USEDEP}] + dev-python/shapely[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/pillow[jpeg,${PYTHON_USEDEP}] + dev-python/pyproj[${PYTHON_USEDEP}] + sci-libs/pyshp[${PYTHON_USEDEP}] + ') +" +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/setuptools-scm[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + ') + test? ( + $(python_gen_cond_dep ' + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/flufl-lock[${PYTHON_USEDEP}] + dev-python/pytest-mpl[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ') + ) +" + +EPYTEST_IGNORE=( + # Require network access, not covered by markers + lib/cartopy/tests/mpl/test_crs.py + lib/cartopy/tests/mpl/test_gridliner.py +) + +distutils_enable_tests pytest + +python_prepare_all() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + + # Prepare matplotlib backend for test suite + export MPLCONFIGDIR="${T}" + echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die + + sed -i -e "s/exclude =/#exclude =/" pyproject.toml || die + + distutils-r1_python_prepare_all +} + +python_test() { + cd "${BUILD_DIR}" || die + + # Drop all tests needing network access + virtx epytest -n "$(makeopts_jobs)" -m "not network and not natural_earth" || die "test failed" +} diff --git a/sci-libs/cartopy/cartopy-0.23.0.ebuild b/sci-libs/cartopy/cartopy-0.23.0.ebuild new file mode 100644 index 000000000000..024cbd93e090 --- /dev/null +++ b/sci-libs/cartopy/cartopy-0.23.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_EXT=1 +PYTHON_COMPAT=( python3_{9..12} ) + +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 multiprocessing virtualx + +MY_PV=${PV/_beta/b} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Python package for geospatial data processing and analysis" +HOMEPAGE="https://scitools.org.uk/cartopy" +SRC_URI="https://github.com/SciTools/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}"/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + sci-libs/gdal[python,${PYTHON_SINGLE_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/numpy-1.19[${PYTHON_USEDEP}] + dev-python/shapely[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/pillow[jpeg,${PYTHON_USEDEP}] + dev-python/pyproj[${PYTHON_USEDEP}] + sci-libs/pyshp[${PYTHON_USEDEP}] + ') +" +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/setuptools-scm[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + ') + test? ( + $(python_gen_cond_dep ' + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/flufl-lock[${PYTHON_USEDEP}] + dev-python/pytest-mpl[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ') + ) +" +PATCHES=( + "${FILESDIR}"/${P}-backport-test-fixes.patch +) + +EPYTEST_IGNORE=( + # Require network access, not covered by markers + lib/cartopy/tests/mpl/test_crs.py + lib/cartopy/tests/mpl/test_gridliner.py +) + +distutils_enable_tests pytest + +python_prepare_all() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + + # Prepare matplotlib backend for test suite + export MPLCONFIGDIR="${T}" + echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die + + sed -i -e "s/exclude =/#exclude =/" pyproject.toml || die + + distutils-r1_python_prepare_all +} + +python_test() { + cd "${BUILD_DIR}" || die + + # Drop all tests needing network access + virtx epytest -n "$(makeopts_jobs)" -m "not network and not natural_earth" || die "test failed" +} diff --git a/sci-libs/cartopy/files/cartopy-0.23.0-backport-test-fixes.patch b/sci-libs/cartopy/files/cartopy-0.23.0-backport-test-fixes.patch new file mode 100644 index 000000000000..b88d4110dd6f --- /dev/null +++ b/sci-libs/cartopy/files/cartopy-0.23.0-backport-test-fixes.patch @@ -0,0 +1,13 @@ +# backport last test fix just after v0.23 release +diff --git a/lib/cartopy/tests/mpl/test_gridliner.py b/lib/cartopy/tests/mpl/test_gridliner.py +index 7d82178..d07573e 100644 +--- a/lib/cartopy/tests/mpl/test_gridliner.py ++++ b/lib/cartopy/tests/mpl/test_gridliner.py +@@ -496,6 +496,7 @@ def test_gridliner_count_draws(): + mocked.assert_called_once() + + ++@pytest.mark.natural_earth + @pytest.mark.mpl_image_compare( + baseline_dir='baseline_images/mpl/test_mpl_integration', + filename='simple_global.png') diff --git a/sci-libs/dsdp/Manifest b/sci-libs/dsdp/Manifest index f0519c240062..f51571ebb4cc 100644 --- a/sci-libs/dsdp/Manifest +++ b/sci-libs/dsdp/Manifest @@ -2,6 +2,5 @@ AUX dsdp-5.8-gold.patch 342 BLAKE2B a0cc333fed3f2b1ebdeccc439c0b98f9956bc64ac105 AUX dsdp-5.8-malloc.patch 212 BLAKE2B d030d01bc49aa275c2f0eed48c1808e17877120587dedcf72fb07f737e44953df8c28d2ba6a5a443b372f56c036f9f44e1841a209b383ddab892ff8ef4e0f01d SHA512 a4c324beadb7298c9c8709115c83975d10b359b792042047439631f478fc99648b9348715645cd34d893fe9b6b49b6ba8e628771cde0e007eb0b1f474dd1fd7f AUX dsdp-5.8-readsdpa.patch 495 BLAKE2B 538ca4b9986cb5ed74ecb8510f8de23ecace871111140d394ae982e9932b9a733f2355199deb28cdf88addd0e18939b6a4e22b737a65438dc12e0a36e93d885c SHA512 43b329526f3b7d4761f7dfa44d62f94a843491bf9998f2f839edc880cdd8d04d1c8c7187213eda887025a9f3cdbff19afba6720cd2d70580b0e2dcb9512f8f90 DIST DSDP5.8.tar.gz 2608518 BLAKE2B d464db2956080a33c300520ed291e1b45aeedd28378d5aab753977688bfe74d953f1d40a7aa10c2af8b70808d97dc5ece0c98d2795f707a9a3d2128302658286 SHA512 0a32a34e33dcac151e95ed0f8cee62603bbe2b4ba1e448bba35324fe576376cb33c15908cde61ae5a7c0dcdea945f1ec544f19b3dd36524158573260182e080e -EBUILD dsdp-5.8-r3.ebuild 2378 BLAKE2B c2784ecc2ad26007e429f0d56c4970e2d8a193fd6361d1a126d17bf56ea270910eb6fb29763f6ccd4dc3ff8eabb0fd6db07d92ea2e44880a65f218692f1cb26f SHA512 caee48d512e128819b3ab89436817dba8717e56d260d7729f7b9ffd0ceccee351b1fad871a13cec6215a06c1735dd3cf5e278fc7466583db647467c3da1786da EBUILD dsdp-5.8-r4.ebuild 2348 BLAKE2B 11a061fd889bd1ccb98490ec5b26dd0c3a9ce0b5b280380602100c0f1054c18fe06fd9c38be617937354deca4cca969f3aaba8fb6ca48cf2a60352a5c1b6e201 SHA512 de7b3a461173bc55c3011960287c218b7ad3de2d921e1d3acbc267a47197c20ec19f2092d9ad855ae63cb76b975e0adda9000c6123233bd2988763f8da8ce4a4 MISC metadata.xml 1247 BLAKE2B a16963bce23be7c86668f69d4f7da2eddbafa59aca0f7c02624dde51a87a79f8cab972509ff63aee66cde41767f91181e0f67310fc2e08f52eba8cf31aebf102 SHA512 357a53f66ebafc58279b6af27d833ca154805bcf626c7d719c3041ed701609b509ee35e393e7218fe54e97aef6873b4484367daed861f6a17cb563d9a4dcaad3 diff --git a/sci-libs/dsdp/dsdp-5.8-r3.ebuild b/sci-libs/dsdp/dsdp-5.8-r3.ebuild deleted file mode 100644 index 6ddc6b9b3640..000000000000 --- a/sci-libs/dsdp/dsdp-5.8-r3.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit multilib toolchain-funcs versionator - -MY_P="${PN^^}${PV}" - -DESCRIPTION="Software for interior-point for semidefinite programming" -HOMEPAGE="https://www.mcs.anl.gov/hs/software/DSDP/" -SRC_URI="https://www.mcs.anl.gov/hs/software/DSDP/${MY_P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="doc examples" - -RDEPEND="virtual/lapack" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( - "${FILESDIR}"/${P}-readsdpa.patch - "${FILESDIR}"/${P}-malloc.patch - "${FILESDIR}"/${P}-gold.patch -) - -make_shared_lib() { - local soname=$(basename "${1%.a}")$(get_libname $(get_major_version)) - local cflags=() - - if [[ ${CHOST} == *-darwin* ]] ; then - cflags+=( - "-Wl,-install_name" - "-Wl,${EPREFIX}/usr/$(get_libdir)/${soname}" - ) - else - cflags+=( - "-shared" "-Wl,-soname=${soname}" - "-Wl,--whole-archive" "${1}" "-Wl,--no-whole-archive" - ) - fi - einfo "Making ${soname}" - ${2:-$(tc-getCC)} ${LDFLAGS} \ - "${cflags[@]}" \ - -o $(dirname "${1}")/"${soname}" \ - -lm $($(tc-getPKG_CONFIG) --libs blas lapack) || return 1 -} - -src_prepare() { - default - # to do proper parallel compilation - while IFS="" read -d $'\0' -r file; do - sed -i -e 's:make :$(MAKE) :g' "${file}" || die - done < <(find . -name Makefile -print0) - sed -i -e 's:make clean:$(MAKE) clean:g' make.include || die - sed -i \ - -e "s|#\(DSDPROOT[[:space:]]*=\).*|\1${S}|" \ - -e "s|\(CC[[:space:]]*=\).*|\1$(tc-getCC)|" \ - -e "s|\(OPTFLAGS[[:space:]]*=\).*|\1${CFLAGS}|" \ - -e "s|\(CLINKER[[:space:]]*=\).*|\1 \${CC} ${LDFLAGS}|" \ - -e "s|\(LAPACKBLAS[[:space:]]*=\).*|\1 $($(tc-getPKG_CONFIG) --libs blas lapack)|" \ - -e "s|\(^ARCH[[:space:]]*=\).*|\1$(tc-getAR) cr|" \ - -e "s|\(^RANLIB[[:space:]]*=\).*|\1$(tc-getRANLIB)|" \ - make.include || die -} - -src_compile() { - emake OPTFLAGS="${CFLAGS} -fPIC" dsdplibrary - make_shared_lib lib/lib${PN}.a || die "doing shared lib failed" -} - -src_test() { - emake -j1 example test -} - -src_install() { - dolib.so lib/lib${PN}$(get_libname $(get_major_version)) - dosym lib${PN}$(get_libname $(get_major_version)) \ - /usr/$(get_libdir)/lib${PN}$(get_libname) - - doheader include/*.h src/sdp/*.h - - use doc && DOCS+=( docs/*.pdf ) - use examples && DOCS+=( examples/. ) - einstalldocs -} -- cgit v1.2.3