/[gentoo-x86]/app-arch/ipkg-utils/ipkg-utils-1.7.050831-r2.ebuild
Gentoo

Contents of /app-arch/ipkg-utils/ipkg-utils-1.7.050831-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 26 18:13:08 2014 UTC (5 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Convert to distutils-r1.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/ipkg-utils/ipkg-utils-1.7.050831-r1.ebuild,v 1.4 2011/03/05 23:46:44 arfrever Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit distutils-r1 eutils toolchain-funcs versionator
10
11 MY_P="${PN}-$(get_version_component_range 3)"
12
13 DESCRIPTION="Tools for working with the ipkg binary package format"
14 HOMEPAGE="http://www.openembedded.org/"
15 SRC_URI="http://handhelds.org/download/packages/ipkg-utils/${MY_P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86"
20 IUSE="minimal"
21
22 DEPEND="
23 !minimal? (
24 app-crypt/gnupg
25 net-misc/curl
26 )"
27 RDEPEND="${DEPEND}"
28
29 S="${WORKDIR}/${MY_P}"
30
31 src_prepare() {
32 epatch "${FILESDIR}/${PN}-tar_call_fixes.patch"
33 epatch "${FILESDIR}/${P}-hashlib.patch"
34
35 sed '/python setup.py build/d' -i Makefile
36
37 if use minimal; then
38 elog "ipkg-upload is not installed when the \`minimal' USE flag is set. If you"
39 elog "need ipkg-upload then rebuild this package without the \`minimal' USE flag."
40 fi
41 }
42
43 src_compile() {
44 distutils-r1_src_compile
45 emake CC="$(tc-getCC)" || die "emake failed"
46 }
47
48 python_install() {
49 distutils-r1_python_install
50
51 if use minimal; then
52 rm "${ED}usr/bin/ipkg-upload" \
53 "${D}$(python_get_scriptdir)/ipkg-upload" || die
54 fi
55 }
56
57 src_install() {
58 distutils-r1_src_install
59 }
60
61 pkg_postinst() {
62 elog "Consider installing sys-apps/fakeroot for use with the ipkg-build command,"
63 elog "that makes it possible to build packages as a normal user."
64 }

  ViewVC Help
Powered by ViewVC 1.1.20