gstreamer.eclass: use xdg_environment_reset
authorGilles Dartiguelongue <eva@gentoo.org>
Sat, 21 Nov 2015 10:39:49 +0000 (11:39 +0100)
committerGilles Dartiguelongue <eva@gentoo.org>
Tue, 24 Nov 2015 21:56:19 +0000 (22:56 +0100)
eclass/gstreamer.eclass

index 0163493a76b55bee803a4a44e271f4f1466bb4da..37bb7ba855807ff6ea4119ae02d6930b0816e5af 100644 (file)
@@ -23,7 +23,7 @@
 # plugin, consider adding media-plugins/gst-plugins-meta dependency, but
 # also list any packages that provide explicitly requested plugins.
 
-inherit eutils multilib multilib-minimal toolchain-funcs versionator
+inherit eutils multilib multilib-minimal toolchain-funcs versionator xdg-utils
 
 case "${EAPI:-0}" in
        5)
@@ -132,11 +132,7 @@ DEPEND="${DEPEND} ${RDEPEND}"
 # >=dev-lang/orc-0.4.23 rely on environment variables to find a place to
 # allocate files to mmap.
 gstreamer_environment_reset() {
-       export XDG_RUNTIME_DIR="${T}/run"
-       mkdir -p "${XDG_RUNTIME_DIR}"
-       # This directory needs to be owned by the user, and chmod 0700
-       # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
-       chmod 0700 "${XDG_RUNTIME_DIR}"
+       xdg_environment_reset
 }
 
 # @FUNCTION: gstreamer_get_plugins