diff options
author | Michael Weber <xmw@gentoo.org> | 2013-06-18 05:58:50 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2013-06-18 05:58:50 +0000 |
commit | eb8f533b16f255011134f530945ee0518520d641 (patch) | |
tree | 7bfe9b177f100c05bd9a403524f2abc058248369 /net-libs/libdom | |
parent | old (diff) | |
download | gentoo-2-eb8f533b16f255011134f530945ee0518520d641.tar.gz gentoo-2-eb8f533b16f255011134f530945ee0518520d641.tar.bz2 gentoo-2-eb8f533b16f255011134f530945ee0518520d641.zip |
Version bump (bug 470720), multilib build, preparations for netsurf eclass.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'net-libs/libdom')
-rw-r--r-- | net-libs/libdom/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/libdom/libdom-0.0.1.ebuild | 159 | ||||
-rw-r--r-- | net-libs/libdom/libdom-9999.ebuild | 65 |
3 files changed, 167 insertions, 67 deletions
diff --git a/net-libs/libdom/ChangeLog b/net-libs/libdom/ChangeLog index 4a6c0e1708c2..555bcb0d388e 100644 --- a/net-libs/libdom/ChangeLog +++ b/net-libs/libdom/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-libs/libdom -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libdom/ChangeLog,v 1.2 2012/07/18 14:23:34 mr_bones_ Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libdom/ChangeLog,v 1.3 2013/06/18 05:58:50 xmw Exp $ + +*libdom-0.0.1 (18 Jun 2013) + + 18 Jun 2013; Michael Weber <xmw@gentoo.org> +libdom-0.0.1.ebuild, + -libdom-9999.ebuild: + Version bump (bug 470720), multilib build, preparations for netsurf eclass. 18 Jul 2012; Michael Sterrett <mr_bones_@gentoo.org> libdom-0.0.1_pre20120705.ebuild, libdom-9999.ebuild: diff --git a/net-libs/libdom/libdom-0.0.1.ebuild b/net-libs/libdom/libdom-0.0.1.ebuild new file mode 100644 index 000000000000..36734160f2b1 --- /dev/null +++ b/net-libs/libdom/libdom-0.0.1.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2013 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.ebuild,v 1.1 2013/06/18 05:58:50 xmw Exp $ + +EAPI=5 + +inherit base toolchain-funcs multilib-minimal + +DESCRIPTION="implementation of the W3C DOM, written in C" +HOMEPAGE="http://www.netsurf-browser.org/projects/libdom/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm" +IUSE="expat test xml" + +RDEPEND=">=dev-libs/libparserutils-0.1.2[static-libs?,${MULTILIB_USEDEP}] + >=dev-libs/libwapcaplet-0.2.0[static-libs?,${MULTILIB_USEDEP}] + >=net-libs/libhubbub-0.2.0[static-libs?,${MULTILIB_USEDEP}] + xml? ( + expat? ( dev-libs/expat[static-libs?] + amd64? ( abi_x86_32? ( app-emulation/emul-linux-x86-baselibs[development] ) ) ) + !expat? ( dev-libs/libxml2[static-libs?] + amd64? ( abi_x86_32? ( app-emulation/emul-linux-x86-baselibs[development] ) ) ) + )" +DEPEND="${RDEPEND} + test? ( dev-lang/perl + dev-perl/XML-XPath + dev-perl/libxml-perl + perl-core/Switch )" + +REQUIRED_USE="test? ( xml )" + +### future context of netsurf.eclass + +NETSURF_BUILDSYSTEM="${NETSURF_BUILDSYSTEM:-buildsystem-1.0}" +SRC_URI=${SRC_URI:-http://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz} +SRC_URI+=" + http://download.netsurf-browser.org/libs/releases/${NETSURF_BUILDSYSTEM}.tar.gz -> netsurf-${NETSURF_BUILDSYSTEM}.tar.gz" +IUSE+=" debug static-libs" +if has doc ${IUSE} ; then + DEPEND+=" + doc? ( app-doc/doxygen )" +fi +DEPEND+=" + virtual/pkgconfig" +pkg_setup(){ + netsurf_src_prepare() { + if [ -f docs/doxygen.conf ] ; then + if ! has doc ${IUSE} ; then + if [ -z "${NETSURF_IGNORE_DOXYGEN}" ] ; then + die "Missing IUSE=doc" + fi + fi + fi + + base_src_prepare + + multilib_copy_sources + } + + netsurf_src_configure() { + netsurf_makeconf=( + NSSHARED=${WORKDIR}/${NETSURF_BUILDSYSTEM} + Q= + CCOPT= + CCNOOPT= + CCDBG= + LDDBG= + AR="$(tc-getAR)" + BUILD=$(usex debug debug release) + DESTDIR="${D}" + PREFIX="${EROOT}"usr + ) + + multilib-minimal_src_configure + } + + netsurf_src_compile() { + multilib-minimal_src_compile + + if has doc ${IUSE} ; then + use doc && netsurf_make docs + fi + } + + netsurf_src_test() { + multilib-minimal_src_test + } + + netsurf_src_install() { + multilib-minimal_src_install + } + + multilib_src_configure() { + sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \ + -i Makefile || die + if [ -f ${PN}.pc.in ] ; then + sed -e "/^libdir/s:/lib:/$(get_libdir):g" \ + -i ${PN}.pc.in || die + fi + } + + netsurf_make() { + emake CC="$(tc-getCC)" LD="$(tc-getLD)" "${netsurf_makeconf[@]}" \ + COMPONENT_TYPE=lib-shared "$@" + if use static-libs ; then + emake CC="$(tc-getCC)" LD="$(tc-getLD)" "${netsurf_makeconf[@]}" \ + COMPONENT_TYPE=lib-static "$@" + fi + } + + multilib_src_compile() { + netsurf_make + } + + multilib_src_test() { + netsurf_make test + } + + multilib_src_test() { + netsurf_make test + } + + multilib_src_install() { + netsurf_make install + } + + multilib_src_install_all() { + if has doc ${IUSE} ; then + use doc && dohtml -r build/docs/html/* + fi + } +} + +src_prepare() { + netsurf_src_prepare +} + +src_configure() { + netsurf_src_configure + + netsurf_makeconf+=( + WITH_EXPAT_BINDING=$(usex xml $(usex expat yes no) no) + WITH_LIBXML_BINDING=$(usex xml $(usex expat no yes) no) + ) +} + +src_compile() { + netsurf_src_compile +} + +src_test() { + netsurf_src_test +} + +src_install() { + netsurf_src_install +} diff --git a/net-libs/libdom/libdom-9999.ebuild b/net-libs/libdom/libdom-9999.ebuild deleted file mode 100644 index 74b9366d4375..000000000000 --- a/net-libs/libdom/libdom-9999.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# 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-9999.ebuild,v 1.3 2012/07/18 14:23:34 mr_bones_ Exp $ - -EAPI=4 - -inherit git-2 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" -EGIT_REPO_URI="git://git.netsurf-browser.org/libdom.git" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="" -IUSE="static-libs test" - -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 - git-2_src_unpack - 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/* -} |