diff options
author | 2005-03-03 00:40:41 +0000 | |
---|---|---|
committer | 2005-03-03 00:40:41 +0000 | |
commit | 66636d16a092573d9abae8d789e29eaa8f37e0c9 (patch) | |
tree | 02a55eaf6da3790cb67565187f287f2d153cad65 /dev-libs/xmlwrapp/xmlwrapp-0.5.0-r1.ebuild | |
parent | New release (1.2 final). 1.2_beta stable on x86. (diff) | |
download | gentoo-2-66636d16a092573d9abae8d789e29eaa8f37e0c9.tar.gz gentoo-2-66636d16a092573d9abae8d789e29eaa8f37e0c9.tar.bz2 gentoo-2-66636d16a092573d9abae8d789e29eaa8f37e0c9.zip |
Fix deps; added doc and test to IUSE. Dont hardcode -O2 in CXXFLAGS. Don't build the examples. See bug 83795.
(Portage version: 2.0.51.18)
Diffstat (limited to 'dev-libs/xmlwrapp/xmlwrapp-0.5.0-r1.ebuild')
-rw-r--r-- | dev-libs/xmlwrapp/xmlwrapp-0.5.0-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/xmlwrapp/xmlwrapp-0.5.0-r1.ebuild b/dev-libs/xmlwrapp/xmlwrapp-0.5.0-r1.ebuild new file mode 100644 index 000000000000..f73f9a43feef --- /dev/null +++ b/dev-libs/xmlwrapp/xmlwrapp-0.5.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlwrapp/xmlwrapp-0.5.0-r1.ebuild,v 1.1 2005/03/03 00:40:41 ka0ttic Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="modern style C++ library that provides a simple and easy interface to libxml2" +HOMEPAGE="http://pmade.org/software/xmlwrapp/" +SRC_URI="http://pmade.org/software/xmlwrapp/download/${P}.tar.gz +doc? ( http://pmade.org/software/xmlwrapp/download/documentation/${PN}-api.tar.gz )" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="doc test" + +RDEPEND="virtual/libc + dev-libs/libxml2 + dev-libs/libxslt" +DEPEND="${RDEPEND} + dev-lang/perl + >=sys-apps/sed-4" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PN}-gentoo.diff + sed -i 's/-O2//' tools/cxxflags || die "sed tools/cxxflags failed" +} + +src_compile() { + local myconf="--prefix /usr --disable-examples" + use test && myconf="${myconf} --enable-tests" + + export CXX="$(tc-getCXX)" + ./configure.pl ${myconf} || die "configure failed" + emake || die "emake failed" +} + +src_install() { + sed -i "s%/usr%${D}/usr%g" Makefile || die "sed Makefile failed" + make install || die "make install failed" + + dodoc README docs/{CREDITS,TODO,VERSION} + if use doc ; then + dohtml ${WORKDIR}/${PN}-api/* + cd examples + for ex in 0* ; do + docinto examples/${ex} + dodoc ${ex}/* + done + fi +} |