summaryrefslogtreecommitdiff
path: root/net/unison
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2017-11-14 13:03:35 +0000
committerjaapb <jaapb@pkgsrc.org>2017-11-14 13:03:35 +0000
commit959eeb954d04fdb6bd1adf831838d2f3d5863e9b (patch)
tree65f747be96cd8c46257a89e831adcb0d8e41b423 /net/unison
parentf6dd203db6bc4f0e6500f70dd389c7504eae909d (diff)
downloadpkgsrc-959eeb954d04fdb6bd1adf831838d2f3d5863e9b.tar.gz
Updated net/unison to latest version, 2.48.15.
I can't find a good changelog, but upstream changes seem to be fairly minor. A lot of local patches have been added to ensure compatibility with the latest version of OCaml and lablgtk, and I have cleaned up the package Makefile a little.
Diffstat (limited to 'net/unison')
-rw-r--r--net/unison/Makefile29
-rw-r--r--net/unison/distinfo18
-rw-r--r--net/unison/patches/patch-src_Makefile (renamed from net/unison/patches/patch-aa)12
-rw-r--r--net/unison/patches/patch-src_Makefile.OCaml (renamed from net/unison/patches/patch-Makefile.OCaml)6
-rw-r--r--net/unison/patches/patch-src_fs.ml14
-rw-r--r--net/unison/patches/patch-src_mkProjectInfo.ml14
-rw-r--r--net/unison/patches/patch-src_system_system_intf.ml14
-rw-r--r--net/unison/patches/patch-src_uigtk2.ml14
8 files changed, 91 insertions, 30 deletions
diff --git a/net/unison/Makefile b/net/unison/Makefile
index dce8225e162..9fcf7d8051b 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.111 2017/09/18 09:53:32 maya Exp $
+# $NetBSD: Makefile,v 1.112 2017/11/14 13:03:35 jaapb Exp $
-DISTNAME= unison-2.48.4
-PKGREVISION= 9
+DISTNAME= unison-2.48.15
CATEGORIES= net
-MASTER_SITES= http://www.seas.upenn.edu/~bcpierce/unison/download/releases/stable/
+MASTER_SITES= ${MASTER_SITE_GITHUB:=bcpierce00/}
MAINTAINER= tonio@NetBSD.org
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
@@ -22,15 +21,17 @@ BUILDLINK_ABI_DEPENDS.ocaml+= ocaml>=3.11.2
BUILDLINK_API_DEPENDS.ocaml-lablgtk+= ocaml-lablgtk>=2.16.0
# docs: unison-manual.pdf/html/ps/dvi
-WRKSRC= ${WRKDIR}/src
+#WRKSRC= ${WRKDIR}/src
USE_TOOLS+= gmake
-MAKE_FLAGS+= CFLAGS=""
+MAKE_FLAGS+= CFLAGS="" -C src
MAKE_ENV+= HOME=${WRKDIR:Q}
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH}=="arm") || (${MACHINE_ARCH} == "x86_64")
+.include "../../mk/ocaml.mk"
+
+.if (${OCAML_USE_OPT_COMPILER} == "true")
MAKE_FLAGS+= NATIVE=true
.else
MAKE_FLAGS+= NATIVE=false
@@ -48,13 +49,13 @@ INSTALLATION_DIRS= bin
INSTALLATION_DIRS+= share/doc/unison
post-install:
- ${INSTALL_MAN} ${WRKSRC}/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison
- ${INSTALL_MAN} ${WRKSRC}/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/src/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/src/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/src/COPYING ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/src/NEWS ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/src/README ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/src/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison
+ ${INSTALL_MAN} ${WRKSRC}/src/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/unison/distinfo b/net/unison/distinfo
index 71bb7a4d468..8332ec3ebcc 100644
--- a/net/unison/distinfo
+++ b/net/unison/distinfo
@@ -1,8 +1,12 @@
-$NetBSD: distinfo,v 1.27 2016/06/12 14:30:05 wiz Exp $
+$NetBSD: distinfo,v 1.28 2017/11/14 13:03:35 jaapb Exp $
-SHA1 (unison-2.48.4.tar.gz) = baeff0e3a942c710ce551cca118b891feca137c5
-RMD160 (unison-2.48.4.tar.gz) = d5a1d66caffc02832c446f375a16319779fc5e0b
-SHA512 (unison-2.48.4.tar.gz) = c8e7bd2b14edae31e7d08154cdc2dce8173546b6163b9e5f4f2b1c8255792a7645d8449da88d7acfcbf498746481d24d0a3936978969920530a15a16bcbc6024
-Size (unison-2.48.4.tar.gz) = 1200861 bytes
-SHA1 (patch-Makefile.OCaml) = 2c39a20eb731d3f787d5c938b539ceb3276d5d47
-SHA1 (patch-aa) = dd1a001fb7071cd9141615b42a692e6d1d812081
+SHA1 (unison-2.48.15.tar.gz) = 7a22715321fdd4808d12f9122df9314a45283a18
+RMD160 (unison-2.48.15.tar.gz) = aa98f4fb12e4363c8a51e1969fa829cab7e96869
+SHA512 (unison-2.48.15.tar.gz) = 2614b7291f9d9eb1cb5380560e4883849c6bba449d31e5bc704395291978d41e43208cfff701708a5ae9c9a6a220a8ceb06496fd1e2ab1915bf2f5c36349739f
+Size (unison-2.48.15.tar.gz) = 1912444 bytes
+SHA1 (patch-src_Makefile) = 19cf0b79995c7848bc02d220267be4f3a3e4b59b
+SHA1 (patch-src_Makefile.OCaml) = 3c2168ebffa1b5479577d64113cf5d8c6f9b906e
+SHA1 (patch-src_fs.ml) = 1d02f83d245466c0aad45a3261bba8149ed3db56
+SHA1 (patch-src_mkProjectInfo.ml) = a1908748dbe4c1db0e2b012e73fe46c6bca30348
+SHA1 (patch-src_system_system_intf.ml) = 89b8598b364bee489b356f9cb3cb297d981b526e
+SHA1 (patch-src_uigtk2.ml) = a9ef837e0289ba2d209a21df3102ed0267a52f9d
diff --git a/net/unison/patches/patch-aa b/net/unison/patches/patch-src_Makefile
index 8e6352fb7d9..81a3a7fc672 100644
--- a/net/unison/patches/patch-aa
+++ b/net/unison/patches/patch-src_Makefile
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.11 2012/09/14 19:14:53 jaapb Exp $
+$NetBSD: patch-src_Makefile,v 1.1 2017/11/14 13:03:35 jaapb Exp $
Correct installation procedure
---- Makefile.orig 2011-04-16 20:35:38.000000000 +0000
-+++ Makefile
+--- src/Makefile.orig 2015-10-05 18:14:23.000000000 +0000
++++ src/Makefile
@@ -49,7 +49,7 @@ all:: INSTALL
INSTALL: $(NAME)$(EXEC_EXT)
@@ -12,7 +12,7 @@ Correct installation procedure
########################################################################
## Miscellaneous developer-only switches
-@@ -80,7 +80,7 @@ include Makefile.OCaml
+@@ -78,7 +78,7 @@ include Makefile.OCaml
######################################################################
# Installation
@@ -21,7 +21,7 @@ Correct installation procedure
# This has two names because on OSX the file INSTALL shadows the target 'install'!
install: doinstall
-@@ -92,9 +92,7 @@ text:
+@@ -90,9 +90,7 @@ text:
$(MAKE) -C .. text
doinstall: $(NAME)$(EXEC_EXT)
@@ -31,7 +31,7 @@ Correct installation procedure
######################################################################
-@@ -350,7 +348,6 @@ tags:
+@@ -348,7 +346,6 @@ tags:
$(ETAGS) *.mli */*.mli *.ml */*.ml */*.m *.c */*.c *.txt \
; fi
diff --git a/net/unison/patches/patch-Makefile.OCaml b/net/unison/patches/patch-src_Makefile.OCaml
index a2a00dfd9d3..93d38b31b85 100644
--- a/net/unison/patches/patch-Makefile.OCaml
+++ b/net/unison/patches/patch-src_Makefile.OCaml
@@ -1,9 +1,9 @@
-$NetBSD: patch-Makefile.OCaml,v 1.5 2015/01/06 12:58:37 wiz Exp $
+$NetBSD: patch-src_Makefile.OCaml,v 1.1 2017/11/14 13:03:35 jaapb Exp $
Correct lablgtk paths for 2.16, and use ocamlopt.opt for compilation
---- Makefile.OCaml.orig 2014-09-28 16:48:05.000000000 +0000
-+++ Makefile.OCaml
+--- src/Makefile.OCaml.orig 2015-10-05 18:14:23.000000000 +0000
++++ src/Makefile.OCaml
@@ -75,8 +75,8 @@ OCAMLLIBDIR=$(shell ocamlc -v | tail -1
#
# This should be set to an appropriate value automatically, depending
diff --git a/net/unison/patches/patch-src_fs.ml b/net/unison/patches/patch-src_fs.ml
new file mode 100644
index 00000000000..81ca1488538
--- /dev/null
+++ b/net/unison/patches/patch-src_fs.ml
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_fs.ml,v 1.1 2017/11/14 13:03:35 jaapb Exp $
+
+System symlink definition has changed
+--- src/fs.ml.orig 2015-10-05 18:14:23.000000000 +0000
++++ src/fs.ml
+@@ -21,7 +21,7 @@ type fspath = Fspath.t
+ type dir_handle = System.dir_handle
+ = { readdir : unit -> string; closedir : unit -> unit }
+
+-let symlink l f = System.symlink l (Fspath.toString f)
++let symlink ?to_dir l f = System.symlink l (Fspath.toString f)
+
+ let readlink f = System.readlink (Fspath.toString f)
+
diff --git a/net/unison/patches/patch-src_mkProjectInfo.ml b/net/unison/patches/patch-src_mkProjectInfo.ml
new file mode 100644
index 00000000000..33959f0015d
--- /dev/null
+++ b/net/unison/patches/patch-src_mkProjectInfo.ml
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_mkProjectInfo.ml,v 1.1 2017/11/14 13:03:35 jaapb Exp $
+
+Add revision string for correct version detection
+--- src/mkProjectInfo.ml.orig 2015-10-05 18:14:23.000000000 +0000
++++ src/mkProjectInfo.ml
+@@ -42,7 +42,7 @@ let pointVersionOrigin = 533 (* Revision
+ (* ---------------------------------------------------------------------- *)
+ (* You shouldn't need to edit below. *)
+
+-let revisionString = "$Rev$";;
++let revisionString = "$Rev: 548$";;
+
+ let pointVersion =
+ Scanf.sscanf revisionString "$Rev: %d " (fun x -> x) - pointVersionOrigin;;
diff --git a/net/unison/patches/patch-src_system_system_intf.ml b/net/unison/patches/patch-src_system_system_intf.ml
new file mode 100644
index 00000000000..e1172590bc5
--- /dev/null
+++ b/net/unison/patches/patch-src_system_system_intf.ml
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_system_system_intf.ml,v 1.1 2017/11/14 13:03:35 jaapb Exp $
+
+System symlink definition has changed
+--- src/system/system_intf.ml.orig 2015-10-05 18:14:23.000000000 +0000
++++ src/system/system_intf.ml
+@@ -20,7 +20,7 @@ module type Core = sig
+ type fspath
+ type dir_handle = { readdir : unit -> string; closedir : unit -> unit }
+
+-val symlink : string -> fspath -> unit
++val symlink : ?to_dir:bool -> string -> fspath -> unit
+ val readlink : fspath -> string
+ val chown : fspath -> int -> int -> unit
+ val chmod : fspath -> int -> unit
diff --git a/net/unison/patches/patch-src_uigtk2.ml b/net/unison/patches/patch-src_uigtk2.ml
new file mode 100644
index 00000000000..ee3e01ef4e0
--- /dev/null
+++ b/net/unison/patches/patch-src_uigtk2.ml
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_uigtk2.ml,v 1.1 2017/11/14 13:03:35 jaapb Exp $
+
+Lablgtk now has safe_string
+--- src/uigtk2.ml.orig 2015-10-05 18:14:23.000000000 +0000
++++ src/uigtk2.ml
+@@ -94,7 +94,7 @@ let icon =
+ let icon =
+ let p = GdkPixbuf.create ~width:48 ~height:48 ~has_alpha:true () in
+ Gpointer.blit
+- (Gpointer.region_of_string Pixmaps.icon_data) (GdkPixbuf.get_pixels p);
++ (Gpointer.region_of_bytes Pixmaps.icon_data) (GdkPixbuf.get_pixels p);
+ p
+
+ let leftPtrWatch =