summaryrefslogtreecommitdiff
path: root/mail-client/alot
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-client/alot
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-client/alot')
-rw-r--r--mail-client/alot/Manifest8
-rw-r--r--mail-client/alot/alot-0.3.7-r1.ebuild85
-rw-r--r--mail-client/alot/alot-0.5.1.ebuild87
-rw-r--r--mail-client/alot/files/0.5.1-0001-Don-t-install-test-suite.patch28
-rw-r--r--mail-client/alot/metadata.xml18
5 files changed, 226 insertions, 0 deletions
diff --git a/mail-client/alot/Manifest b/mail-client/alot/Manifest
new file mode 100644
index 000000000000..4802ba892d3d
--- /dev/null
+++ b/mail-client/alot/Manifest
@@ -0,0 +1,8 @@
+AUX 0.5.1-0001-Don-t-install-test-suite.patch 907 SHA256 a284cd0eb492b921647adf47698eea3e4e013685da60e69488747226232c7ac8 SHA512 1f3940927e4a7edb43e8b96a9c105deb75d47bd4dd643c80b422be028c53d4bc77a27c435a10ac07f6e062a27d704c5ffc6abc28b490a1b767efac4e50100ceb WHIRLPOOL 6d30e1f1a6cb73a64e19542493a66cc318344b058b85f42a6c78603b48a47dae1cde00ba0ce8e2d64c6643cb352c96be4bf7f82c3dcd00467a4c4112d0015530
+DIST alot-0.3.7.tar.gz 1475759 SHA256 fe281f6b5fbfcd371a1810c8f59084e8cbc3f69068269e3f787adb1df6f977b5 SHA512 a0b7e5a7b77f8cdee38c273eec2822bee2e7c409ab4b8803817a49d679dd53ff29750ba7f8a9214368cc7b0b17bd76a40b0263b4701b2ef695c7669316b1b116 WHIRLPOOL 3c37a037fc5543ff569f6a5364302462f71f5599c14d17661707cd4beb0e2a8597098dd4f4a42aec27793ace7095bba4eb80c35ed5fd8e470f6b7b9dbbecc46e
+DIST alot-0.5.1.tar.gz 1490645 SHA256 e8404db01bfe41030f7df9f559ac6c61edc473bfc1ae86bcb58c4018703352c7 SHA512 0194f163724fc5485aa89fe5354d16bdfdd3f539f6f3cfdb715e61835f3e632b8ac0daed44983a95c20eb0244c44c1d7801d262a5fd16ad63c3efd046e05b787 WHIRLPOOL 2539956ab4f286c0db27837f5897f3dd8868c07422aca2845df76da8d0c2aa3b5915ec8de0b35d78f8f296406adb6d31c4d47b00c2c74a7453630e936d4aee98
+EBUILD alot-0.3.7-r1.ebuild 1824 SHA256 69deec272f82098a9cff6575eaa3fda41cb0e4c4aabb1e85e44c13cb1b4302cc SHA512 b422278386cdfdc4ad1c4e853945ed680428b1cce9ca11ac251733aa86269515cf66320feedb1dcc8afb3b85145c45f9c2325e94b8968cb184df2ff4161961ae WHIRLPOOL 440ee5927938fcaf9732602be476c344ce0ddff8d599a6eb578fc55758e69c421a65d3b57a5779cbe2508752e15a0667274f236a27639aa934fe178c5930f143
+EBUILD alot-0.5.1.ebuild 1966 SHA256 301200d58ca548436ec7cd2157bb533d7f79c90e16f33b79d72ca4b9540475b6 SHA512 6ff16a9eed4fdf2c713bd249b969d3e8f70b4821d81224f1f2b910abceb2b899d6ac1a75c9dbfaefb6ff863a2500ef7b3ae3a64f16c04ece5433894f3b0039e5 WHIRLPOOL 668dbc27c7a02bb64fdca57b65f9d09c6ccfb6c0e19d0e580c75fdddfadbe096fb98f49ead64891910c185d6bfe9fce7d6be2310524bc957d275c6b3a53b79f6
+MISC ChangeLog 3130 SHA256 2172a168fa3873aa187d47a9c392e426a091da2819d9451cc343e93f94ea9550 SHA512 2a16e5a88a9090f545ef81d10512505bc8bfc05e552f211c2f8830efaf2be9934ae3efb441b7474443a21bc1b37933bdd1ddcf2c0955c80271407d6a9223e6c2 WHIRLPOOL 1fe5cf7576b02267ed2f90bd5decff4293e5ef07c64a26bb6b651f00a986c03089321d7bef0bfd06cc5bd3ab5663de8a35aaa99931fa405e41de4ad208aba2ed
+MISC ChangeLog-2015 8600 SHA256 03b198141f56c2e2db8d961cb9ed468b38b1e5c31a426d97134f43bd434cbf7e SHA512 0667ef8cebdd95d23df9a00d747a678e6ad8848cdab361628ccb9787c2f70167e7270cee46f0a4fde454d8494dfab551f68145722bb01bb5c2fe9adc6999f849 WHIRLPOOL 1399558fbcf79954e927e543712a7d8f0ac663113ccb69ce7a915115f48462ee15eab3c804490e5dacdff1170c31402bcee312304c97949243d716f11b1cfd30
+MISC metadata.xml 595 SHA256 b36f897b77e88e1c5a2bc01074657fdfba093a9aeb6e1091627e7913b7ad753a SHA512 a4017c9bec2be65464948cff90cfd9fd658337abd527dc86d59c08128d373626b34d583f038693c7ca5f39997f34bda26d890cdd129891a96cc88d3ee953aca7 WHIRLPOOL 89d2c3ca4fe7447894c8e41233af6de78dad4f81c39ee8bca5c9f10b6d6638d1bbbcc193ce2a1720fec33c3994badc77a2b908ac69a75f05da9d113247da3936
diff --git a/mail-client/alot/alot-0.3.7-r1.ebuild b/mail-client/alot/alot-0.3.7-r1.ebuild
new file mode 100644
index 000000000000..e5de9377b0a5
--- /dev/null
+++ b/mail-client/alot/alot-0.3.7-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Experimental terminal UI for net-mail/notmuch written in Python"
+HOMEPAGE="https://github.com/pazz/alot"
+SRC_URI="${HOMEPAGE}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ "
+RDEPEND="
+ >=dev-python/configobj-4.6.0[${PYTHON_USEDEP}]
+ dev-python/pygpgme[${PYTHON_USEDEP}]
+ dev-python/python-magic[${PYTHON_USEDEP}]
+ >=dev-python/twisted-core-10.2.0
+ >=dev-python/urwid-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/urwidtrees-1.0[${PYTHON_USEDEP}]
+ net-mail/mailbase
+ >=net-mail/notmuch-0.13[crypt,python]
+ "
+
+ALOT_UPDATE=""
+
+pkg_setup() {
+ if has_version "<${CATEGORY}/${PN}-0.3.2"; then
+ ALOT_UPDATE="yes"
+ fi
+}
+
+src_prepare() {
+ find "${S}" -name '*.py' -print0 | xargs -0 -- sed \
+ -e '1i# -*- coding: utf-8 -*-' -i || die
+
+ distutils-r1_src_prepare
+
+ local md
+ for md in *.md; do
+ mv "${md}" "${md%.md}"
+ done
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ pushd docs || die
+ emake html
+ popd || die
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ dodir /usr/share/alot
+ insinto /usr/share/alot
+ doins -r extra
+
+ if use doc; then
+ dohtml -r docs/build/html/*
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${ALOT_UPDATE} = yes ]]; then
+ ewarn "The syntax of theme-files and custom tags-sections of the config"
+ ewarn "has been changed. You have to revise your config. There are"
+ ewarn "converter scripts in /usr/share/alot/extra to help you out with"
+ ewarn "this:"
+ ewarn ""
+ ewarn " * tagsections_convert.py for your ~/.config/alot/config"
+ ewarn " * theme_convert.py to update your custom theme files"
+ fi
+}
diff --git a/mail-client/alot/alot-0.5.1.ebuild b/mail-client/alot/alot-0.5.1.ebuild
new file mode 100644
index 000000000000..868e96638b99
--- /dev/null
+++ b/mail-client/alot/alot-0.5.1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Experimental terminal UI for net-mail/notmuch written in Python"
+HOMEPAGE="https://github.com/pazz/alot"
+SRC_URI="${HOMEPAGE}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+DEPEND="
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/mock[${PYTHON_USEDEP}] )
+ "
+RDEPEND="
+ >=dev-python/configobj-4.7.0[${PYTHON_USEDEP}]
+ >=dev-python/pygpgme-0.2[${PYTHON_USEDEP}]
+ dev-python/python-magic[${PYTHON_USEDEP}]
+ >=dev-python/twisted-core-10.2.0[${PYTHON_USEDEP}]
+ >=dev-python/urwid-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/urwidtrees-1.0[${PYTHON_USEDEP}]
+ net-mail/mailbase
+ >=net-mail/notmuch-0.13[crypt,python]
+ "
+PATCHES=( "${FILESDIR}"/0.5.1-0001-Don-t-install-test-suite.patch )
+
+ALOT_UPDATE=""
+
+pkg_setup() {
+ if has_version "<${CATEGORY}/${PN}-0.3.2"; then
+ ALOT_UPDATE="yes"
+ fi
+}
+
+src_prepare() {
+ find "${S}" -name '*.py' -print0 | xargs -0 -- sed \
+ -e '1i# -*- coding: utf-8 -*-' -i || die
+
+ distutils-r1_src_prepare
+
+ local md
+ for md in *.md; do
+ mv "${md}" "${md%.md}"
+ done
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ pushd docs || die
+ emake html
+ popd || die
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ dodir /usr/share/alot
+ insinto /usr/share/alot
+ doins -r extra
+
+ if use doc; then
+ dohtml -r docs/build/html/*
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${ALOT_UPDATE} = yes ]]; then
+ ewarn "The syntax of theme-files and custom tags-sections of the config"
+ ewarn "has been changed. You have to revise your config. There are"
+ ewarn "converter scripts in /usr/share/alot/extra to help you out with"
+ ewarn "this:"
+ ewarn ""
+ ewarn " * tagsections_convert.py for your ~/.config/alot/config"
+ ewarn " * theme_convert.py to update your custom theme files"
+ fi
+}
diff --git a/mail-client/alot/files/0.5.1-0001-Don-t-install-test-suite.patch b/mail-client/alot/files/0.5.1-0001-Don-t-install-test-suite.patch
new file mode 100644
index 000000000000..cbe0bedb4be5
--- /dev/null
+++ b/mail-client/alot/files/0.5.1-0001-Don-t-install-test-suite.patch
@@ -0,0 +1,28 @@
+From 8af6cea015eeea61a3421b4f98ee4ba12f6c9b17 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name>
+Date: Mon, 29 May 2017 12:10:15 +0100
+Subject: [PATCH] Don't install test suite
+
+See
+<http://setuptools.readthedocs.io/en/latest/setuptools.html?highlight=find_packages#using-find-packages>
+for example patterns.
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index a3f6f90..b4533f7 100755
+--- a/setup.py
++++ b/setup.py
+@@ -11,7 +11,7 @@ setup(name='alot',
+ author_email=alot.__author_email__,
+ url=alot.__url__,
+ license=alot.__copyright__,
+- packages=find_packages(),
++ packages=find_packages(exclude=["tests.*", "tests"]),
+ package_data={'alot': [
+ 'defaults/alot.rc.spec',
+ 'defaults/notmuch.rc.spec',
+--
+2.12.2
+
diff --git a/mail-client/alot/metadata.xml b/mail-client/alot/metadata.xml
new file mode 100644
index 000000000000..349e9488ef0e
--- /dev/null
+++ b/mail-client/alot/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+ <use>
+ <flag name="doc">Install user manual and API documentation</flag>
+ </use>
+ <longdescription lang="en">
+ Alot is a terminal interface for <pkg>net-mail/notmuch</pkg> mail
+ written in Python using the <pkg>dev-python/urwid</pkg> toolkit.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">pazz/alot</remote-id>
+ </upstream>
+</pkgmetadata>