-optional_depends libcdio \
+optional_depends libcdio-paranoia \
"--enable-cdda" \
"--disable-cdda" \
"build with CDDA backend" &&
diff --git a/gnome2-libs/gvfs/HISTORY b/gnome2-libs/gvfs/HISTORY
index 5c7ed74..1950efa 100644
--- a/gnome2-libs/gvfs/HISTORY
+++ b/gnome2-libs/gvfs/HISTORY
@@ -1,3 +1,6 @@
+2013-02-24 Vlad Glagolev <stealth AT sourcemage.org>
+ * DEPENDS: switched from libcdio to libcdio-paranoia
+
2012-11-24 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 1.14.2
* DEPENDS: removed gconf2 deprecated dependency
diff --git a/libs/libcdio-paranoia/DEPENDS b/libs/libcdio-paranoia/DEPENDS
index cb2487f..5b447e7 100755
--- a/libs/libcdio-paranoia/DEPENDS
+++ b/libs/libcdio-paranoia/DEPENDS
@@ -1 +1,7 @@
-depends libcdio
+. "$GRIMOIRE/FUNCTIONS" &&
+
+depends libcdio &&
+
+if spell_ok libcdio && is_version_less $(installed_version libcdio) 0.90;
then
+ force_depends libcdio
+fi
diff --git a/libs/libcdio-paranoia/DETAILS b/libs/libcdio-paranoia/DETAILS
index 5514959..a2bebf2 100755
--- a/libs/libcdio-paranoia/DETAILS
+++ b/libs/libcdio-paranoia/DETAILS
@@ -1,5 +1,6 @@
SPELL=libcdio-paranoia
VERSION=10.2+0.90
+ PATCHLEVEL=1
SOURCE=$SPELL-$VERSION.tar.bz2
SOURCE2=$SOURCE.sig
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
diff --git a/libs/libcdio-paranoia/HISTORY b/libs/libcdio-paranoia/HISTORY
index fa0222a..8c14848 100644
--- a/libs/libcdio-paranoia/HISTORY
+++ b/libs/libcdio-paranoia/HISTORY
@@ -1,2 +1,7 @@
+2013-02-24 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=1 (path change)
+ * DEPENDS: requires the newest libcdio to avoid conflicts
+ * INSTALL: added, symlink header for compatibility with current paths
+
2013-02-17 Robin Cook <rcook AT wyrms.net>
* New Spell: DETAILS, DEPENDS
diff --git a/libs/libcdio-paranoia/INSTALL b/libs/libcdio-paranoia/INSTALL
new file mode 100755
index 0000000..25d8caa
--- /dev/null
+++ b/libs/libcdio-paranoia/INSTALL
@@ -0,0 +1,6 @@
+default_install &&
+
+# for headers' path compatibility
+install -vm 755 -d "$INSTALL_ROOT/usr/include/cdio/paranoia" &&
+ln -vsf "$TRACK_ROOT/usr/include/cdio/cdda.h" \
+ "$INSTALL_ROOT/usr/include/cdio/paranoia/cdda.h"
diff --git a/libs/libcdio/HISTORY b/libs/libcdio/HISTORY
index b6a23d3..50a7aae 100644
--- a/libs/libcdio/HISTORY
+++ b/libs/libcdio/HISTORY
@@ -1,3 +1,6 @@
+2013-02-24 Vlad Glagolev <stealth AT sourcemage.org>
+ * UP_TRIGGERS: added, for proper update process
+
2013-01-20 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 0.90
diff --git a/libs/libcdio/UP_TRIGGERS b/libs/libcdio/UP_TRIGGERS
new file mode 100755
index 0000000..3fc3819
--- /dev/null
+++ b/libs/libcdio/UP_TRIGGERS
@@ -0,0 +1,15 @@
+# up_trigger everything on version updates
+
+spell_ok $SPELL && local OLD_SPELL_VERSION="$(installed_version $SPELL)" ||
return 0
+
+if [[ "${VERSION}" != "${OLD_SPELL_VERSION}" ]]; then
+ message "This is a possibly incompatible update of $SPELL..." &&
+ 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.*libcdio"; then
+ up_trigger $each cast_self
+ fi
+ done
+fi
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (1eb826c20f48ce8bf4d891f054d10a12ff59a833),
Vlad Glagolev, 02/24/2013