1 |
commit: 0ebe99a6753e527c36c9d3cb8f62418c13ec84a8 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 3 11:27:50 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 3 11:27:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ebe99a6 |
7 |
|
8 |
sys-apps/file: drop 5.40-r2 |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
sys-apps/file/file-5.40-r2.ebuild | 146 -------------------------------------- |
13 |
1 file changed, 146 deletions(-) |
14 |
|
15 |
diff --git a/sys-apps/file/file-5.40-r2.ebuild b/sys-apps/file/file-5.40-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 74b875bde52..00000000000 |
18 |
--- a/sys-apps/file/file-5.40-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,146 +0,0 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{8..10} ) |
27 |
-DISTUTILS_OPTIONAL=1 |
28 |
- |
29 |
-inherit distutils-r1 libtool toolchain-funcs multilib-minimal |
30 |
- |
31 |
-if [[ ${PV} == "9999" ]] ; then |
32 |
- EGIT_REPO_URI="https://github.com/glensc/file.git" |
33 |
- inherit autotools git-r3 |
34 |
-else |
35 |
- SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz" |
36 |
- KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
37 |
-fi |
38 |
- |
39 |
-DESCRIPTION="identify a file's format by scanning binary data for patterns" |
40 |
-HOMEPAGE="https://www.darwinsys.com/file/" |
41 |
- |
42 |
-LICENSE="BSD-2" |
43 |
-SLOT="0" |
44 |
-IUSE="bzip2 lzma python seccomp static-libs zlib" |
45 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
46 |
- |
47 |
-DEPEND=" |
48 |
- bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) |
49 |
- lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] ) |
50 |
- python? ( |
51 |
- ${PYTHON_DEPS} |
52 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
53 |
- ) |
54 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" |
55 |
-RDEPEND="${DEPEND} |
56 |
- python? ( !dev-python/python-magic ) |
57 |
- seccomp? ( sys-libs/libseccomp[${MULTILIB_USEDEP}] )" |
58 |
- |
59 |
-PATCHES=( |
60 |
- "${FILESDIR}/file-5.39-portage-sandbox.patch" #713710 #728978 |
61 |
- "${FILESDIR}/file-5.40-xz_magic.patch" #784773 |
62 |
- "${FILESDIR}/file-5.40-seccomp-faccessat.patch" |
63 |
- "${FILESDIR}/file-5.40-seccomp-fstatat64.patch" #784857 |
64 |
-) |
65 |
- |
66 |
-src_prepare() { |
67 |
- default |
68 |
- |
69 |
- if [[ ${PV} == 9999 ]] ; then |
70 |
- eautoreconf |
71 |
- fi |
72 |
- |
73 |
- elibtoolize |
74 |
- |
75 |
- # don't let python README kill main README #60043 |
76 |
- mv python/README.md python/README.python.md || die |
77 |
- sed 's@××××××.md@README.python.md@' -i python/setup.py || die #662090 |
78 |
-} |
79 |
- |
80 |
-multilib_src_configure() { |
81 |
- local myeconfargs=( |
82 |
- --enable-fsect-man5 |
83 |
- $(use_enable bzip2 bzlib) |
84 |
- $(use_enable lzma xzlib) |
85 |
- $(use_enable seccomp libseccomp) |
86 |
- $(use_enable static-libs static) |
87 |
- $(use_enable zlib) |
88 |
- ) |
89 |
- econf "${myeconfargs[@]}" |
90 |
-} |
91 |
- |
92 |
-build_src_configure() { |
93 |
- local myeconfargs=( |
94 |
- --disable-shared |
95 |
- --disable-libseccomp |
96 |
- --disable-bzlib |
97 |
- --disable-xzlib |
98 |
- --disable-zlib |
99 |
- ) |
100 |
- tc-env_build econf "${myeconfargs[@]}" |
101 |
-} |
102 |
- |
103 |
-need_build_file() { |
104 |
- # when cross-compiling, we need to build up our own file |
105 |
- # because people often don't keep matching host/target |
106 |
- # file versions #362941 |
107 |
- tc-is-cross-compiler && ! has_version -b "~${CATEGORY}/${P}" |
108 |
-} |
109 |
- |
110 |
-src_configure() { |
111 |
- local ECONF_SOURCE="${S}" |
112 |
- |
113 |
- if need_build_file ; then |
114 |
- mkdir -p "${WORKDIR}"/build || die |
115 |
- cd "${WORKDIR}"/build || die |
116 |
- build_src_configure |
117 |
- fi |
118 |
- |
119 |
- multilib-minimal_src_configure |
120 |
-} |
121 |
- |
122 |
-multilib_src_compile() { |
123 |
- if multilib_is_native_abi ; then |
124 |
- emake |
125 |
- else |
126 |
- cd src || die |
127 |
- emake magic.h #586444 |
128 |
- emake libmagic.la |
129 |
- fi |
130 |
-} |
131 |
- |
132 |
-src_compile() { |
133 |
- if need_build_file ; then |
134 |
- emake -C "${WORKDIR}"/build/src magic.h #586444 |
135 |
- emake -C "${WORKDIR}"/build/src file |
136 |
- local -x PATH="${WORKDIR}/build/src:${PATH}" |
137 |
- fi |
138 |
- multilib-minimal_src_compile |
139 |
- |
140 |
- if use python ; then |
141 |
- cd python || die |
142 |
- distutils-r1_src_compile |
143 |
- fi |
144 |
-} |
145 |
- |
146 |
-multilib_src_install() { |
147 |
- if multilib_is_native_abi ; then |
148 |
- default |
149 |
- else |
150 |
- emake -C src install-{nodist_includeHEADERS,libLTLIBRARIES} DESTDIR="${D}" |
151 |
- fi |
152 |
-} |
153 |
- |
154 |
-multilib_src_install_all() { |
155 |
- dodoc ChangeLog MAINT README |
156 |
- |
157 |
- # Required for `file -C` |
158 |
- insinto /usr/share/misc/magic |
159 |
- doins -r magic/Magdir/* |
160 |
- |
161 |
- if use python ; then |
162 |
- cd python || die |
163 |
- distutils-r1_src_install |
164 |
- fi |
165 |
- find "${ED}" -type f -name "*.la" -delete || die |
166 |
-} |