aboutsummaryrefslogtreecommitdiff
path: root/devel/menhir
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2009-02-25 16:58:25 +0000
committerRenato Botelho <garga@FreeBSD.org>2009-02-25 16:58:25 +0000
commit2666b54c71ff283304d29f6691f8c8af8e5240ef (patch)
tree307d9c4c433fa1ea0300b512f1367df3c89e5147 /devel/menhir
parentcfe85bf93d9067dc00ab795b9a8948a897940642 (diff)
downloadports-2666b54c71ff283304d29f6691f8c8af8e5240ef.tar.gz
ports-2666b54c71ff283304d29f6691f8c8af8e5240ef.zip
Notes
Diffstat (limited to 'devel/menhir')
-rw-r--r--devel/menhir/Makefile4
-rw-r--r--devel/menhir/distinfo6
-rw-r--r--devel/menhir/files/patch-Makefile21
-rw-r--r--devel/menhir/pkg-plist4
4 files changed, 23 insertions, 12 deletions
diff --git a/devel/menhir/Makefile b/devel/menhir/Makefile
index 884b10abe69a..7bd3bade1bfe 100644
--- a/devel/menhir/Makefile
+++ b/devel/menhir/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= menhir
-PORTVERSION= 20071212
+PORTVERSION= 20080912
CATEGORIES= devel
MASTER_SITES= http://cristal.inria.fr/~fpottier/menhir/
@@ -16,6 +16,8 @@ COMMENT= LR(1) parser generator for OCaml
USE_GMAKE= yes
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
+USE_OCAMLFIND_PLIST= yes
+OCAML_PKGDIRS= menhirLib
INSTALL_TARGET= install
MAKE_ENV+= mandir="${MANPREFIX}/man/man1"
diff --git a/devel/menhir/distinfo b/devel/menhir/distinfo
index a9506a732e0b..c6c7f34bef7a 100644
--- a/devel/menhir/distinfo
+++ b/devel/menhir/distinfo
@@ -1,3 +1,3 @@
-MD5 (menhir-20071212.tar.gz) = 0bb0bdacbd0ca22fbb25ec07cb257bba
-SHA256 (menhir-20071212.tar.gz) = a74583040dea75c540710b9e64ece9f27487ac74a8a7becd212d154f0c7a1626
-SIZE (menhir-20071212.tar.gz) = 389945
+MD5 (menhir-20080912.tar.gz) = a333a3f4516683b685a84c3569fe3c0c
+SHA256 (menhir-20080912.tar.gz) = 079665a90e3f6fee66e93f17562d92a5aa2189c749a4fd24e46a0830ba430bee
+SIZE (menhir-20080912.tar.gz) = 377709
diff --git a/devel/menhir/files/patch-Makefile b/devel/menhir/files/patch-Makefile
index dc650926f3a9..b3625f7a9a9c 100644
--- a/devel/menhir/files/patch-Makefile
+++ b/devel/menhir/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig 2007-12-12 17:44:32.000000000 +0100
-+++ Makefile 2008-04-25 12:12:02.000000000 +0200
-@@ -20,10 +20,10 @@
+--- Makefile.orig 2008-09-12 13:58:19.000000000 +0200
++++ Makefile 2009-02-24 14:36:26.000000000 +0100
+@@ -28,10 +28,10 @@
$(error Please define PREFIX)
endif
@@ -14,17 +14,22 @@
+mandir ?= ${PREFIX}/share/man/man1
MANS := menhir.1
DOCS := manual.pdf demos
- LIBS := standard.mly
-@@ -52,13 +52,15 @@
- install:
+ MLYLIB := src/standard.mly
+@@ -64,11 +64,9 @@
+ install: src/menhir
mkdir -p $(bindir)
mkdir -p $(libdir)
- mkdir -p $(docdir)
mkdir -p $(mandir)
- install menhir $(bindir)
- install -m 644 $(LIBS) $(libdir)
+ install src/menhir $(bindir)
+ install -m 644 $(MLYLIB) $(libdir)
- cp -r $(DOCS) $(docdir)
cp -r $(MANS) $(mandir)
+ @cd src && if $(USE_OCAMLFIND) ; then \
+ echo Installing MenhirLib via ocamlfind. ; \
+@@ -78,6 +76,10 @@
+ install -m 644 $(MENHIRLIB) $(libdir) ; \
+ fi
+docinstall:
+ mkdir -p $(docdir)
diff --git a/devel/menhir/pkg-plist b/devel/menhir/pkg-plist
index 596e13614d58..3994370d7cd5 100644
--- a/devel/menhir/pkg-plist
+++ b/devel/menhir/pkg-plist
@@ -7,7 +7,11 @@ share/menhir/standard.mly
%%PORTDOCS%%%%DOCSDIR%%/demos/OMakefile.shared
%%PORTDOCS%%%%DOCSDIR%%/demos/calc/Makefile
%%PORTDOCS%%%%DOCSDIR%%/demos/calc/OMakefile
+%%PORTDOCS%%%%DOCSDIR%%/demos/calc/OMakefile.omc
%%PORTDOCS%%%%DOCSDIR%%/demos/calc/OMakeroot
+%%PORTDOCS%%%%DOCSDIR%%/demos/calc/OMakeroot.omc
+%%PORTDOCS%%%%DOCSDIR%%/demos/calc/.omakedb.lock
+%%PORTDOCS%%%%DOCSDIR%%/demos/calc/.omakedb
%%PORTDOCS%%%%DOCSDIR%%/demos/calc/README
%%PORTDOCS%%%%DOCSDIR%%/demos/calc/calc.ml
%%PORTDOCS%%%%DOCSDIR%%/demos/calc/lexer.mll