pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/ocaml-lablgtk Updated package to deal with changes...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5f4672a8140a
branches:  trunk
changeset: 365289:5f4672a8140a
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Thu Jul 13 11:53:15 2017 +0000

description:
Updated package to deal with changes to ocamlfind wrapper

diffstat:

 x11/ocaml-lablgtk/Makefile                   |   6 ++++--
 x11/ocaml-lablgtk/distinfo                   |   5 +++--
 x11/ocaml-lablgtk/patches/patch-configure    |  14 ++++++++++++++
 x11/ocaml-lablgtk/patches/patch-src_Makefile |  13 ++++++-------
 4 files changed, 27 insertions(+), 11 deletions(-)

diffs (83 lines):

diff -r ae19585e470b -r 5f4672a8140a x11/ocaml-lablgtk/Makefile
--- a/x11/ocaml-lablgtk/Makefile        Thu Jul 13 11:49:45 2017 +0000
+++ b/x11/ocaml-lablgtk/Makefile        Thu Jul 13 11:53:15 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2017/07/11 14:19:23 jaapb Exp $
+# $NetBSD: Makefile,v 1.26 2017/07/13 11:53:15 jaapb Exp $
 
 DISTNAME=      lablgtk-2.18.5
 PKGNAME=       ocaml-${DISTNAME}
-PKGREVISION=   6
+PKGREVISION=   7
 CATEGORIES=    x11
 MASTER_SITES=  https://forge.ocamlcore.org/frs/download.php/1627/
 
@@ -26,6 +26,8 @@
 CONFLICTS=     lablgtk-[0-9]*
 SUPERSEDES=    lablgtk-[0-9]*
 
+CONFIGURE_ENV+=        OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
+
 .include "../../mk/bsd.prefs.mk"
 
 # Stub libraries for functions missing from base system.
diff -r ae19585e470b -r 5f4672a8140a x11/ocaml-lablgtk/distinfo
--- a/x11/ocaml-lablgtk/distinfo        Thu Jul 13 11:49:45 2017 +0000
+++ b/x11/ocaml-lablgtk/distinfo        Thu Jul 13 11:53:15 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.7 2016/08/24 10:51:53 wiz Exp $
+$NetBSD: distinfo,v 1.8 2017/07/13 11:53:15 jaapb Exp $
 
 SHA1 (lablgtk-2.18.5.tar.gz) = 8e0a64ba9c194a8affb03856a6acf6fcd06ad1e4
 RMD160 (lablgtk-2.18.5.tar.gz) = c9dcdff500a67b02b32ac8d2d965bd1bde6eaba3
 SHA512 (lablgtk-2.18.5.tar.gz) = 7b6ba1a4dfa82cc3bbc502082ff4fccc23cc06ee4f30d01a2e423f3f99e945a4befe450d230b5aa19c5b810e9f46f2838655099d49da2db7c8a2e52eac213024
 Size (lablgtk-2.18.5.tar.gz) = 808005 bytes
-SHA1 (patch-src_Makefile) = a24fafdbc273863e110d4becb79f849053ec9a9c
+SHA1 (patch-configure) = 8863e7bb0597e472063021f01c307e8e14c9b3b0
+SHA1 (patch-src_Makefile) = 79d133a88af4ee3efd668ebeff1767eae1a0ca76
diff -r ae19585e470b -r 5f4672a8140a x11/ocaml-lablgtk/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ocaml-lablgtk/patches/patch-configure Thu Jul 13 11:53:15 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-configure,v 1.1 2017/07/13 11:53:16 jaapb Exp $
+
+The ocamlfind wrapper now includes DESTDIR, so do not use it
+--- configure.orig     2016-08-10 03:33:56.000000000 +0000
++++ configure
+@@ -2679,7 +2679,7 @@ if test "$OCAMLFIND" = no; then
+ FINDLIBDIR=""
+ OCAMLLDCONF=""
+ else
+-FINDLIBDIR="`ocamlfind printconf destdir | tr -d '\\r'`"
++FINDLIBDIR="${PREFIX}/${OCAML_SITELIBDIR}"
+ echo "$OCAMLFIND library path is $FINDLIBDIR"
+ OCAMLLDCONF="`ocamlfind printconf ldconf | tr -d '\\r'`"
+ echo "$OCAMLFIND ldconf path is $OCAMLLDCONF"
diff -r ae19585e470b -r 5f4672a8140a x11/ocaml-lablgtk/patches/patch-src_Makefile
--- a/x11/ocaml-lablgtk/patches/patch-src_Makefile      Thu Jul 13 11:49:45 2017 +0000
+++ b/x11/ocaml-lablgtk/patches/patch-src_Makefile      Thu Jul 13 11:53:15 2017 +0000
@@ -1,18 +1,17 @@
-$NetBSD: patch-src_Makefile,v 1.1 2014/10/10 08:37:49 jaapb Exp $
+$NetBSD: patch-src_Makefile,v 1.2 2017/07/13 11:53:16 jaapb Exp $
 
 Do not create an ld.conf, this is done afterwards through the PLIST
---- src/Makefile.orig  2013-10-01 08:31:50.000000000 +0000
+--- src/Makefile.orig  2016-08-10 03:33:56.000000000 +0000
 +++ src/Makefile
-@@ -395,10 +395,10 @@ findlib-install:
+@@ -402,10 +402,7 @@ findlib-install:
          exit 2; fi
        mkdir -p "$(BINDIR)"
        mkdir -p "$(DESTDIR)$(FINDLIBDIR)"
 -      @if test -f "$(DESTDIR)$(OCAMLLDCONF)"; then :; else \
-+#     @if test -f "$(DESTDIR)$(OCAMLLDCONF)"; then :; else \
-         touch "$(DESTDIR)$(OCAMLLDCONF)"; fi
-       $(OCAMLFIND) install -destdir "$(DESTDIR)$(FINDLIBDIR)" \
+-        touch "$(DESTDIR)$(OCAMLLDCONF)"; fi
+-      $(OCAMLFIND) install -destdir "$(DESTDIR)$(FINDLIBDIR)" \
 -        -ldconf "$(DESTDIR)$(OCAMLLDCONF)" \
-+        -ldconf ignore \
++      $(OCAMLFIND) install \
      lablgtk2 ../META \
      build.ml \
      $(CLIBS) \



Home | Main Index | Thread Index | Old Index