From 40394f67124d7713e488de9a6bb1769f5e80dbff Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Sat, 9 Mar 2024 12:52:40 +0100 Subject: [PATCH] New package: src-1.40 --- srcpkgs/src/patches/fix_test.patch | 11 +++++++++ srcpkgs/src/patches/rcs_version.patch | 10 ++++++++ srcpkgs/src/patches/tmp_pacify_pylint.patch | 27 +++++++++++++++++++++ srcpkgs/src/template | 19 +++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 srcpkgs/src/patches/fix_test.patch create mode 100644 srcpkgs/src/patches/rcs_version.patch create mode 100644 srcpkgs/src/patches/tmp_pacify_pylint.patch create mode 100644 srcpkgs/src/template diff --git a/srcpkgs/src/patches/fix_test.patch b/srcpkgs/src/patches/fix_test.patch new file mode 100644 index 00000000000000..d577b0a61adaba --- /dev/null +++ b/srcpkgs/src/patches/fix_test.patch @@ -0,0 +1,11 @@ +--- a/srctest ++++ b/srctest +@@ -108,7 +108,7 @@ fi + + # If you want to change where command captures and diffs live, modifying + # this variable will do it. +-tap_capture="/tmp/tap$$" ++tap_capture="tmp/tap$$" + + # Set this to add a fixed preamble to every TAP message + tap_preamble="" diff --git a/srcpkgs/src/patches/rcs_version.patch b/srcpkgs/src/patches/rcs_version.patch new file mode 100644 index 00000000000000..67d69c1eda15b2 --- /dev/null +++ b/srcpkgs/src/patches/rcs_version.patch @@ -0,0 +1,10 @@ +--- a/src ++++ b/src +@@ -3103,7 +3103,7 @@ class RCS(RevisionMixin): + # rcs --version fails under OS X + # rcs -V throws an obsolescence warning under GNU RCS 5.9.4 + # We choose the more portable option here. +- rawversion = capture_or_die("rcs -V 2>/dev/null") ++ rawversion = capture_or_die("rcs --version 2>/dev/null") + m = re.search(r"[0-9]+\.[0-9]+\.[0-9]+".encode("ascii"), rawversion) + return m and polystr(m.group(0)) diff --git a/srcpkgs/src/patches/tmp_pacify_pylint.patch b/srcpkgs/src/patches/tmp_pacify_pylint.patch new file mode 100644 index 00000000000000..27761f37c5fd85 --- /dev/null +++ b/srcpkgs/src/patches/tmp_pacify_pylint.patch @@ -0,0 +1,27 @@ +--- a/src ++++ b/src +@@ -1715,6 +1715,7 @@ def checkout_method(*args): + for arg in ctx.args: + metadata = History(arg) + ctx.resolve(metadata) ++ revision = None # pacify pylint + if ctx.is_empty(): + ctx.select_tip(metadata) + revision = ctx.seq[0].native +@@ -1766,6 +1767,7 @@ def commit_method(*args): + branch = args.pop(0) + else: + break ++ comment = None # pacify pylint + if not register_only: + comment = CommentContext("commit", args) + ctx = CommandContext( +@@ -1780,6 +1782,8 @@ def commit_method(*args): + if os.path.isdir(arg): + croak("cannot commit directory '%s'" % arg) + for arg in ctx.args: ++ trailer = None # Pacify pylint ++ diff = None # Pacify pylint + if not registered(arg): + trailer = "Committing initial revision of {0}.\n".format(arg) + revcount = 0 diff --git a/srcpkgs/src/template b/srcpkgs/src/template new file mode 100644 index 00000000000000..7ac1509b15e06e --- /dev/null +++ b/srcpkgs/src/template @@ -0,0 +1,19 @@ +# Template file for 'src' +pkgname=src +version=1.40 +revision=1 +build_style=gnu-makefile +hostmakedepends="python3 rcs sccs ruby-asciidoctor" +depends="python3 rcs" +checkdepends="python3 python pylint shellcheck diffutils grep sed git" +short_desc="Simple Revision Control" +maintainer="Eloi Torrents " +license="BSD-2-Clause" +homepage="http://www.catb.org/~esr/src" +changelog="http://www.catb.org/~esr/src/NEWS.html" +distfiles="http://www.catb.org/~esr/src/src-${version}.tar.gz" +checksum=8fbeb819945f36712818a528a255179ed888850fce1f339cbe8b7a6c2a9cf5e7 + +post_install() { + vlicense COPYING +}