diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2017-01-14 01:05:31 +0200 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2017-01-14 01:32:36 +0200 |
commit | 8b123cf68379fd14d57179b2348fe55f6d1cf8bc (patch) | |
tree | 0ab7d72f0a1523f4c4a8902e61a90f7fd27a479d /app-crypt | |
parent | dev-libs/libmcrypt: assign crypto as only maintainer (diff) | |
download | gentoo-8b123cf68379fd14d57179b2348fe55f6d1cf8bc.tar.gz gentoo-8b123cf68379fd14d57179b2348fe55f6d1cf8bc.tar.bz2 gentoo-8b123cf68379fd14d57179b2348fe55f6d1cf8bc.zip |
app-crypt/mhash: eapi bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/mhash/mhash-0.9.9.9-r2.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild b/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild new file mode 100644 index 000000000000..47b848518012 --- /dev/null +++ b/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils + +DESCRIPTION="library providing a uniform interface to a large number of hash algorithms" +HOMEPAGE="http://mhash.sourceforge.net/" +SRC_URI="mirror://sourceforge/mhash/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +RDEPEND="" +DEPEND="dev-lang/perl" # pod2html + +PATCHES=( + "${FILESDIR}/${PN}-0.9.9-fix-mem-leak.patch" + "${FILESDIR}/${PN}-0.9.9-fix-snefru-segfault.patch" + "${FILESDIR}/${PN}-0.9.9-fix-whirlpool-segfault.patch" + "${FILESDIR}/${PN}-0.9.9-autotools-namespace-stomping.patch" + "${FILESDIR}/${P}-remove_premature_free.patch" + "${FILESDIR}/${P}-force64bit-tiger.patch" + "${FILESDIR}/${P}-align.patch" + "${FILESDIR}/${P}-alignment.patch" +) + +DOCS=( + doc/{example.c,skid2-authentication} + doc/mhash.html +) + +src_prepare() { + default + sed -i \ + -e 's/--netscape//' \ + "${S}"/doc/Makefile.in +} + +src_configure() { + # https://sourceforge.net/p/mhash/patches/11/ + export ac_cv_func_malloc_0_nonnull=yes + + econf $(use_enable static-libs static) +} + +src_compile() { + default + emake -C doc mhash.html +} + +src_install() { + default + prune_libtool_files +} |