summaryrefslogtreecommitdiff
path: root/app-misc/gtypist
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-misc/gtypist
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/gtypist')
-rw-r--r--app-misc/gtypist/Manifest6
-rw-r--r--app-misc/gtypist/files/50gtypist-gentoo.el6
-rw-r--r--app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch18
-rw-r--r--app-misc/gtypist/gtypist-2.9.5.ebuild69
-rw-r--r--app-misc/gtypist/metadata.xml8
5 files changed, 107 insertions, 0 deletions
diff --git a/app-misc/gtypist/Manifest b/app-misc/gtypist/Manifest
new file mode 100644
index 000000000000..a3c3c48644d6
--- /dev/null
+++ b/app-misc/gtypist/Manifest
@@ -0,0 +1,6 @@
+AUX 50gtypist-gentoo.el 182 BLAKE2B ae05de070f7c0dd0e0c6b31a4d9a8e9bab1b0f3d6a3faec0766207c7a9ae3ced0014eb13ee732f8d1ca807e0f72d8ddeb3a31e206e6c60d13d485844835ecc83 SHA512 1dd01580d11482f47899b0e3623c61d318d0bc4630851e5a4ee61ea008159db3372a144d68045394332c9a7ae3877e558502cf24c927a3d19a4e60aa046d12a5
+AUX gtypist-2.8.3-xemacs-compat.patch 592 BLAKE2B 23d8195c23c0e510b42c5b4ef9b466cfe13fc094990502615e49b28d97630758f4f7ba6f78dc84c941c2b481547eba423c96156cb909ed5fcb4bf1cd06404777 SHA512 6e85193a1354bc318f78382aaa24dea473d704ec347f8ae854b4a83985f2d4b1b8f64e59e3526b05bdd1e264de8fb8d4d6865bb296cf55f3896a56bfdc0930fb
+DIST colemak.typ 8922 BLAKE2B e3c422e9172e215406a5165a44c51c38f3372c9988f1bafdb537463a9a3209f1759a312c2a5d316ec3a2a0b39563521b87aa6944cdd0b4cf94c960cbe70c7ca3 SHA512 f2c2816836c83d7b640f7f703a4924c62ff0746e0d4cf2a2ca36d434017770272518b835ea273815c93ab9df1c0e4d142f5fea1e5f0b1484ecdc652a53bdc499
+DIST gtypist-2.9.5.tar.xz 929356 BLAKE2B d83506ee8ab26290fae47f98aed4e5e63260f39d5391a9a735d009f34a787cd670b034375c946c7562545b84ed4655d51c385209d676de76cf4891ead9845ea9 SHA512 d6891cd58d23f9b023aec97dc825cb15f7371ab18e82133b9a284d3329b1526bda8e1c5d7225f335c5ec673280cbbe3ad92471eeb15db4ecf29e7feffe27e095
+EBUILD gtypist-2.9.5.ebuild 1428 BLAKE2B 7d90949787de377bc61f4bca139b2af740de5260c0870331139a3cd7bef03daf5cb5abe4ad5b90ef85a10500a884f70624cb8ddbceb52411cf23a07cf6348c46 SHA512 c118f5a72fbe318220e963fff828a03013432fb79327e6fc39ec5a5492137eb984c4e2d3d4f6785aa65cfc8e4e137f5094a082f6344d0dd45cb69076b4665329
+MISC metadata.xml 246 BLAKE2B 0bfcc7ff5b18e4794606074e7cfd25cdb14e1324dc50880490257fb94ade836ed7d04dc043fa026732c6eb4eeea9daf2b5e0112489c9fdb5959f718ec9e4839c SHA512 868f217ab39861a74e1e85a7920bb2c283cca35d231d4cd2c8e66a6d9ad81d5b03343701fd508ba13bc7c273e4d34678954005d2f58cbb147beb01ad3b7197ee
diff --git a/app-misc/gtypist/files/50gtypist-gentoo.el b/app-misc/gtypist/files/50gtypist-gentoo.el
new file mode 100644
index 000000000000..8d888d4dcd87
--- /dev/null
+++ b/app-misc/gtypist/files/50gtypist-gentoo.el
@@ -0,0 +1,6 @@
+
+;; gtypist site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'gtypist-mode "gtypist-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.typ\\'" . gtypist-mode))
diff --git a/app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch b/app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch
new file mode 100644
index 000000000000..166a82c48263
--- /dev/null
+++ b/app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch
@@ -0,0 +1,18 @@
+--- gtypist-2.8.3-orig/tools/gtypist-mode.el 2003-09-28 23:35:22.000000000 +0200
++++ gtypist-2.8.3/tools/gtypist-mode.el 2007-04-21 14:49:16.000000000 +0200
+@@ -95,7 +95,14 @@
+
+ (require 'font-lock)
+ (require 'thingatpt)
+-(require 'executable) ;; executable-find
++
++(eval-and-compile
++ (cond
++ ((fboundp 'executable-find))
++ ((fboundp 'locate-file)
++ (defun executable-find (command)
++ (locate-file command exec-path nil 'executable)))
++ (t (require 'executable))))
+
+ (defvar gtypist-mode-syntax-table nil "Syntax-table for gtypist-mode.")
+ (unless gtypist-mode-syntax-table
diff --git a/app-misc/gtypist/gtypist-2.9.5.ebuild b/app-misc/gtypist/gtypist-2.9.5.ebuild
new file mode 100644
index 000000000000..f15364a27288
--- /dev/null
+++ b/app-misc/gtypist/gtypist-2.9.5.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils elisp-common
+
+DESCRIPTION="Universal typing tutor"
+HOMEPAGE="https://www.gnu.org/software/gtypist/"
+SRC_URI="mirror://gnu/gtypist/${P}.tar.xz
+ http://colemak.com/pub/learn/colemak.typ"
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux"
+IUSE="nls emacs xemacs"
+
+DEPEND="
+ >=sys-libs/ncurses-5.2:0=
+ emacs? ( virtual/emacs )
+ xemacs? ( !emacs? ( app-editors/xemacs app-xemacs/fsf-compat ) )
+"
+RDEPEND="${DEPEND}"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${P}.tar.xz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
+}
+
+src_configure() {
+ local lispdir=""
+ if use emacs; then
+ lispdir="${SITELISP}/${PN}"
+ einfo "Configuring to build with GNU Emacs support"
+ elif use xemacs; then
+ lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/lisp/${PN}"
+ einfo "Configuring to build with XEmacs support"
+ fi
+
+ econf \
+ $(use_enable nls) \
+ EMACS=$(usev emacs || usev xemacs || echo no) \
+ --with-lispdir="${lispdir}"
+}
+
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+
+src_install() {
+ default
+
+ insinto /usr/share/gtypist
+ doins "${DISTDIR}"/colemak.typ
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-misc/gtypist/metadata.xml b/app-misc/gtypist/metadata.xml
new file mode 100644
index 000000000000..df96eb34a05f
--- /dev/null
+++ b/app-misc/gtypist/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dabbott@gentoo.org</email>
+ <name>David Abbott</name>
+ </maintainer>
+</pkgmetadata>