diff options
author | Filip Kobierski <fkobi@pm.me> | 2024-08-02 12:38:30 +0200 |
---|---|---|
committer | Petr Vaněk <arkamar@gentoo.org> | 2024-08-07 21:32:30 +0200 |
commit | 7279d36da8233714ed49d361d774d11614e15bb7 (patch) | |
tree | cc5165adcf6f97b52a5633bda735b0dfe7feb813 /net-mail | |
parent | net-mail/mailfront: bump EAPI, drop empty IUSE (diff) | |
download | gentoo-7279d36da8233714ed49d361d774d11614e15bb7.tar.gz gentoo-7279d36da8233714ed49d361d774d11614e15bb7.tar.bz2 gentoo-7279d36da8233714ed49d361d774d11614e15bb7.zip |
net-mail/mess822: bump EAPI, fix pkgcheck issues
Signed-off-by: Filip Kobierski <fkobi@pm.me>
Closes: https://github.com/gentoo/gentoo/pull/37861
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/mess822/mess822-0.58-r3.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/net-mail/mess822/mess822-0.58-r3.ebuild b/net-mail/mess822/mess822-0.58-r3.ebuild new file mode 100644 index 000000000000..7c5b7b7b6029 --- /dev/null +++ b/net-mail/mess822/mess822-0.58-r3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Collection of utilities for parsing Internet mail messages" +SRC_URI="http://cr.yp.to/software/${P}.tar.gz" +HOMEPAGE="http://cr.yp.to/mess822.html" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RESTRICT="test" + +RDEPEND="sys-apps/sed" + +PATCHES=( + "${FILESDIR}"/${P}-implicit.patch +) + +src_prepare() { + default + + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die + echo "/usr" > conf-home || die + + # fix errno.h problem; bug #26165 + sed -i 's/^extern int errno;/#include <errno.h>/' error.h || die + + sed -i -e "s/ar/$(tc-getAR)/" make-makelib.sh || die + sed -i -e "s/ranlib/$(tc-getRANLIB)/" make-makelib.sh || die +} + +src_install() { + dodir /etc + dodir /usr/share + + # Now that the commands are compiled, update the conf-home file to point + # to the installation image directory. + echo "${ED}/usr/" > conf-home || die + sed -i -e "s:\"/etc\":\"${ED}/etc\":" hier.c || die "sed hier.c failed" + + emake setup + + # Move the man pages into /usr/share/man + mv "${ED}/usr/man" "${ED}/usr/share/" || die + + dodir /usr/$(get_libdir) + mv "${ED}/usr/lib/${PN}.a" "${ED}/usr/$(get_libdir)/${PN}.a" || die + rmdir "${ED}/usr/lib" || die + dodoc BLURB CHANGES INSTALL README THANKS TODO VERSION +} |