# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils subversion DESCRIPTION="Opkg is a lightweight package management system based on Ipkg" HOMEPAGE="http://code.google.com/p/opkg" ESVN_REPO_URI="http://opkg.googlecode.com/svn/trunk" if [ "${PR}" != "r0" ]; then # Add revision number in suggested format, otherwise fetch HEAD # See 'man subversion.eclass' ESVN_REPO_URI="${ESVN_REPO_URI}@${PR/r/}" fi LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="gpg" S=${WORKDIR} KEYWORDS="~arm ~x86" DEPEND="net-misc/curl gpg? ( app-crypt/gpgme )" RDEPEND="${DEPEND}" src_unpack() { subversion_src_unpack autoreconf --install } src_compile() { econf $(use_enable gpg) --with-opkglibdir=/var/lib/opkg || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog ChangeLog.ipkg README TODO keepdir /var/lib/opkg }