mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 05:10:29 -04:00
Another pair of diff and patch utilities for binary files.
WWW: http://jojodiff.sourceforge.net/
This commit is contained in:
parent
aedc3e7c17
commit
d488119c00
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=525462
4 changed files with 61 additions and 0 deletions
|
@ -191,6 +191,7 @@
|
|||
SUBDIR += iso-codes
|
||||
SUBDIR += jargon
|
||||
SUBDIR += jbidwatcher
|
||||
SUBDIR += jojodiff
|
||||
SUBDIR += kbdscan
|
||||
SUBDIR += kcd
|
||||
SUBDIR += kde-thumbnailer-chm
|
||||
|
|
43
misc/jojodiff/Makefile
Normal file
43
misc/jojodiff/Makefile
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= jojodiff
|
||||
PORTVERSION= 0.8.1
|
||||
CATEGORIES= misc devel
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}08
|
||||
DISTNAME= jdiff${PORTVERSION:S/.//g}
|
||||
|
||||
MAINTAINER= danfe@FreeBSD.org
|
||||
COMMENT= Diff and patch utilities for binary files
|
||||
|
||||
LICENSE= GPLv3+
|
||||
|
||||
USES= gmake tar:tgz
|
||||
MAKE_ARGS= CC="${CC}" CPP="${CXX}" CFLAGS="${CFLAGS}"
|
||||
WRKSRC_SUBDIR= src
|
||||
|
||||
PLIST_FILES= bin/jdiff bin/jptch
|
||||
PORTDOCS= readme.txt readme.htm
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E 's,P(RI|8)(zd|hkey), & ,g' \
|
||||
${WRKSRC}/JFileAhead.cpp ${WRKSRC}/JFileIStreamAhead.cpp \
|
||||
${WRKSRC}/JHashPos.cpp ${WRKSRC}/JOutAsc.cpp \
|
||||
${WRKSRC}/JOutRgn.cpp ${WRKSRC}/jpatch.cpp \
|
||||
${WRKSRC}/main.cpp
|
||||
@${REINPLACE_CMD} -e 's,is %d bit,is %zu bit,' \
|
||||
${WRKSRC}/jpatch.cpp ${WRKSRC}/main.cpp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/j???? ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for f in ${PORTDOCS}
|
||||
${TR} -d \\r < ${WRKSRC}/../${f} | iconv -f latin1 -t utf8 \
|
||||
> ${STAGEDIR}${DOCSDIR}/${f}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
3
misc/jojodiff/distinfo
Normal file
3
misc/jojodiff/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1322937085
|
||||
SHA256 (jdiff081.tgz) = 8681e503c1d9658a89788d7e4c34c08adce5a0114610cfaaefa32f2bbe613058
|
||||
SIZE (jdiff081.tgz) = 427616
|
14
misc/jojodiff/pkg-descr
Normal file
14
misc/jojodiff/pkg-descr
Normal file
|
@ -0,0 +1,14 @@
|
|||
JDIFF is a program that outputs the differences between two binary files,
|
||||
either in binary format or human readable format (detailed or summarized).
|
||||
JPTCH can then be used to reconstruct the second file from the first file.
|
||||
|
||||
Possible applications include incremental backups, synchronising files
|
||||
between two computers over a slow network, and others.
|
||||
|
||||
JDIFF tries to find a minimal set of differences between two files using
|
||||
a heuristic algorithm with constant space and linear time complexity.
|
||||
This means that accuracy is traded over speed. JDIFF will therefore, in
|
||||
general, not always find the smallest set of differences, but will try
|
||||
to be fast and will use a fixed amount of memory.
|
||||
|
||||
WWW: http://jojodiff.sourceforge.net/
|
Loading…
Add table
Reference in a new issue