public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maxim Koltsov" <maksbotan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/maksbotan:master commit in: net-im/telegram-desktop/
Date: Sun, 30 Apr 2017 20:56:29 +0000 (UTC)	[thread overview]
Message-ID: <1493585605.3eeeac4132e9cfc2e429abf7a8c06cab16b38699.maksbotan@gentoo> (raw)

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
+}


                 reply	other threads:[~2017-04-30 20:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493585605.3eeeac4132e9cfc2e429abf7a8c06cab16b38699.maksbotan@gentoo \
    --to=maksbotan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox