media-video/obs-studio: Override detected version for non-git builds.
authorJimi Huotari <chiitoo@gentoo.org>
Thu, 29 Dec 2016 08:31:03 +0000 (10:31 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 29 Dec 2016 12:25:21 +0000 (23:25 +1100)
The upstream CMake configuration always sets the software version to
0.0.1, when there is no '.git' directory found.  It seems upstream
accepted, and implemented a variable to fix this.

Upstream-Bug: https://github.com/jp9000/obs-studio/pull/349

Additionally, add quotes for '-DUNIX_STRUCTURE' for consistency.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

media-video/obs-studio/obs-studio-17.0.0.ebuild

index 678d13dc8d77943de34558cb6f353e6373840772..442d10f66ca1c9f31521370420c0adc6519e88ce 100644 (file)
@@ -69,7 +69,8 @@ src_configure() {
                -DDISABLE_V4L2="$(usex !v4l)"
                -DLIBOBS_PREFER_IMAGEMAGICK="$(usex imagemagick)"
                -DOBS_MULTIARCH_SUFFIX="${libdir#lib}"
-               -DUNIX_STRUCTURE=1
+               -DOBS_VERSION_OVERRIDE="${PV}"
+               -DUNIX_STRUCTURE="1"
        )
 
        cmake-utils_src_configure