git: 62173bf8ab2e - main - x11-toolkits/ocaml-lablgtk2: the port had been updated and improved (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Mar 2023 12:41:01 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=62173bf8ab2e07b8f23bb10493650a093d3b47b2 commit 62173bf8ab2e07b8f23bb10493650a093d3b47b2 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2023-03-31 12:39:30 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2023-03-31 12:39:30 +0000 x11-toolkits/ocaml-lablgtk2: the port had been updated and improved (+) - Update to the latest version 2.18.13 - Convert that abominable `post-patch' target to static patch and leave only parts of it which matter (visible in the build log) - Fix a typo in the `src/Makefile' to prevent `sourceView2Enums.ml' from being removed as intermediate file Submitted by: naddy (typo fix for gmake 4.4 update) Reported by: portscout --- x11-toolkits/ocaml-lablgtk2/Makefile | 15 +------ x11-toolkits/ocaml-lablgtk2/distinfo | 6 +-- .../ocaml-lablgtk2/files/patch-src_Makefile | 51 ++++++++++++++++++++++ 3 files changed, 55 insertions(+), 17 deletions(-) diff --git a/x11-toolkits/ocaml-lablgtk2/Makefile b/x11-toolkits/ocaml-lablgtk2/Makefile index c4bca8b9ffa9..2bf27cbb3752 100644 --- a/x11-toolkits/ocaml-lablgtk2/Makefile +++ b/x11-toolkits/ocaml-lablgtk2/Makefile @@ -1,6 +1,5 @@ PORTNAME= lablgtk2 -PORTVERSION= 2.18.12 -PORTREVISION= 1 +PORTVERSION= 2.18.13 CATEGORIES= x11-toolkits PKGNAMEPREFIX= ocaml- @@ -68,18 +67,6 @@ LIBRSVG2_CONFIGURE_WITH=rsvg LIBRSVG2_USE= GNOME=librsvg2 LIBRSVG2_VARS= EXAMPLES_SUBDIRS+=rsvg -PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]] - -post-patch: - @${REINPLACE_CMD} -E \ - -e 's|^(CFLAGS[[:space:]]*\+=[[:space:]]*-O)|\1 ${CFLAGS}|' \ - -e 's,^(${PATTERN}+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,' \ - -e 's,^(${PATTERN}+.*BINDIR),\1\$${BSD_INSTALL_SCRIPT} \3,' \ - -e 's,^(${PATTERN}+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,' \ - -e 's,(touch)( "\$$\(DESTDIR\)\$$\(OCAMLLDCONF\)"),${TRUE}\2,' \ - -e 's,(-ldconf )("\$$\(DESTDIR\)\$$\(OCAMLLDCONF\)"),\1ignore,' \ - ${WRKSRC}/src/Makefile - post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} diff --git a/x11-toolkits/ocaml-lablgtk2/distinfo b/x11-toolkits/ocaml-lablgtk2/distinfo index e8100aab5c50..8e29fc84f163 100644 --- a/x11-toolkits/ocaml-lablgtk2/distinfo +++ b/x11-toolkits/ocaml-lablgtk2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1640395411 -SHA256 (garrigue-lablgtk-2.18.12_GH0.tar.gz) = 43b2640b6b6d6ba352fa0c4265695d6e0b5acb8eb1da17290493e99ae6879b18 -SIZE (garrigue-lablgtk-2.18.12_GH0.tar.gz) = 1066997 +TIMESTAMP = 1665042937 +SHA256 (garrigue-lablgtk-2.18.13_GH0.tar.gz) = 7b9e680452458fd351cf8622230d62c3078db528446384268cd0dc37be82143c +SIZE (garrigue-lablgtk-2.18.13_GH0.tar.gz) = 1073083 diff --git a/x11-toolkits/ocaml-lablgtk2/files/patch-src_Makefile b/x11-toolkits/ocaml-lablgtk2/files/patch-src_Makefile new file mode 100644 index 000000000000..24b78d041ec5 --- /dev/null +++ b/x11-toolkits/ocaml-lablgtk2/files/patch-src_Makefile @@ -0,0 +1,51 @@ +--- src/Makefile.orig 2022-10-06 07:55:37 UTC ++++ src/Makefile +@@ -51,11 +51,8 @@ CUSTOM = -custom + #MLLINK += -cclib -lcamlrund + MLBYTEFLAGS = -g -dtypes + else +-CFLAGS = -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS) +-ifneq ($(TOOLCHAIN),msvc) +-CFLAGS += -O ++CFLAGS += -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS $(GTKCFLAGS) + endif +-endif + + ifeq ($(THREADS_LIB),system) + THFLAGS = -thread +@@ -165,7 +162,7 @@ GTKSOURCEVIEW2MLOBJS = gtkSourceView2.cmo gSourceView2 + GTKSOURCEVIEW2COBJS = ml_gtksourceview2$(XO) + GTKSOURCEVIEW2MLOBJSENUM = sourceView2Enums.cmo + GTKSOURCEVIEW2PROPS = gtkSourceView2.props +-BEFORE_DEPEND += $(GTKSOURCEVIEW2PROPS:%.props=%Props.ml) $(GTKSOURCEVIEW2PROPS:%.props= o%Props.ml) $(GTKSOURCEVIEWMLOBJSENUM:%.cmo=%.ml) ++BEFORE_DEPEND += $(GTKSOURCEVIEW2PROPS:%.props=%Props.ml) $(GTKSOURCEVIEW2PROPS:%.props= o%Props.ml) $(GTKSOURCEVIEW2MLOBJSENUM:%.cmo=%.ml) + EXTRA_OBJS += $(GTKSOURCEVIEW2MLOBJSENUM) + GTKSOURCEVIEW2ALLMLOBJS = $(GTKSOURCEVIEW2MLOBJSENUM) \ + $(GTKSOURCEVIEW2PROPS:%.props=%Props.cmo) \ +@@ -406,9 +403,9 @@ findlib-install: + mkdir -p "$(DESTDIR)$(FINDLIBDIR)" + @if test -f "$(DESTDIR)$(OCAMLLDCONF)"; then :; else \ + mkdir -p "`dirname $(DESTDIR)$(OCAMLLDCONF)`"; \ +- touch "$(DESTDIR)$(OCAMLLDCONF)"; fi ++ true "$(DESTDIR)$(OCAMLLDCONF)"; fi + $(OCAMLFIND) install -destdir "$(DESTDIR)$(FINDLIBDIR)" \ +- -ldconf "$(DESTDIR)$(OCAMLLDCONF)" \ ++ -ldconf ignore \ + lablgtk2 ../META \ + build.ml \ + $(CLIBS) \ +@@ -447,11 +444,11 @@ findlib-install: + fi` + rm -f lablgtk2 + $(MAKE) lablgtk2 LABLGTKDIR="$(FINDLIBDIR)/lablgtk2" +- cp lablgtk2$(XB) "$(BINDIR)" ++ $(BSD_INSTALL_SCRIPT) lablgtk2$(XB) "$(BINDIR)" + if test -f lablgladecc$(XE); then \ +- cp lablgladecc$(XE) "$(BINDIR)/lablgladecc2$(XE)"; \ ++ $(BSD_INSTALL_SCRIPT) lablgladecc$(XE) "$(BINDIR)/lablgladecc2$(XE)"; \ + fi +- cp gdk_pixbuf_mlsource$(XE) "$(BINDIR)" ++ $(BSD_INSTALL_SCRIPT) gdk_pixbuf_mlsource$(XE) "$(BINDIR)" + $(RANLIB) $(CLIBS:%="$(FLINSTALLDIR)"/%) + @if test -f lablgtk.cmxa; then \ + echo "Execute $(RANLIB) in $(FLINSTALLDIR)"; \