# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils DESCRIPTION="Standalone command line vanity address generator." HOMEPAGE="https://github.com/samr7/vanitygen" SRC_URI="https://github.com/samr7/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="AGPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="opencl " DEPEND="dev-libs/openssl[-bindist] dev-libs/libpcre" RDEPEND="${DEPEND}" src_prepare() { epatch "${FILESDIR}/respect-cflags.patch" } src_compile() { emake most || die "emake failed" use opencl && emake oclvanitygen oclvanityminer } src_install() { dobin vanitygen || die dobin keyconv || die if use opencl ; then dobin oclvanitygen || die dobin oclvanityminer || die fi dodoc README CHANGELOG || die }