commit:     675810158cfecff172c501b898ff379db0051af3
Author:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 28 22:07:43 2017 +0000
Commit:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
CommitDate: Thu Sep 28 22:07:43 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67581015

net-im/toxic: correct version string in package

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 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/net-im/toxic/toxic-0.8.0.ebuild b/net-im/toxic/toxic-0.8.0.ebuild
index c8827675bcf..4758d0bbde4 100644
--- a/net-im/toxic/toxic-0.8.0.ebuild
+++ b/net-im/toxic/toxic-0.8.0.ebuild
@@ -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

Reply via email to