# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils subversion # A well-used example of an eclass function that needs eutils is epatch. If # your source needs patches applied, it's suggested to put your patch in the # 'files' directory and use: # # epatch ${FILESDIR}/patch-name-here # # eclasses tend to list descriptions of how to use their functions properly. # take a look at /usr/portage/eclasses/ for more examples. # Short one-line description of this package. DESCRIPTION="Opkg is a lightweight package management system based on Ipkg" # Homepage, not used by Portage directly but handy for developer reference HOMEPAGE="http://code.google.com/p/opkg" ESVN_REPO_URI="http://opkg.googlecode.com/svn/trunk" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="gpg" S=${WORKDIR} KEYWORDS="~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 }