1 |
commit: a7105e6e1674a5bc5f46fdfbcae4f834f508300b |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 2 02:25:52 2021 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Sun May 2 02:27:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a7105e6e |
7 |
|
8 |
sys-libs/safeclib: do not install manpages in doc |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
.../safeclib/safeclib-3.6.0_p20210407-r3.ebuild | 108 +++++++++++++++++++++ |
14 |
1 file changed, 108 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/safeclib/safeclib-3.6.0_p20210407-r3.ebuild b/sys-libs/safeclib/safeclib-3.6.0_p20210407-r3.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..38bbdb9d0 |
19 |
--- /dev/null |
20 |
+++ b/sys-libs/safeclib/safeclib-3.6.0_p20210407-r3.ebuild |
21 |
@@ -0,0 +1,108 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+MODULE_OPTIONAL_USE=modules |
28 |
+inherit autotools linux-info linux-mod |
29 |
+ |
30 |
+MY_REV="986f6d34e49637d68cb41221307231f0ea79ca4d" |
31 |
+ |
32 |
+DESCRIPTION="safec libc extension with all C11 Annex K functions" |
33 |
+HOMEPAGE="https://github.com/rurban/safeclib" |
34 |
+SRC_URI="https://github.com/rurban/safeclib/archive/${MY_REV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="MIT" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64" |
39 |
+IUSE="+constraint-handler doc +extensions modules norm-compat +nullslack test unsafe valgrind" |
40 |
+RESTRICT="!test? ( test )" |
41 |
+PATCHES=( "${FILESDIR}/gh96.patch" ) |
42 |
+BDEPEND=" |
43 |
+ doc? ( app-doc/doxygen[dot] ) |
44 |
+ valgrind? ( dev-util/valgrind ) |
45 |
+" |
46 |
+ |
47 |
+S="${WORKDIR}/${PN}-${MY_REV}" |
48 |
+MODULE_NAMES="slkm(misc:${S}:${S})" |
49 |
+BUILD_TARGETS="all" |
50 |
+BUILD_PARAMS="-f Makefile.kernel" |
51 |
+ |
52 |
+pkg_setup() { |
53 |
+ if use modules ; then |
54 |
+ CONFIG_CHECK="COMPAT_32BIT_TIME" |
55 |
+ ERROR_COMPAT_32BIT_TIME="module require COMPAT_32BIT_TIME to build" |
56 |
+ fi |
57 |
+ linux-mod_pkg_setup |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ eautoreconf |
63 |
+ |
64 |
+ #duplicate the working folder |
65 |
+ #one for the library and one for the module |
66 |
+ cd "${WORKDIR}" || die |
67 |
+ cp -r "${S}" "${S}-lib" || die |
68 |
+} |
69 |
+ |
70 |
+src_configure() { |
71 |
+ export VARTEXFONTS="${T}/fonts" |
72 |
+ |
73 |
+ if use modules ; then |
74 |
+ set_kvobj ko |
75 |
+ econf "${myconf[@]}" --disable-wchar |
76 |
+ fi |
77 |
+ |
78 |
+ cd "${S}-lib" || die |
79 |
+ #forcing wchar because of https://github.com/rurban/safeclib/issues/95 |
80 |
+ local myconf=( |
81 |
+ --disable-static |
82 |
+ --disable-valgrind-sgcheck |
83 |
+ --enable-shared |
84 |
+ --disable-Werror |
85 |
+ $(use_enable constraint-handler) |
86 |
+ $(use_enable doc) |
87 |
+ $(use_enable extensions) |
88 |
+ $(use_enable norm-compat) |
89 |
+ $(use_enable nullslack) |
90 |
+ $(use_enable unsafe) |
91 |
+ $(use_enable valgrind) |
92 |
+ ) |
93 |
+ econf "${myconf[@]}" --enable-wchar |
94 |
+} |
95 |
+ |
96 |
+src_compile() { |
97 |
+ if use modules ; then |
98 |
+ linux-mod_src_compile |
99 |
+ fi |
100 |
+ |
101 |
+ cd "${S}-lib" || die |
102 |
+ default |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ if use modules ; then |
107 |
+ linux-mod_src_install |
108 |
+ fi |
109 |
+ |
110 |
+ cd "${S}-lib" || die |
111 |
+ default |
112 |
+ einstalldocs |
113 |
+ |
114 |
+ if use doc ; then |
115 |
+ rm -rf doc/man || die |
116 |
+ dodoc -r doc/. |
117 |
+ docompress -x "/usr/share/doc/${PF}/html" |
118 |
+ |
119 |
+ # wcsstr towupper towlower manpages collide with sys-apps/man-pages |
120 |
+ rm "${ED}/usr/share/man/man3/towlower.3" || die |
121 |
+ rm "${ED}/usr/share/man/man3/towupper.3" || die |
122 |
+ rm "${ED}/usr/share/man/man3/wcsstr.3" || die |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+src_test() { |
127 |
+ cd "${S}-lib" || die |
128 |
+ emake check |
129 |
+} |