diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-06-14 22:50:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-06-14 22:50:21 +0000 |
commit | 42e085f2ed94a3b722e1330104c1d5df588508db (patch) | |
tree | 10a5121a26a95c26ea56cedf228800ff5c91be3d /dev-libs/libhash/libhash-1.0.3.ebuild | |
parent | fix typo in CC func (diff) | |
download | gentoo-2-42e085f2ed94a3b722e1330104c1d5df588508db.tar.gz gentoo-2-42e085f2ed94a3b722e1330104c1d5df588508db.tar.bz2 gentoo-2-42e085f2ed94a3b722e1330104c1d5df588508db.zip |
Version bump #96070 by David Holm.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-libs/libhash/libhash-1.0.3.ebuild')
-rw-r--r-- | dev-libs/libhash/libhash-1.0.3.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-libs/libhash/libhash-1.0.3.ebuild b/dev-libs/libhash/libhash-1.0.3.ebuild new file mode 100644 index 000000000000..d060e44fa980 --- /dev/null +++ b/dev-libs/libhash/libhash-1.0.3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libhash/libhash-1.0.3.ebuild,v 1.1 2005/06/14 22:50:21 vapier Exp $ + +inherit toolchain-funcs + +DESCRIPTION="a small hash library written in C" +HOMEPAGE="ftp://ftp.ugh.net.au/pub/unix/libhash/" +SRC_URI="ftp://ftp.ugh.net.au/pub/unix/libhash/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm hppa ia64 ppc x86" +IUSE="doc" + +DEPEND="" + +S=${WORKDIR}/${PN} + +src_compile() { + rm -f Makefile + $(tc-getCC) ${CFLAGS} -fPIC -shared -o libhash.so hash.c || die ".so failed" + $(tc-getCC) ${CFLAGS} -c -o libhash.a hash.c || die ".a failed" +} + +src_test() { + cd tests + sed -i '/wrappers.h/d' *.c + for n in 2 3 ; do + $(tc-getCC) -I.. -L.. -lhash ${n}.c -o ${n} || die "compile ${n} failed" + LD_LIBRARY_PATH=.. ./${n} || die "test ${n} failed" + done +} + +src_install() { + insinto /usr/include + doins hash.h || die "hash.h" + dolib.so libhash.so || die "dolib.so" + dolib.a libhash.a || die "dolib.a" + doman *.3 || die "doman" + use doc && dodoc tests/*.c +} |