summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2018-01-13 20:42:44 +0700
committerAndrey Grozin <grozin@gentoo.org>2018-01-13 20:42:44 +0700
commit68ca2875e96d925a1ad9486d859f10d92a177e76 (patch)
tree99c67f2c9a70abd5ebdabf3467755cbbe3cbd9c9 /app-emacs/pariemacs
parentsci-mathematics/pari: bump to 2.9.4 (diff)
downloadgentoo-68ca2875e96d925a1ad9486d859f10d92a177e76.tar.gz
gentoo-68ca2875e96d925a1ad9486d859f10d92a177e76.tar.bz2
gentoo-68ca2875e96d925a1ad9486d859f10d92a177e76.zip
app-emacs/pariemacs: initial import
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-emacs/pariemacs')
-rw-r--r--app-emacs/pariemacs/Manifest1
-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.ebuild33
5 files changed, 103 insertions, 0 deletions
diff --git a/app-emacs/pariemacs/Manifest b/app-emacs/pariemacs/Manifest
new file mode 100644
index 000000000000..eb3ad6f97ee4
--- /dev/null
+++ b/app-emacs/pariemacs/Manifest
@@ -0,0 +1 @@
+DIST pariemacs-3.14.tar.gz 114347 BLAKE2B 40e7b11d3fd674a2525c145be97f3b9119379e7a2a1c689b1e76107bccc0d48b08d7e8e2f1785bd315723e99961e06409e102946fceaf52099f4bc7cf6ef9ed1 SHA512 97ef66c497594c288e7f3e3c77d8d5ec31acf6cdcf86443e0754c69074adf51b07620c858dd5a71d3dbb2a58b05f6774e348c2079e9cc888a909988c4470c79c
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..308e790bebef
--- /dev/null
+++ b/app-emacs/pariemacs/pariemacs-3.14.ebuild
@@ -0,0 +1,33 @@
+# 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
+ cp /usr/share/doc/pari-*/pari.cfg.bz2 . || die "pari.cfg.bz2 not found"
+ bunzip2 pari.cfg.bz2
+}
+
+src_compile() {
+ make pari-conf.el
+ make elc
+}