diff options
Diffstat (limited to 'net-libs/libdom/libdom-0.0.1_pre20120705.ebuild')
-rw-r--r-- | net-libs/libdom/libdom-0.0.1_pre20120705.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/net-libs/libdom/libdom-0.0.1_pre20120705.ebuild b/net-libs/libdom/libdom-0.0.1_pre20120705.ebuild new file mode 100644 index 000000000000..129d7c012bbc --- /dev/null +++ b/net-libs/libdom/libdom-0.0.1_pre20120705.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libdom/libdom-0.0.1_pre20120705.ebuild,v 1.1 2012/07/18 06:10:39 xmw Exp $ + +EAPI=4 + +inherit multilib toolchain-funcs + +DESCRIPTION="implementation of the W3C DOM, written in C" +HOMEPAGE="http://www.netsurf-browser.org/projects/libdom/" +SRC_URI="mirror://gentoo/netsurf-buildsystem-0_p20120717.tar.gz + mirror://gentoo/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm" +IUSE="static-libs" + +RDEPEND="dev-libs/libparserutils + dev-libs/libwapcaplet + dev-libs/libxml2 + net-libs/hubbub" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-perl/XML-XPath + dev-perl/libxml-perl + perl-core/Switch )" + +src_unpack() { + default + mv build "${S}" || die +} + +src_prepare() { + sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \ + -e "s:-Werror::g" \ + -e "1iNSSHARED=${S}/build" \ + -e "1iNSBUILD=${S}/build/makefiles" \ + -i Makefile || die + sed -e "/^libdir/s:/lib:/$(get_libdir):g" \ + -i ${PN}.pc.in || die + echo "Q := " >> Makefile.config.override + echo "CC := $(tc-getCC)" >> Makefile.config.override + echo "AR := $(tc-getAR)" >> Makefile.config.override +} + +src_compile() { + emake COMPONENT_TYPE=lib-shared + use static-libs && \ + emake COMPONENT_TYPE=lib-static +} + +src_test() { + emake COMPONENT_TYPE=lib-shared test + use static-libs && \ + emake COMPONENT_TYPE=lib-static test +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr COMPONENT_TYPE=lib-shared install + use static-libs && \ + emake DESTDIR="${D}" PREFIX=/usr COMPONENT_TYPE=lib-static install + dodoc README docs/* +} |