/[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.10 - (show annotations) (download)
Sat Oct 11 05:36:02 2014 UTC (4 years, 6 months ago) by hattya
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +11 -4 lines
fixes bug #524954

(Portage version: 2.2.8-r2/cvs/Linux i686, signed Manifest commit with key EC917A6D)

1 # Copyright 1999-2014 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.9 2014/09/28 09:29:47 hattya Exp $
4
5 EAPI="5"
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+=" staticlib piclib"
32
33 emake \
34 CC="$(tc-getCC)" \
35 CFLAGS="${CFLAGS} ${LDFLAGS}" \
36 ${targets}
37 }
38
39 src_install() {
40 local targets="install install-sharedlib"
41 use static-libs && targets+=" install-piclib"
42
43 emake \
44 prefix="/usr" \
45 mandir="/usr/share/man" \
46 DESTDIR="${D}" \
47 ${targets}
48 dodoc ChangeLog NEWS
49 }

  ViewVC Help
Powered by ViewVC 1.1.20