From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2146F15815E for ; Fri, 9 Feb 2024 20:46:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4399DE2A29; Fri, 9 Feb 2024 20:46:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17E2CE2A29 for ; Fri, 9 Feb 2024 20:46:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0D4E53431AA for ; Fri, 9 Feb 2024 20:46:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3AF2D14C6 for ; Fri, 9 Feb 2024 20:46:00 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1707511553.f37135740e02205f43647e91bd8480dd05ff2b60.flow@gentoo> Subject: [gentoo-commits] proj/tex-overlay:main commit in: dev-tex/latexmk/files/, dev-tex/latexmk/ X-VCS-Repository: proj/tex-overlay X-VCS-Files: dev-tex/latexmk/Manifest dev-tex/latexmk/files/completion.bash-2 dev-tex/latexmk/latexmk-4.83.ebuild dev-tex/latexmk/metadata.xml X-VCS-Directories: dev-tex/latexmk/ dev-tex/latexmk/files/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: f37135740e02205f43647e91bd8480dd05ff2b60 X-VCS-Branch: main Date: Fri, 9 Feb 2024 20:46:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1a1dd05a-e0bf-49c1-a7b3-197f713c947d X-Archives-Hash: cc3eaa7d2464cdd0f795f5909dde5137 commit: f37135740e02205f43647e91bd8480dd05ff2b60 Author: Florian Schmaus gentoo org> AuthorDate: Fri Feb 9 20:40:12 2024 +0000 Commit: Florian Schmaus gentoo 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 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) .*$ + 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 ().*$ + 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 @@ + + + + + tex@gentoo.org + Gentoo TeX Project + +