/[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.9 - (hide annotations) (download)
Sun Sep 28 09:29:47 2014 UTC (4 years, 7 months ago) by hattya
Branch: MAIN
Changes since 1.8: +4 -4 lines
update to EAPI 5

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

1 hattya 1.8 # Copyright 1999-2014 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 hattya 1.9 # $Header: /var/cvsroot/gentoo-x86/dev-db/tinycdb/tinycdb-0.77-r2.ebuild,v 1.8 2014/09/28 09:28:17 hattya Exp $
4 jer 1.1
5 hattya 1.9 EAPI="5"
6 jer 1.1
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 hattya 1.6 KEYWORDS="amd64 hppa ia64 ppc x86"
16 jer 1.1 IUSE="static-libs"
17     RESTRICT="test"
18    
19     RDEPEND="!dev-db/cdb"
20    
21     src_prepare() {
22 hattya 1.6 epatch "${FILESDIR}"/${P}-gentoo.diff
23     epatch "${FILESDIR}"/${P}-umask.diff
24 hattya 1.7 epatch "${FILESDIR}"/${P}-uclibc.diff
25 jer 1.1 # fix multilib support
26     sed -i "/^libdir/s:/lib:/$(get_libdir):" Makefile
27     }
28    
29     src_compile() {
30     local targets="shared"
31 hattya 1.9 use static-libs && targets+=" staticlib piclib"
32 jer 1.1
33     emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" ${targets}
34     }
35    
36     src_install() {
37     local targets="install-sharedlib"
38 hattya 1.9 use static-libs && targets+=" install-piclib"
39 jer 1.1
40 hattya 1.8 emake DESTDIR="${D}" ${targets}
41 jer 1.1 dodoc ChangeLog NEWS
42     }

  ViewVC Help
Powered by ViewVC 1.1.20