summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2013-10-13 13:40:41 +0000
committerJeroen Roovers <jer@gentoo.org>2013-10-13 13:40:41 +0000
commit13fc8a7f950f387d38643fea1e83530f3cdc8b26 (patch)
treef8bbd07d44d7454f6ada0db26ebccdf902c71606 /dev-libs/ustr/ustr-1.0.4-r2.ebuild
parentStable for HPPA (bug #487170). (diff)
downloadgentoo-2-13fc8a7f950f387d38643fea1e83530f3cdc8b26.tar.gz
gentoo-2-13fc8a7f950f387d38643fea1e83530f3cdc8b26.tar.bz2
gentoo-2-13fc8a7f950f387d38643fea1e83530f3cdc8b26.zip
Respect AR/CC/CFLAGS, build verbosely (in src_test() as well). Remove unneeded die().
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'dev-libs/ustr/ustr-1.0.4-r2.ebuild')
-rw-r--r--dev-libs/ustr/ustr-1.0.4-r2.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/ustr/ustr-1.0.4-r2.ebuild b/dev-libs/ustr/ustr-1.0.4-r2.ebuild
new file mode 100644
index 000000000000..c4666a921326
--- /dev/null
+++ b/dev-libs/ustr/ustr-1.0.4-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 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-r2.ebuild,v 1.1 2013/10/13 13:40:41 jer 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 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_compile() {
+ emake AR=$(tc-getAR) CC=$(tc-getCC) CFLAGS="${CFLAGS}" HIDE= 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/doc/${PF}" \
+ DOCSHRDIR="/usr/share/doc/${PF}"
+
+ dodoc ChangeLog README README-DEVELOPERS AUTHORS NEWS TODO
+}