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