mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
dev-libs/StringiFor: drop old 1.1.1, 1.1.3
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
@@ -1,9 +1 @@
|
||||
DIST BeFoR64-1.1.4.tar.gz 32928 BLAKE2B ef5ca349508525c48843c613ef945f33e165069d2ade3f98acf25810daa22617d8c5fe45c4127d3eef36a5358cc1052237e6d94fce0ab4ae289a28a0d9c99b48 SHA512 26b0fa2cb754fa0f3809f5de29136073fdd399d0b192a5d97b67759a1a9f68fd59894f5fa9a805c7626732b63f18990922d88b110bd6d4ccdd5218fd330a4c81
|
||||
DIST BeFoR64-1.1.4_p20201012.tar.gz 37269 BLAKE2B 6930f3d9ce2c0f3f93d7c9a9e0662c65de3f3cef9b701b864033c98499b5d1d2fdee97da9efadcce7c3d1e4aec49b5223dd24e86c2cfd317620407f8d07b6e3e SHA512 6e4c49a7f4eb32cf1ecc0db335e315bdf82f0f46cf1075811394646264da023a30afbccd00c73619b6c93cf5d6daefc4a36e5f1fe44060f0f8131418a7e71f70
|
||||
DIST FACE-1.1.2.tar.gz 159747 BLAKE2B 007c6bfc4148649a28f322f451f665750dc7cca515fae3c3d9b96694ea20ed0586471b9def43c92039bdf9450a1ebf9a927e5d50e8df4ea829284f41c331464e SHA512 e9eb336923780bf1a1b37a5f897a72181599bf843e91f118d4d418aebf26489bdeaedbd9025b8abda446b7bdb5e97746346e68ff6357d159a675d0aca3a3ee4c
|
||||
DIST FACE-1.1.2_p20201005.tar.gz 157807 BLAKE2B f263abdb64b1153eb4eedf9e65a28614ff20bacf59f635d6ddfaa4e30cc47521fde8ae885e961b52fa8b86c7133fea4e67f7dde8676b25a0df8f1e28008a84f7 SHA512 9fb594211d583ef7176787f02268afa95700bf8a1905d26c51c5e40982fffb42b1b08e83f524d81d420981d607245c36e2a4a69464f8b1c5ae7c75c03643950d
|
||||
DIST PENF-1.2.2.tar.gz 143245 BLAKE2B d59353195c7502514091ad0a4dae42d9c3d5e8b383160f46e512ce42ed242539347683c5d79ae6a2093feee428af6137f6ecf8673c54ac15dc13a7029984dcf2 SHA512 12086abad9bdf552a9f41f862819a9fe6d91b18827515473f3ec36722fcd593cdb5d01a6769567dbc91238233d706ae4f2520e7767556e17b0dcb42e10999571
|
||||
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
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
FORTRAN_STANDARD=2003
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit fortran-2 python-any-r1 toolchain-funcs
|
||||
|
||||
# Unfortunately the releases don't have appropriate release-tags
|
||||
# so there commits sha-1 checksum are used
|
||||
StringiFor_sha="7f73f2682372201721f0fd670cf9c772d11b5268" # StringiFor-1.1.1 (27 jan 2020)
|
||||
BeFoR64_sha="d2be41faa804c5b1b811351c5384cdb6c58ce431" # BeFoR-1.1.4 (11 sep 2019)
|
||||
FACE_sha="e3700566a18e145f0f90ba6c89570b690526845b" # FACE-1.1.2 (11 sep 2019)
|
||||
PENF_sha="d2b27d5652f48584b9468ebd0b11dd44b5fb1638" # PENF-1.2.2 (11 sep 2019)
|
||||
|
||||
DESCRIPTION="StringiFor, Strings Fortran Manipulator, yet another strings Fortran module"
|
||||
HOMEPAGE="https://github.com/szaghi/StringiFor"
|
||||
SRC_URI="
|
||||
https://github.com/szaghi/${PN}/archive/"${StringiFor_sha}".tar.gz -> ${P}.tar.gz
|
||||
https://github.com/szaghi/BeFoR64/archive/"${BeFoR64_sha}".tar.gz -> BeFoR64-1.1.4.tar.gz
|
||||
https://github.com/szaghi/FACE/archive/"${FACE_sha}".tar.gz -> FACE-1.1.2.tar.gz
|
||||
https://github.com/szaghi/PENF/archive/"${PENF_sha}".tar.gz -> PENF-1.2.2.tar.gz
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${StringiFor_sha}"
|
||||
|
||||
# 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.1_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() {
|
||||
mv -T "${WORKDIR}"/BeFoR64-"${BeFoR64_sha}" "${S}"/src/third_party/BeFoR64 || die
|
||||
mv -T "${WORKDIR}"/FACE-"${FACE_sha}" "${S}"/src/third_party/FACE || die
|
||||
mv -T "${WORKDIR}"/PENF-"${PENF_sha}" "${S}"/src/third_party/PENF || die
|
||||
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
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
FORTRAN_STANDARD=2003
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit fortran-2 python-any-r1 toolchain-funcs
|
||||
|
||||
# Unfortunately the releases don't have appropriate release-tags
|
||||
# so there commits sha-1 checksum are used
|
||||
StringiFor_sha="bad95cb8c1ae0f17dd3e15acd6bc2a8cde4bb606" # StringiFor-1.1.3 (18 jun 2021)
|
||||
BeFoR64_sha="e222ede7f1207f74acafd30c6c6e1d3585b5bb74" # BeFoR-1.1.4_p20201012 (12 oct 2020)
|
||||
FACE_sha="748688899f73bcb0d2723f5c00e3d0fe13648167" # FACE-1.1.2_p20201005 (5 oct 2020)
|
||||
PENF_sha="b146a7d6444e0cd8a42a20452a7c4a4f4f16c667" # PENF-1.2.2_20201012 (12 oct 2020)
|
||||
|
||||
DESCRIPTION="StringiFor, Strings Fortran Manipulator, yet another strings Fortran module"
|
||||
HOMEPAGE="https://github.com/szaghi/StringiFor"
|
||||
SRC_URI="
|
||||
https://github.com/szaghi/${PN}/archive/"${StringiFor_sha}".tar.gz -> ${P}.tar.gz
|
||||
https://github.com/szaghi/BeFoR64/archive/"${BeFoR64_sha}".tar.gz -> BeFoR64-1.1.4_p20201012.tar.gz
|
||||
https://github.com/szaghi/FACE/archive/"${FACE_sha}".tar.gz -> FACE-1.1.2_p20201005.tar.gz
|
||||
https://github.com/szaghi/PENF/archive/"${PENF_sha}".tar.gz -> PENF-1.2.2_p20201012.tar.gz
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${StringiFor_sha}"
|
||||
|
||||
# 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() {
|
||||
mv -T "${WORKDIR}"/BeFoR64-"${BeFoR64_sha}" "${S}"/src/third_party/BeFoR64 || die
|
||||
mv -T "${WORKDIR}"/FACE-"${FACE_sha}" "${S}"/src/third_party/FACE || die
|
||||
mv -T "${WORKDIR}"/PENF-"${PENF_sha}" "${S}"/src/third_party/PENF || die
|
||||
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
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
diff -Naur a/src/tests/stringifor/stringifor_test_csv_naive_parser.f90 b/src/tests/stringifor/stringifor_test_csv_naive_parser.f90
|
||||
--- a/src/tests/stringifor/stringifor_test_csv_naive_parser.f90 2020-01-27 20:28:35.000000000 +0300
|
||||
+++ b/src/tests/stringifor/stringifor_test_csv_naive_parser.f90 2020-04-17 03:48:42.000000000 +0300
|
||||
@@ -49,8 +49,7 @@
|
||||
print "(A)", 'A markdown-formatted table'
|
||||
print "(A)", ''
|
||||
print "(A)", '|'//csv%join(array=cells(:, 1), sep='|')//'|'
|
||||
-columns = '----' ! re-use columns for printing separators
|
||||
-print "(A)", '|'//csv%join(array=columns, sep='|')//'|'
|
||||
+print "(A)", '|'//repeat('----|', size(columns)) ! printing separators
|
||||
do r=2, rows_number
|
||||
print "(A)", '|'//csv%join(array=cells(:, r), sep='|')//'|'
|
||||
enddo
|
||||
diff -Naur a/src/tests/stringifor/stringifor_test_parse_large_csv.f90 b/src/tests/stringifor/stringifor_test_parse_large_csv.f90
|
||||
--- a/src/tests/stringifor/stringifor_test_parse_large_csv.f90 2020-01-27 20:28:35.000000000 +0300
|
||||
+++ b/src/tests/stringifor/stringifor_test_parse_large_csv.f90 2020-04-17 16:23:57.000000000 +0300
|
||||
@@ -30,8 +30,7 @@
|
||||
print "(A)", 'A markdown-formatted table'
|
||||
print "(A)", ''
|
||||
print "(A)", '|'//csv%join(array=cells(:, 1), sep='|')//'|'
|
||||
-columns = '----' ! re-use columns for printing separators
|
||||
-print "(A)", '|'//csv%join(array=columns, sep='|')//'|'
|
||||
+print "(A)", '|'//repeat('----|', size(columns)) ! printing separators
|
||||
do r=2, rows_number
|
||||
print "(A)", '|'//csv%join(array=cells(:, r), sep='|')//'|'
|
||||
enddo
|
||||
diff -Naur a/src/third_party/FACE/src/tests/face_test_ucs4.F90 b/src/third_party/FACE/src/tests/face_test_ucs4.F90
|
||||
--- a/src/third_party/FACE/src/tests/face_test_ucs4.F90 2019-09-11 19:00:21.000000000 +0300
|
||||
+++ b/src/third_party/FACE/src/tests/face_test_ucs4.F90 2020-04-19 15:40:35.000000000 +0300
|
||||
@@ -2,9 +2,10 @@
|
||||
program face_test_ucs4
|
||||
!< FACE test.
|
||||
use face
|
||||
+use iso_fortran_env
|
||||
|
||||
implicit none
|
||||
-#ifdef UCS4_SUPPORTED
|
||||
+
|
||||
character(kind=UCS4, len=:), allocatable :: string_1 !< A string.
|
||||
character(kind=UCS4, len=:), allocatable :: string_2 !< A string.
|
||||
character(kind=UCS4, len=:), allocatable :: string_3 !< A string.
|
||||
@@ -13,5 +14,5 @@
|
||||
string_2 = colorize(UCS4_' ÜÇŞ4', color_fg='red')
|
||||
string_3 = colorize(' World', color_fg='blue')
|
||||
print '(A)', string_1//string_2//string_3
|
||||
-#endif
|
||||
+
|
||||
endprogram face_test_ucs4
|
||||
Reference in New Issue
Block a user