Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/namecoin-qt: namecoin-qt-0.3.80.ebuild ChangeLog
Date: Fri, 02 Jan 2015 14:40:57
Message-Id: 20150102144054.444ADEB84@oystercatcher.gentoo.org
1 blueness 15/01/02 14:40:54
2
3 Modified: ChangeLog
4 Added: namecoin-qt-0.3.80.ebuild
5 Log:
6 Version bump, bug #534204
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.2 net-dns/namecoin-qt/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoin-qt/ChangeLog?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoin-qt/ChangeLog?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoin-qt/ChangeLog?r1=1.1&r2=1.2
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/namecoin-qt/ChangeLog,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- ChangeLog 1 Dec 2013 15:24:30 -0000 1.1
24 +++ ChangeLog 2 Jan 2015 14:40:54 -0000 1.2
25 @@ -1,10 +1,15 @@
26 # ChangeLog for net-dns/namecoin-qt
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-dns/namecoin-qt/ChangeLog,v 1.1 2013/12/01 15:24:30 blueness Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-dns/namecoin-qt/ChangeLog,v 1.2 2015/01/02 14:40:54 blueness Exp $
31 +
32 +*namecoin-qt-0.3.80 (02 Jan 2015)
33 +
34 + 02 Jan 2015; Anthony G. Basile <blueness@g.o>
35 + +namecoin-qt-0.3.80.ebuild:
36 + Version bump, bug #534204
37
38 *namecoin-qt-0.3.72 (01 Dec 2013)
39
40 01 Dec 2013; Anthony G. Basile <blueness@g.o>
41 +namecoin-qt-0.3.72.ebuild, +metadata.xml:
42 Initial commit
43 -
44
45
46
47 1.1 net-dns/namecoin-qt/namecoin-qt-0.3.80.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoin-qt/namecoin-qt-0.3.80.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/namecoin-qt/namecoin-qt-0.3.80.ebuild?rev=1.1&content-type=text/plain
51
52 Index: namecoin-qt-0.3.80.ebuild
53 ===================================================================
54 # Copyright 1999-2015 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/net-dns/namecoin-qt/namecoin-qt-0.3.80.ebuild,v 1.1 2015/01/02 14:40:54 blueness Exp $
57
58 EAPI=5
59
60 DB_VER="4.8"
61
62 LANGS="af_ZA ar bg ca_ES cs da de el_GR en es_CL es et eu_ES fa_IR fa fi fr_CA fr gu_IN he hi_IN hr hu it ja lt nb nl pl pt_BR pt_PT ro_RO ru sk sr sv th_TH tr uk zh_CN zh_TW"
63
64 inherit db-use eutils fdo-mime gnome2-utils kde4-functions qt4-r2 git-r3
65
66 DESCRIPTION="A P2P network based domain name system"
67 HOMEPAGE="https://dot-bit.org/"
68 #SRC_URI="https://github.com/namecoinq/namecoinq/archive/v${PV/0/Q}.tar.gz -> ${P}.tar.gz"
69 # Try to use github
70 SRC_URI=""
71 EGIT_REPO_URI="https://github.com/namecoin/namecoin.git"
72 EGIT_BRANCH="namecoinq-release"
73 EGIT_COMMIT="nc${PV}"
74
75 LICENSE="MIT ISC cryptopp GPL-3 LGPL-2.1 public-domain || ( CC-BY-SA-3.0 LGPL-2.1 )"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86"
78 #upnp is broken
79 #IUSE="dbus ipv6 upnp"
80 IUSE="dbus ipv6"
81
82 RDEPEND="
83 dev-libs/boost[threads(+)]
84 dev-libs/crypto++
85 dev-libs/openssl:0[-bindist]
86 sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
87 dev-qt/qtgui:4
88 dbus? (
89 dev-qt/qtdbus:4
90 )
91 "
92 # Add this when upnp is fixed
93 # upnp? ( net-libs/miniupnpc)
94
95 DEPEND="${RDEPEND}
96 >=app-shells/bash-4.1
97 "
98
99 S="${WORKDIR}/${PN}-${PV}"
100
101 src_prepare() {
102 cd src || die
103
104 local filt= yeslang= nolang=
105
106 for lan in $LANGS; do
107 if [ ! -e qt/locale/bitcoin_$lan.ts ]; then
108 ewarn "Language '$lan' no longer supported. Ebuild needs update."
109 fi
110 done
111
112 for ts in $(ls qt/locale/*.ts)
113 do
114 x="${ts/*bitcoin_/}"
115 x="${x/.ts/}"
116 if ! use "linguas_$x"; then
117 nolang="$nolang $x"
118 rm "$ts"
119 filt="$filt\\|$x"
120 else
121 yeslang="$yeslang $x"
122 fi
123 done
124
125 filt="bitcoin_\\(${filt:2}\\)\\.\(qm\|ts\)"
126 sed "/${filt}/d" -i 'qt/bitcoin.qrc'
127 einfo "Languages -- Enabled:$yeslang -- Disabled:$nolang"
128 }
129
130 src_configure() {
131 OPTS=()
132
133 use dbus && OPTS+=("USE_DBUS=1")
134
135 #Upnp is broken
136 # if use upnp; then
137 # OPTS+=("USE_UPNP=1")
138 # else
139 # OPTS+=("USE_UPNP=-")
140 # fi
141
142 OPTS+=("USE_UPNP=-")
143
144 use ipv6 || OPTS+=("USE_IPV6=-")
145
146 OPTS+=("USE_SYSTEM_LEVELDB=1")
147 OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")")
148 OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}")
149
150 if has_version '>=dev-libs/boost-1.52'; then
151 OPTS+=("LIBS+=-lboost_chrono\$\$BOOST_LIB_SUFFIX")
152 fi
153
154 eqmake4 namecoin-qt.pro "${OPTS[@]}"
155 }
156
157 #Tests are broken
158 #src_test() {
159 # cd src || die
160 # emake -f makefile.unix "${OPTS[@]}" test_namecoin
161 # ./test_namecoin || 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 "src/qt/res/icons/bitcoin.ico" "${PN}.ico"
171
172 make_desktop_entry "${PN} %u" "Namecoin-Qt" "/usr/share/pixmaps/${PN}.ico" "Qt;Network;P2P;DNS;" "MimeType=x-scheme-handler/namecoin;\nTerminal=false"
173 }
174
175 update_caches() {
176 gnome2_icon_cache_update
177 fdo-mime_desktop_database_update
178 buildsycoca
179 }
180
181 pkg_postinst() {
182 update_caches
183 }
184
185 pkg_postrm() {
186 update_caches
187 }