summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-04-27 18:35:03 +0200
committerDavid Seifert <soap@gentoo.org>2019-04-27 22:27:45 +0200
commitffc9ba4599520152fa99797cd291b3d7b624f4e7 (patch)
treeaeec778a2810d31ec88d193ab00f114b20259098 /app-text/mupdf
parentdev-db/mysql-cluster: [QA] Fix USE=libressl semantics (diff)
downloadgentoo-ffc9ba4599520152fa99797cd291b3d7b624f4e7.tar.gz
gentoo-ffc9ba4599520152fa99797cd291b3d7b624f4e7.tar.bz2
gentoo-ffc9ba4599520152fa99797cd291b3d7b624f4e7.zip
app-text/mupdf: [QA] Fix USE=libressl semantics
Closes: https://bugs.gentoo.org/683986 Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-text/mupdf')
-rw-r--r--app-text/mupdf/metadata.xml3
-rw-r--r--app-text/mupdf/mupdf-1.14.0-r2.ebuild10
-rw-r--r--app-text/mupdf/mupdf-1.14.0-r3.ebuild17
3 files changed, 13 insertions, 17 deletions
diff --git a/app-text/mupdf/metadata.xml b/app-text/mupdf/metadata.xml
index 5866930fdf0c..88de5fc462b1 100644
--- a/app-text/mupdf/metadata.xml
+++ b/app-text/mupdf/metadata.xml
@@ -5,7 +5,4 @@
<email>vdupras@gentoo.org</email>
<name>Virgil Dupras</name>
</maintainer>
-<use>
- <flag name="openssl">Use dev-libs/openssl crypto backend</flag>
-</use>
</pkgmetadata>
diff --git a/app-text/mupdf/mupdf-1.14.0-r2.ebuild b/app-text/mupdf/mupdf-1.14.0-r2.ebuild
index 0200aa416b3c..8e081a7e46aa 100644
--- a/app-text/mupdf/mupdf-1.14.0-r2.ebuild
+++ b/app-text/mupdf/mupdf-1.14.0-r2.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://mupdf.com/downloads/archive/${P}-source.tar.xz"
LICENSE="AGPL-3"
SLOT="0/${PV}"
KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 s390 x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="X curl +javascript libressl opengl +openssl static-libs +vanilla"
+IUSE="X curl +javascript libressl opengl +ssl static-libs +vanilla"
RDEPEND="
>=dev-lang/mujs-1.0.4
@@ -23,9 +23,11 @@ RDEPEND="
>=media-libs/openjpeg-2.1:2=[static-libs?]
virtual/jpeg[static-libs?]
curl? ( net-misc/curl[static-libs?] )
- !libressl? ( dev-libs/openssl:0=[static-libs?] )
- libressl? ( dev-libs/libressl:0=[static-libs?] )
opengl? ( >=media-libs/freeglut-3.0.0:= )
+ ssl? (
+ libressl? ( dev-libs/libressl:0=[static-libs?] )
+ !libressl? ( dev-libs/openssl:0=[static-libs?] )
+ )
X? (
x11-libs/libX11[static-libs?]
x11-libs/libXext[static-libs?]
@@ -78,7 +80,7 @@ _emake() {
GENTOO_PV=${PV} \
HAVE_GLUT=$(usex opengl yes no) \
WANT_CURL=$(usex curl) \
- WANT_OPENSSL=$(usex openssl) \
+ WANT_OPENSSL=$(usex ssl) \
WANT_X11=$(usex X) \
USE_SYSTEM_LIBS=yes \
USE_SYSTEM_MUJS=yes \
diff --git a/app-text/mupdf/mupdf-1.14.0-r3.ebuild b/app-text/mupdf/mupdf-1.14.0-r3.ebuild
index 1b153620923f..34e7a6e9d187 100644
--- a/app-text/mupdf/mupdf-1.14.0-r3.ebuild
+++ b/app-text/mupdf/mupdf-1.14.0-r3.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://mupdf.com/downloads/archive/${P}-source.tar.xz"
LICENSE="AGPL-3"
SLOT="0/${PV}"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="X curl +javascript libressl opengl openssl static-libs +vanilla"
+IUSE="X curl +javascript libressl opengl ssl static-libs +vanilla"
RDEPEND="
>=dev-lang/mujs-1.0.4
@@ -23,9 +23,11 @@ RDEPEND="
>=media-libs/openjpeg-2.1:2=[static-libs?]
virtual/jpeg[static-libs?]
curl? ( net-misc/curl[static-libs?] )
- libressl? ( >=dev-libs/libressl-2.8:0=[static-libs?] )
opengl? ( >=media-libs/freeglut-3.0.0:= )
- openssl? ( >=dev-libs/openssl-1.1:0=[static-libs?] )
+ ssl? (
+ libressl? ( >=dev-libs/libressl-2.8:0=[static-libs?] )
+ !libressl? ( >=dev-libs/openssl-1.1:0=[static-libs?] )
+ )
X? (
x11-libs/libX11[static-libs?]
x11-libs/libXext[static-libs?]
@@ -34,7 +36,6 @@ DEPEND="${RDEPEND}
virtual/pkgconfig"
REQUIRED_USE="
- libressl? ( !openssl )
opengl? ( !static-libs )
curl? ( X )"
@@ -62,7 +63,7 @@ src_prepare() {
"${FILESDIR}"/${PN}-1.3-zoom-2.patch
# See bug #670832
- use libressl && eapply "${FILESDIR}"/${PN}-1.14-libressl.patch
+ use ssl && use libressl && eapply "${FILESDIR}"/${PN}-1.14-libressl.patch
sed -e "1iOS = Linux" \
-e "1iCC = $(tc-getCC)" \
@@ -78,15 +79,11 @@ src_prepare() {
_emake() {
# When HAVE_OBJCOPY is yes, we end up with a lot of QA warnings.
- local have_libcrypto=no
- if use openssl || use libressl ; then
- have_libcrypto=yes
- fi
emake \
GENTOO_PV=${PV} \
HAVE_GLUT=$(usex opengl) \
HAVE_CURL=$(usex curl) \
- HAVE_LIBCRYPTO=$have_libcrypto \
+ HAVE_LIBCRYPTO=$(usex ssl) \
HAVE_X11=$(usex X) \
USE_SYSTEM_LIBS=yes \
USE_SYSTEM_MUJS=yes \