summaryrefslogtreecommitdiff
path: root/app-emacs/pariemacs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emacs/pariemacs
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emacs/pariemacs')
-rw-r--r--app-emacs/pariemacs/Manifest5
-rw-r--r--app-emacs/pariemacs/files/64pariemacs-gentoo.el7
-rw-r--r--app-emacs/pariemacs/files/pariemacs-3.14-makefile.patch51
-rw-r--r--app-emacs/pariemacs/metadata.xml11
-rw-r--r--app-emacs/pariemacs/pariemacs-3.14.ebuild38
5 files changed, 112 insertions, 0 deletions
diff --git a/app-emacs/pariemacs/Manifest b/app-emacs/pariemacs/Manifest
new file mode 100644
index 000000000000..f408e01feed8
--- /dev/null
+++ b/app-emacs/pariemacs/Manifest
@@ -0,0 +1,5 @@
+AUX 64pariemacs-gentoo.el 224 BLAKE2B 8ae37110131dc88c43273313d52e6036c71712b77a08d66bbd4316dd363cd23a3892f35693ab2f446d5600ab480fec6bd567c5280c7632f69f70103d0ff24116 SHA512 3d3304a3b44a686186e1054af3fa55d7881742f62000d968a4651da1cfddb53650b3b690ee0430b684493578fb11d73531ad07a5a8681516d837788262cc9477
+AUX pariemacs-3.14-makefile.patch 1487 BLAKE2B a7fa6fa8aea98627a6e9f509376fe0a11e1e8b5db8c5bb6b486c053d6f716500f2ccb189c1cc0cbe49ac68b74d49fb6313a178d7178070365bc19d2ac4ebf96b SHA512 87a3c229561498f7f7256a2b3dfe2abecd6e962d53379cc38fc6a4fe7a86940ba0c4e8ba51c7520480c218c18f48cde90dfdfe7b371db53f1c8c36e2a6a0f0a1
+DIST pariemacs-3.14.tar.gz 114347 BLAKE2B 40e7b11d3fd674a2525c145be97f3b9119379e7a2a1c689b1e76107bccc0d48b08d7e8e2f1785bd315723e99961e06409e102946fceaf52099f4bc7cf6ef9ed1 SHA512 97ef66c497594c288e7f3e3c77d8d5ec31acf6cdcf86443e0754c69074adf51b07620c858dd5a71d3dbb2a58b05f6774e348c2079e9cc888a909988c4470c79c
+EBUILD pariemacs-3.14.ebuild 872 BLAKE2B 597294183d298d68c9bf12936a1cfbe1e1720048b23b875410960ef39498ffe6d242d4daaf5533b283a7ebb4310cd8b48ac84845d4d6131c319049f3660254cf SHA512 a26b1b58d4442a424d98108e5d47be739888691e7d8bc09634fe8ad50920b822a57bb5c4815e07b7d8b71cf8752628edf2cd6027bcb8e4a77580ea49fc72d544
+MISC metadata.xml 385 BLAKE2B 571589c01efc6d5a066ed50fbe40d5136a13184c4fc755457e73d75fa0cf76a580a42488da78363d476c4c089f69d34b9ff3cf99d407157b3993b6d7caa22a11 SHA512 60a84b02c2a242f238ce0a1fba4be9a1b2e7ece99c09d13e647835aece76ae8ddb93617fd43c390e5185c486bcdf62afb3169d64693f94c947954d57a4de6270
diff --git a/app-emacs/pariemacs/files/64pariemacs-gentoo.el b/app-emacs/pariemacs/files/64pariemacs-gentoo.el
new file mode 100644
index 000000000000..2dc1967ac762
--- /dev/null
+++ b/app-emacs/pariemacs/files/64pariemacs-gentoo.el
@@ -0,0 +1,7 @@
+;; site-init for pariemacs
+
+(add-to-list 'load-path "/usr/share/emacs/site-lisp/pariemacs")
+(autoload 'gp-mode "pari" nil t)
+(autoload 'gp-script-mode "pari" nil t)
+(autoload 'gp "pari" nil t)
+(autoload 'gpman "pari" nil t)
diff --git a/app-emacs/pariemacs/files/pariemacs-3.14-makefile.patch b/app-emacs/pariemacs/files/pariemacs-3.14-makefile.patch
new file mode 100644
index 000000000000..bbcd8b77c585
--- /dev/null
+++ b/app-emacs/pariemacs/files/pariemacs-3.14-makefile.patch
@@ -0,0 +1,51 @@
+diff -r -U2 pariemacs.orig/Makefile pariemacs/Makefile
+--- pariemacs.orig/Makefile 2017-12-05 18:54:54.000000000 +0700
++++ pariemacs/Makefile 2018-01-13 19:15:31.095946659 +0700
+@@ -5,19 +5,8 @@
+
+ # Path to pari.cfg file.
+-# Several possibilites:
+-PARI_CFG=/usr/local/lib/pari/pari.cfg
+-# For Debian (package "libpari-dev") install:
+-#PARI_CFG=/usr/lib/pari/pari.cfg
+-# For some other install, the architecture is mentioned
+-# (see https://wiki.ubuntu.com/MultiarchSpec):
+-#PARI_CFG=/usr/lib/i386-linux-gnu/pari/pari.cfg
+-#PARI_CFG=/usr/lib/x86_64-linux-gnu/pari/pari.cfg
+-
+-# In case, you cannot find it, you can use the following default file
+-# (but edit this file first):
+-#PARI_CFG=./pari.cfg-default
++PARI_CFG=./pari.cfg
+
+ # Where to install ourselves ?
+-INSTALL=/usr/local/share/emacs/site-lisp/pari
++INSTALL=/usr/share/emacs/site-lisp/pari
+
+ # Path to 'emacs' binary
+@@ -34,8 +23,4 @@
+ TARFILE=$(DIR).tar
+
+-install: pari-conf.el elc
+- mkdir -p $(INSTALL)
+- cp *.elc *.el README CHANGES COPYING $(INSTALL)
+-
+ pari-conf.el:
+ @if test ! -f $(PARI_CFG); then \
+@@ -52,16 +37,4 @@
+ -f batch-byte-compile *.el
+
+-distrib:
+- @if test -d $(DIR); then \
+- echo "Remove $(DIR) before building a new release"; exit 1; \
+- fi
+- @tar cf $(TARFILE) $(FILES)
+- @mkdir $(DIR) && mv $(TARFILE) $(DIR)
+- @cd $(DIR) && tar xf $(TARFILE) && rm -f $(TARFILE)
+- @tar cf $(TARFILE) $(DIR)
+- @rm -rf $(DIR)
+- @rm -f $(TARFILE).gz
+- @gzip $(TARFILE)
+-
+ clean:
+ rm -f *.elc pari-conf.el
diff --git a/app-emacs/pariemacs/metadata.xml b/app-emacs/pariemacs/metadata.xml
new file mode 100644
index 000000000000..5946ec67bdb8
--- /dev/null
+++ b/app-emacs/pariemacs/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Emacs modes to edit gp scripts and to run gp in emacs.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-emacs/pariemacs/pariemacs-3.14.ebuild b/app-emacs/pariemacs/pariemacs-3.14.ebuild
new file mode 100644
index 000000000000..aa608c9b7eaa
--- /dev/null
+++ b/app-emacs/pariemacs/pariemacs-3.14.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit elisp
+
+DESCRIPTION="sci-mathematics/pari emacs mode"
+HOMEPAGE="http://iml.univ-mrs.fr/~ramare/ServeurPerso/GP-PARI/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+SRC_URI="http://iml.univ-mrs.fr/~ramare/ServeurPerso/GP-PARI/latest-pari-distrib/${P}.tar.gz"
+
+RDEPEND="sci-mathematics/pari"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"
+SITEFILE="64${PN}-gentoo.el"
+DOCS="README CHANGES"
+
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-makefile.patch
+ eapply_user
+ if [ -f /usr/share/doc/pari-*/pari.cfg ]; then
+ cp /usr/share/doc/pari-*/pari.cfg .
+ elif [ -f /usr/share/doc/pari-*/pari.cfg.bz2 ]; then
+ cp /usr/share/doc/pari-*/pari.cfg.bz2 .
+ bunzip2 pari.cfg.bz2
+ else die "pari.cfg not found"
+ fi
+}
+
+src_compile() {
+ make pari-conf.el
+ make elc
+}