Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537266 - net-im/telegram-bin: Official telegram protocol client
Summary: net-im/telegram-bin: Official telegram protocol client
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Victor Gaydov
URL: https://desktop.telegram.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 17:02 UTC by Alexandre
Modified: 2016-07-08 18:47 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
telegram-0.7.8.ebuild (telegram-0.7.8.ebuild,785 bytes, text/plain)
2015-01-21 17:02 UTC, Alexandre
Details
correcting description. (telegram-0.7.8.ebuild,783 bytes, text/plain)
2015-01-22 14:11 UTC, Alexandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre 2015-01-21 17:02:12 UTC
"Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed."

Quite similar to WhatsUp but cloud-based and heavily encrypted.

Attached a ebuild based on one from Sabayon overlay but updated to the last version and with dev-libs/libappindicator dependency needed to have the tray icon working.

Reproducible: Always
Comment 1 Alexandre 2015-01-21 17:02:58 UTC
Created attachment 394518 [details]
telegram-0.7.8.ebuild
Comment 2 Alexandre 2015-01-21 18:01:56 UTC
https://github.com/telegramdesktop/tdesktop
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-22 07:33:13 UTC
Wouldn't that actually be the official one?
Comment 4 Alexandre 2015-01-22 13:32:19 UTC
Yes, this one is official! :-)
Comment 5 Alexandre 2015-01-22 14:11:37 UTC
Created attachment 394622 [details]
correcting description.
Comment 6 Alexandre 2015-01-22 16:36:43 UTC
Hum. On git they say it still alpha.
Comment 7 Fabian Köster 2015-01-24 09:53:31 UTC
(In reply to Alexandre from comment #5)
> Created attachment 394622 [details]
> correcting description.

This is a binary package. Can you provide an ebuild from source, please?
Comment 8 Fabian Köster 2015-01-24 09:54:28 UTC
The Git is located at https://github.com/telegramdesktop/tdesktop
Comment 9 Fabian Köster 2015-01-24 10:02:14 UTC
Building instructions are located at:

https://github.com/telegramdesktop/tdesktop/blob/master/QTCREATOR.md

Unfortunately, they only describe how to build it using IDEs (in this case QtCreator, MSVC and XCode also provided). So probably one needs to write a makefile first in order to create a proper ebuild.
Comment 10 Alexandre 2015-01-24 14:25:29 UTC
I don't know how to make one but will ask for it on their git page.

Thanks!
Comment 11 Jon Gerdes 2015-01-24 22:43:21 UTC
(In reply to Alexandre from comment #10)
> I don't know how to make one but will ask for it on their git page.
> 
> Thanks!

In the instructions for using QT Creator I think it describes exactly what is needed.  QTC is just a front end to backend stuff. See http://qt-project.org/doc/qt-4.8/qmake-manual.html which it seems is what does the work.

qmake is already integrated into Portage (a quick grep on my P Tree sees things called eqmake4 and 5) and I saw that they reference a project file so you only have to pass one to the other and the makefile is generated automatically.

The dependencies are specified in their docs so I think all the details are there already.

The source is available via GIT and IIRC that is a legitimate way of grabbing the code at least for a -9999 version ebuild.

Err, anyone know how to tie all this together?
Comment 12 jannis 2015-02-15 10:06:59 UTC
I've written ebuilds for several Qt-based apps so it shouldn't be a big deal. However their .pro-file looks a bit akward at some lines. And they seem to require an exact version of Qt (5.4.0 currently). I might take a look at this (writing a -9999 source ebuild) when I can find the time.
Comment 13 jannis 2015-02-15 18:13:14 UTC
(In reply to jannis from comment #12)

Their buildsystem is seriously fucked up. They apply patches to Qt and then expect it in a certain folder relative to the source directory. Don't expect an ebuid until this is fixed upstream ...
Comment 14 Alex Efros 2016-01-30 15:25:59 UTC
(In reply to jannis from comment #13)
> Their buildsystem is seriously fucked up. They apply patches to Qt and then
> expect it in a certain folder relative to the source directory. Don't expect
> an ebuid until this is fixed upstream ...

So, one year later - any changes here?

If this wasn't fixed upstream yet, then chances are it won't be fixed any time soon - maybe we should give up and make 9999.ebuild using their build instructions (after all it doesn't really complex to unpack required QT version in required directory and patch it there… ugly, wasting compilation time, but not complex).

I'm asking for building from source because I'm using Hardened and prefer to compile all packages from sources using hardened gcc instead of installing untrusted binary blobs.
Comment 15 Victor Gaydov 2016-05-28 14:25:46 UTC
Hi, I've created a pull request[1] for telegram-desktop-0.9.49, both source and binary packages. Please see detailed description there.

Could we merge those ebuilds? Let me know if there are some issues with them.

[1] https://github.com/gentoo/gentoo/pull/1551
Comment 16 Patrice Clement gentoo-dev 2016-07-08 18:47:51 UTC
commit 6549bb3e18f784893a4dc37d82dfcb5f5bcc060e (HEAD -> master, origin/master, origin/HEAD)
Author:     Victor Gaydov <victor@enise.org>
AuthorDate: Sat May 28 16:58:58 2016 +0300
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Fri Jul 8 18:18:28 2016 +0000

    net-im/telegram-desktop-bin: Add telegram-bin to the tree.
    
    Telegram is a cloud-based instant messaging service.
    
    Package-Manager: portage-2.2.28
    Closes: https://github.com/gentoo/gentoo/pull/1551
    
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

 licenses/telegram                                              | 687 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 net-im/telegram-desktop-bin/Manifest                           |   3 +
 net-im/telegram-desktop-bin/metadata.xml                       |  13 ++
 net-im/telegram-desktop-bin/telegram-desktop-bin-0.9.51.ebuild |  60 +++++++
 profiles/license_groups                                        |   2 +-
 5 files changed, 764 insertions(+), 1 deletion(-)
 create mode 100644 licenses/telegram
 create mode 100644 net-im/telegram-desktop-bin/Manifest
 create mode 100644 net-im/telegram-desktop-bin/metadata.xml
 create mode 100644 net-im/telegram-desktop-bin/telegram-desktop-bin-0.9.51.ebuil