diff options
Diffstat (limited to 'net-misc/electrum-ltc')
-rw-r--r-- | net-misc/electrum-ltc/Manifest | 8 | ||||
-rw-r--r-- | net-misc/electrum-ltc/electrum-ltc-3.3.4.1.ebuild (renamed from net-misc/electrum-ltc/electrum-ltc-3.0.6.2.ebuild) | 47 | ||||
-rw-r--r-- | net-misc/electrum-ltc/files/3.1.2-no-user-root.patch (renamed from net-misc/electrum-ltc/files/2.8.0-no-user-root.patch) | 12 | ||||
-rw-r--r-- | net-misc/electrum-ltc/files/3.2.3-pip-optional-pkgs.patch | 11 | ||||
-rw-r--r-- | net-misc/electrum-ltc/files/3.3.2-desktop.patch | 20 |
5 files changed, 68 insertions, 30 deletions
diff --git a/net-misc/electrum-ltc/Manifest b/net-misc/electrum-ltc/Manifest index 9b01b63b35b4..099205d9d54c 100644 --- a/net-misc/electrum-ltc/Manifest +++ b/net-misc/electrum-ltc/Manifest @@ -1,4 +1,6 @@ -AUX 2.8.0-no-user-root.patch 708 BLAKE2B fe16be6af4322f52a5014acf034ad4f8e2711c46386de9ccbeedee819224d8523ecd79c862338de1910f84a5c39cddbffce9955c2c0185576d837f2d2ac08da6 SHA512 d5e75f6b4dad401b547d4533126b93690c17237c51987547639c407fe684f5fe83759ea77637b8b2e7b2b9c63ac85ff015ec2b35c459bbef74572ea08f89c8dd -DIST electrum-ltc-3.0.6.2.tar.gz 2387515 BLAKE2B 3093aad114dd96d0a0ecac48adfe45c9b7be37d831f67fd8a230617bb45131b5045e70433c0ed0fe87a3028356de3884e78c3eb2c1bda38e5804e97952dcd13f SHA512 c9de8f490eddbf269fb5a034fc4bf5712173a09df8fe4ea01dafe516cd1b684dce253278c4c4128e4284c89bd7f8fbd51e0633710abbb22720b53507ecbd102c -EBUILD electrum-ltc-3.0.6.2.ebuild 3591 BLAKE2B 9920de9c5005faf651c79f78b0492b8c2c1973e310c88e0e8232fead6bc4439b8012acd2d3c2653d6d3556302da65ed1f6c054f8b9be5003e2c1b1f4961c87a2 SHA512 eaf2e8b680bf7a067f594bbe790b409245c421db6e92e04893d9f8e709721b27f667961c6ea354a98ebc9aed4fc637b34178775743d8905ab664b52929589bf3 +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-3.3.4.1.tar.gz 3897254 BLAKE2B 113e4175adad0d404f9677913bd24cbda569f20183de75d341d60b954f0423ff13042e0b05f66f7953729368412fc181d2c8da7caee15899f6810cb77c4be241 SHA512 cab85edbe9189fffd2a4b8d57dd89dc55f68cf3f02cd4a7427c53de852ab2001b82b1484126699c8eee36d765a8ca58936eba82e3c153f654bf5629b9cd50745 +EBUILD electrum-ltc-3.3.4.1.ebuild 3810 BLAKE2B c94b29a5314d053d5a6f49a2f8637d434e8787a8c00798fd340cda50edc4fa62a2e939de64302c72e8ab290dfa586afe4af0cd65d4f769272124bf381276f096 SHA512 4263d9f4b3d2267296cfe69d68ed8490b577653bc5012ca3290196de5437bc26a727d742e7b2c07e479a28b26dd40a0d4b9a4cbe0f9c9586a037e3442128d8fe MISC metadata.xml 893 BLAKE2B 285448da111f6431d8fb440fcf040ee2e22a5fb1fdc8b4b93c75ea2165f6d53a7a7b746add11300c06bc43a3243e423ea57aaa4186dc0dbb91ff8d734216c6c5 SHA512 7881df99b246a3f323270790c2d3c789aa402810418662ef35590d03ea5d82f3877ab465b66e2fe52c4be268ea5965735f5de513ea8d41f260a63a40f3dd3dd9 diff --git a/net-misc/electrum-ltc/electrum-ltc-3.0.6.2.ebuild b/net-misc/electrum-ltc/electrum-ltc-3.3.4.1.ebuild index 02f697349d2d..1e6465700a4a 100644 --- a/net-misc/electrum-ltc/electrum-ltc-3.0.6.2.ebuild +++ b/net-misc/electrum-ltc/electrum-ltc-3.3.4.1.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" -PYTHON_COMPAT=( python3_{4,5,6} ) +PYTHON_COMPAT=( python3_6 ) PYTHON_REQ_USE="ncurses?" -inherit distutils-r1 gnome2-utils xdg-utils +inherit desktop distutils-r1 gnome2-utils xdg-utils EGIT_COMMIT="${PV}" DESCRIPTION="Litecoin thin client" @@ -16,8 +16,9 @@ SRC_URI="https://github.com/pooler/electrum-ltc/archive/${EGIT_COMMIT}.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 l10n_zh-CN" + l10n_es l10n_ja l10n_pt-BR l10n_pt-PT l10n_zh-CN" REQUIRED_USE=" || ( cli ncurses qt5 ) @@ -30,8 +31,9 @@ REQUIRED_USE=" vkb? ( qt5 ) " -RDEPEND=" - dev-python/scrypt[${PYTHON_USEDEP}] +RDEPEND="${PYTHON_DEPS} + dev-python/aiohttp-socks[${PYTHON_USEDEP}] + dev-python/aiorpcX[${PYTHON_USEDEP}] dev-python/ecdsa[${PYTHON_USEDEP}] dev-python/jsonrpclib[${PYTHON_USEDEP}] dev-python/pbkdf2[${PYTHON_USEDEP}] @@ -53,29 +55,29 @@ RDEPEND=" S="${WORKDIR}/${PN}-${EGIT_COMMIT}" -DOCS=( RELEASE-NOTES ) +DOCS="RELEASE-NOTES" src_prepare() { - eapply "${FILESDIR}/2.8.0-no-user-root.patch" + 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" # Prevent icon from being installed in the wrong location - sed -i '/icons/d' setup.py || die + sed -i '/icons_dirname/d' setup.py || die - if use qt5; then - pyrcc5 icons.qrc -o gui/qt/icons_rc.py || die - else - sed "s|'electrum_ltc_gui.qt',||" -i 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 '' portuguese) \ - $(usex l10n_es '' spanish) \ + $(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 "lib/wordlist/${wordlist}.txt" || die - sed -i "/${wordlist}\\.txt/d" lib/mnemonic.py || die + rm -f "${PN}/wordlist/${wordlist}.txt" || die + sed -i "/${wordlist}\\.txt/d" ${PN/-/_}/mnemonic.py || die done # Remove unrequested GUI implementations: @@ -86,7 +88,7 @@ src_prepare() { $(usex qt5 '' qt ) \ $(usex ncurses '' text ) \ ; do - rm gui/"${gui}"* -r || die + rm ${PN/-/_}/gui/"${gui}"* -r || die done # And install requested ones... @@ -106,7 +108,7 @@ src_prepare() { else bestgui=stdio fi - sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] = .*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/' electrum-ltc || die + 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 @@ -123,17 +125,18 @@ src_prepare() { trezor \ $(usex vkb '' virtualkeyboard ) \ ; do - rm -r plugins/"${plugin}"* || die + 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 icons/${PN}.png + doicon -s 128 ${PN/-/_}/gui/icons/${PN}.png distutils-r1_src_install } diff --git a/net-misc/electrum-ltc/files/2.8.0-no-user-root.patch b/net-misc/electrum-ltc/files/3.1.2-no-user-root.patch index 2ca5363effe7..0d4781717714 100644 --- a/net-misc/electrum-ltc/files/2.8.0-no-user-root.patch +++ b/net-misc/electrum-ltc/files/3.1.2-no-user-root.patch @@ -1,15 +1,17 @@ ---- ./setup.py.orig 2017-01-06 19:17:44.294137848 +0000 -+++ ./setup.py 2017-01-06 19:17:50.093161327 +0000 -@@ -21,12 +21,6 @@ - parser.add_argument('--root=', dest='root_path', metavar='dir', default='/') +diff -Naur Electrum-3.1.2.orig/setup.py Electrum-3.1.2/setup.py +--- Electrum-3.1.2.orig/setup.py 2018-03-28 04:51:11.000000000 -0400 ++++ Electrum-3.1.2/setup.py 2018-03-31 15:05:45.540757981 -0400 +@@ -28,13 +28,6 @@ opts, _ = parser.parse_known_args(sys.argv[1:]) usr_share = os.path.join(sys.prefix, "share") + icons_dirname = 'pixmaps' - if not os.access(opts.root_path + usr_share, os.W_OK) and \ - not os.access(opts.root_path, os.W_OK): +- icons_dirname = 'icons' - if 'XDG_DATA_HOME' in os.environ.keys(): - usr_share = os.environ['XDG_DATA_HOME'] - else: - usr_share = os.path.expanduser('~/.local/share') data_files += [ (os.path.join(usr_share, 'applications/'), ['electrum.desktop']), - ] + (os.path.join(usr_share, icons_dirname), ['icons/electrum.png']) diff --git a/net-misc/electrum-ltc/files/3.2.3-pip-optional-pkgs.patch b/net-misc/electrum-ltc/files/3.2.3-pip-optional-pkgs.patch new file mode 100644 index 000000000000..6d62f5675764 --- /dev/null +++ b/net-misc/electrum-ltc/files/3.2.3-pip-optional-pkgs.patch @@ -0,0 +1,11 @@ +diff -Naur a/setup.py b/setup.py +--- a/setup.py 2018-09-17 12:56:34.000000000 +0100 ++++ b/setup.py 2018-10-14 14:46:16.524385198 +0100 +@@ -72,7 +72,6 @@ + name="Electrum", + version=version.ELECTRUM_VERSION, + install_requires=requirements, +- extras_require=extras_require, + packages=[ + 'electrum', + 'electrum.gui', diff --git a/net-misc/electrum-ltc/files/3.3.2-desktop.patch b/net-misc/electrum-ltc/files/3.3.2-desktop.patch new file mode 100644 index 000000000000..c75f282182e7 --- /dev/null +++ b/net-misc/electrum-ltc/files/3.3.2-desktop.patch @@ -0,0 +1,20 @@ +--- a/electrum-ltc.desktop ++++ b/electrum-ltc.desktop +@@ -3,7 +3,7 @@ + + [Desktop Entry] + Comment=Lightweight Litecoin Client +-Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum-ltc %u" ++Exec=electrum-ltc %u + GenericName[en_US]=Litecoin Wallet + GenericName=Litecoin Wallet + Icon=electrum-ltc +@@ -15,8 +15,3 @@ + Terminal=false + Type=Application + MimeType=x-scheme-handler/litecoin; +-Actions=Testnet; +- +-[Desktop Action Testnet] +-Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum-ltc --testnet %u" +-Name=Testnet mode |