# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils subversion DESCRIPTION="Linden Labs Mozilla Library (customized for secondlife)" HOMEPAGE="http://wiki.secondlife.com/wiki/LLMozLib2" ESVN_REPO_URI="/trunk/${P/-svn-}" ESVN_REPO_URI="https://svn.secondlife.com/svn/${PN/-svn}${ESVN_REPO_URI%%.*}/" ESVN_REVISION="${P/*.}" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-util/cvs =sys-devel/gcc-3.4* sys-apps/gawk >=dev-lang/perl-5.4 app-arch/unzip app-arch/zip x11-libs/gtk+" # libllmozlib2.a (the only output file) is a static lib, so no RDEPENDs RDEPEND="" ESVN_PATCHES="${FILESDIR}/llmozlib-svn-gentoo.patch" src_compile() { # follow the instructions in README-linux.txt cd "${S}/build_mozilla" || die "failed to cd ${S}/build_mozilla" einfo "checking out the latest firefox from CVS (inefficient)" einfo "instead of trying to pick apart what linden labs is doing" ./linux-checkout_patch_build.sh || die cd "${S}" || die "failed to cd ${S}" ./copy_products_linux.sh || die ./build-linux-llmozlib.sh || die } src_install() { cd "${S}" || die "failed to cd ${S}" LIBNAME="`sed -e 's/LIBNAME=//p;d' build-linux-llmozlib.sh | head -n1`" mkdir -p "${D}/usr/share/games/secondlife/lib/llmozlib" || die cp "${LIBNAME}.a" "${D}/usr/share/games/secondlife/lib/" || die # or is lib_release supposed to be runtime_release? #cd "libraries/`uname -m`-linux/lib_release" #cp libmozjs.so libprofdirserviceprovider_s.a libnspr4.so libplc4.so \ # libplds4.so cp "libraries/`uname -m`-linux/lib_release"/* \ "${D}/usr/share/games/secondlife/lib/llmozlib/" || die }