summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-22 12:48:28 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-22 12:48:40 -0500
commit27f46a69f975cd595bda82af8570807220e7f71a (patch)
tree98f18e5f6a803265b42953fd99d0bd98653c54dc /dev-libs/tinyxml
parentnet-print/cups-filters: Version bumpy (diff)
downloadgentoo-27f46a69f975cd595bda82af8570807220e7f71a.tar.gz
gentoo-27f46a69f975cd595bda82af8570807220e7f71a.tar.bz2
gentoo-27f46a69f975cd595bda82af8570807220e7f71a.zip
dev-libs/tinyxml: use versionator to parse $PV
Diffstat (limited to 'dev-libs/tinyxml')
-rw-r--r--dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild7
1 files changed, 3 insertions, 4 deletions
diff --git a/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild b/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
index 3410dcaa4fba..9a0d90c6114f 100644
--- a/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
+++ b/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
@@ -3,7 +3,7 @@
# $Id$
EAPI=4
-inherit flag-o-matic toolchain-funcs eutils multilib
+inherit flag-o-matic toolchain-funcs eutils multilib versionator
DESCRIPTION="a simple, small, C++ XML parser that can be easily integrating into other programs"
HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
@@ -20,9 +20,8 @@ DEPEND="doc? ( app-doc/doxygen )"
S="${WORKDIR}/${PN}"
src_prepare() {
- local major_v minor_v
- major_v=$(echo ${PV} | cut -d \. -f 1)
- minor_v=$(echo ${PV} | cut -d \. -f 2-3)
+ local major_v=$(get_major_version)
+ local minor_v=$(get_version_component_range 2-3)
sed -e "s:@MAJOR_V@:$major_v:" \
-e "s:@MINOR_V@:$minor_v:" \