summaryrefslogtreecommitdiff
path: root/app-emacs/pymacs
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 /app-emacs/pymacs
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/pymacs')
-rw-r--r--app-emacs/pymacs/Manifest6
-rw-r--r--app-emacs/pymacs/files/50pymacs-gentoo.el5
-rw-r--r--app-emacs/pymacs/metadata.xml15
-rw-r--r--app-emacs/pymacs/pymacs-0.25-r2.ebuild54
4 files changed, 80 insertions, 0 deletions
diff --git a/app-emacs/pymacs/Manifest b/app-emacs/pymacs/Manifest
new file mode 100644
index 000000000000..836cd527ce82
--- /dev/null
+++ b/app-emacs/pymacs/Manifest
@@ -0,0 +1,6 @@
+AUX 50pymacs-gentoo.el 183 SHA256 99ea80acd692dd6fd44049dfb5aa80bae00a3abe7b7da3a6fd23868756e64b98 SHA512 f59fed86f859b796c901088b38fb570a5e5527d774a15456105ce75598c31fd20d0afaa62ad9cbf12063810fa592dbbd7c33aaece5871b36b488e5af6de0fac2 WHIRLPOOL cf845dd35dd09690b9fe6d20cba8dcc821f0fb4df28070d10765c912c04dd7967c01193d5c087ec59da0d6d6ae105e320555aa58285770bcd1f40fbb485d57b9
+DIST pymacs-0.25.tar.gz 120597 SHA256 51dc21b33316e6e244e78e5e88d8ae9a88afc0dcef34ba702ea9be589839bec2 SHA512 e17f7ee754413e21403d23894ee263fb0edae180a60c746b02cf101b2f0c782116e7bb61215bd0a8c689a991e211d780d220d4672b58f43108e7218a6f0c8dc0 WHIRLPOOL 90a211d1b62387e05deb759786fd82eeed23c1800307f1345e1c06c579c0455480433c24fda34a881f887595e169076a6ed56f6e8774933f0431aa96940e0152
+EBUILD pymacs-0.25-r2.ebuild 1278 SHA256 71450f04ae93afda4d104b07b7194a603b9a6f081e5a4cc7b2488d895b7552ac SHA512 64dc02edc53cbfa57ba8f77ee1d592d0ca20e1dbabe79c8aa8a479e217984c59f89498f59b6f04ae7e0db96ff38aa27b973ec027f36cbbd5f4d5f8d8fb627cb0 WHIRLPOOL 1a5c38a4f8f7753ef04ebf606c329349abb5c1955658d8be34af2c194a3575cc0b70ba03ae13f2a814c4356e9d56cc1394ee4612ed92a7c31ca74ef64c011aaa
+MISC ChangeLog 3547 SHA256 6e080870e4d1e0f103cb71509eac03a5243af42886f15df25e6ff319d4316f52 SHA512 96b38955e197b2a74abc144a7066e070b22fe5fd3547312e2f6b30a1230432610658c2b5be641eb2c4cbd98292206386f0c47c683f9f3531911a1128cd7a73f4 WHIRLPOOL 0d3ca490de6e4a54e35f42bbc69a733f6ff0943c596ecf827ff4f3d796c3b3c5d08af3311780a563aced74d4e1e44adb8b932a54dcb39d84b082b7c11b604119
+MISC ChangeLog-2015 8617 SHA256 34729b122970c456ac7d75fb299f6f247c323f7f98171368c688aab4393a71c5 SHA512 53f3d2cd84a784d645301f2dea07fe8ebe1532d4fd6271abc046036108a5db315b414e057af7c7d6685a697297dd77ecd5fed5bc11d9febe63605965a593a7c8 WHIRLPOOL 3bd63dc7ebf8cf30aa0733bf99555bd0282a8c3115bd124d6bc9e1f4ddb00999f11a37c015d2ecba88e63318bf86f0f048dade9fd659a4b63038626873407b89
+MISC metadata.xml 434 SHA256 52eccf736f2dc05bc71e0c7fa9bffb2cc690627d2c43fa5a8f4dbe97a471d476 SHA512 899211703ed0824e0b2dd26018e46854ab970d76ee12f169b99bc3a49f9e3bfb1d42757c35ac1ac21268b90b8536737aab61cf9dd4f7297b4e5360f1fe73f821 WHIRLPOOL 104b60569ab20f991c3b7ebcaa8d569a658bae4a276bfa4814b62ef38e02b4196dfeab200df6d632e9d11c6c6870411512eb2a8b82c4f6881d7f065493329c62
diff --git a/app-emacs/pymacs/files/50pymacs-gentoo.el b/app-emacs/pymacs/files/50pymacs-gentoo.el
new file mode 100644
index 000000000000..8c59be7e3365
--- /dev/null
+++ b/app-emacs/pymacs/files/50pymacs-gentoo.el
@@ -0,0 +1,5 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'pymacs-load "pymacs" nil t)
+(autoload 'pymacs-eval "pymacs" nil t)
+(autoload 'pymacs-apply "pymacs")
+(autoload 'pymacs-call "pymacs")
diff --git a/app-emacs/pymacs/metadata.xml b/app-emacs/pymacs/metadata.xml
new file mode 100644
index 000000000000..f928f5ea6cdb
--- /dev/null
+++ b/app-emacs/pymacs/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+</maintainer>
+<upstream>
+ <remote-id type="github">pinard/Pymacs</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/app-emacs/pymacs/pymacs-0.25-r2.ebuild b/app-emacs/pymacs/pymacs-0.25-r2.ebuild
new file mode 100644
index 000000000000..0addbbfa34d1
--- /dev/null
+++ b/app-emacs/pymacs/pymacs-0.25-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit elisp distutils-r1 vcs-snapshot
+
+DESCRIPTION="A tool that allows both-side communication beetween Python and Emacs Lisp"
+HOMEPAGE="http://www.emacswiki.org/emacs/PyMacs"
+SRC_URI="https://github.com/pinard/Pymacs/tarball/v${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 arm ~hppa ia64 ppc ppc64 ~s390 ~sh x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="doc"
+
+DEPEND="doc? (
+ >=dev-python/docutils-0.7
+ virtual/latex-base )
+"
+RDEPEND=""
+
+DISTUTILS_IN_SOURCE_BUILD=1
+SITEFILE="50${PN}-gentoo.el"
+
+python_prepare_all() {
+ sed \
+ -e '/pymacs-python-command/s/@PYTHON@/python/' \
+ -i pymacs.el.in || die
+ distutils-r1_python_prepare_all
+}
+
+# called by distutils-r1 for every python implementation
+python_configure() {
+ # pre-process the files but don't run distutils
+ emake PYSETUP=: PYTHON=${EPYTHON}
+}
+
+# called once
+python_compile_all() {
+ elisp_src_compile
+ if use doc; then
+ VARTEXFONTS="${T}"/fonts emake RST2LATEX=rst2latex.py pymacs.pdf
+ fi
+}
+
+python_install_all() {
+ elisp_src_install
+
+ distutils-r1_python_install_all
+ dodoc pymacs.rst
+ use doc && dodoc pymacs.pdf
+}