commit:     8bb85afc65349950c6192e74f9932b27883fec7f
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  2 16:17:54 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Apr  2 16:17:54 2016 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=8bb85afc

sys-libs/ntdb: drop redundant check for strto[u]q from #error to #warning

 sys-libs/ntdb/Manifest                             |  4 ++
 .../ntdb/files/ntdb-1.0-drop-need-strtoq.patch     | 21 +++++++++
 sys-libs/ntdb/metadata.xml                         | 12 +++++
 sys-libs/ntdb/ntdb-1.0-r99.ebuild                  | 54 ++++++++++++++++++++++
 4 files changed, 91 insertions(+)

diff --git a/sys-libs/ntdb/Manifest b/sys-libs/ntdb/Manifest
new file mode 100644
index 0000000..28ed59e
--- /dev/null
+++ b/sys-libs/ntdb/Manifest
@@ -0,0 +1,4 @@
+AUX ntdb-1.0-drop-need-strtoq.patch 667 SHA256 
3ed10e0a310c497a16dcb65bd28fc9a5e47f70c0ad4d588d7d03deed14778bcf SHA512 
a2707fa1601e2d74148f04bf00866ef56e7f715174593723df2bd4829b94f6552239db95990972aad2470bf264e3980b17f3e134e93d700c4982b8d94097826c
 WHIRLPOOL 
1b2947973021a87e4309390cc1d695a433531cda3636355265312c67be77c752c3aa2fff20a8abeea4f90d1f002e019abff113cad56fe14b1bdbec7352de7b3a
+DIST ntdb-1.0.tar.gz 794585 SHA256 
817ae862b1e6976cab867468f209d8417a90c7c2fcf0ec079a45645d7e7ebf49 SHA512 
27f550f85a7bfd105d4115b55f9919f1871964f576a8470688fe8040fb9e2be209246a291d78f55c61cf0920238d7f41917ad7e2d44b202382b3ea47c8c97100
 WHIRLPOOL 
71a007312eacf7805dadc0b0089f7344b270a628e9dc3c1d8aeb505efdeead3b66cb8006377550c672a15cbf814264cb16c93892f7319bc031b8fe669bf29747
+EBUILD ntdb-1.0-r99.ebuild 1165 SHA256 
9c01f37a4387cf3e601b1d76c427b2964d0b84ac7c069e8cb852ff2916905d67 SHA512 
3915020fbcbb09e4f1e1c3b0e78cc4efe5fb72ce6dc05b482385d89cfe1baf1e7f10b1cd323f86efcc71e8b89f836f5995d675441077b3cfaef0eb47faf0a3b1
 WHIRLPOOL 
8cc0afed36ec59d91e425aa949e8829e40d3b1321d32063a1902b6fdf1776769593d77b1306d4f2020bd4a529b1aed67c734ec8eac55996dd2746aa231d6b941
+MISC metadata.xml 360 SHA256 
debc337b7549e12f55cf6ebdf900a95eb3b2370aa60daa49fd7ae97659ca5a85 SHA512 
6cfeb9ed18b5c3b6c6e6875311bad627e9baffdf7b0846d70c8e0e36ce053ce849f867e963f7504292bbeb4b133c828e75a2d877c34fe7858ab3b9403ce533d2
 WHIRLPOOL 
1e6aa7563470c001516ce0b5f398d4fb5d854bb8a3a47a6631bd53f9b377950644ccb487a651f9648ead2815b815e8fd16d3cf7b6cd5c2d18958472b2a25c421

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
new file mode 100644
index 0000000..299a580
--- /dev/null
+++ b/sys-libs/ntdb/files/ntdb-1.0-drop-need-strtoq.patch
@@ -0,0 +1,21 @@
+diff -Naur ntdb-1.0-abi_x86_64.amd64/lib/replace/replace.c 
ntdb-1.0/lib/replace/replace.c
+--- ntdb-1.0-abi_x86_64.amd64/lib/replace/replace.c    2013-10-27 
04:21:21.000000000 -0400
++++ ntdb-1.0/lib/replace/replace.c     2016-04-02 12:10:43.809446903 -0400
+@@ -527,7 +527,7 @@
+       return nb;
+ }
+ #else
+-#error "You need the strtoq function"
++#warning "You need the strtoq function"
+ #endif /* HAVE_STRTOQ */
+ #endif /* HAVE_BSD_STRTOLL */
+ #endif /* HAVE_STRTOLL */
+@@ -565,7 +565,7 @@
+       return nb;
+ }
+ #else
+-#error "You need the strtouq function"
++#warning "You need the strtouq function"
+ #endif /* HAVE_STRTOUQ */
+ #endif /* HAVE_BSD_STRTOLL */
+ #endif /* HAVE_STRTOULL */

diff --git a/sys-libs/ntdb/metadata.xml b/sys-libs/ntdb/metadata.xml
new file mode 100644
index 0000000..f05d1f2
--- /dev/null
+++ b/sys-libs/ntdb/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Lars Wendler</name>
+  </maintainer>
+<maintainer type="project">
+    <email>[email protected]</email>
+    <name>Samba</name>
+  </maintainer>
+</pkgmetadata>

diff --git a/sys-libs/ntdb/ntdb-1.0-r99.ebuild 
b/sys-libs/ntdb/ntdb-1.0-r99.ebuild
new file mode 100644
index 0000000..470889e
--- /dev/null
+++ b/sys-libs/ntdb/ntdb-1.0-r99.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads(+)"
+
+inherit waf-utils multilib-minimal python-single-r1
+
+DESCRIPTION="A not-so trivial keyword/data database system"
+HOMEPAGE="http://tdb.samba.org/";
+SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ~hppa ia64 ppc ppc64 x86"
+IUSE="python"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+DEPEND="!!<net-fs/samba-4.1.7
+       ${RDEPEND}
+       ${PYTHON_DEPS}
+       app-text/docbook-xml-dtd:4.2"
+
+WAF_BINARY="${S}/buildtools/bin/waf"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-drop-need-strtoq.patch
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
+       local extra_opts=()
+       if ! multilib_is_native_abi || ! use python; then
+               extra_opts+=( --disable-python )
+       fi
+
+       waf-utils_src_configure \
+               "${extra_opts[@]}"
+}
+
+multilib_src_test() {
+       # the default src_test runs 'make test' and 'make check', letting
+       # the tests fail occasionally (reason: unknown)
+       emake check
+}
+
+multilib_src_install() {
+       waf-utils_src_install
+}

Reply via email to