summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-10-16 17:09:25 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-10-16 17:10:15 +0200
commit2ec5dd82dd63f265822a2e4e37aabc722d1bcac0 (patch)
treebc108ab1170862e5799dbd115324fee530fdca46 /sci-libs
parentnet-analyzer/tcpreplay: drop 4.3.4, 4.4.1 (diff)
downloadgentoo-2ec5dd82dd63f265822a2e4e37aabc722d1bcac0.tar.gz
gentoo-2ec5dd82dd63f265822a2e4e37aabc722d1bcac0.tar.bz2
gentoo-2ec5dd82dd63f265822a2e4e37aabc722d1bcac0.zip
sci-libs/silo: Fix configure w/o Qt binaries in PATH, drop which usage
Closes: https://bugs.gentoo.org/851018 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/silo/files/silo-4.11-qtbindir.patch43
-rw-r--r--sci-libs/silo/silo-4.11-r1.ebuild6
2 files changed, 48 insertions, 1 deletions
diff --git a/sci-libs/silo/files/silo-4.11-qtbindir.patch b/sci-libs/silo/files/silo-4.11-qtbindir.patch
new file mode 100644
index 000000000000..70a62a9b8ec8
--- /dev/null
+++ b/sci-libs/silo/files/silo-4.11-qtbindir.patch
@@ -0,0 +1,43 @@
+--- a/configure 2021-09-11 00:22:52.000000000 +0200
++++ b/configure 2022-10-16 17:03:52.235916191 +0200
+@@ -25725,7 +25725,10 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5
+ $as_echo_n "checking for Qt... " >&6; }
+ # If we have Qt5 or later in the path, we're golden
+- ver=`qmake --version | grep -o "Qt version ."`
++ if [[ -z $QMAKE ]]; then
++ QMAKE=qmake
++ fi
++ ver=`$QMAKE --version | grep -o "Qt version ."`
+ if test "$ver" ">" "Qt version 4"; then
+ have_qt=yes
+ # This pro file dumps qmake's variables, but it only works on Qt 5 or later
+@@ -25750,21 +25753,21 @@
+ percent.commands = @echo -n "\$(\$(@))\ "
+ QMAKE_EXTRA_TARGETS += percent
+ EOF
+- qmake $am_have_qt_pro -o $am_have_qt_makefile
++ $QMAKE $am_have_qt_pro -o $am_have_qt_makefile
+ QT_CXXFLAGS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile CXXFLAGS INCPATH | tr -d '"'`
+ QT_LIBS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile LIBS`
+ rm $am_have_qt_pro $am_have_qt_makefile
+ rmdir $am_have_qt_dir
+
+ # Look for specific tools in $PATH
+- QT_MOC=`which moc`
+- QT_UIC=`which uic`
+- QT_RCC=`which rcc`
+- QT_LRELEASE=`which lrelease`
+- QT_LUPDATE=`which lupdate`
++ QT_MOC=$QT_BIN_DIR/moc
++ QT_UIC=$QT_BIN_DIR/uic
++ QT_RCC=$QT_BIN_DIR/rcc
++ QT_LRELEASE=$QT_BIN_DIR/lrelease
++ QT_LUPDATE=$QT_BIN_DIR/lupdate
+
+ # Get Qt version from qmake
+- QT_DIR=`qmake --version | grep -o -E /.+`
++ QT_DIR=`$QMAKE --version | grep -o -E /.+`
+
+ # All variables are defined, report the result
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt:
diff --git a/sci-libs/silo/silo-4.11-r1.ebuild b/sci-libs/silo/silo-4.11-r1.ebuild
index 3372e92a569c..bfae9dec06c8 100644
--- a/sci-libs/silo/silo-4.11-r1.ebuild
+++ b/sci-libs/silo/silo-4.11-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit flag-o-matic fortran-2
+inherit flag-o-matic fortran-2 qmake-utils
DESCRIPTION="A mesh and field I/O library and scientific database"
HOMEPAGE="https://wci.llnl.gov/simulation/computer-codes/silo"
@@ -25,6 +25,7 @@ RDEPEND="
hdf5? ( sci-libs/hdf5 )
"
DEPEND="${RDEPEND}"
+BDEPEND="dev-qt/linguist-tools:5"
PATCHES=(
"${FILESDIR}"/${P}-hdf5.patch
@@ -32,6 +33,7 @@ PATCHES=(
"${FILESDIR}"/${P}-tests.patch
"${FILESDIR}"/${P}-testsuite-python-write.patch
"${FILESDIR}"/${P}-widgets.patch
+ "${FILESDIR}"/${P}-qtbindir.patch
)
src_configure() {
@@ -39,6 +41,8 @@ src_configure() {
# see https://github.com/LLNL/Silo/issues/234
append-fflags $(test-flags-F77 -fallow-argument-mismatch)
+ QMAKE=$(qt5_get_bindir)/qmake \
+ QT_BIN_DIR=$(qt5_get_bindir) \
econf \
--enable-install-lite-headers \
--enable-shared \