Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2012 06:35:58 GMT
From:      Michael Grünewald <michael.grunewald@laposte.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173438: lang/tuareg-mode.el
Message-ID:  <201211070635.qA76Zw6Z039030@red.freebsd.org>
Resent-Message-ID: <201211070640.qA76e0Jx011961@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173438
>Category:       ports
>Synopsis:       lang/tuareg-mode.el
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 07 06:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Michael Grünewald
>Release:        9
>Organization:
>Environment:
FreeBSD localhost 9.0-RELEASE FreeBSD 9.0-RELEASE #3: Sat Feb 18 17:33:06 CET 2012     root@localhost:/usr/obj/usr/src/sys/KERNEL  amd64

>Description:
- Update to tuareg-2.0.6
- Remove obsolete scripts directory

To apply the patch from within tuareg-mode.el, you probably have to --strip=2 it.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/tuareg-mode.el/Makefile b/tuareg-mode.el/Makefile
index 4df2fad..f7a1693 100644
--- a/tuareg-mode.el/Makefile
+++ b/tuareg-mode.el/Makefile
@@ -6,21 +6,21 @@
 #
 
 PORTNAME=	tuareg-mode
-PORTVERSION=	1.45.6
-PORTREVISION=	12
+PORTVERSION=	2.0.6
 PORTEPOCH=	1
 CATEGORIES=	lang elisp
-MASTER_SITES=	http://www-rocq.inria.fr/~acohen/tuareg/mode/
+MASTER_SITES=	http://forge.ocamlcore.org/frs/download.php/882/
 
 MAINTAINER=	michael.grunewald@laposte.net
 COMMENT=	Emacs major mode for editing Caml code
 
 USE_EMACS=	yes
-USE_BZIP2=	yes
 
-DOC_FILES=	README HISTORY append-tuareg.el custom-tuareg.el
+WRKSRC=		work/tuareg-${PORTVERSION}
+
+DOC_FILES=	README
 DOC_DIR=	share/doc/tuareg-mode
-ELISP_FILES=	camldebug.el tuareg.el
+ELISP_FILES=	ocamldebug.el tuareg.el
 
 PLIST_FILES=	${ELISP_FILES:S/^/${EMACS_SITE_LISPDIR}\//} \
 		${ELISP_FILES:S/^/${EMACS_SITE_LISPDIR}\//S/$/c/} \
@@ -34,14 +34,9 @@ PLIST_DIRS=	${DOC_DIR}
 # Operations
 #
 
-# We do provide our own build and install procedures, instead of using
-# mainstream author's one.
-
 do-build:
-.for tuareg_mode_f in ${ELISP_FILES}
 	cd ${WRKSRC} &&\
-	  ${EMACS_CMD} -batch -q -l ${SCRIPTDIR}/batch-compile.el ${tuareg_mode_f}
-.endfor
+	${EMACS_CMD} -batch -q -f batch-byte-compile ${ELISP_FILES}
 
 do-install:
 .for tuareg_mode_f in ${ELISP_FILES}
diff --git a/tuareg-mode.el/distinfo b/tuareg-mode.el/distinfo
index 0603f95..79f0f84 100644
--- a/tuareg-mode.el/distinfo
+++ b/tuareg-mode.el/distinfo
@@ -1,2 +1,2 @@
-SHA256 (tuareg-mode-1.45.6.tar.bz2) = 2f22834259a6b0c065a6528a519eda3d0164a9bf2de8a5f7c041d6a91777261b
-SIZE (tuareg-mode-1.45.6.tar.bz2) = 46822
+SHA256 (tuareg-mode-2.0.6.tar.gz) = ea79ac24623b82ab8047345f8504abca557a537e639d16ce1ac3e5b27f5b1189
+SIZE (tuareg-mode-2.0.6.tar.gz) = 54916
diff --git a/tuareg-mode.el/files/patch-tuareg.el b/tuareg-mode.el/files/patch-tuareg.el
deleted file mode 100644
index fd0e736..0000000
--- a/tuareg-mode.el/files/patch-tuareg.el
+++ /dev/null
@@ -1,39 +0,0 @@
-
-$FreeBSD: ports/lang/tuareg-mode.el/files/patch-tuareg.el,v 1.1 2012/08/13 01:41:10 ashish Exp $
-
---- tuareg.el.orig
-+++ tuareg.el
-@@ -1245,8 +1245,7 @@
- possible."
-  (if (eq major-mode 'tuareg-mode)
-      (let ((beg nil) (end nil))
--       (save-excursion
--	 (set-buffer compilation-last-buffer)
-+       (with-current-buffer compilation-last-buffer
- 	 (save-excursion
- 	   (goto-char (window-point (get-buffer-window (current-buffer) t)))
- 	   (if (looking-at tuareg-error-chars-regexp)
-@@ -1438,11 +1437,11 @@
- (defun tuareg-find-match ()
-   (tuareg-find-kwop tuareg-find-kwop-regexp))
- 
--(defconst tuareg-find-,-match-regexp
-+(defconst tuareg-find-comma-match-regexp
-   (tuareg-make-find-kwop-regexp
-    "\\<\\(and\\|match\\|begin\\|else\\|exception\\|then\\|try\\|with\\|or\\|fun\\|function\\|let\\|do\\)\\>\\|->\\|[[{(]"))
--(defun tuareg-find-,-match ()
--  (tuareg-find-kwop tuareg-find-,-match-regexp))
-+(defun tuareg-find-comma-match ()
-+  (tuareg-find-kwop tuareg-find-comma-match-regexp))
- 
- (defconst tuareg-find-with-match-regexp
-   (tuareg-make-find-kwop-regexp
-@@ -1922,7 +1921,7 @@
- 		  ((string= kwop ",")
- 		   (if (looking-at ",[ \t]*\\((\\*\\|$\\)")
- 		       (progn
--			 (setq kwop (tuareg-find-,-match))
-+			 (setq kwop (tuareg-find-comma-match))
- 			 (if (or (looking-at "[[{(]\\|\\.<")
- 				 (and (looking-at "[<|]")
- 				      (char-equal ?\[ (preceding-char))
diff --git a/tuareg-mode.el/pkg-descr b/tuareg-mode.el/pkg-descr
index 3906646..70b595e 100644
--- a/tuareg-mode.el/pkg-descr
+++ b/tuareg-mode.el/pkg-descr
@@ -1,12 +1,12 @@
 From the web site:
 
   Tuareg is a Caml mode for GNU Emacs and XEmacs. It handles automatic
-  indentation of Objective Caml and Camllight codes. Key parts of the
+  indentation of OCaml and Camllight codes. Key parts of the
   code are hilighted using Font-Lock. Support to run an interactive
   Caml toplevel and debbuger is provided.
 
   This mode attempts to give better results than the one provided in
-  the standard distribution OCaml 3.x. Indentation rules are slightly
+  the standard distribution of OCaml. Indentation rules are slightly
   different but closer to classical functional languages.
 
   There is no relation with the Tuareg People, except their reputation
@@ -14,4 +14,4 @@ From the web site:
 
 Documentation is installed into share/doc/tuareg-mode
 
-WWW: http://www-rocq.inria.fr/~acohen/tuareg/
+WWW: http://tuareg.forge.ocamlcore.org/
diff --git a/tuareg-mode.el/scripts/batch-compile.el b/tuareg-mode.el/scripts/batch-compile.el
deleted file mode 100644
index 33ca1ba..0000000
--- a/tuareg-mode.el/scripts/batch-compile.el
+++ /dev/null
@@ -1,10 +0,0 @@
-(setq load-path (cons "." load-path))
-(batch-byte-compile)
-END-of-tuareg-mode.el/scripts/batch-compile.el
-echo x - tuareg-mode.el/distinfo
-sed 's/^X//' >tuareg-mode.el/distinfo << 'END-of-tuareg-mode.el/distinfo'
-SHA256 (tuareg-mode-1.45.6.tar.bz2) =3D 2f22834259a6b0c065a6528a519eda3d01=
-64a9bf2de8a5f7c041d6a91777261b
-SIZE (tuareg-mode-1.45.6.tar.bz2) =3D 46822
-END-of-tuareg-mode.el/distinfo
-exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211070635.qA76Zw6Z039030>