public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergey Torokhov" <torokhov-s-a@yandex.ru>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/StringiFor/
Date: Fri, 10 Sep 2021 11:26:27 +0000 (UTC)	[thread overview]
Message-ID: <1631273014.3697e41d192b7638b1c0fe004fb69124f19d0002.SergeyTorokhov@gentoo> (raw)

commit:     3697e41d192b7638b1c0fe004fb69124f19d0002
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Fri Sep 10 11:23:34 2021 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Fri Sep 10 11:23:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3697e41d

dev-libs/StringiFor: Fix BDEPEND python implementation. Add '|| die'.

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 dev-libs/StringiFor/StringiFor-1.1.1.ebuild | 32 +++++++++++++++++------------
 dev-libs/StringiFor/StringiFor-1.1.3.ebuild | 30 ++++++++++++++++-----------
 2 files changed, 37 insertions(+), 25 deletions(-)

diff --git a/dev-libs/StringiFor/StringiFor-1.1.1.ebuild b/dev-libs/StringiFor/StringiFor-1.1.1.ebuild
index 65350be77..2239e9843 100644
--- a/dev-libs/StringiFor/StringiFor-1.1.1.ebuild
+++ b/dev-libs/StringiFor/StringiFor-1.1.1.ebuild
@@ -4,8 +4,9 @@
 EAPI=7
 
 FORTRAN_STANDARD=2003
+PYTHON_COMPAT=( python3_{8..10} )
 
-inherit  fortran-2 toolchain-funcs
+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
@@ -18,9 +19,9 @@ DESCRIPTION="StringiFor, Strings Fortran Manipulator, yet another strings Fortra
 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
-	https://github.com/szaghi/BeFoR64/archive/"${BeFoR64_sha}".tar.gz -> BeFoR64-1.1.4.tar.gz
 "
 
 S="${WORKDIR}/${PN}-${StringiFor_sha}"
@@ -34,7 +35,12 @@ KEYWORDS="~amd64 ~x86"
 IUSE="static-libs test"
 RESTRICT="!test? ( test )"
 
-BDEPEND="dev-util/FoBiS"
+BDEPEND="
+	${PYTHON_DEPS}
+	$(python_gen_any_dep '
+		dev-util/FoBiS[${PYTHON_USEDEP}]
+	')
+"
 
 PATCHES=(
 	"${FILESDIR}/stringifor-1.1.1_fobos_soname.patch"
@@ -62,9 +68,9 @@ pkg_setup() {
 }
 
 src_prepare() {
-	mv -T "${WORKDIR}"/BeFoR64-"${BeFoR64_sha}" "${S}"/src/third_party/BeFoR64
-	mv -T "${WORKDIR}"/FACE-"${FACE_sha}" "${S}"/src/third_party/FACE
-	mv -T "${WORKDIR}"/PENF-"${PENF_sha}" "${S}"/src/third_party/PENF
+	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}"':' \
@@ -72,27 +78,27 @@ src_prepare() {
 }
 
 src_compile() {
-	FoBiS.py build -verbose -compiler custom -fc $(tc-getFC) ${BUILD_MODE_SHARED}
-	use static-libs && FoBiS.py build -verbose -compiler custom -fc $(tc-getFC) ${BUILD_MODE_STATIC}
+	${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() {
-	FoBiS.py build -compiler custom -fc $(tc-getFC) ${BUILD_MODE_TESTS}
+	${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
+			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
+			echo "  run test $e :" && { $e | tail -n 10 || die; }
 		fi
 	done
 }
 
 src_install() {
-	mv lib/mod lib/stringifor
+	mv lib/mod lib/stringifor || die
 	doheader -r lib/stringifor/
 
-	mv lib/libstringifor.so{,.1}
+	mv lib/libstringifor.so{,.1} || die
 	dosym libstringifor.so.1 /usr/$(get_libdir)/libstringifor.so
 	dolib.so lib/libstringifor.so.1
 

diff --git a/dev-libs/StringiFor/StringiFor-1.1.3.ebuild b/dev-libs/StringiFor/StringiFor-1.1.3.ebuild
index 074ba8377..6bd69ccfa 100644
--- a/dev-libs/StringiFor/StringiFor-1.1.3.ebuild
+++ b/dev-libs/StringiFor/StringiFor-1.1.3.ebuild
@@ -4,8 +4,9 @@
 EAPI=7
 
 FORTRAN_STANDARD=2003
+PYTHON_COMPAT=( python3_{8..10} )
 
-inherit  fortran-2 toolchain-funcs
+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
@@ -34,7 +35,12 @@ KEYWORDS="~amd64 ~x86"
 IUSE="static-libs test"
 RESTRICT="!test? ( test )"
 
-BDEPEND="dev-util/FoBiS"
+BDEPEND="
+	${PYTHON_DEPS}
+	$(python_gen_any_dep '
+		dev-util/FoBiS[${PYTHON_USEDEP}]
+	')
+"
 
 PATCHES=(
 	"${FILESDIR}/stringifor-1.1.1_fobos_soname.patch"
@@ -62,9 +68,9 @@ pkg_setup() {
 }
 
 src_prepare() {
-	mv -T "${WORKDIR}"/BeFoR64-"${BeFoR64_sha}" "${S}"/src/third_party/BeFoR64
-	mv -T "${WORKDIR}"/FACE-"${FACE_sha}" "${S}"/src/third_party/FACE
-	mv -T "${WORKDIR}"/PENF-"${PENF_sha}" "${S}"/src/third_party/PENF
+	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}"':' \
@@ -72,27 +78,27 @@ src_prepare() {
 }
 
 src_compile() {
-	FoBiS.py build -verbose -compiler custom -fc $(tc-getFC) ${BUILD_MODE_SHARED}
-	use static-libs && FoBiS.py build -verbose -compiler custom -fc $(tc-getFC) ${BUILD_MODE_STATIC}
+	${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() {
-	FoBiS.py build -compiler custom -fc $(tc-getFC) ${BUILD_MODE_TESTS}
+	${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
+			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
+			echo "  run test $e :" && { $e | tail -n 10 || die; }
 		fi
 	done
 }
 
 src_install() {
-	mv lib/mod lib/stringifor
+	mv lib/mod lib/stringifor || die
 	doheader -r lib/stringifor/
 
-	mv lib/libstringifor.so{,.1}
+	mv lib/libstringifor.so{,.1} || die
 	dosym libstringifor.so.1 /usr/$(get_libdir)/libstringifor.so
 	dolib.so lib/libstringifor.so.1
 


             reply	other threads:[~2021-09-10 11:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-10 11:26 Sergey Torokhov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-18 19:14 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/StringiFor/ Sergey Torokhov
2024-01-25 17:40 Sergey Torokhov
2024-01-21 20:32 Sergey Torokhov
2023-01-18 21:47 Sergey Torokhov
2022-10-13 15:57 Sergey Torokhov
2021-04-24  9:39 Sergey Torokhov
2021-04-22  6:45 Andrew Ammerlaan
2020-04-25 20:07 Alessandro Barbieri
2020-04-21 12:35 Sergey Torokhov
2020-04-19 16:48 Sergey Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1631273014.3697e41d192b7638b1c0fe004fb69124f19d0002.SergeyTorokhov@gentoo \
    --to=torokhov-s-a@yandex.ru \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox