summaryrefslogtreecommitdiff
path: root/net-misc/electrum-ltc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-13 07:41:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-13 07:41:53 +0100
commit4b91667ebe695e6fdfbef3962d099f17484b8806 (patch)
tree0af842488d683612bd9eae3f406ec839bcbc0cf9 /net-misc/electrum-ltc
parentb89a664f266dab3b9b5ddac2cb874f8869142370 (diff)
gentoo auto-resync : 13:10:2022 - 07:41:53
Diffstat (limited to 'net-misc/electrum-ltc')
-rw-r--r--net-misc/electrum-ltc/Manifest6
-rw-r--r--net-misc/electrum-ltc/electrum-ltc-4.0.9.1.ebuild143
-rw-r--r--net-misc/electrum-ltc/electrum-ltc-4.2.2.1.ebuild91
-rw-r--r--net-misc/electrum-ltc/metadata.xml6
4 files changed, 94 insertions, 152 deletions
diff --git a/net-misc/electrum-ltc/Manifest b/net-misc/electrum-ltc/Manifest
index 2fff7f1d4fbb..b6ccca1d1c88 100644
--- a/net-misc/electrum-ltc/Manifest
+++ b/net-misc/electrum-ltc/Manifest
@@ -1,6 +1,6 @@
AUX 3.1.2-no-user-root.patch 847 BLAKE2B 7c682268f4f76884b364fad9dfef63931ffb694c529b3fb17d6c579bf908872b4bfcca6edbe1aa30b93475aa4891283c196cd803579654988d1a1a73d42f1afa SHA512 e4d94693f4a01577b9c4e1e1ce8ef71e9d2ae74edb4c1cad11c6c5615ed50df3ed5f785ff69ff869f534cb4887e21c1cc263fa94972bebc31b5421e0b7be4173
AUX 3.2.3-pip-optional-pkgs.patch 348 BLAKE2B e49855ff70c50b73c67190ef085454cc23ec7d3e0a8dd419b5837ebb85b56b280518c4b8f260288bed7286578ceb9b4683b30db617c99d965bba653c6fa0ed54 SHA512 24dad9328e867e1d65150a35391aef0df8af1f4859516b24b5c725ff57c2c6e7d1e8ca6e78efbca60a53a1bd2b98744ed8c2cec0e4396b9e2664ea125675e6dd
AUX 3.3.2-desktop.patch 530 BLAKE2B fbf901cfc9133ed45afc1a7859c02926fbb8ad52db9429c10b29a4a5dd75d9e4b1387077ea21f075d6cf176e7b167127a9f344b24b126bde5d9445257ffe5780 SHA512 981f57845811ff3d528fe4ab69d75f547dc0189ebb842260d448407645e19fb16be6ceeb6d4a76e3d491fc98a8773588fbddf9b96b270365da48ed2eb82f8e36
-DIST electrum-ltc-4.0.9.1.tar.gz 4464915 BLAKE2B 2c328f9fc433f39b11aa2bfc4e397b75aadd07adc66576ae985c5b41b32d663df80bb67dafbbce210f3581f6fb43e666070d090bf189eb4907efd07d306fc945 SHA512 926ad16246d0609a787614b84cadfa893ed792ab2a54a3c0b9d707019e29874b1ae1c42dba098f34b61f915d85578809ff87dc9026c85563264a2d2b583c8823
-EBUILD electrum-ltc-4.0.9.1.ebuild 3658 BLAKE2B 6d7b478fb2140ff54e7c1243c3d28520989fede213309f7992baa579feed5205f4194c3ec9b121c1714cbcb5e291f8c21269afdd62adf4b421ee2c7d735c4717 SHA512 5bdcd1327933ccad1325f054f1781c5948cab870b8f6f7ca5587347ced1156c46f9e0eb0b2767cd3c45365d9abae98a7ae457ed185eca5f8dc3c22a54fa284f0
-MISC metadata.xml 894 BLAKE2B e281f5655d1c92356cfdd0a685192e471e265929e4ff22a0adc4d4f8578a1600ae1877a574f150afeae9c36714a015c199aa43d57eb5848f575726debdba5318 SHA512 3ed81f974efd82226d35eae7acf99a66bd397c4a64b7435f416b8e2bda3f50e94b784fc3d794d150d107dceb5fa23b484c288658453b6ebeeda8ed9a7e33de77
+DIST electrum-ltc-4.2.2.1.tar.gz 5109859 BLAKE2B b3327f6bcf23b5caca6196e380e62f154a9f56a5b636a8d0cc49e08ed0ab5a05b4b1a81d9869b92125526339924ccb9b555a704eb7fa98bce59eac6088c7ebfe SHA512 1ac44a29cd0db7de9570e339892ff42bd72abbe3eeb9f8106eda7be67dbb492cc830881d52f915ffde776892d461f9cff1b88a9ee20bf3c64139c407118e4eb9
+EBUILD electrum-ltc-4.2.2.1.ebuild 2141 BLAKE2B 0d571921cb2ce2f21356f96f2aeba0064707cc5d0aabc4403a1596e3730c172e029ca668762d51b0b79435445047cc986e0edc84be26b4b53d125c107f733499 SHA512 189afa494510b182f2b42c31b6c9d66c2afaca3646420baa81ad0bdefb084dd56ba3055e0ef9d564dcff00ee7cefe576d65b8f07a3f807c94f24926389992f29
+MISC metadata.xml 396 BLAKE2B ae73f628edff16f2ece36d07099999e60c3be01aead2ea4bd87d5c4818797163c4a504d37dc2d308df911660d90574fc2618fde12307e5b1fd1dad3afa032b73 SHA512 76c2dbd807089a10313270fb3067880bac654dfc44e376234e3724018bd96c7879ad89d1f6c92ed1aacd8695f9d388eaa9adea4ed8acff69bb5e953e0f4ae508
diff --git a/net-misc/electrum-ltc/electrum-ltc-4.0.9.1.ebuild b/net-misc/electrum-ltc/electrum-ltc-4.0.9.1.ebuild
deleted file mode 100644
index 89fa018a6112..000000000000
--- a/net-misc/electrum-ltc/electrum-ltc-4.0.9.1.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-PYTHON_COMPAT=( python3_8 )
-PYTHON_REQ_USE="ncurses?"
-
-inherit desktop distutils-r1 xdg
-
-EGIT_COMMIT="${PV}"
-DESCRIPTION="Litecoin thin client"
-HOMEPAGE="https://electrum-ltc.org/"
-SRC_URI="https://github.com/pooler/electrum-ltc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE="audio_modem cli cosign digitalbitbox email ncurses qrcode +qt5 sync vkb
- l10n_es l10n_ja l10n_pt-BR l10n_pt-PT l10n_zh-CN"
-
-REQUIRED_USE="
- || ( cli ncurses qt5 )
- audio_modem? ( qt5 )
- cosign? ( qt5 )
- digitalbitbox? ( qt5 )
- email? ( qt5 )
- qrcode? ( qt5 )
- sync? ( qt5 )
- vkb? ( qt5 )
-"
-
-RDEPEND="${PYTHON_DEPS}
- dev-python/aiohttp-socks[${PYTHON_USEDEP}]
- =dev-python/aiorpcX-0.19*[${PYTHON_USEDEP}]
- dev-python/dnspython[${PYTHON_USEDEP}]
- dev-python/ecdsa[${PYTHON_USEDEP}]
- dev-python/jsonrpclib[${PYTHON_USEDEP}]
- dev-python/pbkdf2[${PYTHON_USEDEP}]
- dev-python/pyaes[${PYTHON_USEDEP}]
- dev-python/PySocks[${PYTHON_USEDEP}]
- dev-python/qrcode[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/six[${PYTHON_USEDEP}]
- dev-python/protobuf-python[${PYTHON_USEDEP}]
- qrcode? ( media-gfx/zbar[v4l] )
- qt5? (
- dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
- )
- ncurses? ( dev-lang/python )
-"
-
-S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
-
-DOCS="RELEASE-NOTES"
-
-src_prepare() {
- eapply "${FILESDIR}/3.1.2-no-user-root.patch"
- eapply "${FILESDIR}/3.2.3-pip-optional-pkgs.patch"
- eapply "${FILESDIR}/3.3.2-desktop.patch"
-
- # unbind aiorpcX dep
- sed -e '/aiorpcx/s:,<0.19::' \
- -i contrib/requirements/requirements.txt || die
-
- # Prevent icon from being installed in the wrong location
- sed -i '/icons_dirname/d' setup.py || die
-
- if ! use qt5; then
- sed "/'electrum_ltc.gui.qt',/d" -i setup.py || die
- fi
-
- local wordlist=
- for wordlist in \
- $(usex l10n_ja '' japanese) \
- $(usex l10n_pt-BR '' $(usex l10n_pt-PT '' portuguese)) \
- $(usex l10n_es '' spanish) \
- $(usex l10n_zh-CN '' chinese_simplified) \
- ; do
- rm -f "${PN}/wordlist/${wordlist}.txt" || die
- sed -i "/${wordlist}\\.txt/d" ${PN/-/_}/mnemonic.py || die
- done
-
- # Remove unrequested GUI implementations:
- local gui setup_py_gui
- for gui in \
- $(usex cli '' stdio) \
- kivy \
- $(usex qt5 '' qt ) \
- $(usex ncurses '' text ) \
- ; do
- rm ${PN/-/_}/gui/"${gui}"* -r || die
- done
-
- # And install requested ones...
- for gui in \
- $(usex qt5 qt '') \
- ; do
- setup_py_gui="${setup_py_gui}'electrum_gui.${gui}',"
- done
-
- sed -i "s/'electrum_gui\\.qt',/${setup_py_gui}/" setup.py || die
-
- local bestgui
- if use qt5; then
- bestgui=qt
- elif use ncurses; then
- bestgui=text
- else
- bestgui=stdio
- fi
- sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' ${PN/-/_}/${PN} || die
-
- local plugin
- # trezor requires python trezorlib module
- # keepkey requires trezor
- for plugin in \
- $(usex audio_modem '' audio_modem ) \
- $(usex cosign '' cosigner_pool ) \
- $(usex digitalbitbox '' digitalbitbox ) \
- $(usex email '' email_requests ) \
- ledger \
- keepkey \
- $(usex sync '' labels ) \
- trezor \
- $(usex vkb '' virtualkeyboard ) \
- ; do
- rm -r ${PN/-/_}/plugins/"${plugin}"* || die
- sed -i "/${plugin}/d" setup.py || die
- done
-
- eapply_user
-
- xdg_environment_reset
- distutils-r1_src_prepare
-}
-
-src_install() {
- doicon -s 128 ${PN/-/_}/gui/icons/${PN}.png
- distutils-r1_src_install
-}
diff --git a/net-misc/electrum-ltc/electrum-ltc-4.2.2.1.ebuild b/net-misc/electrum-ltc/electrum-ltc-4.2.2.1.ebuild
new file mode 100644
index 000000000000..a6a1b078e2ee
--- /dev/null
+++ b/net-misc/electrum-ltc/electrum-ltc-4.2.2.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_REQ_USE="ncurses?"
+
+inherit distutils-r1 xdg-utils desktop
+
+DESCRIPTION="User friendly Litecoin client"
+HOMEPAGE="https://electrum-ltc.org/"
+SRC_URI="https://github.com/pooler/electrum-ltc/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cli ncurses qrcode +qt5"
+REQUIRED_USE="|| ( cli ncurses qt5 )"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/libsecp256k1
+ dev-python/scrypt[${PYTHON_USEDEP}]
+ >=dev-python/aiohttp-socks-0.3[${PYTHON_USEDEP}]
+ =dev-python/aiorpcX-0.22*[${PYTHON_USEDEP}]
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
+ dev-python/bitstring[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ >=dev-python/dnspython-2[${PYTHON_USEDEP}]
+ dev-python/pbkdf2[${PYTHON_USEDEP}]
+ dev-python/PySocks[${PYTHON_USEDEP}]
+ dev-python/qrcode[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ >=dev-python/protobuf-python-3.12[${PYTHON_USEDEP}]
+ qrcode? ( media-gfx/zbar[v4l] )
+ qt5? (
+ dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
+ )
+ ncurses? ( $(python_gen_impl_dep 'ncurses') )
+"
+BDEPEND="
+ test? (
+ dev-python/pyaes[${PYTHON_USEDEP}]
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # use backwards-compatible cryptodome API
+ sed -i -e 's:Cryptodome:Crypto:' electrum_ltc/crypto.py || die
+
+ # make qdarkstyle dep optional
+ sed -i -e '/qdarkstyle/d' contrib/requirements/requirements.txt || die
+
+ local bestgui
+ if use qt5; then
+ bestgui=qt
+ elif use ncurses; then
+ bestgui=text
+ else
+ bestgui=stdio
+ fi
+
+ eapply_user
+
+ xdg_environment_reset
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ dodoc RELEASE-NOTES
+ distutils-r1_src_install
+ domenu electrum-ltc.desktop
+ doicon electrum_ltc/gui/icons/electrum-ltc.png
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}
diff --git a/net-misc/electrum-ltc/metadata.xml b/net-misc/electrum-ltc/metadata.xml
index b26064ef2ca1..34dfbc02bb8e 100644
--- a/net-misc/electrum-ltc/metadata.xml
+++ b/net-misc/electrum-ltc/metadata.xml
@@ -7,12 +7,6 @@
</maintainer>
<use>
<flag name="cli">Enables the CLI interface</flag>
- <flag name="audio_modem">Enable plugin to support Audio Modem</flag>
- <flag name="cosign">Enable plugin to support multisig wallets between multiple Electrum clients</flag>
- <flag name="digitalbitbox">Enable plugin to support Digital Bitbox hardware wallet</flag>
- <flag name="email">Enable plugin to support emailing invoices</flag>
<flag name="qrcode">Enable QR code scanning with <pkg>media-gfx/zbar</pkg></flag>
- <flag name="sync">Enable plugin to sync wallet metadata across multiple Electrum clients</flag>
- <flag name="vkb">Enable plugin for virtual keyboard</flag>
</use>
</pkgmetadata>