diff options
author | asau <asau@pkgsrc.org> | 2009-12-12 21:12:43 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2009-12-12 21:12:43 +0000 |
commit | 73eee801061c5fc921eeab7b185904baffd4a1ff (patch) | |
tree | a7967d425de457e45cb38ee07d0c7fa390f1ad87 /lang/coq | |
parent | 719ebf7822956656cbd7265bc193e1dd75dd63cf (diff) | |
download | pkgsrc-73eee801061c5fc921eeab7b185904baffd4a1ff.tar.gz |
Support staged installation.
Diffstat (limited to 'lang/coq')
-rw-r--r-- | lang/coq/Makefile | 4 | ||||
-rw-r--r-- | lang/coq/distinfo | 3 | ||||
-rw-r--r-- | lang/coq/patches/patch-ad | 177 |
3 files changed, 182 insertions, 2 deletions
diff --git a/lang/coq/Makefile b/lang/coq/Makefile index 14414ea6364..749f3d219e2 100644 --- a/lang/coq/Makefile +++ b/lang/coq/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2009/09/05 20:44:57 tonio Exp $ +# $NetBSD: Makefile,v 1.24 2009/12/12 21:12:43 asau Exp $ # DISTNAME= coq-8.2pl1 @@ -9,6 +9,8 @@ MAINTAINER= richards+netbsd@CS.Princeton.EDU HOMEPAGE= http://coq.inria.fr/ COMMENT= Theorem prover which extracts programs from proofs +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= gmake HAS_CONFIGURE= YES CONFIGURE_ARGS+= -prefix ${PREFIX} diff --git a/lang/coq/distinfo b/lang/coq/distinfo index 7934cf35172..6084e1ce579 100644 --- a/lang/coq/distinfo +++ b/lang/coq/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2009/09/05 20:44:58 tonio Exp $ +$NetBSD: distinfo,v 1.10 2009/12/12 21:12:43 asau Exp $ SHA1 (coq-8.2pl1.tar.gz) = 4aed3302adc2edbaa5d97984512c1c13014bd649 RMD160 (coq-8.2pl1.tar.gz) = dd5758a94bb3de49967cec76baa33eb5169659ce @@ -6,3 +6,4 @@ Size (coq-8.2pl1.tar.gz) = 3600620 bytes SHA1 (patch-aa) = 2725d9fb667f6a66bf9cb6dd0bdcdbd94d8c1fd6 SHA1 (patch-ab) = 6573a11efab6ef7c026e8fd39b23e8596dee5a61 SHA1 (patch-ac) = 30780c9f96ad16c814a5edc50bd1edbd030aa9b5 +SHA1 (patch-ad) = 9bb28ca4eeb77d53d3665fbc4575bea1f57c738c diff --git a/lang/coq/patches/patch-ad b/lang/coq/patches/patch-ad new file mode 100644 index 00000000000..838cc986b91 --- /dev/null +++ b/lang/coq/patches/patch-ad @@ -0,0 +1,177 @@ +$NetBSD: patch-ad,v 1.1 2009/12/12 21:12:43 asau Exp $ + +--- Makefile.build.orig 2009-06-07 01:43:23.000000000 +0400 ++++ Makefile.build 2009-12-12 23:34:42.000000000 +0300 +@@ -435,22 +435,22 @@ + install-ide-no: + + install-ide-byte: +- $(MKDIR) $(FULLBINDIR) +- $(INSTALLBIN) $(COQIDEBYTE) $(FULLBINDIR) +- cd $(FULLBINDIR); ln -sf coqide.byte$(EXE) coqide$(EXE) ++ $(MKDIR) $(DESTDIR)$(FULLBINDIR) ++ $(INSTALLBIN) $(COQIDEBYTE) $(DESTDIR)$(FULLBINDIR) ++ cd $(DESTDIR)$(FULLBINDIR); ln -sf coqide.byte$(EXE) coqide$(EXE) + + install-ide-opt: +- $(MKDIR) $(FULLBINDIR) +- $(INSTALLBIN) $(COQIDEBYTE) $(COQIDEOPT) $(FULLBINDIR) +- cd $(FULLBINDIR); ln -sf coqide.opt$(EXE) coqide$(EXE) ++ $(MKDIR) $(DESTDIR)$(FULLBINDIR) ++ $(INSTALLBIN) $(COQIDEBYTE) $(COQIDEOPT) $(DESTDIR)$(FULLBINDIR) ++ cd $(DESTDIR)$(FULLBINDIR); ln -sf coqide.opt$(EXE) coqide$(EXE) + + install-ide-files: +- $(MKDIR) $(FULLIDELIB) +- $(INSTALLLIB) $(IDEFILES) $(FULLIDELIB) ++ $(MKDIR) $(DESTDIR)$(FULLIDELIB) ++ $(INSTALLLIB) $(IDEFILES) $(DESTDIR)$(FULLIDELIB) + + install-ide-info: +- $(MKDIR) $(FULLIDELIB) +- $(INSTALLLIB) ide/FAQ $(FULLIDELIB) ++ $(MKDIR) $(DESTDIR)$(FULLIDELIB) ++ $(INSTALLLIB) ide/FAQ $(DESTDIR)$(FULLIDELIB) + + ########################################################################### + # Pcoq: special binaries for debugging (coq-interface, coq-parser) +@@ -486,16 +486,16 @@ + install-pcoq:: install-pcoq-binaries install-pcoq-files install-pcoq-manpages + + install-pcoq-binaries:: +- $(MKDIR) $(FULLBINDIR) +- $(INSTALLBIN) $(COQINTERFACE) $(FULLBINDIR) ++ $(MKDIR) $(DESTDIR)$(FULLBINDIR) ++ $(INSTALLBIN) $(COQINTERFACE) $(DESTDIR)$(FULLBINDIR) + + install-pcoq-files:: +- $(MKDIR) $(FULLCOQLIB)/contrib/interface +- $(INSTALLLIB) $(INTERFACERC) $(FULLCOQLIB)/contrib/interface ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/contrib/interface ++ $(INSTALLLIB) $(INTERFACERC) $(DESTDIR)$(FULLCOQLIB)/contrib/interface + + install-pcoq-manpages: +- $(MKDIR) $(FULLMANDIR)/man1 +- $(INSTALLLIB) $(PCOQMANPAGES) $(FULLMANDIR)/man1 ++ $(MKDIR) $(DESTDIR)$(FULLMANDIR)/man1 ++ $(INSTALLLIB) $(PCOQMANPAGES) $(DESTDIR)$(FULLMANDIR)/man1 + + ########################################################################### + # tests +@@ -682,77 +682,77 @@ + install-binaries:: install-$(BEST) install-tools + + install-byte:: +- $(MKDIR) $(FULLBINDIR) +- $(INSTALLBIN) $(COQMKTOP) $(COQC) $(COQTOPBYTE) $(CHICKEN) $(FULLBINDIR) +- cd $(FULLBINDIR); ln -sf coqtop.byte$(EXE) coqtop$(EXE); ln -sf coqchk.byte$(EXE) coqchk$(EXE) ++ $(MKDIR) $(DESTDIR)$(FULLBINDIR) ++ $(INSTALLBIN) $(COQMKTOP) $(COQC) $(COQTOPBYTE) $(CHICKEN) $(DESTDIR)$(FULLBINDIR) ++ cd $(DESTDIR)$(FULLBINDIR); ln -sf coqtop.byte$(EXE) coqtop$(EXE); ln -sf coqchk.byte$(EXE) coqchk$(EXE) + + install-opt:: +- $(MKDIR) $(FULLBINDIR) +- $(INSTALLBIN) $(COQMKTOP) $(COQC) $(COQTOPBYTE) $(COQTOPOPT) $(CHICKEN) $(CHICKENOPT) $(FULLBINDIR) +- cd $(FULLBINDIR); ln -sf coqtop.opt$(EXE) coqtop$(EXE); ln -sf coqchk.opt$(EXE) coqchk$(EXE) ++ $(MKDIR) $(DESTDIR)$(FULLBINDIR) ++ $(INSTALLBIN) $(COQMKTOP) $(COQC) $(COQTOPBYTE) $(COQTOPOPT) $(CHICKEN) $(CHICKENOPT) $(DESTDIR)$(FULLBINDIR) ++ cd $(DESTDIR)$(FULLBINDIR); ln -sf coqtop.opt$(EXE) coqtop$(EXE); ln -sf coqchk.opt$(EXE) coqchk$(EXE) + + install-tools:: +- $(MKDIR) $(FULLBINDIR) ++ $(MKDIR) $(DESTDIR)$(FULLBINDIR) + # recopie des fichiers de style pour coqide +- $(MKDIR) $(FULLCOQLIB)/tools/coqdoc +- touch $(FULLCOQLIB)/tools/coqdoc/coqdoc.sty $(FULLCOQLIB)/tools/coqdoc/coqdoc.css # to have the mode according to umask (bug #1715) +- $(INSTALLLIB) tools/coqdoc/coqdoc.css tools/coqdoc/coqdoc.sty $(FULLCOQLIB)/tools/coqdoc +- $(INSTALLBIN) $(TOOLS) $(FULLBINDIR) ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/tools/coqdoc ++ touch $(DESTDIR)$(FULLCOQLIB)/tools/coqdoc/coqdoc.sty $(DESTDIR)$(FULLCOQLIB)/tools/coqdoc/coqdoc.css # to have the mode according to umask (bug #1715) ++ $(INSTALLLIB) tools/coqdoc/coqdoc.css tools/coqdoc/coqdoc.sty $(DESTDIR)$(FULLCOQLIB)/tools/coqdoc ++ $(INSTALLBIN) $(TOOLS) $(DESTDIR)$(FULLBINDIR) + + install-library: +- $(MKDIR) $(FULLCOQLIB) ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB) + for f in $(LIBFILES); do \ +- $(MKDIR) $(FULLCOQLIB)/`dirname $$f`; \ +- $(INSTALLLIB) $$f $(FULLCOQLIB)/`dirname $$f`; \ ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/`dirname $$f`; \ ++ $(INSTALLLIB) $$f $(DESTDIR)$(FULLCOQLIB)/`dirname $$f`; \ + done +- $(MKDIR) $(FULLCOQLIB)/states +- $(INSTALLLIB) states/*.coq $(FULLCOQLIB)/states +- $(MKDIR) $(FULLCOQLIB)/user-contrib +- $(INSTALLLIB) $(DLLCOQRUN) $(FULLCOQLIB) +- $(INSTALLSH) $(FULLCOQLIB) $(CONFIG) $(LINKCMO) $(GRAMMARCMA) +- $(INSTALLSH) $(FULLCOQLIB) $(OBJSCMO:.cmo=.cmi) ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/states ++ $(INSTALLLIB) states/*.coq $(DESTDIR)$(FULLCOQLIB)/states ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/user-contrib ++ $(INSTALLLIB) $(DLLCOQRUN) $(DESTDIR)$(FULLCOQLIB) ++ $(INSTALLSH) $(DESTDIR)$(FULLCOQLIB) $(CONFIG) $(LINKCMO) $(GRAMMARCMA) ++ $(INSTALLSH) $(DESTDIR)$(FULLCOQLIB) $(OBJSCMO:.cmo=.cmi) + ifeq ($(BEST),opt) +- $(INSTALLLIB) $(LIBCOQRUN) $(FULLCOQLIB) +- $(INSTALLSH) $(FULLCOQLIB) $(CONFIG:.cmo=.cmx) $(CONFIG:.cmo=.o) $(LINKCMO:.cma=.cmxa) $(LINKCMO:.cma=.a) ++ $(INSTALLLIB) $(LIBCOQRUN) $(DESTDIR)$(FULLCOQLIB) ++ $(INSTALLSH) $(DESTDIR)$(FULLCOQLIB) $(CONFIG:.cmo=.cmx) $(CONFIG:.cmo=.o) $(LINKCMO:.cma=.cmxa) $(LINKCMO:.cma=.a) + endif + # csdpcert is not meant to be directly called by the user; we install + # it with libraries +- -$(MKDIR) $(FULLCOQLIB)/contrib/micromega +- $(INSTALLBIN) $(CSDPCERT) $(FULLCOQLIB)/contrib/micromega +- -$(INSTALLLIB) revision $(FULLCOQLIB) ++ -$(MKDIR) $(DESTDIR)$(FULLCOQLIB)/contrib/micromega ++ $(INSTALLBIN) $(CSDPCERT) $(DESTDIR)$(FULLCOQLIB)/contrib/micromega ++ -$(INSTALLLIB) revision $(DESTDIR)$(FULLCOQLIB) + + install-library-light: +- $(MKDIR) $(FULLCOQLIB) ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB) + for f in $(LIBFILESLIGHT); do \ +- $(MKDIR) $(FULLCOQLIB)/`dirname $$f`; \ +- $(INSTALLLIB) $$f $(FULLCOQLIB)/`dirname $$f`; \ ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/`dirname $$f`; \ ++ $(INSTALLLIB) $$f $(DESTDIR)$(FULLCOQLIB)/`dirname $$f`; \ + done +- $(MKDIR) $(FULLCOQLIB)/states +- $(INSTALLLIB) states/*.coq $(FULLCOQLIB)/states +- -$(INSTALLLIB) revision $(FULLCOQLIB) ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/states ++ $(INSTALLLIB) states/*.coq $(DESTDIR)$(FULLCOQLIB)/states ++ -$(INSTALLLIB) revision $(DESTDIR)$(FULLCOQLIB) + + install-allreals:: + for f in $(ALLREALS); do \ +- $(MKDIR) $(FULLCOQLIB)/`dirname $$f`; \ +- $(INSTALLLIB) $$f $(FULLCOQLIB)/`dirname $$f`; \ ++ $(MKDIR) $(DESTDIR)$(FULLCOQLIB)/`dirname $$f`; \ ++ $(INSTALLLIB) $$f $(DESTDIR)$(FULLCOQLIB)/`dirname $$f`; \ + done + + install-coq-info: install-coq-manpages install-emacs install-latex + + install-coq-manpages: +- $(MKDIR) $(FULLMANDIR)/man1 +- $(INSTALLLIB) $(MANPAGES) $(FULLMANDIR)/man1 ++ $(MKDIR) $(DESTDIR)$(FULLMANDIR)/man1 ++ $(INSTALLLIB) $(MANPAGES) $(DESTDIR)$(FULLMANDIR)/man1 + + install-emacs: +- $(MKDIR) $(FULLEMACSLIB) +- $(INSTALLLIB) tools/coq.el tools/coq-inferior.el $(FULLEMACSLIB) ++ $(MKDIR) $(DESTDIR)$(FULLEMACSLIB) ++ $(INSTALLLIB) tools/coq.el tools/coq-inferior.el $(DESTDIR)$(FULLEMACSLIB) + + # command to update TeX' kpathsea database + #UPDATETEX = $(MKTEXLSR) /usr/share/texmf /var/spool/texmf $(BASETEXDIR) > /dev/null + + install-latex: +- $(MKDIR) $(FULLCOQDOCDIR) +- $(INSTALLLIB) tools/coqdoc/coqdoc.sty $(FULLCOQDOCDIR) ++ $(MKDIR) $(DESTDIR)$(FULLCOQDOCDIR) ++ $(INSTALLLIB) tools/coqdoc/coqdoc.sty $(DESTDIR)$(FULLCOQDOCDIR) + # -$(UPDATETEX) + + ########################################################################### |