svn commit: r354465 - in head/lang/hope: . files

Lev A. Serebryakov lev at FreeBSD.org
Sun May 18 20:07:44 UTC 2014


Author: lev
Date: Sun May 18 20:07:43 2014
New Revision: 354465
URL: http://svnweb.freebsd.org/changeset/ports/354465
QAT: https://qat.redports.org/buildarchive/r354465/

Log:
   STAGEfy

Added:
  head/lang/hope/files/patch-doc--Makefile.in
     - copied, changed from r354453, head/lang/hope/files/patch-doc:Makefile.in
  head/lang/hope/files/patch-lib--Makefile.in   (contents, props changed)
  head/lang/hope/files/patch-src--Makefile.in   (contents, props changed)
  head/lang/hope/files/patch-src--memory.c
     - copied unchanged from r354453, head/lang/hope/files/patch-src-memory.c
Deleted:
  head/lang/hope/files/patch-doc:Makefile.in
  head/lang/hope/files/patch-src-memory.c
Modified:
  head/lang/hope/Makefile
  head/lang/hope/pkg-plist

Modified: head/lang/hope/Makefile
==============================================================================
--- head/lang/hope/Makefile	Sun May 18 19:53:56 2014	(r354464)
+++ head/lang/hope/Makefile	Sun May 18 20:07:43 2014	(r354465)
@@ -10,31 +10,17 @@ DISTNAME=	${PORTNAME}
 MAINTAINER=	lev at FreeBSD.org
 COMMENT=	Hope is lazy interpreter for HOPE applicative language
 
-.if defined(WITH_DOCS)
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
 USE_TEX=	latex:build
 BUILD_DEPENDS+= latex2html:${PORTSDIR}/textproc/latex2html
 MAKE_ARGS+=	WITH_DOCS=yes
-.else
-NOPORTDOCS=	yes
 .endif
 
+USES=		gmake
 GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
-
-MAN1=		hope.1
-
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-pre-fetch:
-.if !defined(WITH_DOCS)
-	@${ECHO} ""
-	@${ECHO} "      If you want to build and install documentation"
-	@${ECHO} "      you should use WITH_DOCS build option"
-	@${ECHO} ""
-	@${ECHO} "      Documentation is not builded by default because"
-	@${ECHO} "      it needs latex and latex2html"
-	@${ECHO} ""
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Copied and modified: head/lang/hope/files/patch-doc--Makefile.in (from r354453, head/lang/hope/files/patch-doc:Makefile.in)
==============================================================================
--- head/lang/hope/files/patch-doc:Makefile.in	Sun May 18 19:19:26 2014	(r354453, copy source)
+++ head/lang/hope/files/patch-doc--Makefile.in	Sun May 18 20:07:43 2014	(r354465)
@@ -1,5 +1,5 @@
---- doc/Makefile.in.orig	Sat Apr 17 04:14:06 1999
-+++ doc/Makefile.in	Tue Sep 25 00:12:51 2001
+--- doc/Makefile.in.orig	2003-12-08 21:44:47.000000000 +0300
++++ doc/Makefile.in	2014-05-18 23:59:23.000000000 +0400
 @@ -58,7 +58,7 @@
  	sed -n 's/^#define[ 	][ 	]*\(M[IA][NX]PREC\)[ 	][ 	]*\([0-9]*\).*/\\newcommand{\\\1}{\2}/p' ../src/op.h >$@
  
@@ -9,11 +9,21 @@
  
  # can't use echo here as BSD and SYSV versions treat backslashes differently.
  Standard.tex: ../lib/Standard.hop h2l.awk
-@@ -83,6 +83,7 @@
- 	for file in $(docs); do gzip <$$file >$(docdir)/$$file.gz; done
- 	$(INSTALL) -d $(htmldir)
- 	for dir in $(dirs); do rm -rf $(htmldir)/$$dir; done
-+	for dir in $(dirs); do rm -rf $$dir/*.pl $$dir/WARNINGS; done
- 	cp -r $(dirs) $(htmldir)
+@@ -79,11 +79,12 @@
+ 	$(LATEX2HTML) -address '$(Ross)' examples.tex
+ 
+ install: all
+-	$(INSTALL) -d $(docdir)
+-	for file in $(docs); do gzip <$$file >$(docdir)/$$file.gz; done
+-	$(INSTALL) -d $(htmldir)
+-	for dir in $(dirs); do rm -rf $(htmldir)/$$dir; done
+-	cp -r $(dirs) $(htmldir)
++	$(INSTALL) -d $(DESTDIR)$(docdir)
++	for file in $(docs); do gzip <$$file >$(DESTDIR)$(docdir)/$$file.gz; done
++	$(INSTALL) -d $(DESTDIR)$(htmldir)
++	for dir in $(dirs); do rm -rf $(DESTDIR)$(htmldir)/$$dir; done
++	for dir in $(dirs); do rm -rf $(DESTDIR)$$dir/*.pl $(DESTDIR)$$dir/WARNINGS; done
++	cp -r $(dirs) $(DESTDIR)$(htmldir)
  	# cp $(src_srcs) $(srcdir)
  
+ clean:

Added: head/lang/hope/files/patch-lib--Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/hope/files/patch-lib--Makefile.in	Sun May 18 20:07:43 2014	(r354465)
@@ -0,0 +1,18 @@
+--- lib/Makefile.in.orig	1999-04-16 18:21:45.000000000 +0400
++++ lib/Makefile.in	2014-05-19 00:03:58.000000000 +0400
+@@ -14,11 +14,11 @@
+ all:
+ 
+ install:
+-	$(INSTALL) -d $(hopelib)
+-	for f in *.hop; do $(INSTALL_DATA) $$f $(hopelib); done
+-	$(INSTALL) -d $(newlib)
++	$(INSTALL) -d $(DESTDIR)$(hopelib)
++	for f in *.hop; do $(INSTALL_DATA) $$f $(DESTDIR)$(hopelib); done
++	$(INSTALL) -d $(DESTDIR)$(newlib)
+ 	sed -f list.sed Standard.hop >Standard-new.hop
+-	$(INSTALL_DATA) Standard-new.hop $(newlib)/Standard.hop
++	$(INSTALL_DATA) Standard-new.hop $(DESTDIR)$(newlib)/Standard.hop
+ 	rm -f Standard-new.hop
+ 
+ distclean clean clobber:

Added: head/lang/hope/files/patch-src--Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/hope/files/patch-src--Makefile.in	Sun May 18 20:07:43 2014	(r354465)
@@ -0,0 +1,15 @@
+--- src/Makefile.in.orig	2005-10-12 12:39:07.000000000 +0400
++++ src/Makefile.in	2014-05-19 00:04:47.000000000 +0400
+@@ -53,9 +53,9 @@
+ all: $(name) $(name).1
+ 
+ install: check $(name).1
+-	$(INSTALL) -d $(hopelib)
+-	$(INSTALL_PROGRAM) -s $(name) $(bindir)
+-	$(INSTALL_DATA) $(name).1 $(mandir)
++	$(INSTALL) -d $(DESTDIR)$(hopelib)
++	$(INSTALL_PROGRAM) -s $(name) $(DESTDIR)$(bindir)
++	$(INSTALL_DATA) $(name).1 $(DESTDIR)$(mandir)
+ 
+ $(name).1: $(name).1.in
+ 	sed -e 's:@hopelib@:$(hopelib):' -e 's:@fullpath@:$(bindir)/$(name):' $(name).1.in >$@

Copied: head/lang/hope/files/patch-src--memory.c (from r354453, head/lang/hope/files/patch-src-memory.c)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/hope/files/patch-src--memory.c	Sun May 18 20:07:43 2014	(r354465, copy of r354453, head/lang/hope/files/patch-src-memory.c)
@@ -0,0 +1,11 @@
+--- src/memory.c.orig	Sun Dec  7 18:01:46 2003
++++ src/memory.c	Sun Dec  7 18:01:50 2003
+@@ -22,6 +22,7 @@
+ {
+ 	if ((base_memory = (char *)malloc((size_t)MEMSIZE)) == NULL)
+ 		error(FATALERR, "can't allocate memory");
++	memset(base_memory, NULL, (size_t)MEMSIZE);
+ 	top_memory = base_memory + RoundDown(MEMSIZE);
+ 
+ 	lim_temp = top_string = base_memory;
+

Modified: head/lang/hope/pkg-plist
==============================================================================
--- head/lang/hope/pkg-plist	Sun May 18 19:53:56 2014	(r354464)
+++ head/lang/hope/pkg-plist	Sun May 18 20:07:43 2014	(r354465)
@@ -1,4 +1,5 @@
 bin/hope
+man/man1/hope.1.gz
 share/hope/lib.new/Standard.hop
 share/hope/lib/Standard.hop
 share/hope/lib/arith.hop


More information about the svn-ports-all mailing list