diff options
author | Michael Weber <xmw@gentoo.org> | 2013-06-23 16:46:30 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2013-06-23 16:46:30 +0000 |
commit | de7b1897c2b9337b12655b0e40a1563b4f27db8b (patch) | |
tree | f6c4636f927795fe242c411084e9b5187ed1b020 /dev-libs/nsgenbind | |
parent | Migrate to netsurf.eclass (diff) | |
download | gentoo-2-de7b1897c2b9337b12655b0e40a1563b4f27db8b.tar.gz gentoo-2-de7b1897c2b9337b12655b0e40a1563b4f27db8b.tar.bz2 gentoo-2-de7b1897c2b9337b12655b0e40a1563b4f27db8b.zip |
Migrate to netsurf.eclass
(Portage version: 2.2.0_alpha183/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'dev-libs/nsgenbind')
-rw-r--r-- | dev-libs/nsgenbind/ChangeLog | 5 | ||||
-rw-r--r-- | dev-libs/nsgenbind/nsgenbind-0.0.1.ebuild | 138 |
2 files changed, 8 insertions, 135 deletions
diff --git a/dev-libs/nsgenbind/ChangeLog b/dev-libs/nsgenbind/ChangeLog index 61863a980dc3..fb0f69b336cd 100644 --- a/dev-libs/nsgenbind/ChangeLog +++ b/dev-libs/nsgenbind/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-libs/nsgenbind # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/nsgenbind/ChangeLog,v 1.1 2013/06/18 09:42:58 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nsgenbind/ChangeLog,v 1.2 2013/06/23 16:46:30 xmw Exp $ + + 23 Jun 2013; Michael Weber <xmw@gentoo.org> nsgenbind-0.0.1.ebuild: + Migrate to netsurf.eclass *nsgenbind-0.0.1 (18 Jun 2013) diff --git a/dev-libs/nsgenbind/nsgenbind-0.0.1.ebuild b/dev-libs/nsgenbind/nsgenbind-0.0.1.ebuild index ab750144aec2..9f53eb3486ec 100644 --- a/dev-libs/nsgenbind/nsgenbind-0.0.1.ebuild +++ b/dev-libs/nsgenbind/nsgenbind-0.0.1.ebuild @@ -1,150 +1,20 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/nsgenbind/nsgenbind-0.0.1.ebuild,v 1.1 2013/06/18 09:42:58 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nsgenbind/nsgenbind-0.0.1.ebuild,v 1.2 2013/06/23 16:46:30 xmw Exp $ EAPI=5 +NETSURF_COMPONENT_TYPE=binary -inherit base toolchain-funcs multilib-minimal +inherit netsurf DESCRIPTION="generate javascript to dom bindings from w3c webidl files" HOMEPAGE="http://www.netsurf-browser.org/" -LICENSE="MIT-with-advertising" +LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm" IUSE="" -RDEPEND="" DEPEND="virtual/yacc" PATCHES=( "${FILESDIR}"/${P}-bison-2.6.patch ) -NETSURF_COMPONENT_TYPE=binary - -### future context of netsurf.eclass - -NETSURF_BUILDSYSTEM=${NETSURF_BUILDSYSTEM:-buildsystem-1.0} -NETSURF_COMPONENT_TYPE=${NETSURF_COMPONENT_TYPE:-lib-shared lib-static} -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" -if has lib-static ${NETSURF_COMPONENT_TYPE} ; then - IUSE+=" static-libs" -fi -if has doc ${IUSE} ; then - DEPEND+=" - doc? ( app-doc/doxygen )" -fi -DEPEND+=" - virtual/pkgconfig" -pkg_setup(){ - netsurf_src_prepare() { - base_src_prepare - - multilib_copy_sources - } - - netsurf_src_configure() { - netsurf_makeconf=( - NSSHARED=${WORKDIR}/${NETSURF_BUILDSYSTEM} - Q= - HOST_CC="\$(CC)" - CCOPT= - CCNOOPT= - CCDBG= - LDDBG= - AR="$(tc-getAR)" - BUILD=$(usex debug debug release) - PREFIX="${EROOT}"usr - ) - - multilib-minimal_src_configure - } - - netsurf_src_compile() { - multilib-minimal_src_compile "$@" - - if has doc ${USE} ; then - 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() { - for COMPONENT_TYPE in ${NETSURF_COMPONENT_TYPE} ; do - if [ "${COMPONENT_TYPE}" == "lib-static" ] ; then - if ! use static-libs ; then - continue - fi - fi - emake CC="$(tc-getCC)" LD="$(tc-getLD)" "${netsurf_makeconf[@]}" \ - COMPONENT_TYPE=${COMPONENT_TYPE} "$@" - done - } - - multilib_src_compile() { - netsurf_make "$@" - } - - multilib_src_test() { - netsurf_make test "$@" - } - - multilib_src_install() { - #DEFAULT_ABI may not be the last. - #install to clean dir, rename binaries, move everything back - if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then - netsurf_make DESTDIR="${D}"${ABI} install "$@" - if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then - find "${D}"${ABI}/usr/bin -type f -exec mv {} {}.${ABI} \; - fi - mv "${D}"${ABI}/* "${D}" || die - rmdir "${D}"${ABI} || die - else - netsurf_make DESTDIR="${D}" install "$@" - fi - } - - multilib_src_install_all() { - if has doc ${USE} ; then - dohtml -r build/docs/html/* - fi - } -} - -src_prepare() { - sed -e '/CFLAGS := -/s|:=|+=|' \ - -i Makefile || die - sed -e '/CFLAGS/s: -g : :' \ - -i src/Makefile || die - - netsurf_src_prepare -} - -src_configure() { - netsurf_src_configure -} - -src_compile() { - netsurf_src_compile -} - -src_install() { - netsurf_src_install -} |