From e0ed20a840900f89f6787490ebddd64f1f5a9e1b Mon Sep 17 00:00:00 2001 From: XGQT Date: Mon, 20 Apr 2020 22:53:04 +0200 Subject: [PATCH] net-im/srain: add version 1.0.2 and 9999 --- net-im/srain/Manifest | 1 + net-im/srain/metadata.xml | 7 ++++ net-im/srain/srain-1.0.2.ebuild | 63 +++++++++++++++++++++++++++++++++ net-im/srain/srain-9999.ebuild | 63 +++++++++++++++++++++++++++++++++ 4 files changed, 134 insertions(+) create mode 100644 net-im/srain/Manifest create mode 100644 net-im/srain/metadata.xml create mode 100644 net-im/srain/srain-1.0.2.ebuild create mode 100644 net-im/srain/srain-9999.ebuild diff --git a/net-im/srain/Manifest b/net-im/srain/Manifest new file mode 100644 index 0000000..1e7f2db --- /dev/null +++ b/net-im/srain/Manifest @@ -0,0 +1 @@ +DIST srain-1.0.2.tar.gz 939068 BLAKE2B 429ec9b7a5a1d292b564fa66a7271062dadad486875d81eb5432deadad8fd3eed0a78b3ce633cea990902814abb01a958ec5c9e811f558de0af8b2d65b2c614c SHA512 6fe895ecd30cb456beb82bff8e147d734b60c8c8e70304602e6193c2f035871ec14421f2b50cf88e851ef7b92ac2b4ccbf03f23153e6949299849b299ebf3db3 diff --git a/net-im/srain/metadata.xml b/net-im/srain/metadata.xml new file mode 100644 index 0000000..9d4f777 --- /dev/null +++ b/net-im/srain/metadata.xml @@ -0,0 +1,7 @@ + + + + + SrainApp/srain + + diff --git a/net-im/srain/srain-1.0.2.ebuild b/net-im/srain/srain-1.0.2.ebuild new file mode 100644 index 0000000..83edfec --- /dev/null +++ b/net-im/srain/srain-1.0.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils xdg-utils + +DESCRIPTION="Modern IRC client written in GTK" +HOMEPAGE="https://srain.im/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/SrainApp/${PN}.git" + KEYWORDS="" +else + SRC_URI="https://github.com/SrainApp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="GPL-3" +SLOT="0" +IUSE="debug" + +RDEPEND=" + >=dev-libs/glib-2.38:2 + >=x11-libs/gtk+-3.20.0:3 + net-libs/glib-networking + app-crypt/libsecret + net-libs/libsoup + x11-libs/libnotify +" +DEPEND=" + ${RDEPEND} + >=sys-devel/gettext-0.19.8 + dev-libs/libconfig +" + +DOCS=( + README.rst +) + +src_prepare() { + default + xdg_environment_reset +} + +src_configure(){ + local myconf=( + $(use_enable debug) + ) + econf "${myconf[@]}" +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/net-im/srain/srain-9999.ebuild b/net-im/srain/srain-9999.ebuild new file mode 100644 index 0000000..83edfec --- /dev/null +++ b/net-im/srain/srain-9999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils xdg-utils + +DESCRIPTION="Modern IRC client written in GTK" +HOMEPAGE="https://srain.im/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/SrainApp/${PN}.git" + KEYWORDS="" +else + SRC_URI="https://github.com/SrainApp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="GPL-3" +SLOT="0" +IUSE="debug" + +RDEPEND=" + >=dev-libs/glib-2.38:2 + >=x11-libs/gtk+-3.20.0:3 + net-libs/glib-networking + app-crypt/libsecret + net-libs/libsoup + x11-libs/libnotify +" +DEPEND=" + ${RDEPEND} + >=sys-devel/gettext-0.19.8 + dev-libs/libconfig +" + +DOCS=( + README.rst +) + +src_prepare() { + default + xdg_environment_reset +} + +src_configure(){ + local myconf=( + $(use_enable debug) + ) + econf "${myconf[@]}" +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +}