pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/glib-networking



Module Name:    pkgsrc
Committed By:   dbj
Date:           Mon Jun  4 05:31:02 UTC 2018

Added Files:
        pkgsrc/net/glib-networking: hacks.mk

Log Message:
net/glib-networking: add a hack for Darwin to install modules with .so suffix

This works around an assumption by the py-meson build system
that loadable modules should have a .dylib suffix on Darwin.
glib2 expects those modules to have a .so suffix.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/glib-networking/hacks.mk

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

Added files:

Index: pkgsrc/net/glib-networking/hacks.mk
diff -u /dev/null pkgsrc/net/glib-networking/hacks.mk:1.1
--- /dev/null   Mon Jun  4 05:31:02 2018
+++ pkgsrc/net/glib-networking/hacks.mk Mon Jun  4 05:31:02 2018
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1 2018/06/04 05:31:02 dbj Exp $
+
+# devel/glib2 expects modules to end in .so on darwin
+# net/glib-networking uses py-meson to build
+# py-meson's build.py SharedModule class inherits from SharedLibrary and assumes .dylib suffix
+# (true as of py36-meson-0.44.1nb3)
+
+.if ${OPSYS} == "Darwin"
+post-install:
+       for l in libgiognomeproxy libgiognutls libgiolibproxy; do \
+               ${MV} "${DESTDIR}${PREFIX}/lib/gio/modules/$${l}.dylib" \
+                       "${DESTDIR}${PREFIX}/lib/gio/modules/$${l}.so"; \
+       done
+.endif



Home | Main Index | Thread Index | Old Index