/[gentoo-x86]/dev-db/tinycdb/tinycdb-0.77-r2.ebuild
Gentoo

Contents of /dev-db/tinycdb/tinycdb-0.77-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Oct 8 12:51:28 2012 UTC (21 months ago) by hattya
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -1 lines
add patch to fix compilation error with uClibc by Joshua B. Kahlenberg wrt bug #434784

(Portage version: 2.1.11.9/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tinycdb/tinycdb-0.77-r2.ebuild,v 1.6 2012/06/16 02:39:03 hattya Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="TinyCDB is a very fast and simple package for creating and reading constant data bases"
10 HOMEPAGE="http://www.corpit.ru/mjt/tinycdb.html"
11 SRC_URI="http://www.corpit.ru/mjt/${PN}/${P/-/_}.tar.gz"
12
13 LICENSE="public-domain"
14 SLOT="0"
15 KEYWORDS="amd64 hppa ia64 ppc x86"
16 IUSE="static-libs"
17 RESTRICT="test"
18
19 RDEPEND="!dev-db/cdb"
20
21 src_prepare() {
22 epatch "${FILESDIR}"/${P}-gentoo.diff
23 epatch "${FILESDIR}"/${P}-umask.diff
24 epatch "${FILESDIR}"/${P}-uclibc.diff
25 # fix multilib support
26 sed -i "/^libdir/s:/lib:/$(get_libdir):" Makefile
27 }
28
29 src_compile() {
30 local targets="shared"
31 use static-libs && targets="${targets} staticlib piclib"
32
33 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" ${targets}
34 }
35
36 src_install() {
37 local targets="install-sharedlib"
38 use static-libs && targets="${targets} install-piclib"
39
40 einstall ${targets}
41 dodoc ChangeLog NEWS
42 }

  ViewVC Help
Powered by ViewVC 1.1.20