net-im/cawbird: New port: Fork of Corebird GTK Twitter client

This commit is contained in:
Neel Chauhan 2021-11-11 20:51:20 -08:00
parent 3291ad38b0
commit 835d84cce4
6 changed files with 72 additions and 0 deletions

View file

@ -3,6 +3,7 @@
SUBDIR += 6cord
SUBDIR += beebeep
SUBDIR += biboumi
SUBDIR += cawbird
SUBDIR += centerim
SUBDIR += chatterino2
SUBDIR += climm

39
net-im/cawbird/Makefile Normal file
View file

@ -0,0 +1,39 @@
PORTNAME= cawbird
PORTVERSION= 1.4.2
DISTVERSIONPREFIX= v
CATEGORIES= net-im
MAINTAINER= nc@FreeBSD.org
COMMENT= Fork of Corebird GTK Twitter client
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= vala:lang/vala
LIB_DEPENDS= libjson-glib-1.0.so:devel/json-glib \
liboauth.so:net/liboauth \
librest-0.7.so:devel/librest \
libsoup-gnome-2.4.so:devel/libsoup
USES= gnome meson pkgconfig sqlite:3
USE_GITHUB= yes
GH_ACCOUNT= IBBoard
USE_GNOME= glib20 gtk30
GLIB_SCHEMAS= uk.co.ibboard.cawbird.gschema.xml
MESON_ARGS= -Dconsumer_key_base64=YUVNOE14dE5xMVdHRzl2emo5SzNNSlNUeg== \
-Dconsumer_secret_base64=c0J0cmc2clNJTFN6bHlSbFNXc2J1MmdvWWk3b0FzTGZHOGI4OG5QRzB3Tmx1Y0ZtOHQ=
OPTIONS_DEFINE= SPELLCHECK VIDEO
SPELLCHECK_LIB_DEPENDS= libgtkspell3-3.so:textproc/gtkspell3
SPELLCHECK_MESON_OFF= -Dspellcheck=false
VIDEO_LIB_DEPENDS= libgstvideo-1.0.so:multimedia/gstreamer1-plugins
VIDEO_MESON_OFF= -Dvideo=false
.include <bsd.port.mk>

3
net-im/cawbird/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1636688445
SHA256 (IBBoard-cawbird-v1.4.2_GH0.tar.gz) = 4726e1c6c407d7bf4ee24fbf67a453174b7d01433277ce542354ac62e28857c0
SIZE (IBBoard-cawbird-v1.4.2_GH0.tar.gz) = 653216

View file

@ -0,0 +1,11 @@
--- meson.build.orig 2021-09-19 15:58:12 UTC
+++ meson.build
@@ -13,7 +13,7 @@ srcdir = include_directories('src')
# This is apparently bad practice, but it solves our "undefined reference to symbol 'floor@@GLIBC_2.2.5'" build problem
cc = meson.get_compiler('c')
libm = cc.find_library('m', required : false)
-oauth = cc.find_library('oauth')
+oauth = cc.find_library('oauth', dirs : '/usr/local/lib', required : true)
min_glib_version = '2.44'

8
net-im/cawbird/pkg-descr Normal file
View file

@ -0,0 +1,8 @@
Cawbird is a fork of the Corebird Twitter client from Baedert, which became
unsupported after Twitter disabled the streaming API.
Cawbird works with the new APIs and includes a few fixes and modifications
that have historically been patched in to IBBoard's custom Corebird build
on his personal Open Build Service account.
WWW: https://github.com/IBBoard/cawbird

10
net-im/cawbird/pkg-plist Normal file
View file

@ -0,0 +1,10 @@
bin/cawbird
man/man1/cawbird.1.gz
share/dbus-1/services/uk.co.ibboard.cawbird.service
share/icons/hicolor/16x16/apps/uk.co.ibboard.cawbird.png
share/icons/hicolor/24x24/apps/uk.co.ibboard.cawbird.png
share/icons/hicolor/32x32/apps/uk.co.ibboard.cawbird.png
share/icons/hicolor/48x48/apps/uk.co.ibboard.cawbird.png
share/icons/hicolor/64x64/apps/uk.co.ibboard.cawbird.png
share/icons/hicolor/96x96/apps/uk.co.ibboard.cawbird.png
share/icons/hicolor/scalable/apps/uk.co.ibboard.cawbird.svg