Gentoo Archives: gentoo-commits

From: Julian Ospald <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libvncserver/
Date: Sun, 20 Sep 2015 17:35:24
Message-Id: 1442770502.1c0d0a89fbea06b675e4475c4b8d334b01be3c11.hasufell@gentoo
1 commit: 1c0d0a89fbea06b675e4475c4b8d334b01be3c11
2 Author: Julian Ospald <hasufell <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 20 17:31:54 2015 +0000
4 Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 20 17:35:02 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c0d0a89
7
8 net-libs/libvncserver: add libressl support
9
10 .../libvncserver/libvncserver-0.9.10-r4.ebuild | 71 ++++++++++++++++++++++
11 1 file changed, 71 insertions(+)
12
13 diff --git a/net-libs/libvncserver/libvncserver-0.9.10-r4.ebuild b/net-libs/libvncserver/libvncserver-0.9.10-r4.ebuild
14 new file mode 100644
15 index 0000000..fb9059f
16 --- /dev/null
17 +++ b/net-libs/libvncserver/libvncserver-0.9.10-r4.ebuild
18 @@ -0,0 +1,71 @@
19 +# Copyright 1999-2015 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +# $Id$
22 +
23 +EAPI="5"
24 +
25 +inherit autotools multilib-minimal
26 +
27 +DESCRIPTION="library for creating vnc servers"
28 +HOMEPAGE="http://libvncserver.sourceforge.net/"
29 +SRC_URI="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${PV}.tar.gz"
30 +
31 +LICENSE="GPL-2"
32 +SLOT="0"
33 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
34 +IUSE="+24bpp gcrypt gnutls ipv6 +jpeg libressl +png ssl static-libs test threads +zlib"
35 +
36 +DEPEND="
37 + gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
38 + gnutls? (
39 + >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}]
40 + >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}]
41 + )
42 + !gnutls? (
43 + ssl? (
44 + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
45 + libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
46 + )
47 + )
48 + jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
49 + png? ( >=media-libs/libpng-1.6.10:0[${MULTILIB_USEDEP}] )
50 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
51 +RDEPEND="${DEPEND}"
52 +
53 +S="${WORKDIR}"/${PN}-LibVNCServer-${PV}
54 +
55 +DOCS=( AUTHORS ChangeLog NEWS README TODO )
56 +
57 +src_prepare() {
58 + # https://github.com/LibVNC/libvncserver/issues/11
59 + epatch "${FILESDIR}/${P}-libva-1.0.patch"
60 +
61 + sed -i -r \
62 + -e "/^SUBDIRS/s:\<$(usex test '' 'test|')client_examples|examples\>::g" \
63 + Makefile.am || die
64 +
65 + eautoreconf
66 +}
67 +
68 +multilib_src_configure() {
69 + # bug 548012: disable vaapi per upstream
70 + ECONF_SOURCE=${S} \
71 + econf \
72 + --disable-silent-rules \
73 + --without-libva \
74 + $(use_enable static-libs static) \
75 + $(use_with 24bpp) \
76 + $(use_with gnutls) \
77 + $(usex gnutls --with-gcrypt $(use_with gcrypt)) \
78 + $(usex gnutls --without-ssl $(use_with ssl)) \
79 + $(use_with ipv6) \
80 + $(use_with jpeg) \
81 + $(use_with png) \
82 + $(use_with threads pthread) \
83 + $(use_with zlib)
84 +}
85 +
86 +multilib_src_install_all() {
87 + einstalldocs
88 + prune_libtool_files
89 +}