summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2012-03-14 23:07:32 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2012-03-14 23:07:32 +0000
commitbbdf529216e9f489d8bbe898c0937156cb7041b6 (patch)
tree393aae68eeb2be5edfa129bc13ef5f3a089f8c4d /dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
parentVersion bump, cleaned ebuild and adapted to new server system. Fixes bug #408105 (diff)
downloadgentoo-2-bbdf529216e9f489d8bbe898c0937156cb7041b6.tar.gz
gentoo-2-bbdf529216e9f489d8bbe898c0937156cb7041b6.tar.bz2
gentoo-2-bbdf529216e9f489d8bbe898c0937156cb7041b6.zip
Set TIXML_USE_STL in header when USE=stl, idea from Arch and bug #407825. Packages depending on USE=stl should not have to append TIXML_USE_STL to CXXFLAGS anymore
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild')
-rw-r--r--dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild b/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
new file mode 100644
index 000000000000..a9e037a7bcc0
--- /dev/null
+++ b/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/tinyxml/tinyxml-2.6.2-r2.ebuild,v 1.1 2012/03/14 23:07:32 voyageur Exp $
+
+EAPI=4
+inherit flag-o-matic toolchain-funcs eutils multilib
+
+DESCRIPTION="a simple, small, C++ XML parser that can be easily integrating into other programs"
+HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV//./_}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86 ~x64-macos ~x86-macos"
+IUSE="debug doc static-libs +stl"
+
+RDEPEND=""
+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)
+
+ sed -e "s:@MAJOR_V@:$major_v:" \
+ -e "s:@MINOR_V@:$minor_v:" \
+ "${FILESDIR}"/Makefile-3 > Makefile || die
+
+ epatch "${FILESDIR}"/${PN}-2.6.1-entity.patch
+
+ use debug && append-cppflags -DDEBUG
+ use stl && epatch "${FILESDIR}"/${P}-defineSTL.patch
+
+ tc-export AR CXX RANLIB
+
+ [[ ${CHOST} == *-darwin* ]] && export LIBDIR="${EPREFIX}"/usr/$(get_libdir)
+}
+
+src_install() {
+ dolib.so *$(get_libname)*
+ use static-libs && dolib.a *.a
+
+ insinto /usr/include
+ doins *.h
+
+ dodoc {changes,readme}.txt
+
+ if use doc; then
+ dohtml -r docs/*
+ fi
+}