Сравнение постов
Различия между постами
#272488 (12.02.2024 20:02)
и
#276486 (05.08.2024 00:25).
1 | # Copyright 1999-2024 Gentoo Authors | |
2 | # Distributed under the terms of the GNU General Public License v2 | |
3 | ||
4 | EAPI=8 | |
1 | Commence an exhilarating journey to discover a world of tantalizing content with our extensive array of high-end adult sites. Submerge in a domain where dreams know no bounds. | |
2 | Appreciate a diverse variety of niches, meeting every fancy. From gentle romance to fiery encounters, our picks span the entire scale of adult entertainment. | |
3 | Navigate distinct categories and unearth what truly excites you. Our easy-to-use interface makes it easy to spot your dream content. | |
4 | ||
5 | ||
6 | inherit xdg unpacker | |
7 | ||
8 | DESCRIPTION="office" | |
9 | HOMEPAGE="https://myoffice.ru/products/standard-home-edition/" | |
10 | SRC_URI="https://preset.myoffice-app.ru/myoffice-standard-home-edition_${PV}_amd64.deb" | |
11 | SLOT="0" | |
12 | KEYWORDS="~amd64" | |
13 | IUSE="" | |
14 | ||
15 | # needs full qt stack | |
16 | RDEPEND="dev-qt/qtwidgets:5" | |
17 | RDEPEND="media-libs/libpulse" | |
18 | ||
19 | S=${WORKDIR} | |
20 | ||
21 | src_unpack() { | |
22 | unpack_deb ${A} | |
23 | } | |
24 | ||
25 | ||
26 | src_compile() { :; } | |
27 | ||
28 | make_wrapper_my() { | |
29 | local wrapper=$1 bin=$2 chdir=$3 libdir=$4 path=$5 | |
30 | local tmpwrapper="${T}/tmp.wrapper.${wrapper##*/}" | |
31 | ||
32 | ( | |
33 | echo '#!/bin/bash' | |
34 | if [[ -n ${libdir} ]] ; then | |
35 | local var | |
36 | if [[ ${CHOST} == *-darwin* ]] ; then | |
37 | var=DYLD_LIBRARY_PATH | |
38 | else | |
39 | var=LD_LIBRARY_PATH | |
40 | fi | |
41 | sed 's/^X//' <<-EOF || die | |
42 | if [ "\${${var}+set}" = "set" ] ; then | |
43 | X export ${var}="\${${var}}:${EPREFIX}${libdir}" | |
44 | else | |
45 | X export ${var}="${EPREFIX}${libdir}" | |
46 | fi | |
47 | EOF | |
48 | fi | |
49 | [[ -n ${chdir} ]] && printf 'cd "%s" &&\n' "${EPREFIX}${chdir}" | |
50 | # We don't want to quote ${bin} so that people can pass complex | |
51 | # things as ${bin} ... "./someprog --args" | |
52 | printf '%s "$@"\n' "${bin/#\//${EPREFIX}/}" | |
53 | ) > "${tmpwrapper}" | |
54 | chmod go+rx "${tmpwrapper}" | |
55 | ||
56 | if [[ -n ${path} ]] ; then | |
57 | ( | |
58 | exeopts -m 0755 | |
59 | exeinto "${path}" | |
60 | newexe "${tmpwrapper}" "${wrapper}" | |
61 | ) || die | |
62 | else | |
63 | newbin "${tmpwrapper}" "${wrapper}" | |
64 | fi | |
65 | } | |
66 | ||
67 | src_install() { | |
68 | dodir /opt | |
69 | cp -pPR "${S}/opt/myoffice-standard-home-edition" "${D}/opt/" || die | |
70 | make_wrapper_my myoffice-text "QT_PLUGIN_PATH=/opt/myoffice-standard-home-edition/lib/ /opt/myoffice-standard-home-edition/MyOffice\ Text\ Home\ Edition.sh" | |
71 | make_wrapper_my myoffice-spreadsheet "QT_PLUGIN_PATH=/opt/myoffice-standard-home-edition/lib/ /opt/myoffice-standard-home-edition/MyOffice\ Spreadsheet\ Home\ Edition.sh" | |
72 | } | |
73 |