Lines 2-13
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-5.12-r1.ebuild,v 1.1 2013/02/09 06:52:20 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-5.12-r1.ebuild,v 1.1 2013/02/09 06:52:20 vapier Exp $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI=5 |
6 |
PYTHON_DEPEND="python? *" |
|
|
7 |
SUPPORT_PYTHON_ABIS="1" |
8 |
RESTRICT_PYTHON_ABIS="*-jython" |
9 |
|
6 |
|
10 |
inherit eutils distutils libtool toolchain-funcs |
7 |
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} ) |
|
|
8 |
DISTUTILS_OPTIONAL=1 |
9 |
|
10 |
inherit eutils distutils-r1 libtool toolchain-funcs |
11 |
|
11 |
|
12 |
DESCRIPTION="identify a file's format by scanning binary data for patterns" |
12 |
DESCRIPTION="identify a file's format by scanning binary data for patterns" |
13 |
HOMEPAGE="ftp://ftp.astron.com/pub/file/" |
13 |
HOMEPAGE="ftp://ftp.astron.com/pub/file/" |
Lines 20-30
SLOT="0"
Link Here
|
20 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
20 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
21 |
IUSE="python static-libs zlib" |
21 |
IUSE="python static-libs zlib" |
22 |
|
22 |
|
23 |
RDEPEND="zlib? ( sys-libs/zlib )" |
23 |
RDEPEND="python? ( ${PYTHON_DEPS} ) |
|
|
24 |
zlib? ( sys-libs/zlib )" |
24 |
DEPEND="${RDEPEND}" |
25 |
DEPEND="${RDEPEND}" |
25 |
|
26 |
|
26 |
PYTHON_MODNAME="magic.py" |
|
|
27 |
|
28 |
src_prepare() { |
27 |
src_prepare() { |
29 |
epatch "${WORKDIR}"/${P}-magic-updates-4d53f0549fb40b179eaee53c63c42e1685e4ebab.patch |
28 |
epatch "${WORKDIR}"/${P}-magic-updates-4d53f0549fb40b179eaee53c63c42e1685e4ebab.patch |
30 |
|
29 |
|
Lines 77-97
src_compile() {
Link Here
|
77 |
fi |
76 |
fi |
78 |
do_make |
77 |
do_make |
79 |
|
78 |
|
80 |
use python && cd python && distutils_src_compile |
79 |
use python && cd python && distutils-r1_src_compile |
81 |
} |
80 |
} |
82 |
|
81 |
|
83 |
src_install() { |
82 |
src_install() { |
84 |
do_make DESTDIR="${D}" install || die |
83 |
do_make DESTDIR="${D}" install || die |
85 |
dodoc ChangeLog MAINT README |
84 |
dodoc ChangeLog MAINT README |
86 |
|
85 |
|
87 |
use python && cd python && distutils_src_install |
86 |
use python && cd python && distutils-r1_src_install |
88 |
use static-libs || rm -f "${D}"/usr/lib*/libmagic.la |
87 |
use static-libs || rm -f "${D}"/usr/lib*/libmagic.la |
89 |
} |
88 |
} |
90 |
|
|
|
91 |
pkg_postinst() { |
92 |
use python && distutils_pkg_postinst |
93 |
} |
94 |
|
95 |
pkg_postrm() { |
96 |
use python && distutils_pkg_postrm |
97 |
} |