You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
11 years ago
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-crypt/tc-play/tc-play-1.1.ebuild,v 1.1 2013/10/05 16:07:34 alonbl Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit toolchain-funcs multilib
|
||
|
|
||
|
DESCRIPTION="a free, pretty much fully featured and stable TrueCrypt implementation"
|
||
|
HOMEPAGE="https://github.com/bwalex/tc-play"
|
||
|
SRC_URI="https://github.com/bwalex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE="openssl"
|
||
|
|
||
|
DEPEND="dev-libs/libgpg-error
|
||
|
sys-fs/lvm2
|
||
|
sys-apps/util-linux
|
||
|
dev-libs/libgcrypt
|
||
|
openssl? ( dev-libs/openssl )"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
pkg_setup() {
|
||
|
local backend="gcrypt"
|
||
|
use openssl && backend="openssl"
|
||
|
|
||
|
EXTRA_MAKE_FLAGS=(
|
||
|
PBKDF_BACKEND="${backend}"
|
||
|
WARNFLAGS=""
|
||
|
CC=$(tc-getCC)
|
||
|
AR=$(tc-getAR)
|
||
|
PREFIX=/usr \
|
||
|
LIBDIR=/usr/$(get_libdir)
|
||
|
)
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake -f Makefile.classic \
|
||
|
tcplay \
|
||
|
"${EXTRA_MAKE_FLAGS[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake -f Makefile.classic \
|
||
|
"${EXTRA_MAKE_FLAGS[@]}" \
|
||
|
install_program \
|
||
|
DESTDIR="${ED}"
|
||
|
dodoc README.md
|
||
|
}
|