1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
#|/bin/cygport
# patchutils.cygport - directions for packaging patchutils for cygwin
# Copyright (C) 2008, 2009, 2014, 2016 Eric Blake
# This file is free software; I give unlimited permission to copy and/or
# distribute it, with or without modifications, as long as this notice is
# preserved.
NAME=patchutils
VERSION=0.4.5
RELEASE=1
CATEGORY="Text Utils Devel"
SUMMARY="Utilities for manipulating patch files"
DESCRIPTION="Utilities to list, search, filter, combine,
split, correct, or fix patch files.
Some operations may be applied directly to git, svn,
or cvs diffs if those packages are installed."
# lsdiff - filterdiff symlink - show files are modified by a patch
# grepdiff - filterdiff symlink - show files modified by a diff matching a regex
# patchview - filterdiff symlink - show files modified by a patch: with options work as filterdiff
# filterdiff - console x86-64 - extract or exclude diffs from a patch
# gitdiff - Python - patchview of git diff - man .so patchview
# gitshow - Python - patchview of git show - man .so patchview
# svndiff - shell - patchview of svn diff - man .so patchview
# gitdiffview - shell - patchview of git diff piped to view (vim -R) - man .so patchview
# gitshowview - shell - patchview of git show piped to view (vim -R) - man .so patchview
# svndiffview - shell - patchview of svn diff piped to view (vim -R) - man .so patchview
# combinediff - interdiff symlink - create unified cumulative patch from two incremental patches
# flipdiff - interdiff symlink - exchange order of two incremental patches
# interdiff - console - show differences between two patches
# splitdiff - Perl - separate out incremental patches
# dehtmldiff - shell - get usable diff from an HTML page
# unwrapdiff - Perl - demangle word-wrapped patches
# recountdiff - Perl - recount hunk offsets and lines
# editdiff - bash - fix offsets and counts of a hand-edited diff in-place - man .so rediff
# rediff - console x86-64 - fix offsets and counts of a hand-edited diff
# fixcvsdiff - Perl - fix problematic cvs diff files
HOMEPAGE=https://directory.fsf.org/wiki/$NAME
SITE=https://cyberelk.net/tim
HOMEPAGE=$SITE/software/$NAME
GIT_URI=https://github.com/twaugh/$NAME
SRC_URI=$GIT_URI/releases/download/$VERSION/$NAME-$VERSION.tar.xz
SRC_URI=$SITE/data/$NAME/stable/$NAME-$VERSION.tar.xz
SRC_URI+=" $SRC_URI.sig"
PATCH_URI=patchutils-0.4.5-Makefile-am-patchview-wrapper-script-not-exe-drop-EXEEXT.patch
# interdiff.c-fix-memcpy-arguments.patch
# patchutils-0.3.4-1.cygwin.patch
# patchutils-0.4.3-src-interdiff.c-memcpy-macro-compound-literal-add-parens.patch
CYGCONF_ARGS=
REQUIRES="diffutils patch"
BUILD_REQUIRES="autoconf automake binutils docbook-utils docbook2X
gcc-core make perl python xmlto $REQUIRES"
#src_install() {
# cd $B
# cyginstall
#
# # patchview man page documents gitdiff/svndiff+view
# for man1 in {git,svn}diff{,view}
# do
# if [ -r $D/usr/share/man/man1/patchview.1 ]
# then
# [ -r $D/usr/share/man/man1/$man1.1 ] || \
# verbose dosym /usr/share/man/man1/{patchview,$man1}.1
# fi
# done
#}
LICENSE="GPL-2.0-or-later"
# SPDX-License-Identifier: GPL-2.0-or-later
LICENSE_SPDX="SPDX-License-Identifier: $LICENSE"
LICENSE_URI="COPYING"
CYGWIN_MAINTAINER=Brian%20Inglis
CYGWIN_MAINTAINER_EMAIL=Brian.Inglis@SystematicSW.ab.ca
UPSTREAM_MAINTAINER=Tim%20Waugh
UPSTREAM_MAINTAINER_EMAIL=twaugh@redhat.com
SUBJECT=${OSTYPE^}%20Package%20$NAME%20$VERSION
MAILTO=mailto:$UPSTREAM_MAINTAINER%20%3C$UPSTREAM_MAINTAINER_EMAIL%3E\
?from=$CYGWIN_MAINTAINER%20%3C$CYGWIN_MAINTAINER_EMAIL%3E\
\&subject=$SUBJECT\&body=$SUBJECT
# Local Variables:
# fill-column: 72
# mode: sh
# sh-indentation: 2
# End:
|