# Copyright 2010-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 DB_VER="4.8" WX_GTK_VER="2.9" inherit db-use eutils versionator wxwidgets DESCRIPTION="A P2P network based digital currency." HOMEPAGE="http://bitcoin.org/" myP="bitcoin-${PV/_/}" SRC_URI="mirror://sourceforge/bitcoin/Bitcoin/bitcoin-0.3.24/${myP}-src.tar.gz eligius? ( http://luke.dashjr.org/programs/bitcoin/files/0.3.24-eligius_sendfee.patch ) " LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug +eligius nls selinux ssl upnp" LANGS="cs de eo es fr it lt nl pt ru zh_cn" for X in ${LANGS}; do IUSE="$IUSE linguas_$X" done DEPEND=" >=dev-libs/boost-1.41.0 =app-admin/eselect-wxwidgets-0.7-r1 x11-libs/wxGTK:2.9[X] !net-p2p/bitcoin " RDEPEND="${DEPEND} " DEPEND="${DEPEND} >=app-shells/bash-4.1 " S="${WORKDIR}/${myP}" src_prepare() { cd src cp "${FILESDIR}/0.3.24-Makefile.gentoo" "Makefile" use eligius && epatch "${DISTDIR}/0.3.24-eligius_sendfee.patch" } src_compile() { local OPTS=() OPTS+=("CXXFLAGS=${CXXFLAGS}") OPTS+=( "LDFLAGS=${LDFLAGS}") OPTS+=("DB_CXXFLAGS=-I$(db_includedir "${DB_VER}")") OPTS+=("DB_LDFLAGS=-ldb_cxx-${DB_VER}") local BOOST_PKG BOOST_VER BOOST_INC BOOST_PKG="$(best_version '