/[gentoo-x86]/sys-fs/mtd-utils/mtd-utils-1.5.0.ebuild
Gentoo

Contents of /sys-fs/mtd-utils/mtd-utils-1.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Thu Feb 21 00:03:43 2013 UTC (3 months, 3 weeks ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Add ~arm-linux keywords.

(Portage version: 2.2.0_alpha163_p9/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3)

1 vapier 1.6 # Copyright 1999-2013 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 zmedico 1.7 # $Header: /var/cvsroot/gentoo-x86/sys-fs/mtd-utils/mtd-utils-1.5.0.ebuild,v 1.6 2013/01/03 22:09:46 vapier Exp $
4 vapier 1.1
5     EAPI="3"
6    
7     inherit eutils vcs-snapshot
8    
9     if [[ ${PV} == "99999999" ]] ; then
10     EGIT_REPO_URI="git://git.infradead.org/mtd-utils.git"
11    
12 vapier 1.6 inherit git-2
13 vapier 1.1 SRC_URI=""
14     #KEYWORDS=""
15     else
16     if [[ ${PV} == *.*.* ]] ; then
17     MY_PV="${PV}-*"
18     SRC_URI="http://git.infradead.org/mtd-utils.git/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
19     else
20     MY_PV="${PV}-02ae0aac87576d07202a62d11294ea55b56f450b"
21     SRC_URI="mirror://gentoo/${PN}-snapshot-${MY_PV}.tar.xz"
22     fi
23 zmedico 1.7 KEYWORDS="amd64 arm ~mips ppc x86 ~amd64-linux ~arm-linux ~x86-linux"
24 vapier 1.1 fi
25    
26     DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
27     HOMEPAGE="http://git.infradead.org/?p=mtd-utils.git;a=summary"
28    
29     LICENSE="GPL-2"
30     SLOT="0"
31     IUSE="xattr"
32    
33     # We need libuuid
34     RDEPEND="!sys-fs/mtd
35     dev-libs/lzo
36     sys-libs/zlib
37     >=sys-apps/util-linux-2.16"
38     # ACL is only required for the <sys/acl.h> header file to build mkfs.jffs2
39     # And ACL brings in Attr as well.
40     DEPEND="${RDEPEND}
41     xattr? ( sys-apps/acl )"
42    
43     makeopts() {
44 vapier 1.6 # These affect build output, so keep it common between compile & install.
45     echo CROSS=${CHOST}- V=1
46 vapier 1.1 use xattr || echo WITHOUT_XATTR=1
47     }
48    
49     src_compile() {
50 vapier 1.6 tc-export AR CC RANLIB
51     local compileopts=(
52     AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
53     )
54     emake $(makeopts) "${compileopts[@]}"
55 vapier 1.1 }
56    
57     src_install() {
58 vapier 1.6 emake $(makeopts) install DESTDIR="${ED}"
59 vapier 1.1 dodoc *.txt
60     newdoc mkfs.ubifs/README README.mkfs.ubifs
61     # TODO: check ubi-utils for docs+scripts
62     }

  ViewVC Help
Powered by ViewVC 1.1.20