mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-libs/StringiFor: 1.1.4 version bump
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
@@ -6,3 +6,4 @@ DIST PENF-1.2.2.tar.gz 143245 BLAKE2B d59353195c7502514091ad0a4dae42d9c3d5e8b383
|
||||
DIST PENF-1.2.2_p20201012.tar.gz 142299 BLAKE2B 253697c67c62ffc4f7b32375a1451913b178dbf3d79f0c7eab76a14c9f6969df65ce8b9422c0851a819065a979d0935724bc3121a48fb40a1c963880c375670d SHA512 14b6246c0e6c8f4a4602bac22c1d8f6fd89ca174c7a6539d5da97c0bbe4049891117b0a469e72472ca5dbac44b613b806ed050a41a357b96cf939a525e3cb307
|
||||
DIST StringiFor-1.1.1.tar.gz 80098 BLAKE2B d42774323703550355b90ce706e62356a30cb4a27a37622841c28bbff9f9504ce7da8997222f6a0bb1e5ec56894ffdd679dc1a5b2a8f8bb353580491554fbce7 SHA512 14639dbb62e2b1ccb9cdb3c8100da7da8ff7d2a06d304bce2a9e8574e52adbd2f589f0017498ce7489f4977acdc99cfc889a5a752bc8efd58da41cea104c0712
|
||||
DIST StringiFor-1.1.3.tar.gz 83606 BLAKE2B 5cd00941d2ac8c7fbe501e7fed0747f8c4ae5f61edf336a86ea89f9fd500ee016e97664ca0bbcdbcfd4c007c203fdc4fbbdbef617c0d0d115b5a96dd89b98fbf SHA512 d1a1a7848cec657544ec4fab5517cb19fbf2b8655500c86d2b4dd0fc6bdb143c4929770b0e61c7e2d9c7b5660ca8e7e6cf283bb4744d17ca252cc8e71a08c163
|
||||
DIST StringiFor-1.1.4.tar.gz 571734 BLAKE2B 2f830b266fbe9022a41f23f4abc13062bb581fe103a5348305050d46cf575a96a4c1998cb99ea68745209b54bc4862d52aef9c724c41d8341ff5ec7a5a8ef994 SHA512 3176a0eacdc8cfc1049373bd3313c64b8f7744d430f05b2aba4768311145e509ac1783152061da3e10af3dff9fa949da7e2554c2f8ad6a648d51eacbef007d30
|
||||
|
||||
91
dev-libs/StringiFor/StringiFor-1.1.4.ebuild
Normal file
91
dev-libs/StringiFor/StringiFor-1.1.4.ebuild
Normal file
@@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
FORTRAN_STANDARD=2003
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit fortran-2 python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="StringiFor, Strings Fortran Manipulator, yet another strings Fortran module"
|
||||
HOMEPAGE="https://github.com/szaghi/StringiFor"
|
||||
SRC_URI="https://github.com/szaghi/StringiFor/releases/download/v${PV}/StringiFor.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
# For FOSS projects: GPL-3
|
||||
# For closed source/commercial projects: BSD 2-Clause, BSD 3-Clause, MIT
|
||||
LICENSE="GPL-3 BSD-2 BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-util/FoBiS[${PYTHON_USEDEP}]
|
||||
')
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/stringifor-1.1.1_fobos_soname.patch"
|
||||
"${FILESDIR}/stringifor-1.1.3_fix_tests.patch"
|
||||
)
|
||||
|
||||
set_build_mode() {
|
||||
case $(tc-getFC) in
|
||||
*gfortran* )
|
||||
BUILD_MODE_SHARED="-mode stringifor-shared-gnu"
|
||||
BUILD_MODE_STATIC="-mode stringifor-static-gnu"
|
||||
BUILD_MODE_TESTS="-mode tests-gnu" ;;
|
||||
*ifort* )
|
||||
BUILD_MODE_SHARED="-mode stringifor-shared-intel"
|
||||
BUILD_MODE_STATIC="-mode stringifor-static-intel"
|
||||
BUILD_MODE_TESTS="-mode tests-intel" ;;
|
||||
* )
|
||||
die "Sorry, GNU gfortran or Intel ifort are currently supported in the ebuild" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
fortran-2_pkg_setup
|
||||
set_build_mode
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -e 's:\$OPTIMIZE = -O2:\$OPTIMIZE = '"${FFLAGS}"':' \
|
||||
-e '/^\$LSHARED/s:$: '"${LDFLAGS}"':' fobos || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
${EPYTHON} FoBiS.py build -verbose -compiler custom -fc $(tc-getFC) ${BUILD_MODE_SHARED} || die
|
||||
use static-libs && { ${EPYTHON} FoBiS.py build -verbose -compiler custom -fc $(tc-getFC) ${BUILD_MODE_STATIC} || die; }
|
||||
}
|
||||
|
||||
src_test() {
|
||||
${EPYTHON} FoBiS.py build -compiler custom -fc $(tc-getFC) ${BUILD_MODE_TESTS} || die
|
||||
for e in $( find ./exe/ -type f -executable -print ); do
|
||||
if [ "$e" != "./exe/stringifor_test_parse_large_csv" ] ; then
|
||||
echo " run test $e :" && { $e || die; }
|
||||
else
|
||||
# The output of this test is too huge so it's cutted here
|
||||
echo " run test $e :" && { $e | tail -n 10 || die; }
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mv lib/mod lib/stringifor || die
|
||||
doheader -r lib/stringifor/
|
||||
|
||||
mv lib/libstringifor.so{,.1} || die
|
||||
dosym libstringifor.so.1 /usr/$(get_libdir)/libstringifor.so
|
||||
dolib.so lib/libstringifor.so.1
|
||||
|
||||
use static-libs && dolib.a lib/libstringifor.a
|
||||
}
|
||||
Reference in New Issue
Block a user