summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/d0_blind_id/d0_blind_id-9999.ebuild')
-rw-r--r--dev-libs/d0_blind_id/d0_blind_id-9999.ebuild37
1 files changed, 10 insertions, 27 deletions
diff --git a/dev-libs/d0_blind_id/d0_blind_id-9999.ebuild b/dev-libs/d0_blind_id/d0_blind_id-9999.ebuild
index ca57d55..fbb9d41 100644
--- a/dev-libs/d0_blind_id/d0_blind_id-9999.ebuild
+++ b/dev-libs/d0_blind_id/d0_blind_id-9999.ebuild
@@ -4,47 +4,35 @@
EAPI="4"
-SCM=""
-if [ "${PV#9999}" != "${PV}" ] ; then
- SCM="git-2"
-fi
-inherit autotools $SCM
+inherit autotools git-2
DESCRIPTION="Blind-ID library for user identification using RSA blind signatures"
HOMEPAGE="http://git.xonotic.org/?p=xonotic/d0_blind_id.git;a=summary"
-SCM=""
-if [ "${PV#9999}" != "${PV}" ] ; then
- EGIT_REPO_URI="git://git.xonotic.org/xonotic/${PN}.git"
-else
- SRC_URI="http://git.xonotic.org/?p=xonotic/${PN}.git;a=snapshot;h=xonotic-v${PV/_pre/preview};sf=zip -> ${P}.zip"
-fi
+EGIT_REPO_URI="git://git.xonotic.org/xonotic/${PN}.git"
LICENSE="BSD"
SLOT="0"
-if [ "${PV#9999}" = "${PV}" ] ; then
- KEYWORDS="~amd64 ~x86"
-fi
-IUSE="crypt openssl static-libs"
+KEYWORDS=""
+IUSE="crypt openssl static-libs tommath"
+REQUIRED_USE="openssl? ( !tommath )"
RDEPEND="
- !openssl? ( dev-libs/gmp )
+ openssl? ( !tommath? ( dev-libs/gmp ) )
openssl? ( dev-libs/openssl )
+ tommath? ( dev-libs/libtommath )
"
DEPEND="${RDEPEND}
dev-util/pkgconfig
"
+DOCS=( d0_blind_id.txt )
pkg_setup() {
use crypt || ewarn "You will have no encryption, only authentication."
use openssl && ewarn "OpenSSL is for Mac OS X users only, GMP is faster."
+ use tommath && ewarn "You enabled libtommath, GMP is faster."
}
src_prepare() {
- if [ "${PV#9999}" = "${PV}" ] ; then
- mv d0_blind_id-xonotic-v0.1.0preview-* ${P} || die
- cd "${S}"
- fi
-
eautoreconf
}
@@ -52,11 +40,6 @@ src_configure() {
econf \
$(use_enable crypt rijndael) \
$(use_with openssl) \
+ $(use_with tommath) \
$(use_enable static-libs static)
}
-
-src_install() {
- default
-
- dodoc d0_blind_id.txt
-}