blob: dcc256aaf6df694b2b1f3210fe5a2608f8068cde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ustr/ustr-1.0.4-r3.ebuild,v 1.4 2014/01/14 13:58:01 ago Exp $
EAPI=5
inherit multilib toolchain-funcs
DESCRIPTION="Low-overhead managed string library for C"
HOMEPAGE="http://www.and.org/ustr"
SRC_URI="ftp://ftp.and.org/pub/james/ustr/${PV}/${P}.tar.bz2"
LICENSE="|| ( BSD-2 MIT LGPL-2 )"
SLOT="0"
KEYWORDS="amd64 ~arm ~mips x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_compile() {
emake AR=$(tc-getAR) CC=$(tc-getCC) CFLAGS="${CFLAGS}" HIDE= \
SHRDIR="/usr/share/${P}" \
all-shared
}
src_test() {
emake AR=$(tc-getAR) CC=$(tc-getCC) CFLAGS="${CFLAGS}" HIDE= check
}
src_install() {
emake install DESTDIR="${D}" HIDE= \
libdir="/usr/$(get_libdir)" \
mandir="/usr/share/man" \
SHRDIR="/usr/share/${P}" \
DOCSHRDIR="/usr/share/doc/${PF}"
dodoc ChangeLog README README-DEVELOPERS AUTHORS NEWS TODO
}
|