1 |
commit: 5c765bc480cf575159b3189a6776d0bf84503aa3 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 7 13:20:07 2017 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 7 13:20:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c765bc4 |
7 |
|
8 |
dev-libs/botan: version bump |
9 |
|
10 |
Bug: 621120 |
11 |
|
12 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
13 |
|
14 |
dev-libs/botan/Manifest | 1 + |
15 |
dev-libs/botan/botan-1.10.16.ebuild | 157 ++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 158 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/botan/Manifest b/dev-libs/botan/Manifest |
19 |
index 956fa8b14c0..0e8604021dc 100644 |
20 |
--- a/dev-libs/botan/Manifest |
21 |
+++ b/dev-libs/botan/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST Botan-1.10.15.tgz 2711022 SHA256 c0cc8ffd470fda4b257c3ef9faf5cf93751f4c283dfba878148acafedfab70fe SHA512 c3b93f44ad0de9758af11557833ee570aa0724c8b57c9a576b56ab439a7819e0f71a10857ad367b486716164dd4ff551cab2036ecbbbedd75db4b8dc93416bc8 WHIRLPOOL 834cad8b38787581d8d967b2fa6ffb6164e2bf8a124d993733a7d55202439ec543c18cb6cb03721c0e8eb67cbe2a486b8199b3b8784645e0033be298f36640b9 |
24 |
+DIST Botan-1.10.16.tgz 2711177 SHA256 6c5472401d06527e87adcb53dd270f3c9b1fb688703b04dd7a7cfb86289efe52 SHA512 967137c89484630806e828c3902fe27c28dae17e6a3aeae7c542093de356545be4fcbe4325afd9fb40093a10ac409244e4e6503364858facb59057a5dfd61c03 WHIRLPOOL 86ec99dbadcdf1ff27d1b11a133a15be8385f32cf7f456afa9ca0756e3e0c8e640fff3e5d2753d508cf1136268ae5912b3c610a75d30cf07f206896fb8b5e6a8 |
25 |
DIST Botan-2.1.0.tgz 5073684 SHA256 460f2d7205aed113f898df4947b1f66ccf8d080eec7dac229ef0b754c9ad6294 SHA512 af9ea35baf431500d380a360525e20e67dd17fdeaa442726019d544e9e423c301196cc17b09a3831f956ca9e62d7e99797f129b26fac10a653dd04e3ad1f4f4f WHIRLPOOL 75289db8f2a6bd075562acc1fd1a8297ad74369022941af7b08878dd94cc28494193a3937aae377c856d2957bf1ac3b564c0cd0ceae0701beab308c082c07fe6 |
26 |
|
27 |
diff --git a/dev-libs/botan/botan-1.10.16.ebuild b/dev-libs/botan/botan-1.10.16.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..30a0db0b886 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/botan/botan-1.10.16.ebuild |
32 |
@@ -0,0 +1,157 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
38 |
+ |
39 |
+inherit multilib python-r1 toolchain-funcs |
40 |
+ |
41 |
+MY_PN="Botan" |
42 |
+MY_P="${MY_PN}-${PV}" |
43 |
+DESCRIPTION="A C++ crypto library" |
44 |
+HOMEPAGE="http://botan.randombit.net/" |
45 |
+SRC_URI="http://botan.randombit.net/releases/${MY_P}.tgz" |
46 |
+ |
47 |
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos" |
48 |
+SLOT="0" |
49 |
+LICENSE="BSD" |
50 |
+IUSE="bindist doc python bzip2 gmp libressl ssl static-libs threads zlib" |
51 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
52 |
+ |
53 |
+S="${WORKDIR}/${MY_P}" |
54 |
+ |
55 |
+RDEPEND="bzip2? ( >=app-arch/bzip2-1.0.5 ) |
56 |
+ zlib? ( >=sys-libs/zlib-1.2.3 ) |
57 |
+ python? ( ${PYTHON_DEPS} >=dev-libs/boost-1.48[python,${PYTHON_USEDEP}] ) |
58 |
+ gmp? ( >=dev-libs/gmp-4.2.2:* ) |
59 |
+ ssl? ( |
60 |
+ !libressl? ( dev-libs/openssl:0=[bindist=] ) |
61 |
+ libressl? ( dev-libs/libressl:0= ) |
62 |
+ )" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ doc? ( dev-python/sphinx )" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/${PN}-1.10.15-c++11.patch" |
68 |
+) |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ |
73 |
+ sed -e "s/-Wl,-soname,\$@ //" -i src/build-data/makefile/python.in || die "sed failed" |
74 |
+ sed \ |
75 |
+ -e "/DOCDIR/d" \ |
76 |
+ -e "/^install:/s/ docs//" \ |
77 |
+ -i src/build-data/makefile/unix_shr.in || die "sed failed" |
78 |
+ |
79 |
+ # Fix ImportError with Python 3. |
80 |
+ sed -e "s/_botan/.&/" -i src/wrap/python/__init__.py || die "sed failed" |
81 |
+ |
82 |
+ use python && python_copy_sources |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ local disable_modules="proc_walk,unix_procs" |
87 |
+ use threads || disable_modules+=",pthreads" |
88 |
+ use bindist && disable_modules+=",ecdsa" |
89 |
+ elog "Disabling modules: ${disable_modules}" |
90 |
+ |
91 |
+ # Enable v9 instructions for sparc64 |
92 |
+ if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then |
93 |
+ CHOSTARCH="sparc32-v9" |
94 |
+ else |
95 |
+ CHOSTARCH="${CHOST%%-*}" |
96 |
+ fi |
97 |
+ |
98 |
+ local myos= |
99 |
+ case ${CHOST} in |
100 |
+ *-darwin*) myos=darwin ;; |
101 |
+ *) myos=linux ;; |
102 |
+ esac |
103 |
+ |
104 |
+ # foobared buildsystem, --prefix translates into DESTDIR, see also make |
105 |
+ # install in src_install, we need the correct live-system prefix here on |
106 |
+ # Darwin for a shared lib with correct install_name |
107 |
+ ./configure.py \ |
108 |
+ --prefix="${EPREFIX}/usr" \ |
109 |
+ --libdir=$(get_libdir) \ |
110 |
+ --docdir=share/doc \ |
111 |
+ --cc=gcc \ |
112 |
+ --os=${myos} \ |
113 |
+ --cpu=${CHOSTARCH} \ |
114 |
+ --with-endian="$(tc-endian)" \ |
115 |
+ --without-sphinx \ |
116 |
+ --with-tr1=system \ |
117 |
+ $(use_with bzip2) \ |
118 |
+ $(use_with gmp gnump) \ |
119 |
+ $(use_with python boost-python) \ |
120 |
+ $(use_with ssl openssl) \ |
121 |
+ $(use_with zlib) \ |
122 |
+ --disable-modules=${disable_modules} \ |
123 |
+ || die "configure.py failed" |
124 |
+} |
125 |
+ |
126 |
+src_compile() { |
127 |
+ emake CXX="$(tc-getCXX)" AR="$(tc-getAR) crs" LIB_OPT="${CXXFLAGS}" MACH_OPT="" |
128 |
+ |
129 |
+ if use python; then |
130 |
+ building() { |
131 |
+ rm -fr build/python |
132 |
+ ln -s "${BUILD_DIR}" build/python |
133 |
+ cp Makefile.python build/python |
134 |
+ sed -i \ |
135 |
+ -e "s/-lboost_python/-lboost_python-$(echo ${EPYTHON} | sed 's/python//')/" \ |
136 |
+ build/python/Makefile.python |
137 |
+ emake -f build/python/Makefile.python \ |
138 |
+ CXX="$(tc-getCXX)" \ |
139 |
+ CFLAGS="${CXXFLAGS}" \ |
140 |
+ LDFLAGS="${LDFLAGS}" \ |
141 |
+ PYTHON_ROOT="/usr/$(get_libdir)" \ |
142 |
+ PYTHON_INC="-I$(python_get_includedir)" |
143 |
+ } |
144 |
+ python_foreach_impl building |
145 |
+ fi |
146 |
+ |
147 |
+ if use doc; then |
148 |
+ einfo "Generation of documentation" |
149 |
+ sphinx-build doc doc_output |
150 |
+ fi |
151 |
+} |
152 |
+ |
153 |
+src_test() { |
154 |
+ chmod -R ugo+rX "${S}" |
155 |
+ emake CXX="$(tc-getCXX)" CHECK_OPT="${CXXFLAGS}" check |
156 |
+ LD_LIBRARY_PATH="${S}" ./check --validate || die "Validation tests failed" |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ emake DESTDIR="${ED}usr" install |
161 |
+ |
162 |
+ if ! use static-libs; then |
163 |
+ rm "${ED}usr/$(get_libdir)/libbotan"*.a || die 'remove of static libs failed' |
164 |
+ fi |
165 |
+ |
166 |
+ # Add compatibility symlinks. |
167 |
+ [[ -e "${ED}usr/bin/botan-config" ]] && die "Compatibility code no longer needed" |
168 |
+ [[ -e "${ED}usr/$(get_libdir)/pkgconfig/botan.pc" ]] && die "Compatibility code no longer needed" |
169 |
+ dosym botan-config-1.10 /usr/bin/botan-config |
170 |
+ dosym botan-1.10.pc /usr/$(get_libdir)/pkgconfig/botan.pc |
171 |
+ |
172 |
+ if use python; then |
173 |
+ installation() { |
174 |
+ rm -fr build/python |
175 |
+ ln -s "${BUILD_DIR}" build/python |
176 |
+ emake -f Makefile.python \ |
177 |
+ PYTHON_SITE_PACKAGE_DIR="${ED}$(python_get_sitedir)" \ |
178 |
+ install |
179 |
+ } |
180 |
+ python_foreach_impl installation |
181 |
+ fi |
182 |
+ |
183 |
+ if use doc; then |
184 |
+ pushd doc_output > /dev/null |
185 |
+ insinto /usr/share/doc/${PF}/html |
186 |
+ doins -r [a-z]* _static |
187 |
+ popd > /dev/null |
188 |
+ fi |
189 |
+} |