svn commit: r366548 - in head/japanese/groff: . files
Hiroki Sato
hrs at FreeBSD.org
Fri Aug 29 18:12:22 UTC 2014
Author: hrs
Date: Fri Aug 29 18:12:20 2014
New Revision: 366548
URL: http://svnweb.freebsd.org/changeset/ports/366548
QAT: https://qat.redports.org/buildarchive/r366548/
Log:
- Fix build with newer versions of makeinfo.
- Fix shebang line in sh and perl scripts.
- Remove gcc dependency.
- Move example files to EXAMPLESDIR.
Added:
head/japanese/groff/files/patch-Makefile.in (contents, props changed)
head/japanese/groff/files/patch-contrib-eqn2graph-eqn2graph.sh (contents, props changed)
head/japanese/groff/files/patch-contrib-pic2graph-pic2graph.sh (contents, props changed)
head/japanese/groff/files/patch-doc-groff.texinfo (contents, props changed)
Modified:
head/japanese/groff/Makefile
head/japanese/groff/files/patch-contrib-mom-Makefile.sub
head/japanese/groff/files/patch-doc:Makefile.sub
head/japanese/groff/pkg-plist
Modified: head/japanese/groff/Makefile
==============================================================================
--- head/japanese/groff/Makefile Fri Aug 29 18:11:16 2014 (r366547)
+++ head/japanese/groff/Makefile Fri Aug 29 18:12:20 2014 (r366548)
@@ -4,7 +4,7 @@
PORTNAME= groff
PORTVERSION= 1.18.1
DISTVERSIONSUFFIX= .1
-PORTREVISION= 15
+PORTREVISION= 16
CATEGORIES= japanese print
MASTER_SITES= LOCAL/hrs
DISTFILES= ${DISTNAME:S,-,_,}.orig${EXTRACT_SUFX} ${TMAC_DISTNAME}.tar.gz
@@ -18,10 +18,10 @@ COMMENT= Japanese enhancement of GNU gro
LICENSE= GPLv2
-USE_GCC= any
+USES= iconv:wchar_t gmake makeinfo shebangfix
+SHEBANG_FILES= src/utils/afmtodit/afmtodit.pl \
+ contrib/mm/mmroff.pl
GNU_CONFIGURE= yes
-USES= iconv:wchar_t gmake makeinfo
-
CONFIGURE_ARGS= --enable-multibyte
CONFIGURE_ENV= INSTALL_MAN="${INSTALL_MAN}"
CPPFLAGS+= -I${LOCALBASE}/include
@@ -32,7 +32,9 @@ PLIST_SUB= GROFF_VERSION=${PORTVERSION}
SUB_FILES= mdoc.local
SUB_LIST= OSREL=${OSREL}
PORTDOCS= *
+PORTEXAMPLES= *
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}/${PORTVERSION}
INFO= groff
CONFLICTS= groff-[0-9]* mdocml-[0-9]*
@@ -43,8 +45,6 @@ TMACFILES= tmac.orig_me tmac.vgrind \
MDOCFILES= ja.eucJP doc-common doc-syms
post-patch:
- ${REINPLACE_CMD} -e 's|\(install_data\)|\1 install_doc|g;' \
- ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -E -e 's|^@setfilename +groff|&.info|g;' \
${WRKSRC}/doc/groff.texinfo
@@ -52,9 +52,9 @@ post-build:
${RM} -f ${WRKSRC}/doc/groff ${WRKSRC}/doc/groff-*
cd ${WRKSRC}/doc && makeinfo --no-split groff.texinfo
cd ${WRKSRC} && ${FIND} font -name DESC \
- | ${XARGS} ${REINPLACE_CMD} -E -e 's|pro +(gxditview)|pro ${LOCALBASE}/bin/\1|g;'
- cd ${WRKSRC} && ${FIND} font -name DESC \
- | ${XARGS} ${REINPLACE_CMD} -E -e 's|pro +([^/].*)|pro ${PREFIX}/bin/\1|g;'
+ | ${XARGS} ${REINPLACE_CMD} -E \
+ -e 's|pro +(gxditview)|pro ${LOCALBASE}/bin/\1|g;' \
+ -e 's|pro +([^/].*)|pro ${PREFIX}/bin/\1|g;'
post-install:
cd ${WRKDIR}/${TMAC_DISTNAME} && ${INSTALL_DATA} \
Added: head/japanese/groff/files/patch-Makefile.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/groff/files/patch-Makefile.in Fri Aug 29 18:12:20 2014 (r366548)
@@ -0,0 +1,24 @@
+--- Makefile.in.orig 2014-08-30 02:06:03.000000000 +0900
++++ Makefile.in 2014-08-30 02:07:14.000000000 +0900
+@@ -102,10 +102,10 @@
+ infodir=@infodir@
+
+ # `docdir' says where to install documentation files.
+-docdir=$(datadir)/doc/groff/$(version)$(revision)
++docdir=$(prefix)/share/doc/groff/$(version)$(revision)
+
+ # `exampledir' says where to install example files.
+-exampledir=$(docdir)/examples
++exampledir=$(prefix)/share/examples/groff/$(version)$(revision)
+
+ # `htmldocdir' says where to install documentation in HTML format.
+ htmldocdir=$(docdir)/html
+@@ -482,7 +482,7 @@
+ DISTDIRS=\
+ $(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDEVDIRS) \
+ $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS) $(NOMAKEDIRS)
+-TARGETS=all install install_bin install_data clean distclean mostlyclean \
++TARGETS=all install install_bin install_doc clean distclean mostlyclean \
+ realclean extraclean distfiles TAGS depend uninstall_sub
+
+ # This ENVSETUP gork is required by the DJGPP build on Windows 9X,
Added: head/japanese/groff/files/patch-contrib-eqn2graph-eqn2graph.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/groff/files/patch-contrib-eqn2graph-eqn2graph.sh Fri Aug 29 18:12:20 2014 (r366548)
@@ -0,0 +1,8 @@
+--- contrib/eqn2graph/eqn2graph.sh.orig 2014-08-30 03:07:55.000000000 +0900
++++ contrib/eqn2graph/eqn2graph.sh 2014-08-30 03:08:01.000000000 +0900
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # eqn2graph -- compile EQN equation descriptions to bitmap images
+ #
Modified: head/japanese/groff/files/patch-contrib-mom-Makefile.sub
==============================================================================
--- head/japanese/groff/files/patch-contrib-mom-Makefile.sub Fri Aug 29 18:11:16 2014 (r366547)
+++ head/japanese/groff/files/patch-contrib-mom-Makefile.sub Fri Aug 29 18:12:20 2014 (r366548)
@@ -1,5 +1,5 @@
--- contrib/mom/Makefile.sub.orig 2002-07-29 14:22:05.000000000 +0900
-+++ contrib/mom/Makefile.sub 2014-02-07 14:11:58.000000000 +0900
++++ contrib/mom/Makefile.sub 2014-08-30 02:23:07.000000000 +0900
@@ -90,26 +90,27 @@
test -d examples || $(mkinstalldirs) examples
test -f penguin.ps || cp $(srcdir)/examples/penguin.ps .
@@ -31,13 +31,13 @@
- rm -f $(exampledir)/$$f; \
- $(INSTALL_DATA) $(srcdir)/$$f $(docdir)/$$f; \
+ rm -f $(DESTDIR)$(exampledir)/$$f; \
-+ $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(docdir)/$$f; \
++ $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(exampledir)/$$(f#examples/); \
done
for f in $(PROCESSEDEXAMPLEFILES); do \
- rm -f $(exampledir)/$$f; \
- $(INSTALL_DATA) $$f $(docdir)/$$f; \
+ rm -f $(DESTDIR)$(exampledir)/$$f; \
-+ $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \
++ $(INSTALL_DATA) $$f $(DESTDIR)$(exampledir)/$$(f#examples/); \
done
uninstall_sub:
Added: head/japanese/groff/files/patch-contrib-pic2graph-pic2graph.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/groff/files/patch-contrib-pic2graph-pic2graph.sh Fri Aug 29 18:12:20 2014 (r366548)
@@ -0,0 +1,8 @@
+--- contrib/pic2graph/pic2graph.sh.orig 2014-08-30 03:06:55.000000000 +0900
++++ contrib/pic2graph/pic2graph.sh 2014-08-30 03:07:01.000000000 +0900
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # pic2graph -- compile PIC image descriptions to bitmap images
+ #
Added: head/japanese/groff/files/patch-doc-groff.texinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/japanese/groff/files/patch-doc-groff.texinfo Fri Aug 29 18:12:20 2014 (r366548)
@@ -0,0 +1,11 @@
+--- doc/groff.texinfo.orig 2014-08-30 02:39:34.000000000 +0900
++++ doc/groff.texinfo 2014-08-30 02:40:07.000000000 +0900
+@@ -10204,7 +10204,7 @@
+ affected glyphs.
+ @endDefesc
+
+- at Defesc {\\z, , g, , }
++ at Defesc {\\z, , g, }
+ @cindex zero-width printing (@code{\z}, @code{\Z})
+ @cindex printing, zero-width (@code{\z}, @code{\Z})
+ Print glyph @var{g} with zero width, i.e., without spacing. Use
Modified: head/japanese/groff/files/patch-doc:Makefile.sub
==============================================================================
--- head/japanese/groff/files/patch-doc:Makefile.sub Fri Aug 29 18:11:16 2014 (r366547)
+++ head/japanese/groff/files/patch-doc:Makefile.sub Fri Aug 29 18:12:20 2014 (r366548)
@@ -1,5 +1,5 @@
--- doc/Makefile.sub.orig 2002-07-26 22:48:54.000000000 +0900
-+++ doc/Makefile.sub 2014-02-07 13:42:25.000000000 +0900
++++ doc/Makefile.sub 2014-08-30 02:28:42.000000000 +0900
@@ -110,7 +110,7 @@
$(GROFF) -Tps -ms -mwww >$@
@@ -9,7 +9,7 @@
$(PROCESSEDEXAMPLEFILES) $(make_html)
html: $(HTMLDOCFILES) $(HTMLEXAMPLEFILES)
-@@ -133,35 +133,25 @@
+@@ -133,54 +133,44 @@
distfiles: groff gnu.eps gnu.png
@@ -56,3 +56,34 @@
done
install_html: $(HTMLDOCFILES) $(HTMLEXAMPLEFILES)
+- -test -d $(htmldocdir) || $(mkinstalldirs) $(htmldocdir)
++ -test -d $(DESTDIR)$(htmldocdir) || $(mkinstalldirs) $(DESTDIR)$(htmldocdir)
+ for f in $(HTMLDOCFILES); do \
+- rm -f $(htmldocdir)/$$f; \
+- $(INSTALL_DATA) $$f $(htmldocdir)/$$f; \
++ rm -f $(DESTDIR)$(htmldocdir)/$$f; \
++ $(INSTALL_DATA) $$f $(DESTDIR)$(htmldocdir)/$$f; \
+ done
+- -test -d $(htmldocimagedir) || $(mkinstalldirs) $(htmldocimagedir)
+- rm -f $(htmldocimagedir)/$(HTMLDOCIMAGEFILES)
+- $(INSTALL_DATA) $(imagedir)/$(HTMLDOCIMAGEFILES) $(htmldocimagedir)
+- -test -d $(exampledir) || $(mkinstalldirs) $(exampledir)
++ -test -d $(DESTDIR)$(htmldocimagedir) || $(mkinstalldirs) $(DESTDIR)$(htmldocimagedir)
++ rm -f $(DESTDIR)$(htmldocimagedir)/$(HTMLDOCIMAGEFILES)
++ $(INSTALL_DATA) $(imagedir)/$(HTMLDOCIMAGEFILES) $(DESTDIR)$(htmldocimagedir)
++ -test -d $(DESTDIR)$(exampledir) || $(mkinstalldirs) $(DESTDIR)$(exampledir)
+ for f in $(HTMLEXAMPLEFILES); do \
+- rm -f $(exampledir)/$$f; \
+- $(INSTALL_DATA) $$f $(exampledir)/$$f; \
++ rm -f $(DESTDIR)$(exampledir)/$$f; \
++ $(INSTALL_DATA) $$f $(DESTDIR)$(exampledir)/$$f; \
+ done
+- -test -d $(exampleimagedir) || $(mkinstalldirs) $(exampleimagedir)
+- rm -f $(exampleimagedir)/$(HTMLEXAMPLEIMAGEFILES)
+- $(INSTALL_DATA) $(imagedir)/$(HTMLEXAMPLEIMAGEFILES) $(exampleimagedir)
++ -test -d $(DESTDIR)$(exampleimagedir) || $(mkinstalldirs) $(DESTDIR)$(exampleimagedir)
++ rm -f $(DESTDIR)$(exampleimagedir)/$(HTMLEXAMPLEIMAGEFILES)
++ $(INSTALL_DATA) $(imagedir)/$(HTMLEXAMPLEIMAGEFILES) $(DESTDIR)$(exampleimagedir)
+
+ uninstall_sub:
+ -for f in groff groff-*; do \
Modified: head/japanese/groff/pkg-plist
==============================================================================
--- head/japanese/groff/pkg-plist Fri Aug 29 18:11:16 2014 (r366547)
+++ head/japanese/groff/pkg-plist Fri Aug 29 18:12:20 2014 (r366548)
@@ -458,3 +458,4 @@ man/man7/roff.7.gz
@dirrm %%DATADIR%%/site-tmac
@dirrm %%DATADIR%%
@dirrmtry share/doc/groff
+ at dirrmtry share/examples/groff
More information about the svn-ports-all
mailing list