Skip to content

Commit

Permalink
sci-geosciences/qgis: Make qtserialport optional
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
Closes: #18836
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
doctaweeks authored and thesamesam committed May 17, 2021
1 parent 138f05b commit 5e1231b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions sci-geosciences/qgis/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
<flag name="opencl">Enable OpenCL support</flag>
<flag name="polar">Enable support for the polar coordinate system via <pkg>x11-libs/qwtpolar</pkg></flag>
<flag name="qml">Enable support Qml-based plugins using <pkg>dev-qt/qtdeclarative</pkg></flag>
<flag name="serial">Enable support for serial GPS using <pkg>dev-qt/qtserialport</pkg></flag>
</use>
</pkgmetadata>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ HOMEPAGE="https://www.qgis.org/en/site/"

LICENSE="GPL-2+ GPL-3+"
SLOT="0"
IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle polar postgres python qml"
IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle polar postgres python qml serial"

REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )"

Expand All @@ -45,7 +45,6 @@ COMMON_DEPEND="
dev-qt/qtnetwork:5[ssl]
dev-qt/qtpositioning:5
dev-qt/qtprintsupport:5
dev-qt/qtserialport:5
dev-qt/qtsql:5
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
Expand Down Expand Up @@ -92,6 +91,7 @@ COMMON_DEPEND="
')
)
qml? ( dev-qt/qtdeclarative:5 )
serial? ( dev-qt/qtserialport:5 )
"
DEPEND="${COMMON_DEPEND}
dev-qt/qttest:5
Expand Down Expand Up @@ -149,6 +149,7 @@ src_configure() {
-DWITH_BINDINGS=$(usex python)
-DWITH_CUSTOM_WIDGETS=$(usex python)
-DWITH_QUICK=$(usex qml)
-DWITH_QT5SERIALPORT=$(usex serial)
-DWITH_QTWEBKIT=OFF
)

Expand Down
5 changes: 3 additions & 2 deletions sci-geosciences/qgis/qgis-3.16.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ HOMEPAGE="https://www.qgis.org/en/site/"

LICENSE="GPL-2+ GPL-3+"
SLOT="0"
IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle polar postgres python qml"
IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle polar postgres python qml serial"

REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )"

Expand All @@ -45,7 +45,6 @@ COMMON_DEPEND="
dev-qt/qtnetwork:5[ssl]
dev-qt/qtpositioning:5
dev-qt/qtprintsupport:5
dev-qt/qtserialport:5
dev-qt/qtsql:5
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
Expand Down Expand Up @@ -92,6 +91,7 @@ COMMON_DEPEND="
')
)
qml? ( dev-qt/qtdeclarative:5 )
serial? ( dev-qt/qtserialport:5 )
"
DEPEND="${COMMON_DEPEND}
dev-qt/qttest:5
Expand Down Expand Up @@ -149,6 +149,7 @@ src_configure() {
-DWITH_BINDINGS=$(usex python)
-DWITH_CUSTOM_WIDGETS=$(usex python)
-DWITH_QUICK=$(usex qml)
-DWITH_QT5SERIALPORT=$(usex serial)
-DWITH_QTWEBKIT=OFF
)

Expand Down

0 comments on commit 5e1231b

Please sign in to comment.