summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2013-10-05 16:07:34 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2013-10-05 16:07:34 +0000
commit56b62a1a40282e5343e7329f3b68e097a5c4f85b (patch)
tree93626b146014f4c35a95da0fcf95445d992fea0e /app-crypt/tc-play
parentFix not applying anti-versioning patch for py3 & py3.3 test failure (bug #450... (diff)
downloadgentoo-2-56b62a1a40282e5343e7329f3b68e097a5c4f85b.tar.gz
gentoo-2-56b62a1a40282e5343e7329f3b68e097a5c4f85b.tar.bz2
gentoo-2-56b62a1a40282e5343e7329f3b68e097a5c4f85b.zip
Initial import, bug#432914
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
Diffstat (limited to 'app-crypt/tc-play')
-rw-r--r--app-crypt/tc-play/ChangeLog9
-rw-r--r--app-crypt/tc-play/metadata.xml10
-rw-r--r--app-crypt/tc-play/tc-play-1.1.ebuild51
3 files changed, 70 insertions, 0 deletions
diff --git a/app-crypt/tc-play/ChangeLog b/app-crypt/tc-play/ChangeLog
new file mode 100644
index 000000000000..92704280b83a
--- /dev/null
+++ b/app-crypt/tc-play/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-crypt/tc-play
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/tc-play/ChangeLog,v 1.1 2013/10/05 16:07:34 alonbl Exp $
+
+*tc-play-1.1 (05 Oct 2013)
+
+ 05 Oct 2013; Alon Bar-Lev <alonbl@gentoo.org> +metadata.xml,
+ +tc-play-1.1.ebuild:
+ Initial import, bug#432914
diff --git a/app-crypt/tc-play/metadata.xml b/app-crypt/tc-play/metadata.xml
new file mode 100644
index 000000000000..97d07ad6b629
--- /dev/null
+++ b/app-crypt/tc-play/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>crypto</herd>
+ <use>
+ <flag name='openssl'>
+ Use openssl crypto backend.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-crypt/tc-play/tc-play-1.1.ebuild b/app-crypt/tc-play/tc-play-1.1.ebuild
new file mode 100644
index 000000000000..1eaaf6a85647
--- /dev/null
+++ b/app-crypt/tc-play/tc-play-1.1.ebuild
@@ -0,0 +1,51 @@
+# 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
+}