net-im/toxic: correct version string in package
authorDaniel Campbell <zlg@gentoo.org>
Thu, 28 Sep 2017 22:07:43 +0000 (15:07 -0700)
committerDaniel Campbell <zlg@gentoo.org>
Thu, 28 Sep 2017 22:07:43 +0000 (15:07 -0700)
Upstream's first commit after the Release fixes this. This is a quick
fix that will need to be removed for the next version bump, assuming
upstream remembers to update the string before tagging a release.

No input or review was received for over two weeks, leaving me with
little choice but to push, as it works for me.

Thanks to Dennis New for reporting.

Closes: https://bugs.gentoo.org/630370
Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-im/toxic/toxic-0.8.0.ebuild

index c8827675bcf86357554433ce27bb64edf53933f0..4758d0bbde4b6525ad02f799dbef10c7d7d48632 100644 (file)
@@ -35,6 +35,15 @@ pkg_setup() {
        use python && python-single-r1_pkg_setup
 }
 
+src_prepare() {
+       default
+       # bug 630370: version string correction 0.7.2 -> 0.8.0
+       # REMOVE THIS FOR toxic != 0.8.0
+       sed -i \
+               -e 's/^\(TOXIC_VERSION =\).*$/\1 0.8.0/' \
+               cfg/global_vars.mk || die "Version string correction failed."
+}
+
 src_configure() {
        if ! use av; then
                export DISABLE_AV=1