diff options
author | Thiago Donato Ferreira <flowlnlnln@gmail.com> | 2022-07-23 17:36:44 -0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-29 04:15:03 +0100 |
commit | a8746c40b3e880596eed2c45f33445e740c44d88 (patch) | |
tree | 1e418ab9713fcfdb2c3f845b578878c2bb7eb000 /games-action/polymc | |
parent | games-action/polymc: move scdoc and ECM deps to BDEPEND (diff) | |
download | gentoo-a8746c40b3e880596eed2c45f33445e740c44d88.tar.gz gentoo-a8746c40b3e880596eed2c45f33445e740c44d88.tar.bz2 gentoo-a8746c40b3e880596eed2c45f33445e740c44d88.zip |
games-action/polymc: add `QT_SLOT` variable to simplify maintenance
Signed-off-by: Thiago Donato Ferreira <flowlnlnln@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-action/polymc')
-rw-r--r-- | games-action/polymc/polymc-1.4.0.ebuild | 17 | ||||
-rw-r--r-- | games-action/polymc/polymc-9999.ebuild | 17 |
2 files changed, 18 insertions, 16 deletions
diff --git a/games-action/polymc/polymc-1.4.0.ebuild b/games-action/polymc/polymc-1.4.0.ebuild index 04335972d1f2..508b1bf1a3e7 100644 --- a/games-action/polymc/polymc-1.4.0.ebuild +++ b/games-action/polymc/polymc-1.4.0.ebuild @@ -47,15 +47,16 @@ REQUIRED_USE=" RESTRICT="!test? ( test )" MIN_QT="5.12.0" +QT_SLOT=5 QT_DEPS=" - >=dev-qt/qtconcurrent-${MIN_QT}:5 - >=dev-qt/qtcore-${MIN_QT}:5 - >=dev-qt/qtgui-${MIN_QT}:5 - >=dev-qt/qtnetwork-${MIN_QT}:5 - >=dev-qt/qttest-${MIN_QT}:5 - >=dev-qt/qtwidgets-${MIN_QT}:5 - >=dev-qt/qtxml-${MIN_QT}:5 + >=dev-qt/qtconcurrent-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtcore-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtgui-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtnetwork-${MIN_QT}:${QT_SLOT} + >=dev-qt/qttest-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtwidgets-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtxml-${MIN_QT}:${QT_SLOT} " # Required at both build-time and run-time @@ -98,7 +99,7 @@ src_configure(){ # Resulting binary is named polymc -DLauncher_APP_BINARY_NAME="${PN}" # Force Qt5 to avoid accidentaly building the Qt6 version and breaking things - -DLauncher_QT_VERSION_MAJOR=5 + -DLauncher_QT_VERSION_MAJOR=${QT_SLOT} -DENABLE_LTO=$(usex lto) -DBUILD_TESTING=$(usex test) diff --git a/games-action/polymc/polymc-9999.ebuild b/games-action/polymc/polymc-9999.ebuild index 04335972d1f2..508b1bf1a3e7 100644 --- a/games-action/polymc/polymc-9999.ebuild +++ b/games-action/polymc/polymc-9999.ebuild @@ -47,15 +47,16 @@ REQUIRED_USE=" RESTRICT="!test? ( test )" MIN_QT="5.12.0" +QT_SLOT=5 QT_DEPS=" - >=dev-qt/qtconcurrent-${MIN_QT}:5 - >=dev-qt/qtcore-${MIN_QT}:5 - >=dev-qt/qtgui-${MIN_QT}:5 - >=dev-qt/qtnetwork-${MIN_QT}:5 - >=dev-qt/qttest-${MIN_QT}:5 - >=dev-qt/qtwidgets-${MIN_QT}:5 - >=dev-qt/qtxml-${MIN_QT}:5 + >=dev-qt/qtconcurrent-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtcore-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtgui-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtnetwork-${MIN_QT}:${QT_SLOT} + >=dev-qt/qttest-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtwidgets-${MIN_QT}:${QT_SLOT} + >=dev-qt/qtxml-${MIN_QT}:${QT_SLOT} " # Required at both build-time and run-time @@ -98,7 +99,7 @@ src_configure(){ # Resulting binary is named polymc -DLauncher_APP_BINARY_NAME="${PN}" # Force Qt5 to avoid accidentaly building the Qt6 version and breaking things - -DLauncher_QT_VERSION_MAJOR=5 + -DLauncher_QT_VERSION_MAJOR=${QT_SLOT} -DENABLE_LTO=$(usex lto) -DBUILD_TESTING=$(usex test) |