# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # See bug #228699 DESCRIPTION="Conkeror is a XULRunner-based web browser with Emacs-like shortcuts." HOMEPAGE="http://conkeror.org/" # SRC_URI="http://repo.or.cz/w/conkeror.git?a=snapshot;h=master;sf=tgz" SRC_URI="" LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND=">=net-libs/xulrunner-1.9" DEPEND="${RDEPEND}" pkg_setup() { # Portage doesn't recognize the fetched sources and thus won't unpack them automatically. # We'll have to download and unpack ourselves. wget -O ${DISTDIR}/conkeror-snapshot.tar.gz http://repo.or.cz/w/conkeror.git?a=snapshot;h=master;sf=tgz } src_unpack() { tar xvfp ${DISTDIR}/conkeror-snapshot.tar.gz -C ${WORKDIR} mkdir -p ${S} mv ${WORKDIR}/${PN}/* ${S}/ } src_compile() { cd ${S} emake || die "emake failed" } src_install() { mkdir -p ${D}/usr/lib/${PN} cp -a ${S}/* ${D}/usr/lib/${PN}/ || die "Install failed!" } pkg_preinst() { cp -a /usr/lib/xulrunner-1.9/xulrunner-stub ${D}/usr/lib/${PN}/conkeror } pkg_postinst() { # We'll create a symlink in /usr/bin ln -s /usr/lib/${PN}/conkeror /usr/bin/conkeror echo elog "Conkeror is a self-documenting browser. It will" elog "greet you with the user manual on first startup." elog "Visit http://conkeror.org/ for further help." echo } pkg_postrm() { # rm /usr/bin/conkeror }