summaryrefslogtreecommitdiff
blob: bc844f4d931d100a22db1ce2606a9bfa97e6fe84 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/libscrypt/libscrypt-1.20.ebuild,v 1.4 2015/04/10 09:51:25 ago Exp $

EAPI=5

inherit flag-o-matic multilib toolchain-funcs

DESCRIPTION="Shared library to impliment the scrypt algorithm.  See http://www.tarsnap.com/scrypt.html."
HOMEPAGE="https://github.com/technion/libscrypt"
SRC_URI="https://github.com/technion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 arm ~mips ppc ppc64 sparc x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

src_compile() {
	export PREFIX=/usr
	export LIBDIR=${PREFIX}/$(get_libdir)
	export CC=$(tc-getCC)
	export CFLAGS="$CFLAGS -fPIC"
	export LDFLAGS="$LDFLAGS -Wl,-soname,libscrypt.so.0 -Wl,--version-script=libscrypt.version"
	export CFLAGS_EXTRA=
	emake
}