[SCM] morituri/master: * configure.ac: * morituri/configure/installed.py.in: * morituri/configure/uninstalled.py.in: Create configure.configure.pluginsdir

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:45 UTC 2014


The following commit has been merged in the master branch:
commit cd295537fcf615bec57f037bf06bba0a73fe85e0
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Nov 25 18:21:11 2012 +0000

    	* configure.ac:
    	* morituri/configure/installed.py.in:
    	* morituri/configure/uninstalled.py.in:
    	  Create configure.configure.pluginsdir

diff --git a/ChangeLog b/ChangeLog
index 0bb5ed5..be6f6c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-11-25  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+	* configure.ac:
+	* morituri/configure/installed.py.in:
+	* morituri/configure/uninstalled.py.in:
+	  Create configure.configure.pluginsdir
+
 2012-11-23  Thomas Vander Stichele  <thomas at apestaart dot org>
 
 	* configure.ac:
diff --git a/configure.ac b/configure.ac
index cf912f4..0e2d688 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,9 @@ AS_AC_EXPAND(PYTHONLIBDIR, "\${exec_prefix}/lib/python$PYVER/site-packages")
 AC_MSG_NOTICE(Installing python code in $PYTHONLIBDIR)
 AC_SUBST(PYTHONLIBDIR)
 
+AS_AC_EXPAND(PLUGINSDIR, "\${libdir}/morituri/plugins")
+AC_MSG_NOTICE(Setting plugins directory to $PLUGINSDIR)
+
 dnl check for epydoc
 AC_CHECK_PROG(EPYDOC, epydoc, yes, no)
 AM_CONDITIONAL(HAVE_EPYDOC, test "x$EPYDOC" = "xyes")
diff --git a/morituri/configure/installed.py.in b/morituri/configure/installed.py.in
index 8a78ae0..c2c536a 100644
--- a/morituri/configure/installed.py.in
+++ b/morituri/configure/installed.py.in
@@ -5,5 +5,6 @@
 def get():
     return {
         'isinstalled': True,
+        'pluginsdir': '@PLUGINSDIR@',
         'version': '@VERSION@',
     }
diff --git a/morituri/configure/uninstalled.py.in b/morituri/configure/uninstalled.py.in
index 4078f80..721e1a3 100644
--- a/morituri/configure/uninstalled.py.in
+++ b/morituri/configure/uninstalled.py.in
@@ -1,9 +1,15 @@
 # -*- Mode: Python -*-
 # vi:si:et:sw=4:sts=4:ts=4
 
+import os
+
+
+__thisdir = os.path.dirname(os.path.abspath(__file__))
 
 def get():
     return {
         'isinstalled': False,
+        'pluginsdir': os.path.abspath(os.path.join(
+            __thisdir, '..', '..', 'plugins')),
         'version': '@VERSION@',
     }

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list