Lines 1-6
Link Here
|
1 |
# Copyright 2020-2022 Gentoo Authors |
1 |
# Copyright 2020-2022 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
|
|
4 |
# re-enabling user choosen fonts is based on Arch's AUR |
5 |
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?... |
6 |
# h=telegram-desktop-userfonts&... |
7 |
# id=cf5f652b57bb2978e2761b6b6bbcb668ab0ff1c5 |
8 |
# |
9 |
# here we use the fontconfig use flag |
10 |
|
4 |
EAPI=8 |
11 |
EAPI=8 |
5 |
|
12 |
|
6 |
PYTHON_COMPAT=( python3_{8..10} ) |
13 |
PYTHON_COMPAT=( python3_{8..10} ) |
Lines 17-23
Link Here
|
17 |
LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+" |
24 |
LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+" |
18 |
SLOT="0" |
25 |
SLOT="0" |
19 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" |
26 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" |
20 |
IUSE="+dbus enchant +hunspell +jemalloc screencast +spell wayland +X" |
27 |
IUSE="+dbus enchant +fontconfig +hunspell +jemalloc screencast +spell wayland +X" |
21 |
REQUIRED_USE=" |
28 |
REQUIRED_USE=" |
22 |
spell? ( |
29 |
spell? ( |
23 |
^^ ( enchant hunspell ) |
30 |
^^ ( enchant hunspell ) |
Lines 98-103
Link Here
|
98 |
sed -i 's/DESKTOP_APP_USE_PACKAGED/NO_ONE_WILL_EVER_SET_THIS/' \ |
105 |
sed -i 's/DESKTOP_APP_USE_PACKAGED/NO_ONE_WILL_EVER_SET_THIS/' \ |
99 |
cmake/external/rlottie/CMakeLists.txt || die |
106 |
cmake/external/rlottie/CMakeLists.txt || die |
100 |
|
107 |
|
|
|
108 |
if use fontconfig; then |
109 |
# all files within that dir are referenced somewhere, hence we must |
110 |
# not delete them |
111 |
local ttf |
112 |
for ttf in Telegram/lib_ui/fonts/*.ttf; do |
113 |
rm "$ttf" |
114 |
touch "$ttf" |
115 |
done |
116 |
fi |
117 |
|
101 |
cmake_src_prepare |
118 |
cmake_src_prepare |
102 |
} |
119 |
} |
103 |
|
120 |
|
Lines 117-122
Link Here
|
117 |
# See files/tdesktop-*-jemalloc-optional.patch |
134 |
# See files/tdesktop-*-jemalloc-optional.patch |
118 |
-DDESKTOP_APP_DISABLE_JEMALLOC=$(usex !jemalloc) |
135 |
-DDESKTOP_APP_DISABLE_JEMALLOC=$(usex !jemalloc) |
119 |
) |
136 |
) |
|
|
137 |
if use fontconfig; then |
138 |
mycmakeargs+=( -DDESKTOP_APP_USE_PACKAGED_FONTS=OFF ) |
139 |
fi |
120 |
|
140 |
|
121 |
if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
141 |
if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
122 |
einfo "Found custom API credentials" |
142 |
einfo "Found custom API credentials" |