app-text/mupdf: fix opengl dependencies
authorVirgil Dupras <vdupras@gentoo.org>
Sat, 11 May 2019 19:16:51 +0000 (15:16 -0400)
committerVirgil Dupras <vdupras@gentoo.org>
Sat, 11 May 2019 19:16:51 +0000 (15:16 -0400)
It was a very bad idea from me to remove dependency on freeglut
on the account that we use the bundled version. I completely forgot
about freeglut dependencies themselves. Bad me.

These dependencies, however, are a bit complex and I find it fragile to
copy-paste them in mupdf. At the cost of installing an extra system
library (freeglut) that is rather small and probably already installed
anyways, we potentially save ourselves tricky problems down the road.

Closes: https://bugs.gentoo.org/685604
Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

app-text/mupdf/mupdf-1.15.0.ebuild

index 440a343441f53e9c539b96e144fd8ea9a8963f84..7d1f75d3ee14f1bc82e66600e738b3fa74a842a2 100644 (file)
@@ -14,6 +14,9 @@ SLOT="0/${PV}"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
 IUSE="X +javascript libressl opengl ssl static-libs vanilla"
 
+# Although we use the bundled, patched version of freeglut in mupdf (because of
+# bug #653298), the best way to ensure that its dependencies are present is to
+# install system's freeglut.
 RDEPEND="
        media-libs/freetype:2=[static-libs?]
        media-libs/harfbuzz:=[static-libs?,truetype]
@@ -21,6 +24,7 @@ RDEPEND="
        media-libs/libpng:0=[static-libs?]
        >=media-libs/openjpeg-2.1:2=[static-libs?]
        virtual/jpeg[static-libs?]
+       opengl? ( >=media-libs/freeglut-3.0.0:= )
        ssl? (
                libressl? ( >=dev-libs/libressl-2.8:0=[static-libs?] )
                !libressl? ( >=dev-libs/openssl-1.1:0=[static-libs?] )