/[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.3 - (hide annotations) (download)
Thu Jun 7 21:04:53 2012 UTC (6 years, 11 months ago) by ranger
Branch: MAIN
Changes since 1.2: +2 -2 lines
Marking tinycdb-0.77-r2 ppc for bug 418671

(Portage version: 2.1.10.49/cvs/Linux ppc64)

1 jer 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ranger 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tinycdb/tinycdb-0.77-r2.ebuild,v 1.2 2012/06/03 19:34:42 ago Exp $
4 jer 1.1
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 ranger 1.3 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     epatch \
23     "${FILESDIR}"/${P}-gentoo.diff \
24     "${FILESDIR}"/${P}-umask.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