blob: 744a8a59c0c30c364000df57b134d4031bd8d36a (
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
33
34
35
36
37
38
39
40
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashsum/hashsum-1.6.ebuild,v 1.6 2005/04/24 10:47:23 hansmi Exp $
DESCRIPTION="Command line tool for advanced hashing algorithms"
HOMEPAGE="http://www.certainkey.com/resources/hashsum.php"
SRC_URI="http://www.certainkey.com/resources/downloads/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE="doc"
DEPEND="virtual/libc"
S="${WORKDIR}/${PN}"
src_compile() {
emake || die "emake failed"
}
src_install() {
dobin hashsum || die "dobin failed"
dosym /usr/bin/hashsum /usr/bin/sha256sum
dosym /usr/bin/hashsum /usr/bin/sha384sum
dosym /usr/bin/hashsum /usr/bin/sha512sum
dosym /usr/bin/hashsum /usr/bin/ripemd160sum
# There are a heap of manpages. One for every sourcefile.
# But currently I see no other way but to use them all
# Maybe it should depend on whether USE="doc" is set or not
doman hashsum_docs/man/man3/*.3
if use doc ; then
insinto /usr/doc/${PF}/latex
doins hashsum_docs/latex/*.*
insinto /usr/doc/${PF}/html
doins hashsum_docs/html/*.*
insinto /usr/doc/${PF}/rtf
doins hashsum_docs//rtf/*.*
fi
}
|