Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-libs/ntdb/files/, sys-libs/ntdb/
Date: Sat, 02 Apr 2016 16:50:51
Message-Id: 1459613874.8bb85afc65349950c6192e74f9932b27883fec7f.blueness@gentoo
1 commit: 8bb85afc65349950c6192e74f9932b27883fec7f
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 16:17:54 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 16:17:54 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=8bb85afc
7
8 sys-libs/ntdb: drop redundant check for strto[u]q from #error to #warning
9
10 sys-libs/ntdb/Manifest | 4 ++
11 .../ntdb/files/ntdb-1.0-drop-need-strtoq.patch | 21 +++++++++
12 sys-libs/ntdb/metadata.xml | 12 +++++
13 sys-libs/ntdb/ntdb-1.0-r99.ebuild | 54 ++++++++++++++++++++++
14 4 files changed, 91 insertions(+)
15
16 diff --git a/sys-libs/ntdb/Manifest b/sys-libs/ntdb/Manifest
17 new file mode 100644
18 index 0000000..28ed59e
19 --- /dev/null
20 +++ b/sys-libs/ntdb/Manifest
21 @@ -0,0 +1,4 @@
22 +AUX ntdb-1.0-drop-need-strtoq.patch 667 SHA256 3ed10e0a310c497a16dcb65bd28fc9a5e47f70c0ad4d588d7d03deed14778bcf SHA512 a2707fa1601e2d74148f04bf00866ef56e7f715174593723df2bd4829b94f6552239db95990972aad2470bf264e3980b17f3e134e93d700c4982b8d94097826c WHIRLPOOL 1b2947973021a87e4309390cc1d695a433531cda3636355265312c67be77c752c3aa2fff20a8abeea4f90d1f002e019abff113cad56fe14b1bdbec7352de7b3a
23 +DIST ntdb-1.0.tar.gz 794585 SHA256 817ae862b1e6976cab867468f209d8417a90c7c2fcf0ec079a45645d7e7ebf49 SHA512 27f550f85a7bfd105d4115b55f9919f1871964f576a8470688fe8040fb9e2be209246a291d78f55c61cf0920238d7f41917ad7e2d44b202382b3ea47c8c97100 WHIRLPOOL 71a007312eacf7805dadc0b0089f7344b270a628e9dc3c1d8aeb505efdeead3b66cb8006377550c672a15cbf814264cb16c93892f7319bc031b8fe669bf29747
24 +EBUILD ntdb-1.0-r99.ebuild 1165 SHA256 9c01f37a4387cf3e601b1d76c427b2964d0b84ac7c069e8cb852ff2916905d67 SHA512 3915020fbcbb09e4f1e1c3b0e78cc4efe5fb72ce6dc05b482385d89cfe1baf1e7f10b1cd323f86efcc71e8b89f836f5995d675441077b3cfaef0eb47faf0a3b1 WHIRLPOOL 8cc0afed36ec59d91e425aa949e8829e40d3b1321d32063a1902b6fdf1776769593d77b1306d4f2020bd4a529b1aed67c734ec8eac55996dd2746aa231d6b941
25 +MISC metadata.xml 360 SHA256 debc337b7549e12f55cf6ebdf900a95eb3b2370aa60daa49fd7ae97659ca5a85 SHA512 6cfeb9ed18b5c3b6c6e6875311bad627e9baffdf7b0846d70c8e0e36ce053ce849f867e963f7504292bbeb4b133c828e75a2d877c34fe7858ab3b9403ce533d2 WHIRLPOOL 1e6aa7563470c001516ce0b5f398d4fb5d854bb8a3a47a6631bd53f9b377950644ccb487a651f9648ead2815b815e8fd16d3cf7b6cd5c2d18958472b2a25c421
26
27 diff --git a/sys-libs/ntdb/files/ntdb-1.0-drop-need-strtoq.patch b/sys-libs/ntdb/files/ntdb-1.0-drop-need-strtoq.patch
28 new file mode 100644
29 index 0000000..299a580
30 --- /dev/null
31 +++ b/sys-libs/ntdb/files/ntdb-1.0-drop-need-strtoq.patch
32 @@ -0,0 +1,21 @@
33 +diff -Naur ntdb-1.0-abi_x86_64.amd64/lib/replace/replace.c ntdb-1.0/lib/replace/replace.c
34 +--- ntdb-1.0-abi_x86_64.amd64/lib/replace/replace.c 2013-10-27 04:21:21.000000000 -0400
35 ++++ ntdb-1.0/lib/replace/replace.c 2016-04-02 12:10:43.809446903 -0400
36 +@@ -527,7 +527,7 @@
37 + return nb;
38 + }
39 + #else
40 +-#error "You need the strtoq function"
41 ++#warning "You need the strtoq function"
42 + #endif /* HAVE_STRTOQ */
43 + #endif /* HAVE_BSD_STRTOLL */
44 + #endif /* HAVE_STRTOLL */
45 +@@ -565,7 +565,7 @@
46 + return nb;
47 + }
48 + #else
49 +-#error "You need the strtouq function"
50 ++#warning "You need the strtouq function"
51 + #endif /* HAVE_STRTOUQ */
52 + #endif /* HAVE_BSD_STRTOLL */
53 + #endif /* HAVE_STRTOULL */
54
55 diff --git a/sys-libs/ntdb/metadata.xml b/sys-libs/ntdb/metadata.xml
56 new file mode 100644
57 index 0000000..f05d1f2
58 --- /dev/null
59 +++ b/sys-libs/ntdb/metadata.xml
60 @@ -0,0 +1,12 @@
61 +<?xml version="1.0" encoding="UTF-8"?>
62 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
63 +<pkgmetadata>
64 + <maintainer type="person">
65 + <email>polynomial-c@g.o</email>
66 + <name>Lars Wendler</name>
67 + </maintainer>
68 +<maintainer type="project">
69 + <email>samba@g.o</email>
70 + <name>Samba</name>
71 + </maintainer>
72 +</pkgmetadata>
73
74 diff --git a/sys-libs/ntdb/ntdb-1.0-r99.ebuild b/sys-libs/ntdb/ntdb-1.0-r99.ebuild
75 new file mode 100644
76 index 0000000..470889e
77 --- /dev/null
78 +++ b/sys-libs/ntdb/ntdb-1.0-r99.ebuild
79 @@ -0,0 +1,54 @@
80 +# Copyright 1999-2015 Gentoo Foundation
81 +# Distributed under the terms of the GNU General Public License v2
82 +# $Id$
83 +
84 +EAPI=5
85 +
86 +PYTHON_COMPAT=( python2_7 )
87 +PYTHON_REQ_USE="threads(+)"
88 +
89 +inherit waf-utils multilib-minimal python-single-r1
90 +
91 +DESCRIPTION="A not-so trivial keyword/data database system"
92 +HOMEPAGE="http://tdb.samba.org/"
93 +SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz"
94 +
95 +LICENSE="GPL-3"
96 +SLOT="0"
97 +KEYWORDS="amd64 ~arm64 ~hppa ia64 ppc ppc64 x86"
98 +IUSE="python"
99 +
100 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
101 +
102 +RDEPEND="python? ( ${PYTHON_DEPS} )"
103 +DEPEND="!!<net-fs/samba-4.1.7
104 + ${RDEPEND}
105 + ${PYTHON_DEPS}
106 + app-text/docbook-xml-dtd:4.2"
107 +
108 +WAF_BINARY="${S}/buildtools/bin/waf"
109 +
110 +src_prepare() {
111 + epatch "${FILESDIR}"/${P}-drop-need-strtoq.patch
112 + multilib_copy_sources
113 +}
114 +
115 +multilib_src_configure() {
116 + local extra_opts=()
117 + if ! multilib_is_native_abi || ! use python; then
118 + extra_opts+=( --disable-python )
119 + fi
120 +
121 + waf-utils_src_configure \
122 + "${extra_opts[@]}"
123 +}
124 +
125 +multilib_src_test() {
126 + # the default src_test runs 'make test' and 'make check', letting
127 + # the tests fail occasionally (reason: unknown)
128 + emake check
129 +}
130 +
131 +multilib_src_install() {
132 + waf-utils_src_install
133 +}