From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9889F138350 for ; Sat, 28 Mar 2020 16:12:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B183AE0B4A; Sat, 28 Mar 2020 16:12:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 940C1E0B4A for ; Sat, 28 Mar 2020 16:12:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9713034FA00 for ; Sat, 28 Mar 2020 16:12:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA762162 for ; Sat, 28 Mar 2020 16:12:44 +0000 (UTC) From: "Marc Schiffbauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marc Schiffbauer" Message-ID: <1585411949.f9bf82da2b70f7943f649ef80c18ff089fabe882.mschiff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/automx2/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/automx2/automx2-2020.1-r1.ebuild X-VCS-Directories: net-mail/automx2/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: f9bf82da2b70f7943f649ef80c18ff089fabe882 X-VCS-Branch: master Date: Sat, 28 Mar 2020 16:12:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7173b293-ef45-452f-8a60-2b27214ae7d6 X-Archives-Hash: 2556081338730dd2ceb19dd044493f46 commit: f9bf82da2b70f7943f649ef80c18ff089fabe882 Author: Ralph Seichter seichter de> AuthorDate: Fri Mar 27 21:31:08 2020 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Sat Mar 28 16:12:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9bf82da net-mail/automx2: Depend on dev-python/ldap3 Add dependency on dev-python/ldap3 which now supports Python 3.7. Bug: https://bugs.gentoo.org/705714 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Ralph Seichter seichter.de> Closes: https://github.com/gentoo/gentoo/pull/15142 Signed-off-by: Marc Schiffbauer gentoo.org> net-mail/automx2/automx2-2020.1-r1.ebuild | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/net-mail/automx2/automx2-2020.1-r1.ebuild b/net-mail/automx2/automx2-2020.1-r1.ebuild new file mode 100644 index 00000000000..27bbeeef2a1 --- /dev/null +++ b/net-mail/automx2/automx2-2020.1-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Email client autoconfiguration service" +HOMEPAGE="https://automx.org/" +SRC_URI="https://gitlab.com/automx/automx2/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +BDEPEND="acct-user/automx2 + dev-python/flask-migrate[${PYTHON_USEDEP}] + dev-python/ldap3[${PYTHON_USEDEP}]" +RDEPEND="${BDEPEND}" + +python_prepare_all() { + sed -i -e "/('scripts'/d" setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + export AUTOMX2_CONF="tests/unittest.conf" + ${EPYTHON} -m unittest discover tests/ || die +} + +python_install_all() { + if use doc; then + DOCS="*.adoc doc/*.adoc contrib/*sample.conf" + HTML_DOCS="doc/*.html doc/*.svg" + fi + sed -e "s/@EPYTHON@/${EPYTHON}/" "${FILESDIR}/init" | newinitd - "${PN}" + newconfd "${FILESDIR}/confd" "${PN}" + insinto /etc + newins "${FILESDIR}/conf" "${PN}.conf" + distutils-r1_python_install_all +}