1 |
commit: 7120c4900990f146ba3bc03d3447f1e20ac78fdc |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 23 08:32:41 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 23 08:35:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7120c490 |
7 |
|
8 |
dev-libs/libmissing: remove last-rited package |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libmissing/Manifest | 1 - |
13 |
dev-libs/libmissing/libmissing-1.1.0.ebuild | 171 ---------------------------- |
14 |
dev-libs/libmissing/metadata.xml | 8 -- |
15 |
3 files changed, 180 deletions(-) |
16 |
|
17 |
diff --git a/dev-libs/libmissing/Manifest b/dev-libs/libmissing/Manifest |
18 |
deleted file mode 100644 |
19 |
index 39d4a175c2a..00000000000 |
20 |
--- a/dev-libs/libmissing/Manifest |
21 |
+++ /dev/null |
22 |
@@ -1 +0,0 @@ |
23 |
-DIST gnulib-b451121ab45497e78cb6f612c8673a9705193391.tar.gz 6666079 BLAKE2B e7d3b9478697067b57ab198e044f3c854128d5fe390d30947829ce4f34c695a748668c33ae19690e9927fff6df3e194a3160cb4adb7cf47235c603241c66889a SHA512 f6e165cfc0a3999c778d9f43ffc90ff9b569a77ff1e54ff5c50b12b0eddf262c24da8cd2719548574e0397535bb0eb835eef603cc74769f7876ef9db101bebec |
24 |
|
25 |
diff --git a/dev-libs/libmissing/libmissing-1.1.0.ebuild b/dev-libs/libmissing/libmissing-1.1.0.ebuild |
26 |
deleted file mode 100644 |
27 |
index a60e94ec453..00000000000 |
28 |
--- a/dev-libs/libmissing/libmissing-1.1.0.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,171 +0,0 @@ |
31 |
-# Copyright 2019 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-inherit autotools |
37 |
- |
38 |
-# NOTE: PV is the libtool version number current:revision:age |
39 |
- |
40 |
-DESCRIPTION="Library with missing functions based on GNUlib" |
41 |
-HOMEPAGE="https://prefix.gentoo.org" |
42 |
-GIT_TAG="b451121ab45497e78cb6f612c8673a9705193391" |
43 |
-SRC_URI="https://git.savannah.gnu.org/cgit/gnulib.git/snapshot/gnulib-${GIT_TAG}.tar.gz" |
44 |
- |
45 |
-LICENSE="GPL-2" |
46 |
-SLOT="0" |
47 |
-KEYWORDS="~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
-#IUSE="static-libs" # dynamic won't work :( |
49 |
- |
50 |
-DEPEND="" |
51 |
-RDEPEND="${DEPEND}" |
52 |
-BDEPEND="" |
53 |
- |
54 |
-S="${WORKDIR}/gnulib-${GIT_TAG}" |
55 |
- |
56 |
-src_prepare() { |
57 |
- default |
58 |
- |
59 |
- # create a config file with just the definitions we need |
60 |
- mkdir extern-inline || die |
61 |
- cd extern-inline || die |
62 |
- |
63 |
- cat > configure.ac <<- EOS |
64 |
- AC_PREREQ([2.69]) |
65 |
- AC_INIT([${PN}], [${PV}], [prefix@g.o]) |
66 |
- |
67 |
- AC_CONFIG_MACRO_DIR([../m4]) |
68 |
- AC_CONFIG_HEADER([missing-include.h]) |
69 |
- |
70 |
- gl_EXTERN_INLINE |
71 |
- EOS |
72 |
- |
73 |
- eautoreconf |
74 |
- sed -e '1,/PACKAGE_VERSION/d' missing-include.h.in \ |
75 |
- > "${T}"/missing-include.h |
76 |
- cd .. || die |
77 |
- |
78 |
- mkdir "${PN}" || die |
79 |
- cd "${PN}" || die |
80 |
- cat > configure.ac <<- EOS |
81 |
- AC_PREREQ([2.69]) |
82 |
- AC_INIT([${PN}], [${PV}], [prefix@g.o]) |
83 |
- AM_INIT_AUTOMAKE |
84 |
- LT_INIT |
85 |
- |
86 |
- AC_CONFIG_MACRO_DIR([m4]) |
87 |
- AC_CONFIG_HEADER([config.h]) |
88 |
- |
89 |
- AC_PROG_CC |
90 |
- gl_INIT |
91 |
- gl_EARLY |
92 |
- |
93 |
- AC_CONFIG_FILES([Makefile lib/Makefile]) |
94 |
- |
95 |
- AC_OUTPUT |
96 |
- EOS |
97 |
- |
98 |
- cat > Makefile.am <<- EOS |
99 |
- SUBDIRS = lib |
100 |
- EOS |
101 |
- |
102 |
- local modules |
103 |
- local platform |
104 |
- local rev |
105 |
- |
106 |
- case "${CHOST}" in |
107 |
- *-apple-darwin*) |
108 |
- rev=${CHOST##*-darwin} |
109 |
- platform="Mac OS X 10.$((rev - 4))" |
110 |
- ;; |
111 |
- *-solaris2.*) |
112 |
- rev=${CHOST##*-solaris2.} |
113 |
- # we only support Solaris 10 (and perhaps 9) and up, so we |
114 |
- # don't have to bother about 2.x, just X |
115 |
- platform="Solaris ${rev}" |
116 |
- ;; |
117 |
- esac |
118 |
- |
119 |
- # blacklist some modules that cause collisions |
120 |
- # iconv provided by virtual/iconv -> sys-libs/libiconv |
121 |
- modules=( $( |
122 |
- cd "${S}"/doc/posix-functions |
123 |
- grep -A1 "This function is missing" *.texi | \ |
124 |
- grep "${platform}" | \ |
125 |
- sed -e 's:^\(.[^-]*\)-.*$:\1:' | \ |
126 |
- xargs sed -n 's/^Gnulib module: \([a-z].*\)$/\1/p' | \ |
127 |
- sed -e 's: or .*$::' -e 's:, :\n:g' | \ |
128 |
- sort -u | \ |
129 |
- grep -v "iconv" |
130 |
- ) ) |
131 |
- |
132 |
- # get platform specific set of missing functions |
133 |
- einfo "Including sources for missing functions on ${platform}:" |
134 |
- einfo "${modules[*]}" |
135 |
- "${S}"/gnulib-tool -S \ |
136 |
- --import \ |
137 |
- --lib=libmissing \ |
138 |
- --libtool \ |
139 |
- --no-vc-files \ |
140 |
- --no-cache-modules \ |
141 |
- "${modules[@]}" |
142 |
- |
143 |
- sed -i -e '/^noinst_LTLIBRARIES /s/noinst_/lib_/' lib/Makefile.am || die |
144 |
- echo "libmissing_la_LDFLAGS += -version-info ${PV//./:}" >> lib/Makefile.am |
145 |
- cat >> lib/Makefile.am << 'EOS' |
146 |
-install-data-local: $(BUILT_SOURCES) |
147 |
- @for hdr in $(BUILT_SOURCES); do \ |
148 |
- $(INSTALL_HEADER) -D "$$hdr" $(DESTDIR)$(includedir)/$${hdr}; \ |
149 |
- done; |
150 |
-EOS |
151 |
- |
152 |
- eautoreconf |
153 |
-} |
154 |
- |
155 |
-src_configure() { |
156 |
- cd "${PN}" || die |
157 |
- |
158 |
- # ensure we don't pick up installed libmissing |
159 |
- export CPPFLAGS+="-DDISABLE_LIBMISSING" # disable libmissing headers |
160 |
- export BINUTILS_CONFIG_DISABLE_MISSING=1 # disable -lmissing from ldwrapper |
161 |
- export CPPFLAGS="${CPPFLAGS/-I${EPREFIX}\/usr\/include\/missing/}" |
162 |
- export LIBS="${LIBS/-lmissing/}" |
163 |
- einfo "CPPFLAGS: ${CPPFLAGS}" |
164 |
- einfo "LIBS: ${LIBS}" |
165 |
- |
166 |
- # gnulib cannot be used a shared library, doing so results in stack |
167 |
- # protector checks failing for reasons yet unknown to me |
168 |
- econf --disable-shared --enable-static |
169 |
-} |
170 |
- |
171 |
-src_compile() { |
172 |
- cd "${PN}" || die |
173 |
- default |
174 |
-} |
175 |
- |
176 |
-src_install() { |
177 |
- cd "${PN}" || die |
178 |
- |
179 |
- default |
180 |
- |
181 |
- rm -f "${ED}"/usr/lib/libmissing.la || die |
182 |
- |
183 |
- cd "${ED}/usr/include" || die |
184 |
- |
185 |
- # fix config.h dependency so we can can distribute it without |
186 |
- local f |
187 |
- for f in $(grep "_GL_INLINE_HEADER_BEGIN" -l *.h */*.h) ; do |
188 |
- cat "${T}"/missing-include.h "${f}" > "${f}.new" |
189 |
- [[ -s "${f}.new" ]] && mv "${f}.new" "${f}" |
190 |
- done |
191 |
- |
192 |
- # modify all header-files so we can disable them and that they won't |
193 |
- # clash with gnulib-based packages |
194 |
- for f in *.h */*.h ; do |
195 |
- sed -i \ |
196 |
- -e '1i#ifdef DISABLE_LIBMISSING\n# include_next <'"${f}"'>\n#else' \ |
197 |
- -e '$a#endif /* DISABLE_LIBMISSING */' \ |
198 |
- -e 's/_GL_/_LIBMISSING_/g' \ |
199 |
- "${f}" || die |
200 |
- done |
201 |
-} |
202 |
|
203 |
diff --git a/dev-libs/libmissing/metadata.xml b/dev-libs/libmissing/metadata.xml |
204 |
deleted file mode 100644 |
205 |
index 5cee1da3a9e..00000000000 |
206 |
--- a/dev-libs/libmissing/metadata.xml |
207 |
+++ /dev/null |
208 |
@@ -1,8 +0,0 @@ |
209 |
-<?xml version="1.0" encoding="UTF-8"?> |
210 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
211 |
-<pkgmetadata> |
212 |
-<maintainer type="project"> |
213 |
- <email>prefix@g.o</email> |
214 |
- <name>Prefix Project</name> |
215 |
-</maintainer> |
216 |
-</pkgmetadata> |