# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 MOZ_FREETYPE2="no" inherit eutils mozconfig subversion DESCRIPTION="Flock Web Browser" ESVN_REPO_URI="svn://svn-mirror.flock.com/master/flock/branches/cardinal" #SRC_URI="http://ftp.osuosl.org/pub/flock/releases/${PV}/flock-${PV}.2.en-US.linux-i686.tar.gz" #SRC_URI="http://www.gtlib.gatech.edu/pub/flock/source/${PV}/flock-${PV}.0-src.tar.bz2" HOMEPAGE="www.flock.com" KEYWORDS="-* ~ppc" LICENSE="MPL-1.1 GPL-1" IUSE="mozdevelop" DEPEND="dev-cpp/clucene-cvs-flock" S=${WORKDIR} src_unpack() { subversion_src_unpack mv ${S}/mozilla/* ${S} rm ${S}/config/gcc_hidden.h touch ${S}/config/gcc_hidden.h } src_compile() { declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} declare x mozconfig_init mozconfig_annotate '' --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,auth,permissions,reporter mozconfig_annotate '' --enable-application=browser mozconfig_annotate '' --with-clucene-prefix=/usr # Other moz-specific settings mozconfig_final CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ econf || die # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior # to econf, but the quotes cause configure to fail. sed -i -e \ 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ ${S}/config/autoconf.mk \ ${S}/nsprpub/config/autoconf.mk \ ${S}/xpfe/global/buildconfig.html # Fixup the RPATH sed -i -e \ 's|#RPATH_FIXER|'"${MOZILLA_FIVE_HOME}"'|' \ ${S}/config/rules.mk \ ${S}/nsprpub/config/rules.mk \ ${S}/security/coreconf/rules.mk \ ${S}/security/coreconf/rules.mk # This removes extraneous CFLAGS from the Makefiles to reduce RAM # requirements while compiling edit_makefiles emake || die } src_install() { declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} # Most of the installation happens here dodir ${MOZILLA_FIVE_HOME} cp -RL ${S}/dist/bin/* ${D}${MOZILLA_FIVE_HOME} }