Prereq: 1.1 Index: ipkg-utils/ipkg-utils-1.7.050831.ebuild =================================================================== --- ipkg-utils/ipkg-utils-1.7.050831.ebuild {cset f8b7600e-450a-4d01-acc7-87ea3de7f648} +++ ipkg-utils/ipkg-utils-1.7.050831.ebuild {local clone} @@ -10,17 +10,26 @@ DESCRIPTION="Tools for working with the HOMEPAGE="http://www.openembedded.org/" SRC_URI="http://handhelds.org/download/packages/ipkg-utils/${MY_P}.tar.gz" LICENSE="GPL-2" -IUSE="" +IUSE="minimal" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86" S=${WORKDIR}/${MY_P} -DEPEND="dev-lang/python" +DEPEND="dev-lang/python + !minimal? ( + app-crypt/gnupg + net-misc/curl + )" src_unpack() { unpack ${A}; cd ${S} epatch ${FILESDIR}/${PN}-1.7-build_fixes.patch + + if use minimal; then + einfo "ipkg-upload is not installed when the \`minimal' USE flag is set. If you" + einfo "need ipkg-upload then rebuild this package without the \`minimal' USE flag." + fi } src_compile() { @@ -31,6 +40,7 @@ src_compile() { src_install() { distutils_src_install make DESTDIR=${D} install || die + use minimal && rm ${D}/usr/bin/ipkg-upload } pkg_postinst() { Prereq: 1.6 Index: ipkg-utils/ipkg-utils-1.7.ebuild =================================================================== --- ipkg-utils/ipkg-utils-1.7.ebuild {cset aa83b19c-ff94-4e06-8641-5597b91c865b} +++ ipkg-utils/ipkg-utils-1.7.ebuild {local clone} @@ -8,16 +8,25 @@ DESCRIPTION="Tools for working with the HOMEPAGE="http://www.openembedded.org/" SRC_URI="http://handhelds.org/download/packages/ipkg-utils/${P}.tar.gz" LICENSE="GPL-2" -IUSE="" +IUSE="minimal" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86" -DEPEND="dev-lang/python" +DEPEND="dev-lang/python + !minimal? ( + app-crypt/gnupg + net-misc/curl + )" src_unpack() { unpack ${A}; cd ${S} epatch ${FILESDIR}/${P}-build_fixes.patch + + if use minimal; then + einfo "ipkg-upload is not installed when the \`minimal' USE flag is set. If you" + einfo "need ipkg-upload then rebuild this package without the \`minimal' USE flag." + fi } src_compile() { @@ -28,4 +37,5 @@ src_compile() { src_install() { distutils_src_install make DESTDIR=${D} install || die + use minimal && rm ${D}/usr/bin/ipkg-upload }