net-p2p/dogecoind-1.7.0
authorJustin Wind <justin.wind+git@gmail.com>
Tue, 20 May 2014 03:15:07 +0000 (20:15 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Tue, 20 May 2014 03:15:07 +0000 (20:15 -0700)
net-p2p/dogecoind/Manifest
net-p2p/dogecoind/dogecoind-1.7.0.ebuild [new file with mode: 0644]

index 83decc8673e7acc9a8df1499d99120770a5ae408..84b06457ad3b0ebb13bdf09fc71e9f5e487b115c 100644 (file)
@@ -7,9 +7,11 @@ AUX dogecoind.logrotate 113 SHA256 33d642ea78faca1788f25dc725aaa2249d0a60791d56e
 DIST dogecoin-1.5.1.tar.gz 3434804 SHA256 2a18483c21ffdb9450b42a841a32c9f58bb5e5b86a8504f2e1a6686a87b5908b SHA512 5ca623376b514bf9ddae695040a02273ae558a671798cb595f814d42fe53e1c29188d2ed06fd1c5a59be76fb6efa52dc5c18c921ad092c1e86ea4cadfe3c6b86 WHIRLPOOL 9fc6d46444ee61cf308c5ed0fd254947386ecd9ec4fe661f87358388f4762d7095a767ad1e77cf1fd0fec79588da94e0172dede6d253fda1985bd067efcb8b1c
 DIST dogecoin-1.5.2.tar.gz 3435175 SHA256 e51a206df6e6e4f7f8823b57d8caed27662d8da42e605be2de6d343c9acfef23 SHA512 fec38c2f1e6a1db8dc5caaa1b5caa323097838fb6356ecf0e92809b2c8fb755110cedb4cb2b89ff3065921299ecd009aaa84e1f74b3b6ab2569834bbeca1c85f WHIRLPOOL 52bb849175e848e831fa2292a255024af9d9e6d84b5a1d7159b0358448267c62266924dd74882d58daef4372e943cf8e9f7610ad6758029f3ed9e5df9eac8843
 DIST dogecoin-1.6.tar.gz 3405829 SHA256 cab04d7a33de1b429440bfa98506d4a64417a70bddcb9a33342b38837edf54fd SHA512 dd40d96f87aa787af3ae7da38ec33c94bdc15b1176c2468c3a7408778b3b0e64f2c2bdafa3a85e72ef02fe4b9f931cbe7dec33b1da3bc867978d747f31662621 WHIRLPOOL 9721725f24d712caeab03b863115b9f3d553951cdf48885a3cdc4899f5e5a5eec5a7c1c63c22b5bf7ff93c73cc90b15f8b9c1f4318d8737c1cfa4f7e5aafd1ae
+DIST dogecoin-v1.7.0.tar.gz 6865456 SHA256 e45cb9f2f24b3028ade4dc4791e72bf36e471920b50a93e03b29b36a95fd63cb SHA512 2d764f9a5411036d39cafb693c698944c200d2b80634e34e187d2265724066d72ce28c018633b5e6ef73a69de8ea8cea67bd1851b1f0dbf7d0cad22b0ee8c741 WHIRLPOOL 94b24bf913ff7fda6229bda40c4c7371dea2e49405edffe1eaf3c0dd8f0aab060ae1f269b70eb1f933a5303076828351ba823496070c60d1230a83f4d53ecdf4
 EBUILD dogecoind-1.5.1-r1.ebuild 3102 SHA256 4a06590ffe58f4e1299b0475b47cf48b5c04ac622147e842340b9bbfa7a5e797 SHA512 323523cb708b35e1d055683158d174e6dcb0b5f166fd878e277234a959f4b13fad2b88aa5a284c568dd34aaed2e456437e556b782a2b16844389201182344461 WHIRLPOOL b12d47ef211f9a59e24a7d6d03e75a50847cd7cdeb2f5b127c0a75ebf171af4e5754d387854bde3abf64101b822b729964f402db15e73d28da534aae988392eb
 EBUILD dogecoind-1.5.1.ebuild 3040 SHA256 cd43392e9c4791296dfc60e950522db8a5ed232234172fe1f401373631ce3cfd SHA512 62920b49bec11b8dc22d50bf76cf0bb32375e860ef576c778abe5f36ac2cfd78a6c680e6f0880519250ce725272924cbb475259d46e87c7a93a98eb8979c4651 WHIRLPOOL 1bd9e020a4b755c13bc7a99a14c5a2a2b1e163a4b61018c412fba259bc3075f4f4e73804ff7255a8031811ff9ea040cc994b896d883a6d6ea89b234ace587426
 EBUILD dogecoind-1.5.2.ebuild 3009 SHA256 61e3b4f3c96997e577de9a64c77eef666cb274085d6cb8a6517bef9db3018b44 SHA512 f7469092e7c38359a46c79808abcec13df8e3cebcc6136b8473e3140851faac9bb9e59b4faf241046e1f2fb26bf43b888ce66ec746194458c0e6e2341a438a5f WHIRLPOOL 2d61fb09f04b01546881b2fa7fde96791349d5659321e5f35664e7b96f4d6ad4672b55d5e1f6491a2ed9c9531b4b064c4c1cc3f274ad2fdfef5acc05be6c60ee
 EBUILD dogecoind-1.6.ebuild 3009 SHA256 61e3b4f3c96997e577de9a64c77eef666cb274085d6cb8a6517bef9db3018b44 SHA512 f7469092e7c38359a46c79808abcec13df8e3cebcc6136b8473e3140851faac9bb9e59b4faf241046e1f2fb26bf43b888ce66ec746194458c0e6e2341a438a5f WHIRLPOOL 2d61fb09f04b01546881b2fa7fde96791349d5659321e5f35664e7b96f4d6ad4672b55d5e1f6491a2ed9c9531b4b064c4c1cc3f274ad2fdfef5acc05be6c60ee
+EBUILD dogecoind-1.7.0.ebuild 3010 SHA256 8c1e9cca69dd15f72e0498a08edd62dbc8df11ee6c74131f9a2a822cbfa0f5af SHA512 08950ea199de8da3cd66ba62f8ef77ec4ff4733c9ccad70e51d3bbfe9036cf20e3330d8c63224bb17dfb70a5b41f9335c116d8845f3a50ddf636ab579ee55f96 WHIRLPOOL 1f3d6f0324fe32a5e5bc661a8b909c2b63c12fed89b09baa3169f8ad07ed02f97498ef3e075936832315f3452baa42d136dead9f14dd34c38dbfc68e5ba17975
 MISC ChangeLog 35 SHA256 249b088967e439f9ede35725074ad34e74eb2aebf5afdf87f77f4d9f69a105c1 SHA512 6849adb7ba7996356171b259f1e7d428a27e5168c035787a86a2dc8e37c595bcd4a9887f5cadebeee4aefdce61e1dd6ffc8f924ff1fdda7729b75dcd2a404f43 WHIRLPOOL b8da20935cce8d197d9b83593f52c52f10ba33a9a0ce2c6fb76edc5800eb7275352f602d7b4304690459c7bcdba01df06af92d2e71b58e7822bc16b92c7ab1d1
 MISC metadata.xml 325 SHA256 37aef5bcb42f89e449ea4f0ec19174be6c9ba1bafcd49df1d3f60969a2eeb0e9 SHA512 de0df1316737a65c1e0996dbae24e653eac94d439cf2c291126ba0917195345a31518f7b3f9b2d548b2330d615c01797b2a808b341491980d1ffdd23f43bc145 WHIRLPOOL 31a18cf426f2479402744bb74e6987c9cd87899558fe7c9c4e5bd3a4d171d2f0ab21c40898d5c96f7c67ce7a74327f859df1ac51eb2e94a6abc1ce64045de2af
diff --git a/net-p2p/dogecoind/dogecoind-1.7.0.ebuild b/net-p2p/dogecoind/dogecoind-1.7.0.ebuild
new file mode 100644 (file)
index 0000000..7f395fa
--- /dev/null
@@ -0,0 +1,126 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DB_VER="5.1"
+
+inherit bash-completion-r1 db-use eutils systemd user
+
+MyPV="v${PV/_/-}"
+MyPN="dogecoin"
+MyP="${MyPN}-${MyPV}"
+
+DESCRIPTION="P2P Internet currency based on Bitcoin but wow such doge"
+HOMEPAGE="https://dogecoin.com/"
+SRC_URI="https://github.com/${MyPN}/${MyPN}/archive/${MyPV}.tar.gz -> ${MyP}.tar.gz"
+
+LICENSE="MIT ISC GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bash-completion examples ipv6 logrotate upnp system_leveldb"
+
+RDEPEND="
+       dev-libs/boost[threads(+)]
+       dev-libs/openssl:0[-bindist]
+       logrotate? (
+               app-admin/logrotate
+       )
+       upnp? (
+               net-libs/miniupnpc
+       )
+       sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
+       system_leveldb? (
+               =dev-libs/leveldb-1.15.0[-snappy]
+       )
+"
+DEPEND="${RDEPEND}
+       >=app-shells/bash-4.1
+       sys-apps/sed
+"
+
+S="${WORKDIR}/${MyP}"
+
+pkg_setup() {
+       local UG='dogecoin'
+       enewgroup "${UG}"
+       enewuser "${UG}" -1 -1 /var/lib/dogecoin "${UG}"
+}
+
+src_prepare() {
+#      epatch "${FILESDIR}"/${MyPN}-sys_leveldb.patch
+#      rm -r src/leveldb
+
+       if has_version '>=dev-libs/boost-1.52'; then
+               sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix
+       fi
+}
+
+src_configure() {
+       OPTS=()
+
+       OPTS+=("DEBUGFLAGS=")
+       OPTS+=("CXXFLAGS=${CXXFLAGS}")
+       OPTS+=("LDFLAGS=${LDFLAGS}")
+
+       if use upnp; then
+               OPTS+=("USE_UPNP=1")
+       else
+               OPTS+=("USE_UPNP=-")
+       fi
+
+       use ipv6 || OPTS+=("USE_IPV6=-")
+
+       use system_leveldb && OPTS+=("USE_SYSTEM_LEVELDB=1")
+
+       OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
+       OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
+
+       cd src || die
+       emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN}
+}
+
+#Tests are broken with and without our dogecoin-sys_leveldb.patch.
+#When tests work, make sure to inherit toolchain-funcs
+#src_test() {
+#      cd src || die
+#      emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_dogecoin
+#      ./test_dogecoin || die 'Tests failed'
+#}
+
+src_install() {
+       dobin src/${PN}
+
+       insinto /etc/dogecoin
+       doins "${FILESDIR}/dogecoin.conf"
+       fowners dogecoin:dogecoin /etc/dogecoin/dogecoin.conf
+       fperms 600 /etc/dogecoin/dogecoin.conf
+
+       newconfd "${FILESDIR}/dogecoin.confd" ${PN}
+       newinitd "${FILESDIR}/dogecoin.initd" ${PN}
+       systemd_dounit "${FILESDIR}/dogecoin.service"
+
+       keepdir /var/lib/dogecoin/.dogecoin
+       fperms 700 /var/lib/dogecoin
+       fowners dogecoin:dogecoin /var/lib/dogecoin/
+       fowners dogecoin:dogecoin /var/lib/dogecoin/.dogecoin
+       dosym /etc/dogecoin/dogecoin.conf /var/lib/dogecoin/.dogecoin/dogecoin.conf
+
+#      dodoc doc/README.md doc/release-notes.md
+#      newman contrib/debian/manpages/bitcoind.1 dogecoind.1
+#      newman contrib/debian/manpages/bitcoin.conf.5 dogecoin.conf.5
+
+       if use bash-completion; then
+               :;
+#              newbashcomp contrib/bitcoind.bash-completion ${PN}.bash-completion
+       fi
+
+       if use examples; then
+               docinto examples
+#              dodoc -r contrib/{bitrpc,pyminer,spendfrom,tidy_datadir.sh,wallettools}
+       fi
+
+       if use logrotate; then
+               insinto /etc/logrotate.d
+               newins "${FILESDIR}/dogecoind.logrotate" dogecoind
+       fi
+}