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