svn commit: r429904 - in head/textproc: . splitpatch splitpatch/files
Emanuel Haupt
ehaupt at FreeBSD.org
Thu Dec 29 12:59:33 UTC 2016
Author: ehaupt
Date: Thu Dec 29 12:59:31 2016
New Revision: 429904
URL: https://svnweb.freebsd.org/changeset/ports/429904
Log:
A utility to split a diff patch into separate sections. It also features
splitting a patch file by hunks instead of the default by file. This is very
useful for merging patches that fail to apply by only some hunks.
WWW: https://github.com/benjsc/splitpatch
Added:
head/textproc/splitpatch/
head/textproc/splitpatch/Makefile (contents, props changed)
head/textproc/splitpatch/distinfo (contents, props changed)
head/textproc/splitpatch/files/
head/textproc/splitpatch/files/patch-man_pod2man.mk (contents, props changed)
head/textproc/splitpatch/pkg-descr (contents, props changed)
Modified:
head/textproc/Makefile
Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile Thu Dec 29 12:50:33 2016 (r429903)
+++ head/textproc/Makefile Thu Dec 29 12:59:31 2016 (r429904)
@@ -1591,6 +1591,7 @@
SUBDIR += sphinxsearch
SUBDIR += sphinxsearch-devel
SUBDIR += spiff
+ SUBDIR += splitpatch
SUBDIR += sq-hunspell
SUBDIR += sr-aspell
SUBDIR += sr-hunspell
Added: head/textproc/splitpatch/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/splitpatch/Makefile Thu Dec 29 12:59:31 2016 (r429904)
@@ -0,0 +1,36 @@
+# Created by: Emanuel Haupt <ehaupt at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= splitpatch
+PORTVERSION= 1.0.2016122801
+CATEGORIES= textproc
+
+MAINTAINER= ehaupt at FreeBSD.org
+COMMENT= Utility to split a diff patch into separate sections
+
+LICENSE= GPLv2+
+
+USES= gmake perl5
+USE_PERL5= build
+USE_RUBY= yes
+NO_ARCH= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= jaalto
+GH_TAGNAME= 13c5941
+
+PLIST_FILES= bin/splitpatch man/man1/splitpatch.1.gz
+
+# avoid build date in man page
+#MAKE_ENV+= PODCENTER=" "
+
+MAKE_JOBS_UNSAFE=yes
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.rb \
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>
Added: head/textproc/splitpatch/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/splitpatch/distinfo Thu Dec 29 12:59:31 2016 (r429904)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1482940118
+SHA256 (jaalto-splitpatch-1.0.2016122801-13c5941_GH0.tar.gz) = d07e1c00794eefa2f3c2b7f204f4fbdfcbe1afcff595a88fbd3fce7b925584d9
+SIZE (jaalto-splitpatch-1.0.2016122801-13c5941_GH0.tar.gz) = 4798
Added: head/textproc/splitpatch/files/patch-man_pod2man.mk
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/splitpatch/files/patch-man_pod2man.mk Thu Dec 29 12:59:31 2016 (r429904)
@@ -0,0 +1,33 @@
+--- man/pod2man.mk.orig 2016-08-15 17:36:10 UTC
++++ man/pod2man.mk
+@@ -36,7 +36,6 @@ RELEASE ?= $(PACKAGE)
+
+ # Optional variables to set
+ MANSECT ?= 1
+-PODCENTER ?= $$(date "+%Y-%m-%d")
+
+ # Directories
+ MANSRC =
+@@ -46,7 +45,6 @@ MANPOD = $(MANSRC)$(PACKAGE).$(MANSECT)
+ MANPAGE = $(MANDEST)$(PACKAGE).$(MANSECT)
+
+ POD2MAN = pod2man
+-POD2MAN_FLAGS = --utf8
+
+ makeman: $(MANPAGE)
+
+@@ -54,12 +52,9 @@ $(MANPAGE): $(MANPOD)
+ # make target - create manual page from a *.pod page
+ podchecker $(MANPOD)
+ LC_ALL=C $(POD2MAN) $(POD2MAN_FLAGS) \
+- --center="$(PODCENTER)" \
++ --center=" " \
+ --name="$(PACKAGE)" \
+ --section="$(MANSECT)" \
+ --release="$(RELEASE)" \
+ $(MANPOD) \
+- > $(MANPAGE) && \
+- rm -f pod*.tmp
+-
+-# End of of Makefile part
++ > $(MANPAGE)
Added: head/textproc/splitpatch/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/splitpatch/pkg-descr Thu Dec 29 12:59:31 2016 (r429904)
@@ -0,0 +1,5 @@
+A utility to split a diff patch into separate sections. It also features
+splitting a patch file by hunks instead of the default by file. This is very
+useful for merging patches that fail to apply by only some hunks.
+
+WWW: https://github.com/benjsc/splitpatch
More information about the svn-ports-all
mailing list