diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-05-18 03:40:46 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-05-18 03:40:46 +0000 |
commit | 9fa12b24b008dbca6f88f570ec7c8b9fd0dfacf9 (patch) | |
tree | 454436b376516cbc1f9fa52ee0552c049f8b16bf /app-crypt | |
parent | Version bump. (diff) | |
download | gentoo-2-9fa12b24b008dbca6f88f570ec7c8b9fd0dfacf9.tar.gz gentoo-2-9fa12b24b008dbca6f88f570ec7c8b9fd0dfacf9.tar.bz2 gentoo-2-9fa12b24b008dbca6f88f570ec7c8b9fd0dfacf9.zip |
Allow to use pkcs11.h from dev-libs/pkcs11-helper.
(Portage version: 13623-svn/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/truecrypt/ChangeLog | 6 | ||||
-rw-r--r-- | app-crypt/truecrypt/truecrypt-6.2.ebuild | 18 |
2 files changed, 18 insertions, 6 deletions
diff --git a/app-crypt/truecrypt/ChangeLog b/app-crypt/truecrypt/ChangeLog index 48212cce7861..2c17ba85fb02 100644 --- a/app-crypt/truecrypt/ChangeLog +++ b/app-crypt/truecrypt/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-crypt/truecrypt # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.43 2009/05/18 02:30:33 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.44 2009/05/18 03:40:46 arfrever Exp $ + + 18 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + truecrypt-6.2.ebuild: + Allow to use pkcs11.h from dev-libs/pkcs11-helper. *truecrypt-6.2 (18 May 2009) diff --git a/app-crypt/truecrypt/truecrypt-6.2.ebuild b/app-crypt/truecrypt/truecrypt-6.2.ebuild index 4b6508110ab7..371472eb4977 100644 --- a/app-crypt/truecrypt/truecrypt-6.2.ebuild +++ b/app-crypt/truecrypt/truecrypt-6.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-6.2.ebuild,v 1.1 2009/05/18 02:30:33 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-6.2.ebuild,v 1.2 2009/05/18 03:40:46 arfrever Exp $ EAPI="2" @@ -19,7 +19,7 @@ RESTRICT="bindist fetch mirror" RDEPEND="sys-fs/fuse x11-libs/wxGTK:2.8" DEPEND="${RDEPEND} - dev-libs/opensc" + || ( dev-libs/pkcs11-helper dev-libs/opensc )" S="${WORKDIR}/${P}-source" @@ -39,9 +39,17 @@ pkg_setup() { } src_compile() { - append-flags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1 - local EXTRA + local EXTRA pkcs11_include_directory + use X || EXTRA+=" NOGUI=1" + + if has_version dev-libs/pkcs11-helper; then + pkcs11_include_directory="/usr/include/pkcs11-helper-1.0" + else + pkcs11_include_directory="/usr/include/opensc" + fi + append-flags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1 + emake \ ${EXTRA} \ NOSTRIP=1 \ @@ -55,7 +63,7 @@ src_compile() { TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \ TC_EXTRA_LFLAGS="${LDFLAGS}" \ WX_CONFIG="${WX_CONFIG}" \ - PKCS11_INC="/usr/include/opensc" \ + PKCS11_INC="${pkcs11_include_directory}" \ || die "emake failed" } |