mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-mail/email: fix c23, export CC AR, rm dupl. doc
SRC_URI is unreachable, use mirror://gentoo Closes: https://bugs.gentoo.org/725028 Closes: https://bugs.gentoo.org/944203 Closes: https://bugs.gentoo.org/969062 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/45500 Closes: https://github.com/gentoo/gentoo/pull/45500 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
4ef6a11776
commit
d48994bbf6
@@ -1,11 +1,13 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
DESCRIPTION="Advanced CLI tool for sending email"
|
||||
HOMEPAGE="https://github.com/deanproxy/eMail"
|
||||
SRC_URI="http://www.cleancode.org/downloads/${PN}/${P}.tar.bz2"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
@@ -14,10 +16,27 @@ KEYWORDS="~alpha amd64 x86"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.1.3-fno-common.patch
|
||||
"${FILESDIR}"/${PN}-3.1.3-fix-clang16-configure.patch
|
||||
"${FILESDIR}"/${PN}-3.1.3-fix_c23.patch
|
||||
"${FILESDIR}"/${PN}-3.1.3-ar_call.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# dlib/configure.in patched to use AR
|
||||
pushd dlib >/dev/null || die
|
||||
eautoconf
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR CC
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman email.1
|
||||
dodoc README TODO
|
||||
|
||||
# remove duplicate man/docs
|
||||
rm -r "${ED}"/usr/share/doc/${PF}/${P} || die
|
||||
}
|
||||
|
||||
31
net-mail/email/files/email-3.1.3-ar_call.patch
Normal file
31
net-mail/email/files/email-3.1.3-ar_call.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
see https://bugs.gentoo.org/725028
|
||||
remove hardcoded ar
|
||||
--- a/dlib/Makefile.in
|
||||
+++ b/dlib/Makefile.in
|
||||
@@ -3,6 +3,7 @@
|
||||
VERSION = @ver@
|
||||
SRCDIR = src/
|
||||
DESTDIR =
|
||||
+AR= @AR@
|
||||
CC = @CC@
|
||||
CFLAGS = @CFLAGS@ @DEFS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
@@ -24,7 +25,7 @@ FILES = src/dnet.o src/dhash.o src/dlist.o src/dstrbuf.o src/dutil.o src/dvector
|
||||
.PHONY: all clean-all clean distclean install uninstall
|
||||
|
||||
all: $(FILES)
|
||||
- ar rc libdlib.a $(FILES)
|
||||
+ $(AR) rc libdlib.a $(FILES)
|
||||
|
||||
test:
|
||||
$(CC) $(CFLAGS) -o test test.c libdlib.a -lm
|
||||
--- a/dlib/configure.in
|
||||
+++ b/dlib/configure.in
|
||||
@@ -11,6 +11,7 @@ cwd=`pwd`
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
+AC_PROG_AR
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
AC_ARG_WITH(ssl, [ --with-ssl force use of TLS/SSL], [use_ssl=$withval], )
|
||||
16
net-mail/email/files/email-3.1.3-fix_c23.patch
Normal file
16
net-mail/email/files/email-3.1.3-fix_c23.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
PR pending https://github.com/deanproxy/dlib/pull/8.patch
|
||||
see https://bugs.gentoo.org/944203 https://bugs.gentoo.org/969062
|
||||
don't use bolean' keywords with C23
|
||||
--- a/dlib/include/dlib.h
|
||||
+++ b/dlib/include/dlib.h
|
||||
@@ -1,7 +1,9 @@
|
||||
#ifndef __DLIB_H
|
||||
#define __DLIB_H 1
|
||||
|
||||
-typedef enum { false, true } bool;
|
||||
+#if __STDC_VERSION__ < 202311L
|
||||
+ typedef enum { false, true } bool;
|
||||
+#endif
|
||||
enum { ERROR, SUCCESS, DLIB_MAXBUF = 1024 };
|
||||
|
||||
#define DLIB_VERSION "0.1b"
|
||||
Reference in New Issue
Block a user