Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/virtualgl/
Date: Fri, 11 Jan 2019 21:31:10
Message-Id: 1547242251.dc2083cd338db0dea15ae78549e2d608edc96c02.candrews@gentoo
1 commit: dc2083cd338db0dea15ae78549e2d608edc96c02
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 11 21:27:32 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 11 21:30:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc2083cd
7
8 x11-misc/virtualgl: 2.6.1 version bump
9
10 Closes: https://bugs.gentoo.org/show_bug.cgi?id=674072
11 Package-Manager: Portage-2.3.55, Repoman-2.3.12
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 x11-misc/virtualgl/Manifest | 1 +
15 x11-misc/virtualgl/virtualgl-2.6.1.ebuild | 93 +++++++++++++++++++++++++++++++
16 2 files changed, 94 insertions(+)
17
18 diff --git a/x11-misc/virtualgl/Manifest b/x11-misc/virtualgl/Manifest
19 index 02e239a09cf..bde00332663 100644
20 --- a/x11-misc/virtualgl/Manifest
21 +++ b/x11-misc/virtualgl/Manifest
22 @@ -1 +1,2 @@
23 DIST VirtualGL-2.5.2.tar.gz 1172965 BLAKE2B 2aac9db4fdbec49c5251f9ba85fda81efd5025891a124991e9787e9bf869b054e419c6c377c0dcf5988a1785c16159c12a4c45d5d7419f3d6c17a09316dfd7e6 SHA512 a3156f663c03e611a98a083bb12bea47820cdadc9f064e20431fddec55aae560f09b133f5254a24d7da01b64be2672d27713d7f6605eaca2d9d83090a070fafd
24 +DIST VirtualGL-2.6.1.tar.gz 1278335 BLAKE2B 62abb082eb8c82fecff33dd5b5036ebaead99b837cf0dc42581790863f09814858fd7a23a479c0c4ac5e59a4cc99af58903016a5109a6636191ce98d6da3d0bd SHA512 36580e55e11ba3e93945d62e865fe0b63ecd5aa1ee3889fb4d0940c68da06737fff4689a77638f5c8c57dbc9d020ba821bdec9aa2f6b2f0f144b18f1c3d8c5e5
25
26 diff --git a/x11-misc/virtualgl/virtualgl-2.6.1.ebuild b/x11-misc/virtualgl/virtualgl-2.6.1.ebuild
27 new file mode 100644
28 index 00000000000..05ef6a70377
29 --- /dev/null
30 +++ b/x11-misc/virtualgl/virtualgl-2.6.1.ebuild
31 @@ -0,0 +1,93 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit cmake-multilib flag-o-matic multilib systemd
37 +
38 +if [[ ${PV} == *9999 ]] ; then
39 + EGIT_REPO_URI="https://github.com/VirtualGL/${PN}.git"
40 + inherit git-r3
41 +else
42 + MY_PN="VirtualGL"
43 + MY_P="${MY_PN}-${PV}"
44 + S="${WORKDIR}/${MY_P}"
45 + SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${MY_P}.tar.gz"
46 + KEYWORDS="~amd64 ~arm64 ~x86"
47 +fi
48 +
49 +DESCRIPTION="Run OpenGL applications remotely with full 3D hardware acceleration"
50 +HOMEPAGE="https://www.virtualgl.org/"
51 +
52 +SLOT="0"
53 +LICENSE="LGPL-2.1 wxWinLL-3.1 FLTK"
54 +IUSE="libressl ssl"
55 +
56 +RDEPEND="
57 + ssl? (
58 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
59 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
60 + )
61 + media-libs/libjpeg-turbo[${MULTILIB_USEDEP}]
62 + x11-libs/libX11[${MULTILIB_USEDEP}]
63 + x11-libs/libXext[${MULTILIB_USEDEP}]
64 + x11-libs/libXv[${MULTILIB_USEDEP}]
65 + virtual/glu[${MULTILIB_USEDEP}]
66 + virtual/opengl[${MULTILIB_USEDEP}]
67 + amd64? ( abi_x86_32? (
68 + >=media-libs/libjpeg-turbo-1.3.0-r3[abi_x86_32]
69 + >=x11-libs/libX11-1.6.2[abi_x86_32]
70 + >=x11-libs/libXext-1.3.2[abi_x86_32]
71 + >=x11-libs/libXv-1.0.10[abi_x86_32]
72 + >=virtual/glu-9.0-r1[abi_x86_32]
73 + >=virtual/opengl-7.0-r1[abi_x86_32]
74 + ) )
75 +"
76 +DEPEND="${RDEPEND}"
77 +
78 +src_prepare() {
79 + # Use /var/lib, bug #428122
80 + sed -e "s#/etc/opt#/var/lib#g" -i doc/unixconfig.txt doc/index.html doc/advancedopengl.txt \
81 + server/vglrun.in server/vglgenkey server/vglserver_config || die
82 +
83 + cmake-utils_src_prepare
84 +}
85 +
86 +src_configure() {
87 + # Completely breaks steam/wine for discrete graphics otherwise
88 + # see https://github.com/VirtualGL/virtualgl/issues/16
89 + append-ldflags "-Wl,--no-as-needed"
90 +
91 + abi_configure() {
92 + local mycmakeargs=(
93 + -DVGL_USESSL="$(usex ssl)"
94 + -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/"${PF}"
95 + -DTJPEG_INCLUDE_DIR=/usr/include
96 + -DCMAKE_INSTALL_LIBDIR=/usr/$(get_libdir)
97 + -DTJPEG_LIBRARY=/usr/$(get_libdir)/libturbojpeg.so
98 + -DCMAKE_LIBRARY_PATH=/usr/$(get_libdir)
99 + )
100 + cmake-utils_src_configure
101 + }
102 + multilib_parallel_foreach_abi abi_configure
103 +}
104 +
105 +src_install() {
106 + cmake-multilib_src_install
107 +
108 + # Make config dir
109 + dodir /var/lib/VirtualGL
110 + fowners root:video /var/lib/VirtualGL
111 + fperms 0750 /var/lib/VirtualGL
112 + newinitd "${FILESDIR}/vgl.initd-r3" vgl
113 + newconfd "${FILESDIR}/vgl.confd-r2" vgl
114 +
115 + exeinto /usr/libexec
116 + doexe "${FILESDIR}/vgl-helper.sh"
117 + systemd_dounit "${FILESDIR}/vgl.service"
118 +
119 + # Rename glxinfo to vglxinfo to avoid conflict with x11-apps/mesa-progs
120 + mv "${D}"/usr/bin/{,v}glxinfo || die
121 +
122 + # Remove license files, bug 536284
123 + rm "${D}"/usr/share/doc/${PF}/{LGPL.txt*,LICENSE*} || die
124 +}