diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-p2p/pybitmessage |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-p2p/pybitmessage')
-rw-r--r-- | net-p2p/pybitmessage/Manifest | 8 | ||||
-rw-r--r-- | net-p2p/pybitmessage/files/noninteractive-build.patch | 18 | ||||
-rw-r--r-- | net-p2p/pybitmessage/metadata.xml | 29 | ||||
-rw-r--r-- | net-p2p/pybitmessage/pybitmessage-0.4.2.ebuild | 73 | ||||
-rw-r--r-- | net-p2p/pybitmessage/pybitmessage-0.6.2-r2.ebuild | 79 |
5 files changed, 207 insertions, 0 deletions
diff --git a/net-p2p/pybitmessage/Manifest b/net-p2p/pybitmessage/Manifest new file mode 100644 index 000000000000..a852837a7bfc --- /dev/null +++ b/net-p2p/pybitmessage/Manifest @@ -0,0 +1,8 @@ +AUX noninteractive-build.patch 513 SHA256 34100033ac55d699d9fdda0db02610504b574bd6fd6dcbf96419c3b48c69860b SHA512 c4542db2557bfff82d7494b2e0540f485cc1a20c649eae0435f7d9fcdaf6b094c27cf91a2ce7fe1fc275a2774a846a5341b0cd7b96e5d1fe5946a7d2a0cca51d WHIRLPOOL f68b49e843759f38b87761a67511cead648b3f8c02416a0ca24607931b11ff76751c39b3071c284c59517d7cfd4d3f7d82929468a559fd767cc14eb7c2350df3 +DIST pybitmessage-0.4.2.tar.gz 547565 SHA256 c69cef72adbdfa2a0ff8c5c7e5d15e640bf3283b9089c388ea48e893d564a573 SHA512 5e783243db4f507ec221092f6da18d25bb15a8c83f28aab7c1796a063d2608c0115c9d636cc73b66a09264a4ff69dda9ba373eff81640b1dd9595100dcdc4917 WHIRLPOOL 22c1ca5e5132248dc8492bd1ea327e81b8567b0ec271c774a07141579a63365dd4cc7fbd066dbba6153ce471057cead1f0763b4ae209789991b7c3b2cb5ebaa4 +DIST pybitmessage-0.6.2.tar.gz 1053815 SHA256 bc209725ef7c1b913ec8560557e3e862a11f664bd8c5fd2eea5adcd915acc2c6 SHA512 4aaa0f6b1cc04de01154bb5c90416901e51abb4465c62269ab07abb7da980ac07f2f548ae7a3780da9f3efe89d3b841b004996c5e33bc2638e58efcbecc8baef WHIRLPOOL 490be7f22a4d5494313c79fb5af396b08344e18bfecbe9c33243b70b9546f177a59a88b403306356fa328c3a559865a355edaf6a998a1dfc9f0caa6f85544d8e +EBUILD pybitmessage-0.4.2.ebuild 1491 SHA256 544b776314b5f63d93fc693012bcb0cc02c21736dcbd3414c922986352a4371f SHA512 158c5280052bcc4d359f96232e712c85167b088253b08c623c1453e8e8d261edcea09c4c8ae0f9fc72ffeaee63ec8084c6391b1989e6f293adf1bfe98f5fc1cf WHIRLPOOL 74282f31924d54043fc87ef4b719e869b225ce890933e2711375cbe0acbfbc01470c832b1fdc85dbbfebd23471104b2dbd250467e8d0bb234d3971e66abfef69 +EBUILD pybitmessage-0.6.2-r2.ebuild 1924 SHA256 adf519c786823a3aba1249f5bb258186f6f6cdddcf9ff91a737094a0b8319bc1 SHA512 03938e00b3ccff7fb61f602416584f024a862717ee99e4f7f13083da58771451f418b7169653669163d8a7c5348718c40564970a1fc8ab3c3d78322611117154 WHIRLPOOL deb19ad915a7a2a2f9872d62e2a7ee1e88cdbd2bda5ed57da8d656bb7557e0c336bf94b320ef7a066b1648d215eb787f4d58756ae4a8cbe778c001eb9e6b2eb0 +MISC ChangeLog 3550 SHA256 522682648b97be567e702c07c6b2270a056fac5e8037e56b0210dcec98b0d0a1 SHA512 ea5926b2b51df61d92ed3b1bb0224705fb93dd696372b5610b45c2a323f595cb61c451f27be1e6f5a739baf0997b3dc1927d42d1cd8db1001588f3a06572e4b6 WHIRLPOOL 0c6af4bf96dc441315f10aeb979b7f5d8fd8283c278d7c5aae7623f4e7337caf34e9b1dfa4b702e540d622de359f052e682c68f19ae8fb0331192f5d768bd7ed +MISC ChangeLog-2015 1706 SHA256 2617648ebc1886eb96c1cc0f40236d329354386a9a7e3988913fb4fc18d0fdc7 SHA512 abc1ca021e72b5a78d9701a6bc29ca966c57b1f5498099800620fda94b389513e9d8207b7fa30157345c6ebab3ead2f4771e3058d3404263d3a51d511392ea75 WHIRLPOOL e6d2c39290b8812349e4c0a05adec3302ff99e2a25f2d674a7d870e0ca42e63c13c66bc452f0df544baa5deb9507f8777c401f4d249cfd270f9c77f9ccade669 +MISC metadata.xml 1125 SHA256 508a22c81815d9dc4c88c3f6ca130925ec22ecb034883df8539272193b243c93 SHA512 04950f304ca8c087baa7dc370ff08da07bae555481798848d2ddddda33de318be83fc6a648428ff72419af857dd9bd1bdf0b43866b40e149f33dd834e9c7d9cb WHIRLPOOL bf6d0cb69f42317dacc4cd8b71b42aa5ec0ac07006f71a68cd5f99a0b9faa658cab026999a3d1ed098673cc4215af0ce9e3c2e1791c89ef733d2ef85619f1a45 diff --git a/net-p2p/pybitmessage/files/noninteractive-build.patch b/net-p2p/pybitmessage/files/noninteractive-build.patch new file mode 100644 index 000000000000..889711a7dce2 --- /dev/null +++ b/net-p2p/pybitmessage/files/noninteractive-build.patch @@ -0,0 +1,18 @@ +Temporary workaround for a build system that wants you to press +"Return" interactively. + +https://github.com/Bitmessage/PyBitmessage/issues/993 + +diff --git a/setup.py b/setup.py +index 2c769a6..166ab14 100644 +--- a/setup.py ++++ b/setup.py +@@ -163,7 +163,7 @@ if __name__ == "__main__": + print "Press Return to continue" + try: + nothing = raw_input() +- except NameError: ++ except EOFError,NameError: + pass + + here = os.path.abspath(os.path.dirname(__file__)) diff --git a/net-p2p/pybitmessage/metadata.xml b/net-p2p/pybitmessage/metadata.xml new file mode 100644 index 000000000000..72a9c8187385 --- /dev/null +++ b/net-p2p/pybitmessage/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Bitmessage is a P2P communications protocol used to send encrypted + messages to another person or to many subscribers. It is + decentralized and trustless, meaning that you need-not inherently + trust any entities like root certificate authorities. It uses + strong authentication which means that the sender of a message + cannot be spoofed, and it aims to hide "non-content" data, like + the sender and receiver of messages, from passive eavesdroppers + like those running warrantless wiretapping programs. + </longdescription> + <upstream> + <bugs-to> + https://github.com/Bitmessage/PyBitmessage/issues + </bugs-to> + <doc lang="en"> + https://bitmessage.org/wiki/PyBitmessage_Help + </doc> + <remote-id type="github">Bitmessage/PyBitmessage</remote-id> + </upstream> + <use> + <flag name="opencl"> + Uses <pkg>dev-python/pyopencl</pkg> for GPU acceleration. + </flag> + </use> +</pkgmetadata> diff --git a/net-p2p/pybitmessage/pybitmessage-0.4.2.ebuild b/net-p2p/pybitmessage/pybitmessage-0.4.2.ebuild new file mode 100644 index 000000000000..b9c9b12407d1 --- /dev/null +++ b/net-p2p/pybitmessage/pybitmessage-0.4.2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit eutils python-r1 gnome2-utils + +DESCRIPTION="P2P communications protocol" +HOMEPAGE="https://bitmessage.org" +SRC_URI="https://github.com/Bitmessage/PyBitmessage/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-libs/openssl[-bindist] + dev-python/PyQt4[${PYTHON_USEDEP}]" + +S=${WORKDIR}/PyBitmessage-${PV} + +src_compile() { :; } + +src_install () { + cat >> "${T}"/${PN}-wrapper <<-EOF + #!/usr/bin/env python + import os + import sys + sys.path.append("@SITEDIR@") + os.chdir("@SITEDIR@") + os.execl('@PYTHON@', '@EPYTHON@', '@SITEDIR@/bitmessagemain.py') + EOF + + touch src/__init__.py || die + + install_python() { + python_moduleinto ${PN} + python_domodule src/* + sed \ + -e "s#@SITEDIR@#$(python_get_sitedir)/${PN}#" \ + -e "s#@EPYTHON@#${EPYTHON}#" \ + -e "s#@PYTHON@#${PYTHON}#" \ + "${T}"/${PN}-wrapper > ${PN} || die + python_doscript ${PN} + } + + python_foreach_impl install_python + + dodoc README.md debian/changelog + doman man/* + + newicon -s 24 desktop/icon24.png ${PN}.png + newicon -s scalable desktop/can-icon.svg ${PN}.svg + domenu desktop/${PN}.desktop +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/net-p2p/pybitmessage/pybitmessage-0.6.2-r2.ebuild b/net-p2p/pybitmessage/pybitmessage-0.6.2-r2.ebuild new file mode 100644 index 000000000000..df49b8e4e32a --- /dev/null +++ b/net-p2p/pybitmessage/pybitmessage-0.6.2-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +# See https://github.com/Bitmessage/PyBitmessage/pull/952 for +# why ipv6 is needed at the moment. +PYTHON_REQ_USE="ipv6,sqlite" + +inherit distutils-r1 gnome2-utils + +MY_PN="PyBitmessage" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="P2P communications protocol" +HOMEPAGE="https://bitmessage.org/" +SRC_URI="https://github.com/Bitmessage/${MY_PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libressl ncurses opencl qt4 sound" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" + +# Some of these can be determined from src/depends.py. +# The sound deps were found in src/bitmessageqt/__init__.py. +# And src/openclpow.py imports numpy directly, so throw that in too. +# +# All of the dependencies that are behind USE flags are detected +# and enabled automagically, so maybe it would be better if we +# required them unconditionally? +RDEPEND="${DEPEND} + dev-python/msgpack[${PYTHON_USEDEP}] + !libressl? ( dev-libs/openssl:0[-bindist] ) + libressl? ( dev-libs/libressl ) + ncurses? ( dev-python/pythondialog[${PYTHON_USEDEP}] ) + opencl? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pyopencl[${PYTHON_USEDEP}] + ) + qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] ) + sound? ( || ( + media-sound/gst123 + media-sound/alsa-utils + media-sound/mpg123 + ) )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/noninteractive-build.patch") + +src_install () { + distutils-r1_src_install + dodoc README.md + + # The man page is not installed because it's basically empty. + + if use qt4 ; then + newicon -s 24 desktop/icon24.png "${PN}.png" + newicon -s scalable desktop/can-icon.svg "${PN}.svg" + domenu "desktop/${PN}.desktop" + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |