diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-01-02 14:24:58 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-02 14:24:58 +0000 |
commit | 7acb1d5241e9d3dd044e2a78f95d3dd73108e94c (patch) | |
tree | a0eacd7ebc614c10906bae85f872a61b53cd65b4 /net-dns/namecoind | |
parent | Version bump. (diff) | |
download | gentoo-2-7acb1d5241e9d3dd044e2a78f95d3dd73108e94c.tar.gz gentoo-2-7acb1d5241e9d3dd044e2a78f95d3dd73108e94c.tar.bz2 gentoo-2-7acb1d5241e9d3dd044e2a78f95d3dd73108e94c.zip |
Version bump, bug #534204
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
Diffstat (limited to 'net-dns/namecoind')
-rw-r--r-- | net-dns/namecoind/ChangeLog | 10 | ||||
-rw-r--r-- | net-dns/namecoind/files/namecoind-0.3.80-makefile.patch | 30 | ||||
-rw-r--r-- | net-dns/namecoind/namecoind-0.3.80.ebuild | 84 |
3 files changed, 122 insertions, 2 deletions
diff --git a/net-dns/namecoind/ChangeLog b/net-dns/namecoind/ChangeLog index 95b4790dcf48..778cb8e235f5 100644 --- a/net-dns/namecoind/ChangeLog +++ b/net-dns/namecoind/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dns/namecoind -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/namecoind/ChangeLog,v 1.3 2014/06/22 11:44:15 blueness Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/namecoind/ChangeLog,v 1.4 2015/01/02 14:24:58 blueness Exp $ + +*namecoind-0.3.80 (02 Jan 2015) + + 02 Jan 2015; Anthony G. Basile <blueness@gentoo.org> + +files/namecoind-0.3.80-makefile.patch, +namecoind-0.3.80.ebuild: + Version bump, bug #534204 22 Jun 2014; Anthony G. Basile <blueness@gentoo.org> namecoind-0.3.72.ebuild: Add dependency on dev-libs/glib:2, bug #514362 diff --git a/net-dns/namecoind/files/namecoind-0.3.80-makefile.patch b/net-dns/namecoind/files/namecoind-0.3.80-makefile.patch new file mode 100644 index 000000000000..2dce6b5a4f85 --- /dev/null +++ b/net-dns/namecoind/files/namecoind-0.3.80-makefile.patch @@ -0,0 +1,30 @@ +--- Makefile.github 2015-01-01 10:05:04.000000000 +0000 ++++ Makefile 2015-01-01 10:15:05.000000000 +0000 +@@ -1,4 +1,4 @@ +-CXX=g++ ++CXX?=g++ + + DEFS=-D_MT -DNOPCH -DFOURWAYSSE2 -DUSE_SSL + +@@ -8,20 +8,10 @@ + # Link boost statically + DEFS += -DBOOST_THREAD_USE_LIB + +-INCLUDEPATHS= \ +- -I../libs/openssl-1.0.1i/include \ +- -I../libs/db-4.7.25.NC/build_unix \ +- -I../libs/boost_1_50_0 +- +-LIBPATHS= \ +- -L../libs/openssl-1.0.1i \ +- -L../libs/db-4.7.25.NC/build_unix \ +- -L../libs/boost_1_50_0/stage/lib +- + LIBBOOST_SUFFIX= + + LIBS= \ +- -Wl,-Bstatic \ ++ -Wl,-Bdynamic \ + -l boost_system$(LIBBOOST_SUFFIX) \ + -l boost_filesystem$(LIBBOOST_SUFFIX) \ + -l boost_program_options$(LIBBOOST_SUFFIX) \ diff --git a/net-dns/namecoind/namecoind-0.3.80.ebuild b/net-dns/namecoind/namecoind-0.3.80.ebuild new file mode 100644 index 000000000000..f6eff732d0e0 --- /dev/null +++ b/net-dns/namecoind/namecoind-0.3.80.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/namecoind/namecoind-0.3.80.ebuild,v 1.1 2015/01/02 14:24:58 blueness Exp $ + +EAPI=4 + +DB_VER="4.8" + +inherit db-use eutils toolchain-funcs user git-r3 + +DESCRIPTION="A P2P network based domain name system" +HOMEPAGE="https://dot-bit.org/" +#SRC_URI="https://github.com/namecoinq/namecoinq/archive/v${PV/0/Q}.tar.gz -> ${P}.tar.gz" +# Try to use github +SRC_URI="" +EGIT_REPO_URI="https://github.com/namecoin/namecoin.git" +EGIT_BRANCH="namecoinq-release" +EGIT_COMMIT="nc${PV}" + +LICENSE="MIT ISC cryptopp" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ssl upnp" + +RDEPEND=" + dev-libs/boost[threads(+)] + dev-libs/glib:2 + dev-libs/crypto++ + dev-libs/openssl[-bindist] + upnp? ( + net-libs/miniupnpc + ) + sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] +" +DEPEND="${RDEPEND} + >=app-shells/bash-4.1 +" + +S="${WORKDIR}/namecoind-${PV}" + +pkg_setup() { + local UG='namecoin' + enewgroup "${UG}" + enewuser "${UG}" -1 -1 /var/lib/namecoin "${UG}" +} + +src_prepare() { + cd src || die + epatch "${FILESDIR}"/namecoind-0.3.80-makefile.patch +} + +src_compile() { + local OPTS=() + + OPTS+=("CXXFLAGS=${CXXFLAGS} -I$(db_includedir "${DB_VER}")") + OPTS+=("LDFLAGS=${LDFLAGS} -ldb_cxx-${DB_VER}") + + use ssl && OPTS+=(USE_SSL=1) + use upnp && OPTS+=(USE_UPNP=1) + + cd src || die + emake CXX="$(tc-getCXX)" "${OPTS[@]}" ${PN} +} + +src_install() { + dobin src/${PN} + + insinto /etc/namecoin + doins "${FILESDIR}/namecoin.conf" + fowners namecoin:namecoin /etc/namecoin/namecoin.conf + fperms 600 /etc/namecoin/namecoin.conf + + newconfd "${FILESDIR}/namecoin.confd" ${PN} + newinitd "${FILESDIR}/namecoin.initd" ${PN} + + keepdir /var/lib/namecoin/.namecoin + fperms 700 /var/lib/namecoin + fowners namecoin:namecoin /var/lib/namecoin/ + fowners namecoin:namecoin /var/lib/namecoin/.namecoin + dosym /etc/namecoin/namecoin.conf /var/lib/namecoin/.namecoin/bitcoin.conf + + dodoc doc/README + dodoc DESIGN-namecoin.md FAQ.md doc/README_merged-mining.md +} |