Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/boinc/
Date: Fri, 30 Dec 2022 23:39:10
Message-Id: 1672443523.d083d821d83a15fc4fe780f5888ce48d8fb54503.conikost@gentoo
1 commit: d083d821d83a15fc4fe780f5888ce48d8fb54503
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 23:32:04 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 23:38:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d083d821
7
8 sci-misc/boinc: drop 7.20.2-r2
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 sci-misc/boinc/boinc-7.20.2-r2.ebuild | 209 ----------------------------------
13 1 file changed, 209 deletions(-)
14
15 diff --git a/sci-misc/boinc/boinc-7.20.2-r2.ebuild b/sci-misc/boinc/boinc-7.20.2-r2.ebuild
16 deleted file mode 100644
17 index f7d156f21794..000000000000
18 --- a/sci-misc/boinc/boinc-7.20.2-r2.ebuild
19 +++ /dev/null
20 @@ -1,209 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=8
25 -
26 -MY_PV=$(ver_cut 1-2)
27 -WX_GTK_VER=3.0-gtk3
28 -
29 -inherit autotools desktop flag-o-matic linux-info optfeature wxwidgets xdg-utils
30 -
31 -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
32 -HOMEPAGE="https://boinc.berkeley.edu/"
33 -
34 -SRC_URI="X? ( https://boinc.berkeley.edu/logo/boinc_glossy2_512_F.tif -> ${PN}.tif )"
35 -if [[ ${PV} == *9999 ]] ; then
36 - EGIT_REPO_URI="https://github.com/BOINC/${PN}.git"
37 - inherit git-r3
38 -else
39 - SRC_URI+=" https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> ${P}.tar.gz"
40 - KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
41 - S="${WORKDIR}/${PN}-client_release-${MY_PV}-${PV}"
42 -fi
43 -
44 -LICENSE="LGPL-3"
45 -SLOT="0"
46 -
47 -IUSE_VIDEO_CARDS="
48 - video_cards_amdgpu
49 - video_cards_intel
50 - video_cards_nvidia
51 - video_cards_radeonsi
52 -"
53 -
54 -IUSE="${IUSE_VIDEO_CARDS} X cuda curl_ssl_gnutls +curl_ssl_openssl opencl"
55 -
56 -REQUIRED_USE="
57 - ^^ ( curl_ssl_gnutls curl_ssl_openssl )
58 - cuda? ( video_cards_nvidia )
59 - opencl? ( || ( ${IUSE_VIDEO_CARDS} ) )
60 -"
61 -
62 -# libcurl must not be using an ssl backend boinc does not support.
63 -# If the libcurl ssl backend changes, boinc should be recompiled.
64 -DEPEND="
65 - acct-user/boinc
66 - app-misc/ca-certificates
67 - cuda? (
68 - x11-drivers/nvidia-drivers
69 - )
70 - opencl? (
71 - virtual/opencl
72 - video_cards_amdgpu? ( amd64? ( dev-libs/rocm-opencl-runtime ) )
73 - video_cards_intel? ( amd64? ( dev-libs/intel-compute-runtime ) )
74 - video_cards_nvidia? ( x11-drivers/nvidia-drivers )
75 - video_cards_radeonsi? ( media-libs/mesa[opencl] )
76 - )
77 - dev-libs/openssl:=
78 - net-misc/curl[curl_ssl_gnutls(-)=,-curl_ssl_nss(-),curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)]
79 - sys-libs/zlib
80 - X? (
81 - dev-libs/glib:2
82 - media-libs/freeglut
83 - media-libs/libjpeg-turbo:=
84 - x11-libs/gtk+:3
85 - x11-libs/libnotify
86 - x11-libs/libX11
87 - x11-libs/libXScrnSaver
88 - x11-libs/libxcb:=
89 - x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit]
90 - x11-libs/xcb-util
91 - )
92 -"
93 -BDEPEND="app-text/docbook-xml-dtd:4.4
94 - app-text/docbook2X
95 - sys-devel/gettext
96 - X? ( virtual/imagemagick-tools[png,tiff] )
97 -"
98 -RDEPEND="
99 - ${DEPEND}
100 - sys-apps/util-linux
101 - !app-admin/quickswitch
102 -"
103 -
104 -PATCHES=(
105 - # >=x11-libs/wxGTK-3.0.2.0-r3 has webview removed, bug 587462
106 - "${FILESDIR}"/${PN}-7.18-fix_webview.patch
107 -)
108 -
109 -pkg_setup() {
110 - # Bug 578750
111 - if use kernel_linux; then
112 - linux-info_pkg_setup
113 - if ! linux_config_exists; then
114 - ewarn "Can't check the linux kernel configuration."
115 - ewarn "You might be missing vsyscall support."
116 - elif kernel_is -ge 4 4 \
117 - && linux_chkconfig_present LEGACY_VSYSCALL_NONE; then
118 - ewarn "You do not have vsyscall emulation enabled."
119 - ewarn "This will prevent some boinc projects from running."
120 - ewarn "Please enable vsyscall emulation:"
121 - ewarn " CONFIG_LEGACY_VSYSCALL_EMULATE=y"
122 - ewarn "in /usr/src/linux/.config, to be found at"
123 - ewarn " Processor type and features --->"
124 - ewarn " vsyscall table for legacy applications (None) --->"
125 - ewarn " (X) Emulate"
126 - ewarn "Alternatively, you can enable CONFIG_LEGACY_VSYSCALL_NATIVE."
127 - ewarn "However, this has security implications and is not recommended."
128 - fi
129 - fi
130 -}
131 -
132 -src_prepare() {
133 - default
134 -
135 - # prevent bad changes in compile flags, bug 286701
136 - sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
137 -
138 - eautoreconf
139 -}
140 -
141 -src_configure() {
142 - use X && setup-wxwidgets
143 -
144 - append-libs -L"${ESYSROOT}"/usr/$(get_libdir) -L"${ESYSROOT}"/$(get_libdir)
145 -
146 - econf --disable-server \
147 - --enable-client \
148 - --enable-dynamic-client-linkage \
149 - --disable-static \
150 - --enable-unicode \
151 - --with-ssl \
152 - $(use_with X x) \
153 - $(use_enable X manager) \
154 - $(usex X --with-wx-config="${WX_CONFIG}" --without-wxdir)
155 -}
156 -
157 -src_install() {
158 - default
159 -
160 - keepdir /var/lib/${PN}
161 -
162 - if use X; then
163 - # Create new icons. bug 593362
164 - local s SIZES=(16 22 24 32 36 48 64 72 96 128 192 256)
165 - for s in "${SIZES[@]}"; do
166 - # The convert command is not checked, because it will issue warnings and exit with
167 - # an error code if imagemagick is used and was merged with USE="-xml", although the
168 - # conversion has worked. See #766093
169 - # Instead, newicon will fail if the conversion did not produce the icon.
170 - convert "${DISTDIR}"/${PN}.tif -resize ${s}x${s} "${WORKDIR}"/boinc_${s}.png
171 - newicon -s $s "${WORKDIR}"/boinc_${s}.png boinc.png
172 - done
173 - make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
174 -
175 - # Rename the desktop file to boincmgr.desktop to (hot)fix bug 599910
176 - mv "${ED}"/usr/share/applications/boincmgr{-${PN},}.desktop || \
177 - die "Failed to rename desktop file"
178 - fi
179 -
180 - # cleanup cruft
181 - rm -r "${ED}"/etc || die "rm failed"
182 - find "${D}" -name '*.la' -delete || die "Removing .la files failed"
183 -
184 - newinitd "${FILESDIR}"/${PN}.init ${PN}
185 - newconfd "${FILESDIR}"/${PN}.conf ${PN}
186 -}
187 -
188 -pkg_postinst() {
189 - if use X; then
190 - xdg_desktop_database_update
191 - xdg_mimeinfo_database_update
192 - xdg_icon_cache_update
193 - fi
194 -
195 - elog
196 - elog "You are using the source compiled version of boinc."
197 - use X && elog "The graphical manager can be found at /usr/bin/boincmgr"
198 - elog
199 - elog "You need to attach to a project to do anything useful with boinc."
200 - elog "You can do this by running /etc/init.d/boinc attach"
201 - elog "The howto for configuration is located at:"
202 - elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
203 - elog
204 - # Add warning about the new password for the client, bug 121896.
205 - if use X; then
206 - elog "If you need to use the graphical manager the password is in:"
207 - elog "/var/lib/boinc/gui_rpc_auth.cfg"
208 - elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
209 - elog "/etc/conf.d/boinc"
210 - elog "You should change this password to something more memorable (can be even blank)."
211 - elog "Remember to launch init script before using manager. Or changing the password."
212 - elog
213 - fi
214 - elog "To be able to use CUDA or OpenCL you should add the boinc user to the video group."
215 - elog "Run as root:"
216 - elog "gpasswd -a boinc video"
217 - elog
218 -
219 - optfeature_header "If you want to run ATLAS native tasks by LHC@home, you need to install:"
220 - optfeature "CERN VM filesystem support" net-fs/cvmfs
221 -}
222 -
223 -pkg_postrm() {
224 - if use X; then
225 - xdg_desktop_database_update
226 - xdg_mimeinfo_database_update
227 - xdg_icon_cache_update
228 - fi
229 -}