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