Gentoo Archives: gentoo-commits

From: "Samuel Damashek (sdamashek)" <sdamashek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/dogecoin-qt: metadata.xml ChangeLog dogecoin-qt-1.4.1.ebuild
Date: Thu, 30 Jan 2014 18:13:03
Message-Id: 20140130181257.091492004C@flycatcher.gentoo.org
1 sdamashek 14/01/30 18:12:56
2
3 Added: metadata.xml ChangeLog dogecoin-qt-1.4.1.ebuild
4 Log:
5 Initial commit
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 3C472B56)
8
9 Revision Changes Path
10 1.1 net-p2p/dogecoin-qt/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/dogecoin-qt/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/dogecoin-qt/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <maintainer>
21 <email>sdamashek@g.o</email>
22 <name>Samuel Damashek</name>
23 </maintainer>
24 <longdescription lang="en">
25 This is a client for the Dogecoin cryptocurrency.
26 Dogecoin is a scrypt-based alternative to Bitcoin.
27 </longdescription>
28 <use>
29 <flag name='qrcode'>Enable generation of QR Codes for receiving payments</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.1 net-p2p/dogecoin-qt/ChangeLog
36
37 <<Binary file>>
38
39
40 1.1 net-p2p/dogecoin-qt/dogecoin-qt-1.4.1.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/dogecoin-qt/dogecoin-qt-1.4.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/dogecoin-qt/dogecoin-qt-1.4.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: dogecoin-qt-1.4.1.ebuild
46 ===================================================================
47 # Copyright 1999-2014 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-p2p/dogecoin-qt/dogecoin-qt-1.4.1.ebuild,v 1.1 2014/01/30 18:12:56 sdamashek Exp $
50
51 EAPI=5
52
53 DB_VER="4.8"
54
55 LANGS="af_ZA ar bg bs ca ca_ES cs cy da de el_GR en eo es es_CL et eu_ES fa fa_IR fi fr fr_CA gu_IN he hi_IN hr hu it ja la lt lv_LV nb nl pl pt_BR pt_PT ro_RO ru sk sr sv th_TH tr uk zh_CN zh_TW"
56 inherit db-use eutils fdo-mime gnome2-utils kde4-functions qt4-r2
57
58 MyPV="${PV/_/-}"
59 MyPN="dogecoin"
60 MyP="${MyPN}-${MyPV}"
61
62 DESCRIPTION="P2P Internet currency favored by Shiba Inus worldwide."
63 HOMEPAGE="https://dogecoin.com/"
64 SRC_URI="https://github.com/${MyPN}/${MyPN}/archive/${MyPV}.tar.gz -> ${MyP}.tar.gz"
65
66 LICENSE="MIT ISC GPL-3 LGPL-2.1 public-domain || ( CC-BY-SA-3.0 LGPL-2.1 )"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="dbus ipv6 kde +qrcode upnp"
70
71 RDEPEND="
72 dev-libs/boost[threads(+)]
73 dev-libs/openssl:0[-bindist]
74 qrcode? (
75 media-gfx/qrencode
76 )
77 upnp? (
78 net-libs/miniupnpc
79 )
80 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
81 <=dev-libs/leveldb-1.12.0[-snappy]
82 dev-qt/qtgui:4
83 dbus? (
84 dev-qt/qtdbus:4
85 )
86 "
87 DEPEND="${RDEPEND}
88 >=app-shells/bash-4.1
89 "
90
91 DOCS="doc/README.md doc/release-notes.md"
92
93 S="${WORKDIR}/${MyP}"
94
95 src_prepare() {
96 # epatch "${FILESDIR}"/${MyPN}-sys_leveldb.patch
97 rm -r src/leveldb
98
99 sed 's/BDB_INCLUDE_PATH=.*//' -i 'dogecoin-qt.pro'
100
101 cd src || die
102
103 local filt= yeslang= nolang=
104
105 for lan in $LANGS; do
106 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
107 ewarn "Language '$lan' no longer supported. Ebuild needs update."
108 fi
109 done
110
111 for ts in $(ls qt/locale/*.ts)
112 do
113 x="${ts/*bitcoin_/}"
114 x="${x/.ts/}"
115 if ! use "linguas_$x"; then
116 nolang="$nolang $x"
117 rm "$ts"
118 filt="$filt\\|$x"
119 else
120 yeslang="$yeslang $x"
121 fi
122 done
123
124 filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
125 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
126 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
127 }
128
129 src_configure() {
130 OPTS=()
131
132 use dbus && OPTS+=("USE_DBUS=1")
133 if use upnp; then
134 OPTS+=("USE_UPNP=1")
135 else
136 OPTS+=("USE_UPNP=-")
137 fi
138
139 use qrcode && OPTS+=("USE_QRCODE=1")
140 use ipv6 || OPTS+=("USE_IPV6=-")
141
142 OPTS+=("USE_SYSTEM_LEVELDB=1")
143 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
144 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
145
146 if has_version '>=dev-libs/boost-1.52'; then
147 OPTS+=("LIBS+=-lboost_chrono\$\$BOOST_LIB_SUFFIX")
148 fi
149
150 #The litecoin codebase is mostly taken from bitcoin-qt
151 eqmake4 dogecoin-qt.pro "${OPTS[@]}"
152 }
153
154 #Tests are broken with and without our litecoin-sys_leveldb.patch
155 #src_test() {
156 # cd src || die
157 # emake -f makefile.unix "${OPTS[@]}" test_litecoin
158 # ./test_litecoin || die 'Tests failed'
159 #}
160
161 src_install() {
162 # qt4-r2_src_install
163
164 dobin ${PN}
165
166 insinto /usr/share/pixmaps
167 newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
168
169 make_desktop_entry "${PN} %u" "Dogecoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;Office;Finance;" "MimeType=x-scheme-handler/dogecoin;\nTerminal=false"
170
171 # newman contrib/debian/manpages/bitcoin-qt.1 ${PN}.1
172
173 # if use kde; then
174 # insinto /usr/share/kde4/services
175 # newins contrib/debian/bitcoin-qt.protocol ${PN}.protocol
176 # fi
177 }
178
179 update_caches() {
180 gnome2_icon_cache_update
181 fdo-mime_desktop_database_update
182 buildsycoca
183 }
184
185 pkg_postinst() {
186 update_caches
187 }
188
189 pkg_postrm() {
190 update_caches
191 }