Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/tinyxml/
Date: Tue, 22 Dec 2015 17:57:56
Message-Id: 1450806520.27f46a69f975cd595bda82af8570807220e7f71a.vapier@gentoo
1 commit: 27f46a69f975cd595bda82af8570807220e7f71a
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 17:48:28 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 17:48:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f46a69
7
8 dev-libs/tinyxml: use versionator to parse $PV
9
10 dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild | 7 +++----
11 1 file changed, 3 insertions(+), 4 deletions(-)
12
13 diff --git a/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild b/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
14 index 3410dca..9a0d90c 100644
15 --- a/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
16 +++ b/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
17 @@ -3,7 +3,7 @@
18 # $Id$
19
20 EAPI=4
21 -inherit flag-o-matic toolchain-funcs eutils multilib
22 +inherit flag-o-matic toolchain-funcs eutils multilib versionator
23
24 DESCRIPTION="a simple, small, C++ XML parser that can be easily integrating into other programs"
25 HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
26 @@ -20,9 +20,8 @@ DEPEND="doc? ( app-doc/doxygen )"
27 S="${WORKDIR}/${PN}"
28
29 src_prepare() {
30 - local major_v minor_v
31 - major_v=$(echo ${PV} | cut -d \. -f 1)
32 - minor_v=$(echo ${PV} | cut -d \. -f 2-3)
33 + local major_v=$(get_major_version)
34 + local minor_v=$(get_version_component_range 2-3)
35
36 sed -e "s:@MAJOR_V@:$major_v:" \
37 -e "s:@MINOR_V@:$minor_v:" \