public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop-bin/files/, net-im/telegram-desktop-bin/
@ 2018-07-16  5:02 NP Hardass
  0 siblings, 0 replies; 3+ messages in thread
From: NP Hardass @ 2018-07-16  5:02 UTC (permalink / raw
  To: gentoo-commits

commit:     ea989a3b275aa2e2b473450178b881626f2d7ac5
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Fri Jul 13 17:04:28 2018 +0000
Commit:     NP Hardass <np-hardass <AT> gentoo <DOT> org>
CommitDate: Mon Jul 16 05:01:15 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea989a3b

net-im/telegram-desktop-bin: bump to 1.3.10 and disable auto-updates

This version bump uses a new upstream feature to tell the binary that it
should not check for updates itself. The ebuild installs the binary to
/usr/lib/ and deploys a wrapper to /usr/bin/.

Closes: https://bugs.gentoo.org/618662
Closes: https://github.com/gentoo/gentoo/pull/9218
Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Signed-off-by: NP-Hardass <NP-Hardass <AT> gentoo.org>

 net-im/telegram-desktop-bin/Manifest               |  3 ++
 .../files/telegram-desktop-bin                     |  5 ++
 .../telegram-desktop-bin-1.3.10.ebuild             | 60 ++++++++++++++++++++++
 3 files changed, 68 insertions(+)

diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest
index 64482faa101..9c9b1207792 100644
--- a/net-im/telegram-desktop-bin/Manifest
+++ b/net-im/telegram-desktop-bin/Manifest
@@ -1,9 +1,12 @@
+DIST tdesktop-1.3.10.tar.gz 17167027 BLAKE2B b1748abbfaa08ab22d26707b1b5be7e31dc804869a5ac5cf91bba823787758cd180d9cc41a96eb12787bf445aa6729d66df3aa4ad9acd338500c72da7725211d SHA512 91833405de4d68c6e791fbe3a6ed45926227bc8f7131ffcd2e048e38f8f74419050745a3a56dee926c708e187d9ae985d2efa564ad16fc75f18b60f48a601011
 DIST tdesktop-1.3.7.tar.gz 17056555 BLAKE2B 1ba22af19a5ad346ee3e540ded473128fe3582fb0260164c1bec3b141a94cedf34e2c75dd8601dd79c9832391bff5a59ff95aef60050f74cb36f109ffb8df98e SHA512 f92003335ac53c77ce5d320e0549734feceed6b60121429f167134cc8d16b547bd27ad3c85dcbf0da5f55ac8e1e60f5027c910082afd9f683d8a98cb7ac16d6b
 DIST tdesktop-1.3.8.tar.gz 17127764 BLAKE2B ff9390803bbddbd939eb3173f89b42f161d06c81f3c4702562318d08ecbcfbcf548eab04b8bd80a6f4d546db2c6d5a20c3bf73d0db9ae8ccdd9f4c88048f8074 SHA512 4cef9a2b379b090f6993e4e391152d7fa02db3863c0758ea04f04bdac219ae96e4e43459a44a2857895264555f7bf93a03a9969b1f9bd194185cc7c6e746549a
 DIST tdesktop-1.3.9.tar.gz 17133428 BLAKE2B b8a8d0bf6d1ae2a55625284c16347b9f5da0f39bdad594b4ae6a8cfe57dce595da2ed54344a13641b31bbe4035b3b83ab9a1b3bce6880777ebd78c3f631c2e89 SHA512 7d9b908e038179448678eb0d29bb9ca62969674e199b89970bac85383ac839156c528939126413e6675901084a2c7d96a254195ebd1780a0b0816ae063f7c7f1
+DIST tsetup.1.3.10.tar.xz 34424588 BLAKE2B c71fda6091d402809fd6989dc6f79c5d43df15e910b939350406233c143e1c8964e67c116d84844aeb54f4a4d6103962281d013507be91b74c58e094b550d5dc SHA512 432d9177e65a461d64f7ccd48745de09cfb2f8d864ba7bf46949e9edd20a5859fcb26491de9053b4823e429a204215daba7399426daaedccf263ffc671697ffa
 DIST tsetup.1.3.7.tar.xz 33921540 BLAKE2B 4d309bab164299ff7729f72aed44e21716e8ff1e6c41434fcd3e6c8ce9238891a2b93e4d55e62c6e44846781e755a32258dda36e02351d56357241daede342eb SHA512 c4d1249cb2e1be0e9410ba6d7b5f34f342c420d1b44e6b78736aeb611fa3e11519e4c0dfe2fd6f9a819fea09030d8cf451b2c36fc283fb12e4007b4a29855949
 DIST tsetup.1.3.8.tar.xz 34517696 BLAKE2B 2a3350b2bdb05c880e306965566f622aa6cb440cc8fe3b72e8487efe6473b2e769db988766903634a90c78b66bdcbe7893742346e163de3bef4a4611f657397a SHA512 31766007ca47fe8c47fad9cebb95b1cae0db3ddec8bfee6f0108dd5e490790822d2ef4fceff2c24ca8c09483724f43aa8fa3a6cf5cb0e09de2fc26911cb66fb2
 DIST tsetup.1.3.9.tar.xz 34532440 BLAKE2B 628597a1f04a676129f7b219fa991f1dcae51f70d95366d0ee6bd0c8c8592e4cd3f7453d01d4f980c760e8541f619e9b7ee79ffc7e66953dbf22739d6d600094 SHA512 e176a0d7fe7cad421ec1e09023c8e99f143fef6c6e7aabb344cff9f62e915c9cc3ea7afe4ab58bfb776d8eb304a6a9c140c622614fa9e7f6ef7ea62bb56cf88b
+DIST tsetup32.1.3.10.tar.xz 36904652 BLAKE2B 42904f09d4ce26f6d930028f81b7891dfab5ba7d780eace2e70f92752f69612eed6519ccf2ecb0420bd5bfb9f4c999476899df17abf41eca5d4b666bdb7fea9f SHA512 223db27115723cb011f4709ce39fe99228171986a954984a678065d780894d5845ab9bd90541a9cadc7ca6abd01f123ecd53491cd02c235f78615172f40a7a27
 DIST tsetup32.1.3.7.tar.xz 36187736 BLAKE2B 3da383c0067192e523d5b85056acf12085ceea4de6d06135f11c298e1f58ae3b09ffc500fa6cf07b72a186c8c6f6fde592f8a8aaa956ac83f90489c1383a3dd9 SHA512 7b8e3ef29f557af0912ff15cee976b7e244e7367346f1d5b4d6fbdb52941930a8952e0c01f8dc53d4a8c2bd6eb0f1f309b3dbff4b60f8790c204ccaf60565108
 DIST tsetup32.1.3.8.tar.xz 37194796 BLAKE2B bfcb48b9f65bc54e1b7c269b500424ec2687c45359aec89da310548d310c5abb9d71547e77a250580f63d077fcb9b477ccd4cd8ae40a4bb4666e216950a3b809 SHA512 cae2c1a6abf2f02515e2ad8df107ab2306c0d1d7d3edf8b04fbee5c2130a0ad4b9e61929fe9b7576dc6d55f42541c2b863c30c1e3aeb186be8c9948334ecdd44
 DIST tsetup32.1.3.9.tar.xz 37241464 BLAKE2B e83927531ecda2fdb3181c105b26d320857d9f047bb50ed17b38c8c8686675240c6b0b7acc139e06064746edaf3fc69af8eb6d12ab06dc49642ca39621594a8b SHA512 8d90b4e6568730e304714afd09daa70937784e82c9ad1a84a9808104a7731a3b61101042be3644b8a2d0982b2aac97827a8228bc0c3be311e233183a806ec623

diff --git a/net-im/telegram-desktop-bin/files/telegram-desktop-bin b/net-im/telegram-desktop-bin/files/telegram-desktop-bin
new file mode 100644
index 00000000000..3529333838e
--- /dev/null
+++ b/net-im/telegram-desktop-bin/files/telegram-desktop-bin
@@ -0,0 +1,5 @@
+#!/bin/sh
+# this wrapper disables the auto-updater of telegram-desktop
+# This program is licensed under the same license as telegram-desktop
+
+exec /usr/lib/telegram-desktop-bin/bin/telegram-desktop-bin -externalupdater $@

diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild
new file mode 100644
index 00000000000..d55f48e2ac5
--- /dev/null
+++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop gnome2-utils xdg
+
+DESCRIPTION="Official desktop client for Telegram (binary package)"
+HOMEPAGE="https://desktop.telegram.org"
+SRC_URI="
+	https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz
+	amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz )
+	x86? ( https://updates.tdesktop.com/tlinux32/tsetup32.${PV}.tar.xz )
+"
+
+LICENSE="telegram"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+QA_PREBUILT="usr/lib/${PN}/bin/${PN}"
+
+RDEPEND="
+	dev-libs/glib:2
+	dev-libs/gobject-introspection
+	>=sys-apps/dbus-1.4.20
+	x11-libs/libX11
+	>=x11-libs/libxcb-1.10[xkb]
+"
+
+S="${WORKDIR}/Telegram"
+
+src_install() {
+	into /usr/lib/${PN}
+	newbin "${S}/Telegram" ${PN}
+	into /usr
+	newbin  "${FILESDIR}"/${PN} "telegram-desktop"
+
+	local icon_size
+	for icon_size in 16 32 48 64 128 256 512; do
+		newicon -s "${icon_size}" \
+			"${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \
+			telegram-desktop.png
+	done
+
+	domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop
+}
+
+pkg_preinst() {
+	xdg_pkg_preinst
+}
+
+pkg_postinst() {
+	xdg_pkg_postinst
+	gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+	xdg_pkg_postrm
+	gnome2_icon_cache_update
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop-bin/files/, net-im/telegram-desktop-bin/
@ 2018-09-28 18:25 Mikle Kolyada
  0 siblings, 0 replies; 3+ messages in thread
From: Mikle Kolyada @ 2018-09-28 18:25 UTC (permalink / raw
  To: gentoo-commits

commit:     5cdf4cf966c2bebacc18aceba547e94cff614b02
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Fri Sep 28 16:14:13 2018 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Sep 28 18:25:18 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cdf4cf9

net-im/telegram-desktop-bin: clean up old.

Signed-off-by: Henning Schild <henning <AT> hennsch.de>

 net-im/telegram-desktop-bin/Manifest               |  3 --
 .../files/telegram-desktop-bin                     |  5 --
 .../telegram-desktop-bin-1.3.10-r1.ebuild          | 59 ---------------------
 .../telegram-desktop-bin-1.3.10.ebuild             | 60 ----------------------
 4 files changed, 127 deletions(-)

diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest
index 5ea759fe46a..b897199c94c 100644
--- a/net-im/telegram-desktop-bin/Manifest
+++ b/net-im/telegram-desktop-bin/Manifest
@@ -1,9 +1,6 @@
-DIST tdesktop-1.3.10.tar.gz 17167027 BLAKE2B b1748abbfaa08ab22d26707b1b5be7e31dc804869a5ac5cf91bba823787758cd180d9cc41a96eb12787bf445aa6729d66df3aa4ad9acd338500c72da7725211d SHA512 91833405de4d68c6e791fbe3a6ed45926227bc8f7131ffcd2e048e38f8f74419050745a3a56dee926c708e187d9ae985d2efa564ad16fc75f18b60f48a601011
 DIST tdesktop-1.3.14.tar.gz 17199969 BLAKE2B 996b1b8113253b12592727fcced27b26e9c9f020f8112ac2460b8c9665c3445f8e8707cc0d62c22a3452367d483a016a471119437ae3da6cea10cc3bc3ed656e SHA512 0fa0792970d4ed044ddc06f97b02d1b7de137cccba7792cc5cbbfbce0d3ef8dbf78cfe3464d3f846c2d6285a9d7db2f40cc4ff76b4ef7138f238ac9045cd2931
 DIST tdesktop-1.4.0.tar.gz 17318129 BLAKE2B bd77ac1c20aeb3e760294f32d8649d49740ef97aae37fabc90aee8207e87109812ce824e25b028785f4ab6fc932ed2e727022cf40a61a189e9f90eb056b0e19a SHA512 4eb123dc34edd3a47848abac66ca7c07a6bf9cf0658a9e904797ae52324f3cdcef3de9a63983f4003652c36087d4ab2e0a9fbf6c6c95b424fd68a65bd77ecadf
-DIST tsetup.1.3.10.tar.xz 34424588 BLAKE2B c71fda6091d402809fd6989dc6f79c5d43df15e910b939350406233c143e1c8964e67c116d84844aeb54f4a4d6103962281d013507be91b74c58e094b550d5dc SHA512 432d9177e65a461d64f7ccd48745de09cfb2f8d864ba7bf46949e9edd20a5859fcb26491de9053b4823e429a204215daba7399426daaedccf263ffc671697ffa
 DIST tsetup.1.3.14.tar.xz 34544980 BLAKE2B 3a0ec56d3e49fb47484c959006126a39ed41da6d58706a51808207c0d285a06d72954a17754e7b166468e924f549d08200355f5c83ca68b9fe535304fcb12e34 SHA512 b880782ead5acc40c81d62028e88b5565f6740bc044cdd1eb2e701854d2c5c23ecd2c6d68f7a3b00d8e85d2ad89b1cdf1e7b65b691b2178ea9556cd9b852a726
 DIST tsetup.1.4.0.tar.xz 34811788 BLAKE2B a46e38b8d27ce764b7e9e735809a5098456368ed747e83bc16d125d80e6b772e1fb0eeee0d6b8eab937c04148b2516d5130c365dbda7e7a05571b14137b5a9c5 SHA512 c646763d66a807ade2c5d475444ce651dfd8ff488cafc4148a9e6850485fcfa8bc41d821dea1a9a6d6d5ac8f97593f5cedefa20a533d057c40e72a497afe264c
-DIST tsetup32.1.3.10.tar.xz 36904652 BLAKE2B 42904f09d4ce26f6d930028f81b7891dfab5ba7d780eace2e70f92752f69612eed6519ccf2ecb0420bd5bfb9f4c999476899df17abf41eca5d4b666bdb7fea9f SHA512 223db27115723cb011f4709ce39fe99228171986a954984a678065d780894d5845ab9bd90541a9cadc7ca6abd01f123ecd53491cd02c235f78615172f40a7a27
 DIST tsetup32.1.3.14.tar.xz 37060108 BLAKE2B 5fb87cab91cef06cfd585907e5a40f3099f10a91cf6226704c2f5822d9ec4459f8a65b5714a1177ce1b8c2bbc7f8030af8d82d72ec98b4fe9dd4b3fbaeb09b76 SHA512 446f7091b568b56466d9ee53343a7433335817c0589e5338010dfccb78e615745262fcae18b856c0929d045d3caa46ddace1893c2a44fdf9507c09fad3b09626
 DIST tsetup32.1.4.0.tar.xz 37403084 BLAKE2B dd134c49da40fb25266e0bbaf5722675eea84bf760029646f0d727f6df587a789d42d40c1de1d3f8eb6a2623e5f5e569524b618df18ea48d26e0a05a1a597310 SHA512 8700221f791fa366bedbe666f8d73ec68a216db0dd0ceef43332fd4ce075897c003b069f51946e29dc1b1574dd50fdd6abb1ed491d1c09f5952d044628656a3a

diff --git a/net-im/telegram-desktop-bin/files/telegram-desktop-bin b/net-im/telegram-desktop-bin/files/telegram-desktop-bin
deleted file mode 100644
index 3529333838e..00000000000
--- a/net-im/telegram-desktop-bin/files/telegram-desktop-bin
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-# this wrapper disables the auto-updater of telegram-desktop
-# This program is licensed under the same license as telegram-desktop
-
-exec /usr/lib/telegram-desktop-bin/bin/telegram-desktop-bin -externalupdater $@

diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10-r1.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10-r1.ebuild
deleted file mode 100644
index 8b7d2c549cd..00000000000
--- a/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10-r1.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit desktop gnome2-utils xdg
-
-DESCRIPTION="Official desktop client for Telegram (binary package)"
-HOMEPAGE="https://desktop.telegram.org"
-SRC_URI="
-	https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz
-	amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz )
-	x86? ( https://updates.tdesktop.com/tlinux32/tsetup32.${PV}.tar.xz )
-"
-
-LICENSE="telegram"
-SLOT="0"
-KEYWORDS="-* ~amd64 ~x86"
-
-QA_PREBUILT="usr/lib/${PN}/Telegram"
-
-RDEPEND="
-	dev-libs/glib:2
-	dev-libs/gobject-introspection
-	>=sys-apps/dbus-1.4.20
-	x11-libs/libX11
-	>=x11-libs/libxcb-1.10[xkb]
-"
-
-S="${WORKDIR}/Telegram"
-
-src_install() {
-	exeinto /usr/lib/${PN}
-	doexe "Telegram"
-	newbin "${FILESDIR}"/${PN}-r1 "telegram-desktop"
-
-	local icon_size
-	for icon_size in 16 32 48 64 128 256 512; do
-		newicon -s "${icon_size}" \
-			"${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \
-			telegram-desktop.png
-	done
-
-	domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop
-}
-
-pkg_preinst() {
-	xdg_pkg_preinst
-}
-
-pkg_postinst() {
-	xdg_pkg_postinst
-	gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-	xdg_pkg_postrm
-	gnome2_icon_cache_update
-}

diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild
deleted file mode 100644
index ab057428924..00000000000
--- a/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit desktop gnome2-utils xdg
-
-DESCRIPTION="Official desktop client for Telegram (binary package)"
-HOMEPAGE="https://desktop.telegram.org"
-SRC_URI="
-	https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz
-	amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz )
-	x86? ( https://updates.tdesktop.com/tlinux32/tsetup32.${PV}.tar.xz )
-"
-
-LICENSE="telegram"
-SLOT="0"
-KEYWORDS="-* ~amd64 ~x86"
-
-QA_PREBUILT="usr/lib/${PN}/bin/${PN}"
-
-RDEPEND="
-	dev-libs/glib:2
-	dev-libs/gobject-introspection
-	>=sys-apps/dbus-1.4.20
-	x11-libs/libX11
-	>=x11-libs/libxcb-1.10[xkb]
-"
-
-S="${WORKDIR}/Telegram"
-
-src_install() {
-	into /usr/lib/${PN}
-	newbin "${S}/Telegram" ${PN}
-	into /usr
-	newbin  "${FILESDIR}"/${PN} "telegram-desktop"
-
-	local icon_size
-	for icon_size in 16 32 48 64 128 256 512; do
-		newicon -s "${icon_size}" \
-			"${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \
-			telegram-desktop.png
-	done
-
-	domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop
-}
-
-pkg_preinst() {
-	xdg_pkg_preinst
-}
-
-pkg_postinst() {
-	xdg_pkg_postinst
-	gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-	xdg_pkg_postrm
-	gnome2_icon_cache_update
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop-bin/files/, net-im/telegram-desktop-bin/
@ 2018-10-04 20:51 Mikle Kolyada
  0 siblings, 0 replies; 3+ messages in thread
From: Mikle Kolyada @ 2018-10-04 20:51 UTC (permalink / raw
  To: gentoo-commits

commit:     056380a0e76e08e1bd2e5973219ff46a95b83ea5
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Wed Oct  3 17:43:28 2018 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Thu Oct  4 20:50:30 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=056380a0

net-im/telegram-desktop-bin: work around fontconfig issues

This commit makes telegram-desktop-bin bring its own fontconfig
file for the old version of fontconfig it has built in. It also allows
to fall back to the "old way" by removing the file from /etc/.

Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
Closes: https://bugs.gentoo.org/664872
Closes: https://github.com/gentoo/gentoo/pull/10055

 net-im/telegram-desktop-bin/files/fonts.conf       | 60 +++++++++++++++++
 .../files/telegram-desktop-bin-r2                  | 15 +++++
 .../telegram-desktop-bin-1.4.0-r1.ebuild           | 75 ++++++++++++++++++++++
 3 files changed, 150 insertions(+)

diff --git a/net-im/telegram-desktop-bin/files/fonts.conf b/net-im/telegram-desktop-bin/files/fonts.conf
new file mode 100644
index 00000000000..d3ddc32d777
--- /dev/null
+++ b/net-im/telegram-desktop-bin/files/fonts.conf
@@ -0,0 +1,60 @@
+<?xml version='1.0'?>
+<!--
+     This file is only here to work around
+     https://github.com/telegramdesktop/tdesktop/issues/4240
+     It has been taken from (with slight modification)
+     https://github.com/telegramdesktop/tdesktop/issues/4493
+-->
+<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
+<fontconfig>
+    <dir>/usr/share/fonts</dir>
+    <dir>/usr/local/share/fonts</dir>
+    <dir prefix="xdg">fonts</dir>
+    <match target="pattern">
+	<test qual="any" name="family">
+	    <string>mono</string>
+	</test>
+	<edit name="family" mode="assign" binding="same">
+	    <string>monospace</string>
+	</edit>
+    </match>
+    <match target="pattern">
+	<test qual="any" name="family">
+	    <string>sans serif</string>
+	</test>
+	<edit name="family" mode="assign" binding="same">
+	    <string>sans-serif</string>
+	</edit>
+    </match>
+    <match target="pattern">
+	<test qual="any" name="family">
+	    <string>sans</string>
+	</test>
+	<edit name="family" mode="assign" binding="same">
+	    <string>sans-serif</string>
+	</edit>
+    </match>
+    <cachedir>/var/cache/fontconfig</cachedir>
+    <cachedir prefix="xdg">fontconfig</cachedir>
+    <cachedir>~/.fontconfig</cachedir>
+    <match target="font">
+	<edit mode="assign" name="antialias">
+	    <bool>true</bool>
+	</edit>
+	<edit mode="assign" name="embeddedbitmap">
+	    <bool>false</bool>
+	</edit>
+	<edit mode="assign" name="hinting">
+	    <bool>true</bool>
+	</edit>
+	<edit mode="assign" name="hintstyle">
+	    <const>hintslight</const>
+	</edit>
+	<edit mode="assign" name="lcdfilter">
+	    <const>lcddefault</const>
+	</edit>
+	<edit mode="assign" name="rgba">
+	    <const>rgb</const>
+	</edit>
+    </match>
+</fontconfig>

diff --git a/net-im/telegram-desktop-bin/files/telegram-desktop-bin-r2 b/net-im/telegram-desktop-bin/files/telegram-desktop-bin-r2
new file mode 100644
index 00000000000..a8b0e3e6d99
--- /dev/null
+++ b/net-im/telegram-desktop-bin/files/telegram-desktop-bin-r2
@@ -0,0 +1,15 @@
+#!/bin/sh
+# this wrapper disables the auto-updater of telegram-desktop
+# This program is licensed under the same license as telegram-desktop
+
+# telegram-desktop fails to set RestartCommand with the session manager
+# exclude it from session management to prevent restarts without the argument
+unset SESSION_MANAGER
+
+# telegram-desktop expects old fontconfig configuration files
+# this is a workaround to try and deal with that
+[ -e /etc/telegram-desktop-bin/fonts.conf ] && \
+  [ -z $( printenv FONTCONFIG_FILE ) ] && \
+  export FONTCONFIG_FILE=/etc/telegram-desktop-bin/fonts.conf
+
+exec /usr/lib/telegram-desktop-bin/Telegram -externalupdater $@

diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-1.4.0-r1.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.4.0-r1.ebuild
new file mode 100644
index 00000000000..c709f83a671
--- /dev/null
+++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.4.0-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop gnome2-utils xdg
+
+DESCRIPTION="Official desktop client for Telegram (binary package)"
+HOMEPAGE="https://desktop.telegram.org"
+SRC_URI="
+	https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz
+	amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz )
+	x86? ( https://updates.tdesktop.com/tlinux32/tsetup32.${PV}.tar.xz )
+"
+
+LICENSE="telegram"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+QA_PREBUILT="usr/lib/${PN}/Telegram"
+
+RDEPEND="
+	dev-libs/glib:2
+	dev-libs/gobject-introspection
+	>=sys-apps/dbus-1.4.20
+	x11-libs/libX11
+	>=x11-libs/libxcb-1.10[xkb]
+	>=media-libs/fontconfig-2.13
+"
+
+S="${WORKDIR}/Telegram"
+
+src_install() {
+	exeinto /usr/lib/${PN}
+	doexe "Telegram"
+	newbin "${FILESDIR}"/${PN}-r2 "telegram-desktop"
+
+	local icon_size
+	for icon_size in 16 32 48 64 128 256 512; do
+		newicon -s "${icon_size}" \
+			"${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \
+			telegram-desktop.png
+	done
+
+	dodir /etc/${PN}
+	insinto /etc/${PN}/
+	doins ${FILESDIR}/fonts.conf
+
+	domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop
+}
+
+pkg_preinst() {
+	xdg_pkg_preinst
+}
+
+pkg_postinst() {
+	xdg_pkg_postinst
+	gnome2_icon_cache_update
+	einfo
+	einfo "Previous versions of ${PN} have created "
+	einfo "\"~/.local/share/applications/telegram.desktop\". These files"
+	einfo "conflict with the one shipped by portage and should be removed"
+	einfo "from all homedirs. (https://bugs.gentoo.org/618662)"
+	einfo
+	einfo "This versions fixes fontconfig issues that have been reported"
+	einfo "by several users. However, the fix might have side-effects on"
+	einfo "non-latin fonts. If you have font issues with this version just"
+	einfo "delete \"/etc/${PN}/fonts.conf\" and leave a comment here"
+	einfo "https://bugs.gentoo.org/664872"
+}
+
+pkg_postrm() {
+	xdg_pkg_postrm
+	gnome2_icon_cache_update
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-04 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-28 18:25 [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop-bin/files/, net-im/telegram-desktop-bin/ Mikle Kolyada
  -- strict thread matches above, loose matches on Subject: below --
2018-10-04 20:51 Mikle Kolyada
2018-07-16  5:02 NP Hardass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox