1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Lev A. Serebryakov 2014-05-18 20:07:43 +00:00
parent 5ef11b8b8f
commit 0178d30e00
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354465
7 changed files with 70 additions and 40 deletions

View File

@ -10,31 +10,17 @@ DISTNAME= ${PORTNAME}
MAINTAINER= lev@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>

View File

@ -0,0 +1,29 @@
--- 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 >$@
../src/op.h:
- cd ../src; make op.h
+ cd ../src; $(MAKE) op.h
# can't use echo here as BSD and SYSV versions treat backslashes differently.
Standard.tex: ../lib/Standard.hop h2l.awk
@@ -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:

View File

@ -1,19 +0,0 @@
--- doc/Makefile.in.orig Sat Apr 17 04:14:06 1999
+++ doc/Makefile.in Tue Sep 25 00:12:51 2001
@@ -58,7 +58,7 @@
sed -n 's/^#define[ ][ ]*\(M[IA][NX]PREC\)[ ][ ]*\([0-9]*\).*/\\newcommand{\\\1}{\2}/p' ../src/op.h >$@
../src/op.h:
- cd ../src; make op.h
+ cd ../src; $(MAKE) op.h
# 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)
# cp $(src_srcs) $(srcdir)

View File

@ -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:

View File

@ -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 >$@

View File

@ -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