pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/LuaJIT2 Fix PLIST for SunOS. Upstream intentional...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4fa8e5ab8def
branches:  trunk
changeset: 348982:4fa8e5ab8def
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Tue Jun 21 16:40:10 2016 +0000

description:
Fix PLIST for SunOS. Upstream intentionally doesn't build the shared
lib on SunOS, we accept it. Packages that depends on the shared lib
may fail.

diffstat:

 lang/LuaJIT2/Makefile |  12 +++++++++++-
 lang/LuaJIT2/PLIST    |   8 ++++----
 2 files changed, 15 insertions(+), 5 deletions(-)

diffs (47 lines):

diff -r 2af0c867a1f0 -r 4fa8e5ab8def lang/LuaJIT2/Makefile
--- a/lang/LuaJIT2/Makefile     Tue Jun 21 16:29:55 2016 +0000
+++ b/lang/LuaJIT2/Makefile     Tue Jun 21 16:40:10 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2015/12/13 18:19:05 alnsn Exp $
+# $NetBSD: Makefile,v 1.8 2016/06/21 16:40:10 fhajny Exp $
 #
 
 DISTNAME=      LuaJIT-2.0.4
@@ -18,5 +18,15 @@
 PTHREAD_OPTS+=         native
 PTHREAD_AUTO_VARS=     yes
 
+.include "../../mk/bsd.prefs.mk"
+
+# Upstream doesn't support building shared libs on SunOS
+# http://www.freelists.org/post/luajit/LuaJIT-on-solaris-64
+PLIST_VARS+=           shared
+.if ${OPSYS} != "SunOS"
+PLIST.shared=          yes
+.endif
+PRINT_PLIST_AWK+=      {if ($$0 ~ /\.so/) {$$0 = "$${PLIST.shared}" $$0;}}
+
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2af0c867a1f0 -r 4fa8e5ab8def lang/LuaJIT2/PLIST
--- a/lang/LuaJIT2/PLIST        Tue Jun 21 16:29:55 2016 +0000
+++ b/lang/LuaJIT2/PLIST        Tue Jun 21 16:40:10 2016 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2014/03/26 13:29:53 imil Exp $
+@comment $NetBSD: PLIST,v 1.3 2016/06/21 16:40:10 fhajny Exp $
 bin/luajit
 bin/luajit-${PKGVERSION}
 include/luajit-2.0/lauxlib.h
@@ -8,9 +8,9 @@
 include/luajit-2.0/luajit.h
 include/luajit-2.0/lualib.h
 lib/libluajit-5.1.a
-lib/libluajit-5.1.so
-lib/libluajit-5.1.so.2
-lib/libluajit-5.1.so.${PKGVERSION}
+${PLIST.shared}lib/libluajit-5.1.so
+${PLIST.shared}lib/libluajit-5.1.so.2
+${PLIST.shared}lib/libluajit-5.1.so.${PKGVERSION}
 lib/pkgconfig/luajit.pc
 share/luajit-${PKGVERSION}/jit/bc.lua
 share/luajit-${PKGVERSION}/jit/bcsave.lua



Home | Main Index | Thread Index | Old Index