summaryrefslogtreecommitdiff
blob: 82b88e432c7f2b44e2b660f1422b73377e8f7962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-mhash/python-mhash-1.3.ebuild,v 1.2 2007/07/05 10:58:27 hawking Exp $

inherit distutils

DESCRIPTION="Python interface to libmhash"
SRC_URI="mirror://sourceforge/mhash/${P}.tar.gz"
HOMEPAGE="http://mhash.sourceforge.net/"
RDEPEND="virtual/python
		app-crypt/mhash"
DEPEND="${RDEPEND}
		sys-apps/sed"
IUSE=""
SLOT="0"
KEYWORDS="x86"
LICENSE="GPL-2"

src_unpack() {
	unpack ${A}
	# fix a glitch for gcc3.3 compiling
	sed '231s/$/\\/' -i ${S}/mhash.c
	# fix typo in MHASH_WHIRLPOOL definition
	sed -i -e 's/MHSH_WHIRLPOOL/MHASH_WHIRLPOOL/' ${S}/mhash.c
	# fix typo in package setup.py definition
	sed -i -e 's/VERSION = "1.2"/VERSION = "1.3"/' ${S}/setup.py
}

src_install() {
	DOCS="AUTHORS"
	distutils_src_install
}