mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
balsa, new recipe (#9257)
This commit is contained in:
47
mail-client/balsa/additional-files/balsa.rdef.in
Normal file
47
mail-client/balsa/additional-files/balsa.rdef.in
Normal file
@@ -0,0 +1,47 @@
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "@APP_NAME@",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660703263A7A0312114903FFEDB503FEE18703FFC91B03FFC61B03D48B"
|
||||
$"0706020EB98CBA15B98CBA15BDAEBA15C5F3BA15C1D1BA15C68ABA15C705BB27"
|
||||
$"C705BA8FC705BDBAC705C2E2C705C04EC705C379C5F3C3F4C68AC3F4C59DC3F4"
|
||||
$"C4F1C3F4C547C3F4C4F1C4BCC4F1C64CC4F1C584C4F1C6C2C410C6A9C463C6FC"
|
||||
$"C329C5C2C15AC3F4C242C4DBBEC0C3F4B98CC3F4BC26C3F4B8F5C3F4B87AC2E2"
|
||||
$"B87AC379B87AC04EB87ABB27B87ABDBAB87ABA8FB98CBA15B8F5BA15B98CBA15"
|
||||
$"B98CBA15B98CBA15B98CBA15020CC705BB27C705BB27C705BA90C5F3BA15C68A"
|
||||
$"BA15C3DFBA15BFB8BA15C1CCBA15BFB8BD5FBFB8C3F4BFB8C0A9C044C3F4C15A"
|
||||
$"C3F4C0CFC3F4C242C4DBC410C6A9C329C5C2C463C6FCC4F1C64CC4F1C6C2C4F1"
|
||||
$"C584C4F1C3F4C4F1C4BCC547C3F4C5F3C3F4C59DC3F4C68AC3F4C705C2E2C705"
|
||||
$"C379C705C04EC705BB27C705BDBAC705BB27C705BB27C705BB27C705BB27020B"
|
||||
$"C410C6A9C410C6A9C463C6FCC4F1C64CC4F1C6C2C4F1C584C4F1C3F4C4F1C4BC"
|
||||
$"C547C3F4C5F3C3F4C59DC3F4C67BC3F4C701C30E52C390C496C17B40BE55C22B"
|
||||
$"BFE8BD54BFE8B87EC30EBAE9C17BB893C390B98CC3F4B904C3F4BC26C3F4C15A"
|
||||
$"C3F4BEC0C3F4C242C4DBC410C6A9C329C5C2C410C6A9C410C6A9C410C6A9C410"
|
||||
$"C6A9020B40BE5540BE55BFBDBE56BFB8BE5ABFBBBE58BFB8C038BFB8C3F4BFB8"
|
||||
$"C216C044C3F4C15AC3F4C0CFC3F4C242C4DBC410C6A9C329C5C2C463C6FCC4F1"
|
||||
$"C64CC4F1C6C2C4F1C584C4F1C3F4C4F1C4BCC547C3F4C5F3C3F4C59DC3F4C67B"
|
||||
$"C3F4C701C30E52C390C496C17B40BE55C22BBFE840BE5540BE5540BE5540BE55"
|
||||
$"0607FF1FB8D2BA5EB8D2BA5EBB21BC294040BD70BDF4C20FBDF4C6ADBA5EC45E"
|
||||
$"BC29C67CBA31C5F3BA15C63BBA15C1D1BA15B98CBA15BDAEBA15B944BA15B8D2"
|
||||
$"BA5EB903BA31B8D2BA5EBA5E0607FF1FC6ADBA5EC6ADBA5EC67CBA31C5F3BA15"
|
||||
$"C63BBA15C3DFBA15BFB8BA15C1CCBA15BFB8BBF6BFB8BFBABFB8BDD8BFBBBFBC"
|
||||
$"4040BFBDBFBEC20FBDF4C6ADBA5EC45EBC29C6ADBA5EBA5E060A020100024118"
|
||||
$"8D00000000000041706EC8311BC9395D0A0301010241188D0000000000004170"
|
||||
$"6EC8311BC9395D0A0301020241188D00000000000041706EC8311BC9395D0A04"
|
||||
$"01030241188D00000000000041706EC8311BC9395D0A0501040241188D000000"
|
||||
$"00000041706EC8311BC9395D0A0601050241188D00000000000041706EC8311B"
|
||||
$"C9395D"
|
||||
};
|
||||
162
mail-client/balsa/balsa-2.6.4.recipe
Normal file
162
mail-client/balsa/balsa-2.6.4.recipe
Normal file
@@ -0,0 +1,162 @@
|
||||
SUMMARY="An e-mail client"
|
||||
DESCRIPTION="Balsa is an e-mail client for GNOME, highly configurable and incorporating all the \
|
||||
features you would expect in a robust mail client.
|
||||
|
||||
Features
|
||||
|
||||
Support for local mailbox formats: mbox, maildir, mh
|
||||
* Allows nested mailboxes (see this screenshot)
|
||||
* Support for POP3 and IMAP mail access protocols
|
||||
* Printing
|
||||
* Spell Checking
|
||||
* Multi-threaded mail retrevial (optional)
|
||||
* MIME support (view images inline, save parts)
|
||||
* Supports SMTP and/or use of local MTA, ie. Sendmail
|
||||
* Address Book that integrates with GnomeCard
|
||||
* Highly configurable
|
||||
* Active, open development (see the mailing list page)
|
||||
* Multiple character sets for composing and reading messages
|
||||
* Allows file attachments to outgoing messages
|
||||
* GPG/OpenPGP mail signing and encryption."
|
||||
HOMEPAGE="https://pawsa.fedorapeople.org/balsa/"
|
||||
COPYRIGHT="1997-2018 The Balsa Developers"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pawsa.fedorapeople.org/balsa/balsa-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="befa5984511db33d41f2b1ecbfc99e22a15d45d08efe5d737b5174a1a6ac8fc1"
|
||||
PATCHES="balsa-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="balsa.rdef.in"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="settings/sound/events/balsa.soundlist keep-old"
|
||||
|
||||
PROVIDES="
|
||||
balsa$secondaryArchSuffix = $portVersion
|
||||
cmd:balsa$secondaryArchSuffix = $portVersion
|
||||
cmd:balsa_ab$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libatk_1.0$secondaryArchSuffix
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libcairo_gobject$secondaryArchSuffix
|
||||
lib:libcom_err$secondaryArchSuffix
|
||||
lib:libenchant_2$secondaryArchSuffix
|
||||
lib:libfribidi$secondaryArchSuffix
|
||||
lib:libgdk_3$secondaryArchSuffix
|
||||
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
||||
lib:libgio_2.0$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgmime_3.0$secondaryArchSuffix
|
||||
lib:libgnutls$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
lib:libgpgme$secondaryArchSuffix
|
||||
lib:libgthread_2.0$secondaryArchSuffix
|
||||
lib:libgssapi_krb5$secondaryArchSuffix
|
||||
lib:libgtk_3$secondaryArchSuffix
|
||||
lib:libgtksourceview_4$secondaryArchSuffix
|
||||
lib:libharfbuzz$secondaryArchSuffix
|
||||
lib:libical$secondaryArchSuffix
|
||||
lib:libicalss$secondaryArchSuffix
|
||||
lib:libicalvcal$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libjavascriptcoregtk_4.1$secondaryArchSuffix
|
||||
lib:libk5crypto$secondaryArchSuffix
|
||||
lib:libkrb5$secondaryArchSuffix
|
||||
lib:liblber$secondaryArchSuffix
|
||||
lib:libldap$secondaryArchSuffix
|
||||
lib:libpango_1.0$secondaryArchSuffix
|
||||
lib:libpangocairo_1.0$secondaryArchSuffix
|
||||
lib:libsecret_1$secondaryArchSuffix
|
||||
lib:libsoup_3.0$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
lib:libwebkit2gtk_4.1$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libbrotlidec$secondaryArchSuffix
|
||||
devel:libenchant_2$secondaryArchSuffix
|
||||
devel:libfribidi$secondaryArchSuffix
|
||||
devel:libgdk_3$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libgmime_3.0$secondaryArchSuffix
|
||||
devel:libgnutls$secondaryArchSuffix
|
||||
devel:libgpgme$secondaryArchSuffix
|
||||
devel:libgtk_3$secondaryArchSuffix
|
||||
devel:libgtksourceview_4$secondaryArchSuffix
|
||||
devel:libical$secondaryArchSuffix
|
||||
devel:libkrb5$secondaryArchSuffix
|
||||
devel:libldap$secondaryArchSuffix
|
||||
devel:libnghttp2$secondaryArchSuffix
|
||||
devel:libpsl$secondaryArchSuffix
|
||||
devel:libsecret_1$secondaryArchSuffix
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
devel:libwebkit2gtk_4.1$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:intltoolize$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export LDFLAGS="-lnetwork"
|
||||
autoreconf -fi
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$appsDir \
|
||||
--disable-static \
|
||||
--with-gss \
|
||||
--with-ldap \
|
||||
--with-gtksourceview \
|
||||
--with-rubrica \
|
||||
--with-sqlite \
|
||||
--with-html-widget=webkit2 #\
|
||||
# --with-html-widget=no
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# rename binaries
|
||||
mv $appsDir/balsa $appsDir/Balsa
|
||||
mv $appsDir/balsa-ab $appsDir/"Balsa Address Book"
|
||||
|
||||
# remove libtool file
|
||||
rm -f $libDir/balsa/libhtml.la
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local APP_NAME="Mednaffe"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
local APP_SIGNATURE="application/x-vnd.balsa"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
-e "s|@APP_NAME@|$APP_NAME|" \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
$portDir/additional-files/balsa.rdef.in > balsa.rdef
|
||||
|
||||
addResourcesToBinaries balsa.rdef $appsDir/Balsa
|
||||
addResourcesToBinaries balsa.rdef $appsDir/"Balsa Address Book"
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Balsa
|
||||
addAppDeskbarSymlink $appsDir/"Balsa Address Book"
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
63
mail-client/balsa/patches/balsa-2.6.4.patchset
Normal file
63
mail-client/balsa/patches/balsa-2.6.4.patchset
Normal file
@@ -0,0 +1,63 @@
|
||||
From 0b6126dda25d21a7e9150ea850c932da63debffd Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
||||
Date: Mon, 13 Apr 2020 12:10:27 -0400
|
||||
Subject: Avoid git fanciness during build.
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7b7ae75..b21162e 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -9,7 +9,7 @@ dnl Boilerplace and versioning
|
||||
dnl ###########################################################################
|
||||
|
||||
# if autoconf is used not in a git source tree, use version=2.6.4
|
||||
-AC_INIT([balsa],[m4_esyscmd(test -d .git && echo -n `git describe --tags` || echo -n 2.6.4)],[])
|
||||
+AC_INIT([balsa],[2.6.4],[])
|
||||
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_LANG([C])
|
||||
@@ -563,7 +563,7 @@ fi
|
||||
# extra warnings for GIT.
|
||||
#
|
||||
|
||||
-if test -d "${srcdir}/.git" ; then
|
||||
+if false ; then
|
||||
BALSA_FROM_GIT=yes
|
||||
BALSA_CFLAGS="$BALSA_CFLAGS -Wall -Werror"
|
||||
BALSA_DEFS="$BALSA_DEFS \
|
||||
--
|
||||
2.37.3
|
||||
|
||||
|
||||
From 53eafeb193363483f4529653c1e6158380ac3f8e Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Sun, 20 Aug 2023 19:33:40 +0200
|
||||
Subject: Fix building with webkit2gtk and libldap
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index b21162e..cc777dc 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -263,7 +263,7 @@ case "$use_html_widget" in
|
||||
webkit2)
|
||||
AC_MSG_RESULT([$use_html_widget])
|
||||
# note: sqlite3 is needed to manage html vs. plain and image download preferences
|
||||
- PKG_CHECK_MODULES(HTML, [ webkit2gtk-4.0 >= 2.28.0
|
||||
+ PKG_CHECK_MODULES(HTML, [ webkit2gtk-4.1 >= 2.28.0
|
||||
sqlite3 >= 3.24.0])
|
||||
BALSA_WEB_EXTENSIONS="${libdir}/${PACKAGE}"
|
||||
AC_SUBST(BALSA_WEB_EXTENSIONS)
|
||||
@@ -342,7 +342,7 @@ if test x"$with_ldap" != xno ; then
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_CHECK_LIB(ldap, ldap_search, AC_DEFINE(ENABLE_LDAP, 1,
|
||||
[Defined when the LDAP support is to be compiled in.])
|
||||
- LIBS="-lldap -llber -lresolv $LIBS", AC_MSG_ERROR([*** You enabled LDAP but ldap library is not found.]), -llber -lresolv)
|
||||
+ LIBS="-lldap -llber -lnetwork $LIBS", AC_MSG_ERROR([*** You enabled LDAP but ldap library is not found.]), -llber -lnetwork)
|
||||
AC_CHECK_LIB(ldap, ldap_start_tls_s,
|
||||
AC_DEFINE(HAVE_LDAP_TLS,1,
|
||||
[Defined when LDAP lib supports TLS]))
|
||||
--
|
||||
2.37.3
|
||||
|
||||
Reference in New Issue
Block a user