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