Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/pyvenv/, app-emacs/pyvenv/files/
Date: Fri, 08 Apr 2022 14:01:17
Message-Id: 1649426412.f156f4bd4540c859c44f73bf9b73ba4d6babaa91.xgqt@gentoo
1 commit: f156f4bd4540c859c44f73bf9b73ba4d6babaa91
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 09:52:19 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 14:00:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f156f4bd
7
8 app-emacs/pyvenv: new package; add version 1.21
9
10 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
11
12 app-emacs/pyvenv/Manifest | 1 +
13 app-emacs/pyvenv/files/50pyvenv-gentoo.el | 1 +
14 app-emacs/pyvenv/metadata.xml | 13 +++++++++++++
15 app-emacs/pyvenv/pyvenv-1.21.ebuild | 28 ++++++++++++++++++++++++++++
16 4 files changed, 43 insertions(+)
17
18 diff --git a/app-emacs/pyvenv/Manifest b/app-emacs/pyvenv/Manifest
19 new file mode 100644
20 index 000000000000..9a2e91286a4d
21 --- /dev/null
22 +++ b/app-emacs/pyvenv/Manifest
23 @@ -0,0 +1 @@
24 +DIST pyvenv-1.21.tar.gz 9187 BLAKE2B 59d3eee5f0c3da44c48d6fad8fc6803e6080e54696dd5071d05a716916a2f469f0b6c812bae68eb5f1ab4a99cefae7d7128fe7a0bb2a9ccce68cdc710e02632e SHA512 5b9bf67c2882a6a4b6ff8ec2c2485a21085882c66a265f3eb3ff9650e1e7a19642acd066767c049edf61f8514799c6d24420f68a467c79498223e92cd5be8c66
25
26 diff --git a/app-emacs/pyvenv/files/50pyvenv-gentoo.el b/app-emacs/pyvenv/files/50pyvenv-gentoo.el
27 new file mode 100644
28 index 000000000000..431f7e90ae73
29 --- /dev/null
30 +++ b/app-emacs/pyvenv/files/50pyvenv-gentoo.el
31 @@ -0,0 +1 @@
32 +(add-to-list 'load-path "@SITELISP@")
33
34 diff --git a/app-emacs/pyvenv/metadata.xml b/app-emacs/pyvenv/metadata.xml
35 new file mode 100644
36 index 000000000000..b763ca453b21
37 --- /dev/null
38 +++ b/app-emacs/pyvenv/metadata.xml
39 @@ -0,0 +1,13 @@
40 +<?xml version="1.0" encoding="UTF-8"?>
41 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
42 +
43 +<pkgmetadata>
44 + <maintainer type="project">
45 + <email>gnu-emacs@g.o</email>
46 + <name>Gentoo GNU Emacs project</name>
47 + </maintainer>
48 + <upstream>
49 + <bugs-to>https://github.com/jorgenschaefer/pyvenv/issues/</bugs-to>
50 + <remote-id type="github">jorgenschaefer/pyvenv</remote-id>
51 + </upstream>
52 +</pkgmetadata>
53
54 diff --git a/app-emacs/pyvenv/pyvenv-1.21.ebuild b/app-emacs/pyvenv/pyvenv-1.21.ebuild
55 new file mode 100644
56 index 000000000000..c16f57b1102b
57 --- /dev/null
58 +++ b/app-emacs/pyvenv/pyvenv-1.21.ebuild
59 @@ -0,0 +1,28 @@
60 +# Copyright 1999-2022 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=8
64 +
65 +inherit elisp
66 +
67 +DESCRIPTION="Python virtual environment interface for Emacs"
68 +HOMEPAGE="https://github.com/jorgenschaefer/pyvenv/"
69 +SRC_URI="https://github.com/jorgenschaefer/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
70 +
71 +LICENSE="GPL-3+"
72 +SLOT="0"
73 +KEYWORDS="~amd64 ~x86"
74 +IUSE="test"
75 +RESTRICT="!test? ( test )"
76 +
77 +BDEPEND="test? ( app-emacs/mocker )"
78 +
79 +DOCS=( README.md )
80 +SITEFILE="50${PN}-gentoo.el"
81 +
82 +src_test() {
83 + # Other tests require special Python Venv setup
84 + ${EMACS} ${EMACSFLAGS} -L . -l ./${PN}.el -L ./test \
85 + -l ./test/pyvenv-mode-test.el -l ./test/pyvenv-hook-dir-test.el \
86 + -f ert-run-tests-batch-and-exit || die "tests failed"
87 +}