public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/tex-overlay:main commit in: dev-tex/latexmk/files/, dev-tex/latexmk/
@ 2024-02-09 20:46 Florian Schmaus
  0 siblings, 0 replies; only message in thread
From: Florian Schmaus @ 2024-02-09 20:46 UTC (permalink / raw
  To: gentoo-commits

commit:     f37135740e02205f43647e91bd8480dd05ff2b60
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  9 20:40:12 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Feb  9 20:45:53 2024 +0000
URL:        https://gitweb.gentoo.org/proj/tex-overlay.git/commit/?id=f3713574

dev-tex/latexmk: new package, add 4.83

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-tex/latexmk/Manifest                |  1 +
 dev-tex/latexmk/files/completion.bash-2 | 45 +++++++++++++++++++++++++++++++++
 dev-tex/latexmk/latexmk-4.83.ebuild     | 34 +++++++++++++++++++++++++
 dev-tex/latexmk/metadata.xml            |  8 ++++++
 4 files changed, 88 insertions(+)

diff --git a/dev-tex/latexmk/Manifest b/dev-tex/latexmk/Manifest
new file mode 100644
index 0000000..89686fc
--- /dev/null
+++ b/dev-tex/latexmk/Manifest
@@ -0,0 +1 @@
+DIST latexmk-483.zip 542683 BLAKE2B c6c45b878d2c78bec5e9a7daf4f8e513466a904349ef254792c94412bc872ba4a76b7da276e1f6588fec76bfcfa90e0465fe5b3f9b2785361d4acee15bf31a77 SHA512 5a856bb8ec37ab582ce35ba01f6c3ad574b73862e6ed67810b166b34344a2d76c3046e4b7442cac81e8cf7ff64bac674f2b4f5b76f0c0cd266271e930ded093e

diff --git a/dev-tex/latexmk/files/completion.bash-2 b/dev-tex/latexmk/files/completion.bash-2
new file mode 100644
index 0000000..942378f
--- /dev/null
+++ b/dev-tex/latexmk/files/completion.bash-2
@@ -0,0 +1,45 @@
+#! /bin/bash
+
+#   This program is free software; you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation; either version 2, or (at your option)
+#   any later version.
+
+# bash_completion for latexmk
+#
+#
+# Author:  Christoph Junghans
+#          junghans@gentoo.org
+#
+# Revision history:
+#  0.1   26-05-10 --- initial version
+#  0.2   15-02-11 --- clean up
+#
+# HOWTO:
+# source this file to enable it
+
+_latexmk()
+{
+  local cur output aopts opts prev
+  cur=${COMP_WORDS[COMP_CWORD]}
+  prev=${COMP_WORDS[COMP_CWORD-1]}
+
+  output=$( $1 -help 2> /dev/null)
+  #options with args ,pattern: ^   (-XXX) <YYYY>.*$
+  aopts=" $( echo " $output" | sed -n 's/^[[:space:]]\+\(-[^[:space:]]\+\)[[:space:]]\+<[^>]\+>.*$/\1/p' | sort -u | tr '\n' ' ')"
+  #if previous option in in $aopts
+  if [[ -n "$prev" ]] && [[ -z "${aopts//* $prev *}" ]]; then
+    #argument of $prev ,pattern: ^ -XXX (<YYYY>).*$
+    opts=$(echo "$output" | sed -n "s/^[[:space:]]\+$prev[[:space:]]\+\(<[^>]\+>\).*\$/\1/p")
+    COMPREPLY=( $( compgen -W '$opts' -- $cur ) )
+  elif [[ "$cur" == -* ]]; then
+    #all options, pattern: ^    (-XXX).*$
+    opts=$( echo "$output" | sed -n 's/^[[:space:]]\+\(-[^[:space:]]\+\).*$/\1/p'| sort -u )
+    COMPREPLY=( $( compgen -W '$opts' -- $cur ) )
+  else
+    #filenames *.tex and dirs, rest is done by '-o filenames' below
+    COMPREPLY=( $( eval compgen -f -X "!*.tex" -- ${cur} ) $( compgen -d -- $cur ) )
+  fi
+}
+
+complete -F _latexmk -o filenames latexmk

diff --git a/dev-tex/latexmk/latexmk-4.83.ebuild b/dev-tex/latexmk/latexmk-4.83.ebuild
new file mode 100644
index 0000000..cd236a4
--- /dev/null
+++ b/dev-tex/latexmk/latexmk-4.83.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1
+
+DESCRIPTION="Perl script for automatically building LaTeX documents"
+HOMEPAGE="https://personal.psu.edu/~jcc8/software/latexmk/
+		  https://ctan.org/pkg/latexmk/"
+SRC_URI="https://www.cantab.net/users/johncollins/${PN}/${P/./}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos"
+
+RDEPEND="
+	dev-lang/perl
+	virtual/latex-base
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+	newbin latexmk.pl latexmk
+	doman latexmk.1
+	dodoc CHANGES README latexmk.pdf latexmk.txt
+	dodoc -r example_rcfiles extra-scripts
+	newbashcomp "${FILESDIR}"/completion.bash-2 ${PN}
+}

diff --git a/dev-tex/latexmk/metadata.xml b/dev-tex/latexmk/metadata.xml
new file mode 100644
index 0000000..d724efd
--- /dev/null
+++ b/dev-tex/latexmk/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>tex@gentoo.org</email>
+		<name>Gentoo TeX Project</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-09 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-09 20:46 [gentoo-commits] proj/tex-overlay:main commit in: dev-tex/latexmk/files/, dev-tex/latexmk/ Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox