From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-842563-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C2F9F13888F for <garchives@archives.gentoo.org>; Mon, 26 Oct 2015 08:46:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3125C21C005; Mon, 26 Oct 2015 08:46:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE12E21C005 for <gentoo-commits@lists.gentoo.org>; Mon, 26 Oct 2015 08:46:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 772A8340A3E for <gentoo-commits@lists.gentoo.org>; Mon, 26 Oct 2015 08:46:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C3FD1735 for <gentoo-commits@lists.gentoo.org>; Mon, 26 Oct 2015 08:46:37 +0000 (UTC) From: "Eray Aslan" <eras@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eray Aslan" <eras@gentoo.org> Message-ID: <1445849092.0a32d771562dcc35dc339a0b9ab386807f3585a8.eras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/cdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/cdb/cdb-0.75-r4.ebuild X-VCS-Directories: dev-db/cdb/ X-VCS-Committer: eras X-VCS-Committer-Name: Eray Aslan X-VCS-Revision: 0a32d771562dcc35dc339a0b9ab386807f3585a8 X-VCS-Branch: master Date: Mon, 26 Oct 2015 08:46:37 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 91cb7d6c-edc3-498c-85ee-e84a23e13bea X-Archives-Hash: e185e9d4f1615cd91a293ad3e448b745 commit: 0a32d771562dcc35dc339a0b9ab386807f3585a8 Author: Eray Aslan <eras <AT> gentoo <DOT> org> AuthorDate: Mon Oct 26 08:44:52 2015 +0000 Commit: Eray Aslan <eras <AT> gentoo <DOT> org> CommitDate: Mon Oct 26 08:44:52 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a32d771 dev-db/cdb: compile with -fPIC Gentoo-Bug: 563210 Package-Manager: portage-2.2.23 dev-db/cdb/cdb-0.75-r4.ebuild | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/dev-db/cdb/cdb-0.75-r4.ebuild b/dev-db/cdb/cdb-0.75-r4.ebuild new file mode 100644 index 0000000..5e335ed --- /dev/null +++ b/dev-db/cdb/cdb-0.75-r4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib toolchain-funcs + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos" + +DESCRIPTION="Fast, reliable, simple package for creating and reading constant databases" +HOMEPAGE="http://cr.yp.to/cdb.html" +SRC_URI="http://cr.yp.to/cdb/${P}.tar.gz" +LICENSE="public-domain" +SLOT="0" +IUSE="" + +DEPEND=">=sys-apps/sed-4 + !dev-db/tinycdb" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-errno.diff + epatch "${FILESDIR}"/${P}-stdint.diff + + sed -i -e 's/head -1/head -n 1/g' Makefile \ + || die "sed Makefile failed" +} + +src_configure() { + echo "$(tc-getCC) ${CFLAGS} -fPIC" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld + echo "${EPREFIX}/usr" > conf-home +} + +src_install() { + dobin cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest \ + || die "dobin failed" + + # ok so ... first off, some automakes fail at finding + # cdb.a, so install that now + dolib *.a || die "dolib failed" + + # then do this pretty little symlinking to solve the somewhat + # cosmetic library issue at hand + dosym cdb.a /usr/$(get_libdir)/libcdb.a || die "dosym failed" + + # uint32.h needs installation too, otherwise compiles depending + # on it will fail + insinto /usr/include/cdb + doins cdb*.h buffer.h alloc.h uint32.h || die "doins failed" + + dodoc CHANGES FILES README SYSDEPS TODO VERSION +}