summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Nizhelskya <kurosuminowa@gmail.com>2023-02-11 12:49:48 +0300
committerJames Le Cuirot <chewi@gentoo.org>2023-08-28 17:14:12 +0100
commita08d84420d181e57e15488de94d1f0be5643feef (patch)
treea54365ef990eb1b54bbfe3983a487c11171b71bf /media-libs/glew
parentmedia-libs/glew: EAPI 8 (diff)
downloadgentoo-a08d84420d181e57e15488de94d1f0be5643feef.tar.gz
gentoo-a08d84420d181e57e15488de94d1f0be5643feef.tar.bz2
gentoo-a08d84420d181e57e15488de94d1f0be5643feef.zip
media-libs/glew: new useflag wayland-only
Signed-off-by: Chloe Nizhelskya <kurosuminowa@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29544 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-libs/glew')
-rw-r--r--media-libs/glew/glew-2.2.0-r1.ebuild30
1 files changed, 18 insertions, 12 deletions
diff --git a/media-libs/glew/glew-2.2.0-r1.ebuild b/media-libs/glew/glew-2.2.0-r1.ebuild
index 249e40d44cd4..5335393e4ec5 100644
--- a/media-libs/glew/glew-2.2.0-r1.ebuild
+++ b/media-libs/glew/glew-2.2.0-r1.ebuild
@@ -12,15 +12,17 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="BSD MIT"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-IUSE="doc static-libs"
+IUSE="doc static-libs wayland-only"
DEPEND="
>=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
- >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
- >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
+ !wayland-only? (
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}]
+ )
"
RDEPEND="${DEPEND}"
@@ -52,13 +54,17 @@ src_prepare() {
glew_system() {
# Set the SYSTEM variable instead of probing. #523444 #595280
- case ${CHOST} in
- *linux*) echo "linux" ;;
- *-darwin*) echo "darwin" ;;
- *-solaris*) echo "solaris" ;;
- mingw*|*-mingw*) echo "mingw" ;;
- *) die "Unknown system ${CHOST}" ;;
- esac
+ if use wayland-only; then
+ echo "linux-egl"
+ else
+ case ${CHOST} in
+ *linux*) echo "linux" ;;
+ *-darwin*) echo "darwin" ;;
+ *-solaris*) echo "solaris" ;;
+ mingw*|*-mingw*) echo "mingw" ;;
+ *) die "Unknown system ${CHOST}" ;;
+ esac
+ fi
}
set_opts() {