1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

devel/log4cpp: use patch files instead of sed to replace static content

This commit is contained in:
Steve Wills 2019-12-04 17:10:42 +00:00
parent b463b7c5ce
commit 0b87b93158
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519031
3 changed files with 58 additions and 9 deletions

View File

@ -18,7 +18,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
USES= compiler:c++11-lang gmake libtool pathfix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-html-docs
REINPLACE_ARGS= -i ""
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
@ -29,13 +28,6 @@ DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_CONFIGURE_ENABLE= doxygen
post-patch:
@${REINPLACE_CMD} -e \
's|^MAX_|#MAX_|' \
${WRKSRC}/doc/Doxyfile.in
@${REINPLACE_CMD} -e \
's|$$(prefix)/doc/.*|@docdir@| ; \
s|\([[:blank:]]\)\($$(man3dir)\)|\1$$(DESTDIR)\2| ; \
s|\([[:blank:]]\)\($$(docdir)\)|\1$$(DESTDIR)\2|' \
${WRKSRC}/doc/Makefile.in
@${RM} ${WRKSRC}/doc/Doxyfile.in.orig ${WRKSRC}/doc/Makefile.in.orig
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- doc/Doxyfile.in.orig 2017-07-13 05:39:11 UTC
+++ doc/Doxyfile.in
@@ -62,6 +62,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-MAX_DOT_GRAPH_WIDTH = 1024
-MAX_DOT_GRAPH_HEIGHT = 1024
+#MAX_DOT_GRAPH_WIDTH = 1024
+#MAX_DOT_GRAPH_HEIGHT = 1024
GENERATE_LEGEND = YES

View File

@ -0,0 +1,46 @@
--- doc/Makefile.in.orig 2019-12-04 16:28:30 UTC
+++ doc/Makefile.in
@@ -198,7 +198,7 @@ build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
-docdir = $(prefix)/doc/@PACKAGE_TARNAME@-@PACKAGE_VERSION@
+docdir = @docdir@
dvidir = @dvidir@
enable_dot = @enable_dot@
enable_html_docs = @enable_html_docs@
@@ -608,23 +608,23 @@ pdf: @PACKAGE_TARNAME@.pdf
ln -s ./latex/refman.pdf @PACKAGE_TARNAME@.pdf
install-data-local:
- $(mkinstalldirs) $(man3dir)
+ $(mkinstalldirs) $(DESTDIR)$(man3dir)
@for i in ./man/man3/log4cpp.3 ./man/man3/log4cpp_*.3; do \
inst=`basename $$i | sed 's/_/::/g'`; \
echo "$(INSTALL_DATA) $$i$(man3dir)/$$inst"; \
- $(INSTALL_DATA) $$i $(man3dir)/$$inst; \
+ $(INSTALL_DATA) $$i $(DESTDIR)$(man3dir)/$$inst; \
done
- $(mkinstalldirs) $(docdir)
- cp -r html/. $(docdir)
- $(RM) -r -f $(docdir)/CVS \
- $(docdir)/Makefile.am \
- $(docdir)/Makefile.in \
- $(docdir)/Makefile
+ $(mkinstalldirs) $(DESTDIR)$(docdir)
+ cp -r html/. $(DESTDIR)$(docdir)
+ $(RM) -r -f $(DESTDIR)$(docdir)/CVS \
+ $(DESTDIR)$(docdir)/Makefile.am \
+ $(DESTDIR)$(docdir)/Makefile.in \
+ $(DESTDIR)$(docdir)/Makefile
uninstall-local:
- $(RM) $(man3dir)/log4cpp.3
- $(RM) $(man3dir)/log4cpp::*.3
- $(RM) -r -f $(docdir)
+ $(RM) $(DESTDIR)$(man3dir)/log4cpp.3
+ $(RM) $(DESTDIR)$(man3dir)/log4cpp::*.3
+ $(RM) -r -f $(DESTDIR)$(docdir)
clean-local:
$(RM) -r latex