pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/unison2.48



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Jul 29 18:07:10 UTC 2019

Added Files:
        pkgsrc/net/unison2.48: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/net/unison2.48/patches: patch-src_Makefile
            patch-src_Makefile.OCaml patch-src_files.ml
            patch-src_mkProjectInfo.ml patch-src_recon.ml
            patch-src_system_system__generic.ml patch-src_uigtk2.ml

Log Message:
net/unison2.48: import unison2.48-2.48.15v4nb5

This is a re-import of net/unison, but with all paths changed from
"unison" to "unison-2.48". This way, you can install it in parallel
with unison2.51. Run unison-2.48 with "-addversionno" to run
the appropriate unison binary on the other side.

Unison is a file-synchronization tool for Unix and Windows. It allows
two replicas of a collection of files and directories to be stored
on different hosts (or different disks on the same host), modified
separately, and then brought up to date by propagating the changes
in each replica to the other.

This package contains the outdated 2.48 release.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/unison2.48/DESCR \
    pkgsrc/net/unison2.48/Makefile pkgsrc/net/unison2.48/PLIST \
    pkgsrc/net/unison2.48/distinfo pkgsrc/net/unison2.48/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/net/unison2.48/patches/patch-src_Makefile \
    pkgsrc/net/unison2.48/patches/patch-src_Makefile.OCaml \
    pkgsrc/net/unison2.48/patches/patch-src_files.ml \
    pkgsrc/net/unison2.48/patches/patch-src_mkProjectInfo.ml \
    pkgsrc/net/unison2.48/patches/patch-src_recon.ml \
    pkgsrc/net/unison2.48/patches/patch-src_system_system__generic.ml \
    pkgsrc/net/unison2.48/patches/patch-src_uigtk2.ml

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/net/unison2.48/DESCR
diff -u /dev/null pkgsrc/net/unison2.48/DESCR:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/DESCR Mon Jul 29 18:07:10 2019
@@ -0,0 +1,7 @@
+Unison is a file-synchronization tool for Unix and Windows. It allows
+two replicas of a collection of files and directories to be stored
+on different hosts (or different disks on the same host), modified
+separately, and then brought up to date by propagating the changes
+in each replica to the other.
+
+This package contains the outdated 2.48 release.
Index: pkgsrc/net/unison2.48/Makefile
diff -u /dev/null pkgsrc/net/unison2.48/Makefile:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/Makefile      Mon Jul 29 18:07:10 2019
@@ -0,0 +1,64 @@
+# $NetBSD: Makefile,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+DISTNAME=      unison-2.48.15v4
+PKGNAME=       ${DISTNAME:S/unison/unison2.48/}
+PKGREVISION=   5
+CATEGORIES=    net
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=bcpierce00/}
+
+MAINTAINER=    tonio%NetBSD.org@localhost
+HOMEPAGE=      http://www.cis.upenn.edu/~bcpierce/unison/
+COMMENT=       File-synchronization tool (2.48 branch)
+LICENSE=       gnu-gpl-v3
+
+# File "/data/scratch/net/unison/work/src/fswatch.mli", line 18, characters 17-29:
+# Error: Unbound module Prefs
+MAKE_JOBS_SAFE=        no
+
+.if (${MACHINE_ARCH} == "arm")
+BUILDLINK_ABI_DEPENDS.ocaml+=  ocaml>=3.12.0nb2
+.else
+BUILDLINK_ABI_DEPENDS.ocaml+=  ocaml>=3.11.2
+.endif
+BUILDLINK_API_DEPENDS.ocaml-lablgtk+= ocaml-lablgtk>=2.16.0
+
+WRKSRC=                ${WRKDIR}/${DISTNAME}
+USE_TOOLS+=    gmake
+MAKE_FLAGS+=   CFLAGS="" -C src
+MAKE_ENV+=     HOME=${WRKDIR:Q}
+
+.include "options.mk"
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../mk/ocaml.mk"
+
+.if (${OCAML_USE_OPT_COMPILER} == "true")
+MAKE_FLAGS+=   NATIVE=true
+.else
+MAKE_FLAGS+=   NATIVE=false
+.endif
+
+.include "../../mk/pthread.buildlink3.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} != "none")
+MAKE_FLAGS+=   THREADS=true
+.endif
+
+BUILD_TARGET=  buildexecutable
+
+INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS+=    share/doc/unison-2.48
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/unison ${DESTDIR}${PREFIX}/bin/unison-2.48
+       ${INSTALL_MAN} ${WRKSRC}/src/BUGS.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.48
+       ${INSTALL_MAN} ${WRKSRC}/src/CONTRIB ${DESTDIR}${PREFIX}/share/doc/unison-2.48
+       ${INSTALL_MAN} ${WRKSRC}/src/COPYING ${DESTDIR}${PREFIX}/share/doc/unison-2.48
+       ${INSTALL_MAN} ${WRKSRC}/src/NEWS ${DESTDIR}${PREFIX}/share/doc/unison-2.48
+       ${INSTALL_MAN} ${WRKSRC}/src/README ${DESTDIR}${PREFIX}/share/doc/unison-2.48
+       ${INSTALL_MAN} ${WRKSRC}/src/ROADMAP.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.48
+       ${INSTALL_MAN} ${WRKSRC}/src/TODO.txt ${DESTDIR}${PREFIX}/share/doc/unison-2.48
+
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/net/unison2.48/PLIST
diff -u /dev/null pkgsrc/net/unison2.48/PLIST:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/PLIST Mon Jul 29 18:07:10 2019
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/29 18:07:10 wiz Exp $
+bin/unison-2.48
+share/doc/unison-2.48/BUGS.txt
+share/doc/unison-2.48/CONTRIB
+share/doc/unison-2.48/COPYING
+share/doc/unison-2.48/NEWS
+share/doc/unison-2.48/README
+share/doc/unison-2.48/ROADMAP.txt
+share/doc/unison-2.48/TODO.txt
Index: pkgsrc/net/unison2.48/distinfo
diff -u /dev/null pkgsrc/net/unison2.48/distinfo:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/distinfo      Mon Jul 29 18:07:10 2019
@@ -0,0 +1,13 @@
+$NetBSD: distinfo,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+SHA1 (unison-2.48.15v4.tar.gz) = 249cc0068ab62478c813189b2ac1426a3ff5edae
+RMD160 (unison-2.48.15v4.tar.gz) = 6480dfb05d6cefe20ebffa64eb6bd50c3aa7aa97
+SHA512 (unison-2.48.15v4.tar.gz) = 658b37fd18d8dee517e88ad707f7e80c1731542a0e07e6a8d56e6598e38bcf405cdb8db224274bf9b3319ed87efc45057d1f79e6437c4ca53afe9cec4afe6c78
+Size (unison-2.48.15v4.tar.gz) = 1911781 bytes
+SHA1 (patch-src_Makefile) = 19cf0b79995c7848bc02d220267be4f3a3e4b59b
+SHA1 (patch-src_Makefile.OCaml) = deba98414926fc73b229a071a6f061b7bdb8a458
+SHA1 (patch-src_files.ml) = 3a15b35f6a5e5242e4c3e198dabc38ca89bbdbe0
+SHA1 (patch-src_mkProjectInfo.ml) = a1908748dbe4c1db0e2b012e73fe46c6bca30348
+SHA1 (patch-src_recon.ml) = 8aa1b2a4109fe183eedf209a91efc3f2164a3b3a
+SHA1 (patch-src_system_system__generic.ml) = e9c8d638739d35e046efe5f28df6fa8cb4c46a48
+SHA1 (patch-src_uigtk2.ml) = a9ef837e0289ba2d209a21df3102ed0267a52f9d
Index: pkgsrc/net/unison2.48/options.mk
diff -u /dev/null pkgsrc/net/unison2.48/options.mk:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/options.mk    Mon Jul 29 18:07:10 2019
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.unison
+PKG_SUPPORTED_OPTIONS= lablgtk
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlablgtk)
+MAKE_FLAGS+=   UISTYLE=gtk2
+DEPENDS+=      font-schumacher-misc>=1.0:../../fonts/font-schumacher-misc
+.include "../../x11/ocaml-lablgtk/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.else
+MAKE_FLAGS+=   UISTYLE=text
+.endif

Index: pkgsrc/net/unison2.48/patches/patch-src_Makefile
diff -u /dev/null pkgsrc/net/unison2.48/patches/patch-src_Makefile:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/patches/patch-src_Makefile    Mon Jul 29 18:07:10 2019
@@ -0,0 +1,41 @@
+$NetBSD: patch-src_Makefile,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+Correct installation procedure
+--- src/Makefile.orig  2015-10-05 18:14:23.000000000 +0000
++++ src/Makefile
+@@ -49,7 +49,7 @@ all:: INSTALL
+ 
+ INSTALL: $(NAME)$(EXEC_EXT)
+ # file isn't made for OS X, so check that it's there first
+-      (if [ -f $(NAME) ]; then ./$(NAME) -doc install > INSTALLATION; fi)
++##    (if [ -f $(NAME) ]; then ./$(NAME) -doc install > INSTALLATION; fi)
+ 
+ ########################################################################
+ ## Miscellaneous developer-only switches
+@@ -78,7 +78,7 @@ include Makefile.OCaml
+ ######################################################################
+ # Installation
+ 
+-INSTALLDIR = $(HOME)/bin/
++INSTALLDIR = ${DESTDIR}$(PREFIX)/bin/
+ 
+ # This has two names because on OSX the file INSTALL shadows the target 'install'!
+ install: doinstall
+@@ -90,9 +90,7 @@ text: 
+       $(MAKE) -C .. text
+ 
+ doinstall: $(NAME)$(EXEC_EXT)
+-      -mv $(INSTALLDIR)/$(NAME)$(EXEC_EXT) /tmp/$(NAME)-$(shell echo $$$$)
+       cp $(NAME)$(EXEC_EXT) $(INSTALLDIR)
+-      cp $(NAME)$(EXEC_EXT) $(INSTALLDIR)$(NAME)-$(MAJORVERSION)$(EXEC_EXT)
+ 
+ 
+ ######################################################################
+@@ -348,7 +346,6 @@ tags:
+           $(ETAGS) *.mli */*.mli *.ml */*.ml */*.m *.c */*.c *.txt \
+           ; fi 
+ 
+-all:: TAGS
+ 
+ TAGS:
+       $(MAKE) tags
Index: pkgsrc/net/unison2.48/patches/patch-src_Makefile.OCaml
diff -u /dev/null pkgsrc/net/unison2.48/patches/patch-src_Makefile.OCaml:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/patches/patch-src_Makefile.OCaml      Mon Jul 29 18:07:10 2019
@@ -0,0 +1,44 @@
+$NetBSD: patch-src_Makefile.OCaml,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+Correct lablgtk paths for 2.16, and use ocamlopt.opt for compilation
+Add -unsafe-string for OCaml >= 4.06.
+
+--- 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
+ # on whether the lablgtk library is available
+-LABLGTKLIB=$(OCAMLLIBDIR)/lablgtk
+-LABLGTK2LIB=$(OCAMLLIBDIR)/lablgtk2
++LABLGTKLIB=$(OCAMLLIBDIR)/site-lib/lablgtk
++LABLGTK2LIB=$(OCAMLLIBDIR)/site-lib/lablgtk2
+ ##BCP [3/2007]: Removed temporarily, since the OSX UI is not working well 
+ ## at the moment and we don't want to confuse people by building it by default
+ ifeq ($(OSARCH),osx)
+@@ -292,14 +292,14 @@ endif
+ 
+ # Gtk GUI
+ ifeq ($(UISTYLE), gtk)
+-  CAMLFLAGS+=-I +lablgtk
++  CAMLFLAGS+=-I $(OCAMLLIBDIR)/site-lib/lablgtk
+   OCAMLOBJS+=pixmaps.cmo uigtk.cmo linkgtk.cmo
+   OCAMLLIBS+=lablgtk.cma
+ endif
+ 
+ # Gtk2 GUI
+ ifeq ($(UISTYLE), gtk2)
+-  CAMLFLAGS+=-I +lablgtk2
++  CAMLFLAGS+=-I $(OCAMLLIBDIR)/site-lib/lablgtk2
+   OCAMLOBJS+=pixmaps.cmo uigtk2.cmo linkgtk2.cmo
+   OCAMLLIBS+=lablgtk.cma
+ endif
+@@ -384,7 +384,7 @@ ifeq ($(PROFILING), true)
+ else
+   OCAMLC=$(EXEC_PREFIX)ocamlc
+ endif
+-OCAMLOPT=$(EXEC_PREFIX)ocamlopt
++OCAMLOPT=$(EXEC_PREFIX)ocamlopt.opt
+ 
+ ifeq ($(NATIVE), true)
+   ## Set up for native code compilation
Index: pkgsrc/net/unison2.48/patches/patch-src_files.ml
diff -u /dev/null pkgsrc/net/unison2.48/patches/patch-src_files.ml:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/patches/patch-src_files.ml    Mon Jul 29 18:07:10 2019
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_files.ml,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+Replace deprecated sort function
+--- src/files.ml.orig  2018-01-27 21:12:13.000000000 +0000
++++ src/files.ml
+@@ -734,7 +734,7 @@ let get_files_in_directory dir =
+   with End_of_file ->
+     dirh.System.closedir ()
+   end;
+-  Sort.list (<) !files
++  List.sort String.compare !files
+ 
+ let ls dir pattern =
+   Util.convertUnixErrorsToTransient
Index: pkgsrc/net/unison2.48/patches/patch-src_mkProjectInfo.ml
diff -u /dev/null pkgsrc/net/unison2.48/patches/patch-src_mkProjectInfo.ml:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/patches/patch-src_mkProjectInfo.ml    Mon Jul 29 18:07:10 2019
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_mkProjectInfo.ml,v 1.1 2019/07/29 18:07:10 wiz 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;;
Index: pkgsrc/net/unison2.48/patches/patch-src_recon.ml
diff -u /dev/null pkgsrc/net/unison2.48/patches/patch-src_recon.ml:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/patches/patch-src_recon.ml    Mon Jul 29 18:07:10 2019
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_recon.ml,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+Replace deprecated sort function
+--- src/recon.ml.orig  2018-01-27 21:12:13.000000000 +0000
++++ src/recon.ml
+@@ -661,8 +661,8 @@ let rec reconcile
+ 
+ (* Sorts the paths so that they will be displayed in order                   *)
+ let sortPaths pathUpdatesList =
+-  Sort.list
+-    (fun (p1, _) (p2, _) -> Path.compare p1 p2 <= 0)
++  List.sort
++    Path.compare
+     pathUpdatesList
+ 
+ let rec enterPath p1 p2 t =
Index: pkgsrc/net/unison2.48/patches/patch-src_system_system__generic.ml
diff -u /dev/null pkgsrc/net/unison2.48/patches/patch-src_system_system__generic.ml:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/patches/patch-src_system_system__generic.ml   Mon Jul 29 18:07:10 2019
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_system_system__generic.ml,v 1.1 2019/07/29 18:07:10 wiz Exp $
+
+Needed for compatibility with OCaml 4.08
+--- src/system/system_generic.ml.orig  2017-12-18 12:23:54.000000000 +0000
++++ src/system/system_generic.ml
+@@ -47,7 +47,7 @@ let open_out_gen = open_out_gen
+ let chmod = Unix.chmod
+ let chown = Unix.chown
+ let utimes = Unix.utimes
+-let link = Unix.link
++let link s d = Unix.link s d
+ let openfile = Unix.openfile
+ let opendir f =
+   let h = Unix.opendir f in
Index: pkgsrc/net/unison2.48/patches/patch-src_uigtk2.ml
diff -u /dev/null pkgsrc/net/unison2.48/patches/patch-src_uigtk2.ml:1.1
--- /dev/null   Mon Jul 29 18:07:10 2019
+++ pkgsrc/net/unison2.48/patches/patch-src_uigtk2.ml   Mon Jul 29 18:07:10 2019
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_uigtk2.ml,v 1.1 2019/07/29 18:07:10 wiz 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 =



Home | Main Index | Thread Index | Old Index