app-crypt/libscrypt - 1.21 (moexiami)

Search

Install

Install this version:

emerge -a =app-crypt/libscrypt-1.21

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-crypt/libscrypt-1.21

Or alternatively:

emerge --autounmask-write -a =app-crypt/libscrypt-1.21

Package Information

Description:
Shared library to impliment the scrypt algorithm
Homepage:
https://github.com/technion/libscrypt
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
1.21 7 ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs multilib-minimal

DESCRIPTION="Shared library to impliment the scrypt algorithm"
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="static-libs"

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

PATCHES=(
	"${FILESDIR}/${P}-build.patch"
)

pkg_setup() {
	export LIBDIR=${PREFIX}/$(get_libdir)
	# -D_FORTIFY_SOURCE=2 in Makefile
	export CFLAGS_EXTRA="${CFLAGS} -U_FORTIFY_SOURCE"
	export LDFLAGS_EXTRA="${LDFLAGS}"
	export PREFIX=/usr
	unset CFLAGS
	unset LDFLAGS
}

src_prepare() {
	default

	multilib_copy_sources
}

multilib_src_compile() {
	emake \
		CC="$(tc-getCC)"
}

multilib_src_install() {
	emake DESTDIR="${D}" LIBDIR="${PREFIX}/$(get_libdir)" install
	use static-libs && emake DESTDIR="${D}" LIBDIR="${PREFIX}/$(get_libdir)" install-static
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-crypt/libscrypt | euse -E <flag> -p app-crypt/libscrypt | euse -D <flag> -p app-crypt/libscrypt

Global/Standard Flags

Inherited Eclasses

Manifest for 1.21

Type File Size Source URLs
DIST libscrypt-1.21.tar.gz 19425 bytes https://github.com/technion/libscrypt/archive/v1.21.tar.gz