Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/file: ChangeLog file-5.01.ebuild
Date: Fri, 01 May 2009 01:56:58
Message-Id: E1Lzhzi-0005uY-3k@stork.gentoo.org
1 vapier 09/05/01 01:56:54
2
3 Modified: ChangeLog
4 Added: file-5.01.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc31/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.167 sys-apps/file/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/file/ChangeLog?rev=1.167&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/file/ChangeLog?rev=1.167&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/file/ChangeLog?r1=1.166&r2=1.167
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v
19 retrieving revision 1.166
20 retrieving revision 1.167
21 diff -u -r1.166 -r1.167
22 --- ChangeLog 21 Feb 2009 23:37:50 -0000 1.166
23 +++ ChangeLog 1 May 2009 01:56:54 -0000 1.167
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-apps/file
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.166 2009/02/21 23:37:50 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.167 2009/05/01 01:56:54 vapier Exp $
29 +
30 +*file-5.01 (01 May 2009)
31 +
32 + 01 May 2009; Mike Frysinger <vapier@g.o> +file-5.01.ebuild:
33 + Version bump.
34
35 *file-5.00-r2 (21 Feb 2009)
36
37
38
39
40 1.1 sys-apps/file/file-5.01.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/file/file-5.01.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/file/file-5.01.ebuild?rev=1.1&content-type=text/plain
44
45 Index: file-5.01.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-5.01.ebuild,v 1.1 2009/05/01 01:56:54 vapier Exp $
50
51 inherit eutils distutils libtool flag-o-matic
52
53 DESCRIPTION="identify a file's format by scanning binary data for patterns"
54 HOMEPAGE="ftp://ftp.astron.com/pub/file/"
55 SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz
56 ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz"
57
58 LICENSE="as-is"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
61 IUSE="python"
62
63 src_unpack() {
64 unpack ${P}.tar.gz
65 cd "${S}"
66
67 epatch "${FILESDIR}"/${PN}-4.15-libtool.patch #99593
68
69 elibtoolize
70 epunt_cxx
71
72 # make sure python links against the current libmagic #54401
73 sed -i "/library_dirs/s:'\.\./src':'../src/.libs':" python/setup.py
74 # dont let python README kill main README #60043
75 mv python/README{,.python}
76
77 # only one data file, so put it into /usr/share/misc/
78 # sed -i '/^pkgdatadir/s:/@PACKAGE@::' $(find -name Makefile.in)
79 }
80
81 src_compile() {
82 # file uses things like strndup() and wcwidth()
83 append-flags -D_GNU_SOURCE
84
85 econf || die
86 emake || die
87
88 use python && cd python && distutils_src_compile
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" install || die "make install failed"
93 dodoc ChangeLog MAINT README
94
95 use python && cd python && distutils_src_install
96 }
97
98 pkg_postinst() {
99 use python && distutils_pkg_postinst
100 }
101
102 pkg_postrm() {
103 use python && distutils_pkg_postrm
104 }