pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
(textproc/docdiff) Adding new package
Module Name: pkgsrc-wip
Committed By: Makoto Fujiwara (CF-SX3) <makoto%ki.nu@localhost>
Pushed By: mef
Date: Sat Oct 15 13:30:30 2022 +0900
Changeset: e3c1ff6ea317272350fcfb95f51755fff9e4f7de
Added Files:
docdiff/DESCR
docdiff/Makefile
docdiff/PLIST
docdiff/distinfo
docdiff/patches/patch-bin_docdiff
Log Message:
(textproc/docdiff) Adding new package
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e3c1ff6ea317272350fcfb95f51755fff9e4f7de
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
docdiff/DESCR | 1 +
docdiff/Makefile | 36 ++++++++++++++++++++++++++++++++++++
docdiff/PLIST | 22 ++++++++++++++++++++++
docdiff/distinfo | 6 ++++++
docdiff/patches/patch-bin_docdiff | 14 ++++++++++++++
5 files changed, 79 insertions(+)
diffs:
diff --git a/docdiff/DESCR b/docdiff/DESCR
new file mode 100644
index 0000000000..29c76b7039
--- /dev/null
+++ b/docdiff/DESCR
@@ -0,0 +1 @@
+Show either char word line difference
diff --git a/docdiff/Makefile b/docdiff/Makefile
new file mode 100644
index 0000000000..4627d8fd32
--- /dev/null
+++ b/docdiff/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+VERSION= 0.6.1
+GITHUB_TAG= v${VERSION}
+DISTNAME= docdiff-${VERSION}
+PKGNAME= ${RUBY_PKGPREFIX}-docdiff-${VERSION}
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hisashim/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/hisashim/docdiff/
+COMMENT= Show char word line difference
+LICENSE= modified-bsd
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+USE_LANGUAGES= # none
+
+NO_BUILD= yes
+INSTALLATION_DIRS+= ${PREFIX}/share/docdiff ${PREFIX}/bin
+REPLACE_RUBY= bin/docdiff
+
+SUBST_CLASSES+= require
+SUBST_STAGE.require= pre-configure
+SUBST_FILES.require+= bin/docdiff
+SUBST_SED.require= -e 's,@@LIBRARY@@,${PREFIX}/share/docdiff,'
+
+do-install:
+ (cd ${WRKSRC}/lib ; \
+ ${CP} -r ./ ${DESTDIR}${PREFIX}/share/docdiff ;\
+ )
+ (cd ${WRKSRC}/bin ; \
+ ${INSTALL} docdiff ${DESTDIR}${PREFIX}/bin ;\
+ )
+
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/docdiff/PLIST b/docdiff/PLIST
new file mode 100644
index 0000000000..9c90595b9d
--- /dev/null
+++ b/docdiff/PLIST
@@ -0,0 +1,22 @@
+@comment $NetBSD$
+bin/docdiff
+share/docdiff/doc_diff.rb
+share/docdiff/docdiff.rb
+share/docdiff/docdiff/charstring.rb
+share/docdiff/docdiff/diff.rb
+share/docdiff/docdiff/diff/contours.rb
+share/docdiff/docdiff/diff/editscript.rb
+share/docdiff/docdiff/diff/rcsdiff.rb
+share/docdiff/docdiff/diff/shortestpath.rb
+share/docdiff/docdiff/diff/speculative.rb
+share/docdiff/docdiff/diff/subsequence.rb
+share/docdiff/docdiff/diff/unidiff.rb
+share/docdiff/docdiff/difference.rb
+share/docdiff/docdiff/document.rb
+share/docdiff/docdiff/encoding/en_ascii.rb
+share/docdiff/docdiff/encoding/ja_eucjp.rb
+share/docdiff/docdiff/encoding/ja_sjis.rb
+share/docdiff/docdiff/encoding/ja_utf8.rb
+share/docdiff/docdiff/version.rb
+share/docdiff/docdiff/view.rb
+share/docdiff/viewdiff.rb
diff --git a/docdiff/distinfo b/docdiff/distinfo
new file mode 100644
index 0000000000..9a708e9dd8
--- /dev/null
+++ b/docdiff/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (docdiff-0.6.1.tar.gz) = 247d6c9ba42a656fc07d693151ade9f52e8e1ea63802173465db5c0b7aec64ed
+SHA512 (docdiff-0.6.1.tar.gz) = ea2d46f38ab2146f1d888ef9b14cdb3874523cfdc3639b04de8bb2e8583a0b4ae18c98520f459b75deef987b3da4287d3fadd25eddffa3e8e915126e442d1e24
+Size (docdiff-0.6.1.tar.gz) = 141275 bytes
+SHA1 (patch-bin_docdiff) = 3b237bb75f693a7fbe5aa59a135101b963fdf4fd
diff --git a/docdiff/patches/patch-bin_docdiff b/docdiff/patches/patch-bin_docdiff
new file mode 100644
index 0000000000..aa6c8f38f1
--- /dev/null
+++ b/docdiff/patches/patch-bin_docdiff
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Add LOAD_PATH
+
+--- bin/docdiff.orig 2022-10-15 12:03:22.696894976 +0900
++++ bin/docdiff 2022-10-15 12:05:50.226046031 +0900
+@@ -2,6 +2,7 @@
+ # DocDiff: word/character-oriented text comparison utility
+ # Copyright (C) 2002-2011 Hisashi MORITA
+ # Requirements: Ruby (>= 2.0)
++$LOAD_PATH.unshift "@@LIBRARY@@"
+ require 'docdiff'
+ require 'optparse'
+
Home |
Main Index |
Thread Index |
Old Index