public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/maksbotan:master commit in: net-im/telegram-desktop/
@ 2017-04-30 20:56 Maxim Koltsov
  0 siblings, 0 replies; only message in thread
From: Maxim Koltsov @ 2017-04-30 20:56 UTC (permalink / raw
  To: gentoo-commits

commit:     3eeeac4132e9cfc2e429abf7a8c06cab16b38699
Author:     Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 30 20:53:25 2017 +0000
Commit:     Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
CommitDate: Sun Apr 30 20:53:25 2017 +0000
URL:        https://gitweb.gentoo.org/dev/maksbotan.git/commit/?id=3eeeac41

net-im/telegram-desktop: add telegram ebuild

 net-im/telegram-desktop/metadata.xml               |  8 +++
 .../telegram-desktop/telegram-desktop-9999.ebuild  | 82 ++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/net-im/telegram-desktop/metadata.xml b/net-im/telegram-desktop/metadata.xml
new file mode 100644
index 0000000..d0aaaaf
--- /dev/null
+++ b/net-im/telegram-desktop/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+	<email>maksbotan@gentoo.org</email>
+	<name>Maxim Koltsov</name>
+</maintainer>
+</pkgmetadata>

diff --git a/net-im/telegram-desktop/telegram-desktop-9999.ebuild b/net-im/telegram-desktop/telegram-desktop-9999.ebuild
new file mode 100644
index 0000000..3ba35d9
--- /dev/null
+++ b/net-im/telegram-desktop/telegram-desktop-9999.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/maksbotan/tdesktop"
+EGIT_BRANCH="systembuild"
+
+inherit cmake-utils git-r3
+
+DESCRIPTION="Telegram desktop client (unofficial system build)"
+HOMEPAGE="https://desktop.telegram.org"
+SRC_URI=""
+
+LICENSE="GPL-3-with-openssl-exception"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+COMMON_DEPEND="
+	dev-qt/qtcore:5
+	dev-qt/qtgui:5[xcb,jpeg,png,gtk]
+	dev-qt/qtwidgets[xcb,png]
+	dev-qt/qtnetwork
+	dev-qt/qtimageformats
+	virtual/ffmpeg
+	media-libs/opus
+	x11-libs/libdrm
+	x11-libs/libva[X,drm]
+	sys-libs/zlib[minizip]
+	x11-libs/gtk+:3
+	dev-libs/libappindicator:3
+	media-libs/openal
+	dev-libs/openssl:0
+	x11-libs/libX11
+"
+
+DEPEND="
+	virtual/pkgconfig
+	${COMMON_DEPEND}
+"
+RDEPEND="
+	${COMMON_DEPEND}
+"
+
+CMAKE_USE_DIR="${S}/Telegram"
+
+BREAKPAD_REPO_URI="https://chromium.googlesource.com/breakpad/breakpad"
+BREAKPAD_LSS_REPO_URI="https://chromium.googlesource.com/linux-syscall-support"
+
+BREAKPAD_SOURCE_ROOT="${WORKDIR}/breakpad"
+BREAKPAD_IMAGE="${WORKDIR}/breakpad_image"
+
+src_unpack() {
+	git-r3_src_unpack
+
+	git-r3_fetch ${BREAKPAD_REPO_URI} refs/heads/master
+	git-r3_fetch ${BREAKPAD_LSS_REPO_URI} refs/heads/master
+
+	git-r3_checkout ${BREAKPAD_REPO_URI} "${BREAKPAD_SOURCE_ROOT}"
+	git-r3_checkout ${BREAKPAD_LSS_REPO_URI} "${BREAKPAD_SOURCE_ROOT}"/src/third_party/lss
+}
+
+src_prepare() {
+	einfo "Building Breakpad static library"
+	pushd "${BREAKPAD_SOURCE_ROOT}" > /dev/null
+	econf --prefix="${BREAKPAD_IMAGE}"
+	emake
+	emake install
+	popd > /dev/null
+
+	cmake-utils_src_prepare
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DBREAKPAD_INCLUDE_DIR="${BREAKPAD_IMAGE}/include/breakpad"
+		-DBREAKPAD_LIBRARY_DIR="${BREAKPAD_IMAGE}/lib"
+	)
+
+	cmake-utils_src_configure
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-30 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-30 20:56 [gentoo-commits] dev/maksbotan:master commit in: net-im/telegram-desktop/ Maxim Koltsov

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