[SM-Commit] GIT changes to master grimoire by Jaka Kranjc (70e20af0dacfe8efb782e371d54037a5b135be45)

Jaka Kranjc scm at sourcemage.org
Mon Nov 24 08:08:54 EST 2008


GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx at sourcemage.org>:

 video-libs/libdvdread/HISTORY     |    3 +++
 video-libs/libdvdread/UP_TRIGGERS |   15 +++++++++++++++
 2 files changed, 18 insertions(+)

New commits:
commit 70e20af0dacfe8efb782e371d54037a5b135be45
Author: Jaka Kranjc <lynxlynxlynx at sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx at sourcemage.org>

    libdvdread: UP_TRIGGERS: added for the migration from 0.9

diff --git a/video-libs/libdvdread/HISTORY b/video-libs/libdvdread/HISTORY
index 84bc694..cef7a17 100644
--- a/video-libs/libdvdread/HISTORY
+++ b/video-libs/libdvdread/HISTORY
@@ -1,3 +1,6 @@
+2008-11-24 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
+	* UP_TRIGGERS: added for the migration from 0.9
+
 2008-11-09 Ladislav Hagara <hgr at vabo.cz>
 	* DETAILS: 4.1.3, switched to maintained mplayer's version
 	* PRE_BUILD, *.patch: removed patches
diff --git a/video-libs/libdvdread/UP_TRIGGERS b/video-libs/libdvdread/UP_TRIGGERS
new file mode 100755
index 0000000..5d0878d
--- /dev/null
+++ b/video-libs/libdvdread/UP_TRIGGERS
@@ -0,0 +1,15 @@
+# versions before 4.x (api 4) were 0.x (api 3)
+local OLD_SPELL_VERSION=""
+if spell_ok $SPELL; then
+  OLD_SPELL_VERSION="$(installed_version $SPELL)"
+  if [[ ${OLD_SPELL_VERSION:0:1} == 0 ]]; then
+    message "This is an incompatible update of libdvdread..."
+    message "Figuring out what spells need to be recast, this may take a while."
+    for each in $(show_up_depends $SPELL 1); do
+      if gaze install $each | xargs readelf -d 2> /dev/null |
+         grep -q "NEEDED.*libdvdread.so.3"; then
+           up_trigger $each cast_self
+      fi
+    done
+  fi
+fi



More information about the SM-Commit mailing list