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.10.ebuild |
Date: | Sat, 31 Dec 2011 06:01:02 |
Message-Id: | 20111231060052.3E7112004B@flycatcher.gentoo.org |
1 | vapier 11/12/31 06:00:52 |
2 | |
3 | Modified: ChangeLog |
4 | Added: file-5.10.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.214 sys-apps/file/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/file/ChangeLog?rev=1.214&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/file/ChangeLog?rev=1.214&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/file/ChangeLog?r1=1.213&r2=1.214 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v |
20 | retrieving revision 1.213 |
21 | retrieving revision 1.214 |
22 | diff -u -r1.213 -r1.214 |
23 | --- ChangeLog 12 Dec 2011 22:41:16 -0000 1.213 |
24 | +++ ChangeLog 31 Dec 2011 06:00:52 -0000 1.214 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sys-apps/file |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.213 2011/12/12 22:41:16 ago Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.214 2011/12/31 06:00:52 vapier Exp $ |
30 | + |
31 | +*file-5.10 (31 Dec 2011) |
32 | + |
33 | + 31 Dec 2011; Mike Frysinger <vapier@g.o> +file-5.10.ebuild: |
34 | + Version bump. |
35 | |
36 | 12 Dec 2011; Agostino Sarubbo <ago@g.o> file-5.09.ebuild: |
37 | Stable for AMD64, wrt bug #393291 |
38 | |
39 | |
40 | |
41 | 1.1 sys-apps/file/file-5.10.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/file/file-5.10.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/file/file-5.10.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: file-5.10.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2011 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-5.10.ebuild,v 1.1 2011/12/31 06:00:52 vapier Exp $ |
51 | |
52 | EAPI="2" |
53 | PYTHON_DEPEND="python? *" |
54 | SUPPORT_PYTHON_ABIS="1" |
55 | RESTRICT_PYTHON_ABIS="*-jython" |
56 | |
57 | inherit eutils distutils libtool flag-o-matic |
58 | |
59 | DESCRIPTION="identify a file's format by scanning binary data for patterns" |
60 | HOMEPAGE="ftp://ftp.astron.com/pub/file/" |
61 | SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz |
62 | ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz" |
63 | |
64 | LICENSE="BSD-2" |
65 | SLOT="0" |
66 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
67 | IUSE="python static-libs zlib" |
68 | |
69 | RDEPEND="zlib? ( sys-libs/zlib )" |
70 | DEPEND="${RDEPEND}" |
71 | |
72 | PYTHON_MODNAME="magic.py" |
73 | |
74 | src_prepare() { |
75 | elibtoolize |
76 | |
77 | # dont let python README kill main README #60043 |
78 | mv python/README{,.python} |
79 | } |
80 | |
81 | wd() { echo ${WORKDIR}/build-${CHOST}; } |
82 | do_configure() { |
83 | ECONF_SOURCE=${S} |
84 | |
85 | mkdir "$(wd)" |
86 | pushd "$(wd)" >/dev/null |
87 | |
88 | econf "$@" |
89 | |
90 | popd >/dev/null |
91 | } |
92 | src_configure() { |
93 | # file uses things like strndup() and wcwidth() |
94 | append-flags -D_GNU_SOURCE |
95 | |
96 | # when cross-compiling, we need to build up our own file |
97 | # because people often don't keep matching host/target |
98 | # file versions #362941 |
99 | if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then |
100 | ac_cv_header_zlib_h=no \ |
101 | ac_cv_lib_z_gzopen=no \ |
102 | CHOST=${CBUILD} \ |
103 | CFLAGS=${BUILD_CFLAGS} \ |
104 | CXXFLAGS=${BUILD_CXXFLAGS} \ |
105 | CPPFLAGS=${BUILD_CPPFLAGS} \ |
106 | LDFLAGS="${BUILD_LDFLAGS} -static" \ |
107 | do_configure --disable-shared |
108 | fi |
109 | |
110 | export ac_cv_header_zlib_h=$(usex zlib) ac_cv_lib_z_gzopen=$(usex zlib) |
111 | do_configure $(use_enable static-libs static) |
112 | } |
113 | |
114 | do_make() { |
115 | emake -C "$(wd)" "$@" || die |
116 | } |
117 | src_compile() { |
118 | if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then |
119 | CHOST=${CBUILD} do_make -C src file |
120 | PATH=$(CHOST=${CBUILD} wd)/src:${PATH} |
121 | fi |
122 | do_make |
123 | |
124 | use python && cd python && distutils_src_compile |
125 | } |
126 | |
127 | src_install() { |
128 | do_make DESTDIR="${D}" install || die |
129 | dodoc ChangeLog MAINT README |
130 | |
131 | use python && cd python && distutils_src_install |
132 | use static-libs || rm -f "${D}"/usr/lib*/libmagic.la |
133 | } |
134 | |
135 | pkg_postinst() { |
136 | use python && distutils_pkg_postinst |
137 | } |
138 | |
139 | pkg_postrm() { |
140 | use python && distutils_pkg_postrm |
141 | } |