From ec323319faa29ddfd75916e7567edfb4b2d6b868 Mon Sep 17 00:00:00 2001 From: David Guglielmi Date: Sat, 8 May 2021 22:24:59 +0200 Subject: [PATCH] net-im/cawbird: add cawbird 1.4 --- net-im/cawbird/Manifest | 3 + net-im/cawbird/cawbird-1.4.ebuild | 73 ++++ net-im/cawbird/files/corebird.svg | 602 ++++++++++++++++++++++++++++++ 3 files changed, 678 insertions(+) create mode 100644 net-im/cawbird/Manifest create mode 100644 net-im/cawbird/cawbird-1.4.ebuild create mode 100644 net-im/cawbird/files/corebird.svg diff --git a/net-im/cawbird/Manifest b/net-im/cawbird/Manifest new file mode 100644 index 0000000..711d9a4 --- /dev/null +++ b/net-im/cawbird/Manifest @@ -0,0 +1,3 @@ +AUX corebird.svg 38093 BLAKE2B 88131214eac57aa1a932e4a371d96f8c6a7de3535522256d98b72b3b0c1e96ac7794724d701edcbfe8ad92a587bd62a11dce3ab4a9ea31f1c1e510449ba93955 SHA512 640601d43a373441e725a26d49a574c18804af8761860ff2c89a55a2e48d1e5010ad8dec04fcac40edec8cfe5468483512dc250f2f79ab2c86492b985be3ed60 +DIST cawbird-1.4.tar.gz 652905 BLAKE2B 494862bc008cdf420cd5bb76b20ee530b4a65e82c8f3da6a9595f6115565b9bd0e3d8d0ad07e584e08871b0c114392d64b48035d02970f07dc3881af76eab07c SHA512 cdb83f333c52a61d59a9526a82bcf3701929c405a70994a55c06c5fc9f920383d415dedf425885dc6991723f71b22c885340efb600f623b86ee4ae1e0e7a7b0a +EBUILD cawbird-1.4.ebuild 1807 BLAKE2B 2daf2ff3775a171516c1cedc159d81990d788bb5e66c0e648a750a27d7c7c13a4030072c2b83db3113dec0753063d55d9888cdf3cdd54afe075070619a93fa9e SHA512 85ec3470f47eb01150e4722daa931f0a0a68b1464d8311566ce1bc5bca54a3c46a09d13e84ea1a2b1f9c20ea5696a50b0921fb47ecb9038b303f61851c886cba diff --git a/net-im/cawbird/cawbird-1.4.ebuild b/net-im/cawbird/cawbird-1.4.ebuild new file mode 100644 index 0000000..293fbe3 --- /dev/null +++ b/net-im/cawbird/cawbird-1.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +VALA_MIN_API_VERSION=0.48 + +inherit gnome2-utils meson vala xdg-utils + +DESCRIPTION="Cawbird is a Linux Twitter client" +HOMEPAGE="https://github.com/IBBoard/cawbird" +SRC_URI="https://github.com/IBBoard/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="corebird-icons gstreamer spellcheck" + +DEPEND="dev-libs/glib + x11-libs/gtk+:3 + net-libs/rest:0.7 + dev-libs/json-glib + dev-db/sqlite + net-libs/libsoup:2.4 + net-libs/liboauth + gstreamer? ( + media-libs/gstreamer + media-plugins/gst-plugins-gtk + media-plugins/gst-plugins-libav + media-plugins/gst-plugins-hls + ) + spellcheck? ( app-text/gspell )" +RDEPEND="${DEPEND}" +BDEPEND="$(vala_depend) + corebird-icons? ( gnome-base/librsvg )" + +src_prepare() { + default + vala_src_prepare + + if use corebird-icons; then + for size in 16 24 32 64 96; do + rsvg-convert "${FILESDIR}/corebird.svg" \ + --width="${size}" --height="${size}" \ + --format=png \ + -o "${S}/data/hicolor/${size}x${size}/apps/uk.co.ibboard.cawbird.png" || die "Unable to update icons" + done + cp -f "${FILESDIR}/corebird.svg" "${S}/data/hicolor/scalable/apps/uk.co.ibboard.cawbird.svg" || die "Unable to copy icons" + fi +} + +src_configure() { + local emesonargs=( + $(meson_use gstreamer video) + $(meson_use spellcheck) + -Dx11=true + -Dmswindows=false + -Dconsumer_key_base64='VmY5dG9yRFcyWk93MzJEZmhVdEk5Y3NMOA==' + -Dconsumer_secret_base64='MThCRXIxbWRESDQ2Y0podzVtVU13SGUyVGlCRXhPb3BFRHhGYlB6ZkpybG5GdXZaSjI=' + ) + meson_src_configure +} + +pkg_postinst() { + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/net-im/cawbird/files/corebird.svg b/net-im/cawbird/files/corebird.svg new file mode 100644 index 0000000..6a36f37 --- /dev/null +++ b/net-im/cawbird/files/corebird.svg @@ -0,0 +1,602 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +