Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2016 12:57:08 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r428733 - in head/devel/m4: . files
Message-ID:  <201612171257.uBHCv8HL077796@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Dec 17 12:57:08 2016
New Revision: 428733
URL: https://svnweb.freebsd.org/changeset/ports/428733

Log:
  - Add LICENSE
  - Use xz-compressed tarball
  - Use PORTEXAMPLES
  - Convert to options target helper
  - Use REINPLACE_CMD instead of patch files
  - Update pkg-descr
  - Update WWW: use https://
  - Cosmetic change

Deleted:
  head/devel/m4/files/
Modified:
  head/devel/m4/Makefile
  head/devel/m4/distinfo
  head/devel/m4/pkg-descr
  head/devel/m4/pkg-plist

Modified: head/devel/m4/Makefile
==============================================================================
--- head/devel/m4/Makefile	Sat Dec 17 12:57:03 2016	(r428732)
+++ head/devel/m4/Makefile	Sat Dec 17 12:57:08 2016	(r428733)
@@ -9,26 +9,33 @@ CATEGORIES=	devel
 MASTER_SITES=	GNU
 
 MAINTAINER=	sunpoet@FreeBSD.org
-COMMENT=	GNU m4
+COMMENT=	GNU M4
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+OPTIONS_DEFINE=	LIBSIGSEGV EXAMPLES
+LIBSIGSEGV_DESC=Use alternative page fault handler (GNU libsigsegv)
 
-USES=		makeinfo tar:bzip2
-GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--program-prefix=g
 CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"
+GNU_CONFIGURE=	yes
+USES=		makeinfo tar:xz
 
-INFO=	m4
-
-EXAMPLESDIR=	share/examples/gm4
+EXAMPLESDIR=	${PREFIX}/share/examples/gm4
+INFO=		m4
+PORTEXAMPLES=	*
 
-OPTIONS_DEFINE=			LIBSIGSEGV EXAMPLES
-LIBSIGSEGV_DESC=		Use alternative page fault handler (GNU libsigsegv)
-LIBSIGSEGV_LIB_DEPENDS=		libsigsegv.so:devel/libsigsegv
-LIBSIGSEGV_CONFIGURE_ON=	--with-libsigsegv-prefix=${LOCALBASE}
 LIBSIGSEGV_CONFIGURE_OFF=	--without-libsigsegv-prefix
+LIBSIGSEGV_CONFIGURE_ON=	--with-libsigsegv-prefix=${LOCALBASE}
+LIBSIGSEGV_LIB_DEPENDS=		libsigsegv.so:devel/libsigsegv
 
-post-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/examples/*.m4 \
-		${STAGEDIR}${PREFIX}/${EXAMPLESDIR}
+post-patch:
+	@${REINPLACE_CMD} -e '/^* M4: / s|M4|G&|' ${WRKSRC}/doc/m4.texi
+	@${REINPLACE_CMD} -e '/^install-exec-am: / s| .*||' ${WRKSRC}/lib/Makefile.in
+
+post-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
+	${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${STAGEDIR}${EXAMPLESDIR}/
 
 .include <bsd.port.mk>

Modified: head/devel/m4/distinfo
==============================================================================
--- head/devel/m4/distinfo	Sat Dec 17 12:57:03 2016	(r428732)
+++ head/devel/m4/distinfo	Sat Dec 17 12:57:08 2016	(r428733)
@@ -1,2 +1,3 @@
-SHA256 (m4-1.4.17.tar.bz2) = 8e4e1f963932136ed45dcd5afb0c6e237e96a6fcdcd2a2fa6755040859500d70
-SIZE (m4-1.4.17.tar.bz2) = 1438525
+TIMESTAMP = 1481787624
+SHA256 (m4-1.4.17.tar.xz) = f0543c3beb51fa6b3337d8025331591e0e18d8ec2886ed391f1aade43477d508
+SIZE (m4-1.4.17.tar.xz) = 1149088

Modified: head/devel/m4/pkg-descr
==============================================================================
--- head/devel/m4/pkg-descr	Sat Dec 17 12:57:03 2016	(r428732)
+++ head/devel/m4/pkg-descr	Sat Dec 17 12:57:08 2016	(r428733)
@@ -1,7 +1,15 @@
-   GNU `m4' is an implementation of the traditional UNIX macro
-processor.  It is mostly SVR4 compatible, although it has some
-extensions (for example, handling more than 9 positional parameters to
-macros).  `m4' also has builtin functions for including files, running
-shell commands, doing arithmetic, etc.
+GNU M4 is an implementation of the traditional Unix macro processor. It is
+mostly SVR4 compatible although it has some extensions (for example, handling
+more than 9 positional parameters to macros). GNU M4 also has built-in functions
+for including files, running shell commands, doing arithmetic, etc.
 
-WWW: http://www.gnu.org/software/m4/m4.html
+GNU M4 is a macro processor in the sense that it copies its input to the output
+expanding macros as it goes. Macros are either builtin or user-defined and can
+take any number of arguments. Besides just doing macro expansion, m4 has builtin
+functions for including named files, running UNIX commands, doing integer
+arithmetic, manipulating text in various ways, recursion etc... m4 can be used
+either as a front-end to a compiler or as a macro processor in its own right.
+
+One of the biggest users of GNU M4 is the GNU Autoconf project.
+
+WWW: https://www.gnu.org/software/m4/m4.html

Modified: head/devel/m4/pkg-plist
==============================================================================
--- head/devel/m4/pkg-plist	Sat Dec 17 12:57:03 2016	(r428732)
+++ head/devel/m4/pkg-plist	Sat Dec 17 12:57:08 2016	(r428733)
@@ -1,46 +1,2 @@
 bin/gm4
 man/man1/gm4.1.gz
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/capitalize.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/capitalize2.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/comments.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/curry.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ddivert.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/debug.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/esyscmd.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/exp.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/file.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/foreach.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/foreach2.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/foreachq.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/foreachq2.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/foreachq3.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/foreachq4.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/forloop.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/forloop2.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/forloop3.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fstab.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hanoi.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/incl-test.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/incl.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/include.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/indir.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/join.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/loop.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/misc.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/multiquotes.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/patsubst.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pushpop.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/quote.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/regexp.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/reverse.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stack.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stack_sep.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sync-lines.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sysv-args.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/trace.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/translit.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/undivert.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wrap.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wrapfifo.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wraplifo.m4
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wraplifo2.m4



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612171257.uBHCv8HL077796>