/[gentoo-x86]/app-crypt/mhash/mhash-0.9.9.9-r1.ebuild
Gentoo

Contents of /app-crypt/mhash/mhash-0.9.9.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Apr 15 20:49:42 2014 UTC (4 months ago) by redlizard
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -2 lines
Keyworded ~{x86,x64}-freebsd.

(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x10FB016B)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9-r1.ebuild,v 1.12 2014/01/18 05:39:56 vapier Exp $
4
5 EAPI=4
6 inherit eutils
7
8 DESCRIPTION="library providing a uniform interface to a large number of hash algorithms"
9 HOMEPAGE="http://mhash.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/mhash/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 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"
15 IUSE="static-libs"
16
17 RDEPEND=""
18 DEPEND="dev-lang/perl" # pod2html
19
20 src_prepare() {
21 epatch \
22 "${FILESDIR}"/${PN}-0.9.9-fix-{mem-leak,snefru-segfault,whirlpool-segfault}.patch \
23 "${FILESDIR}"/${PN}-0.9.9-autotools-namespace-stomping.patch \
24 "${FILESDIR}"/${P}-remove_premature_free.patch \
25 "${FILESDIR}"/${P}-force64bit-tiger.patch \
26 "${FILESDIR}"/${P}-align.patch \
27 "${FILESDIR}"/${P}-alignment.patch
28 sed -i \
29 -e 's/--netscape//' \
30 "${S}"/doc/Makefile.in
31 }
32
33 src_configure() {
34 # https://sourceforge.net/p/mhash/patches/11/
35 export ac_cv_func_malloc_0_nonnull=yes
36
37 econf $(use_enable static-libs static)
38 }
39
40 src_compile() {
41 default
42 emake -C doc mhash.html
43 }
44
45 src_install() {
46 default
47
48 use static-libs || rm -f "${ED}"usr/lib*/libmhash.la
49 dodoc AUTHORS ChangeLog NEWS README THANKS TODO \
50 doc/{example.c,skid2-authentication}
51 dohtml doc/mhash.html
52 }

  ViewVC Help
Powered by ViewVC 1.1.20