Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/mhash: ChangeLog mhash-0.9.9.9.ebuild
Date: Fri, 29 Jul 2011 06:23:56
Message-Id: 20110729062345.D91462004B@flycatcher.gentoo.org
1 ssuominen 11/07/29 06:23:45
2
3 Modified: ChangeLog mhash-0.9.9.9.ebuild
4 Log:
5 USE="static-libs" and remove unnecessary libtool archive. Missing dev-lang/perl DEPEND for pod2html.
6
7 (Portage version: 2.2.0_alpha47/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.58 app-crypt/mhash/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mhash/ChangeLog?rev=1.58&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mhash/ChangeLog?rev=1.58&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mhash/ChangeLog?r1=1.57&r2=1.58
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/mhash/ChangeLog,v
19 retrieving revision 1.57
20 retrieving revision 1.58
21 diff -u -r1.57 -r1.58
22 --- ChangeLog 6 Feb 2011 05:28:23 -0000 1.57
23 +++ ChangeLog 29 Jul 2011 06:23:45 -0000 1.58
24 @@ -1,6 +1,10 @@
25 # ChangeLog for app-crypt/mhash
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/ChangeLog,v 1.57 2011/02/06 05:28:23 leio Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/ChangeLog,v 1.58 2011/07/29 06:23:45 ssuominen Exp $
29 +
30 + 29 Jul 2011; Samuli Suominen <ssuominen@g.o> mhash-0.9.9.9.ebuild:
31 + USE="static-libs" and remove unnecessary libtool archive. Missing
32 + dev-lang/perl DEPEND for pod2html.
33
34 06 Feb 2011; Mart Raudsepp <leio@g.o> mhash-0.9.9.ebuild:
35 Drop to ~mips
36
37
38
39 1.3 app-crypt/mhash/mhash-0.9.9.9.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9.ebuild?rev=1.3&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9.ebuild?rev=1.3&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9.ebuild?r1=1.2&r2=1.3
44
45 Index: mhash-0.9.9.9.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9.ebuild,v
48 retrieving revision 1.2
49 retrieving revision 1.3
50 diff -u -r1.2 -r1.3
51 --- mhash-0.9.9.9.ebuild 1 Apr 2010 08:42:53 -0000 1.2
52 +++ mhash-0.9.9.9.ebuild 29 Jul 2011 06:23:45 -0000 1.3
53 @@ -1,7 +1,8 @@
54 -# Copyright 1999-2010 Gentoo Foundation
55 +# Copyright 1999-2011 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9.ebuild,v 1.2 2010/04/01 08:42:53 abcd Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/mhash/mhash-0.9.9.9.ebuild,v 1.3 2011/07/29 06:23:45 ssuominen Exp $
59
60 +EAPI=4
61 inherit eutils
62
63 DESCRIPTION="library providing a uniform interface to a large number of hash algorithms"
64 @@ -11,37 +12,30 @@
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
68 -IUSE=""
69 +IUSE="static-libs"
70
71 -DEPEND=""
72 RDEPEND=""
73 +DEPEND="dev-lang/perl" # pod2html
74
75 -src_unpack() {
76 - unpack ${A}
77 - cd "${S}"
78 -
79 - # Fix for issues in bug #181563
80 - #epatch "${FILESDIR}/${PN}-0.9.9-mutils-align.patch"
81 -
82 - epatch "${FILESDIR}"/${PN}-0.9.9-fix-mem-leak.patch
83 - epatch "${FILESDIR}"/${PN}-0.9.9-fix-snefru-segfault.patch
84 - epatch "${FILESDIR}"/${PN}-0.9.9-fix-whirlpool-segfault.patch
85 - epatch "${FILESDIR}"/${PN}-0.9.9-autotools-namespace-stomping.patch
86 +src_prepare() {
87 + epatch \
88 + "${FILESDIR}"/${PN}-0.9.9-fix-{mem-leak,snefru-segfault,whirlpool-segfault}.patch \
89 + "${FILESDIR}"/${PN}-0.9.9-autotools-namespace-stomping.patch
90 +}
91 +
92 +src_configure() {
93 + econf $(use_enable static-libs static)
94 }
95
96 src_compile() {
97 - econf \
98 - --enable-static \
99 - --enable-shared || die
100 - emake || die "make failure"
101 - cd doc && emake mhash.html || die "failed to build html"
102 + default
103 + emake -C doc mhash.html
104 }
105
106 src_install() {
107 - dodir /usr/{bin,include,lib}
108 - make install DESTDIR="${D}" || die "install failure"
109 -
110 - dodoc AUTHORS INSTALL NEWS README TODO THANKS ChangeLog
111 - dodoc doc/skid* doc/*.c
112 - dohtml doc/mhash.html || die "dohtml failed"
113 + emake DESTDIR="${D}" install
114 + use static-libs || rm -f "${ED}"usr/lib*/libmhash.la
115 + dodoc AUTHORS ChangeLog NEWS README THANKS TODO \
116 + doc/{example.c,skid2-authentication}
117 + dohtml doc/mhash.html
118 }