aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/libhash/ChangeLog29
-rw-r--r--dev-libs/libhash/Manifest4
-rw-r--r--dev-libs/libhash/libhash-1.0.3-r1.ebuild45
-rw-r--r--dev-libs/libhash/metadata.xml8
4 files changed, 86 insertions, 0 deletions
diff --git a/dev-libs/libhash/ChangeLog b/dev-libs/libhash/ChangeLog
new file mode 100644
index 0000000..fe523f7
--- /dev/null
+++ b/dev-libs/libhash/ChangeLog
@@ -0,0 +1,29 @@
+# ChangeLog for dev-libs/libhash
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libhash/ChangeLog,v 1.7 2010/08/16 00:52:43 jer Exp $
+
+*libhash-1.0.3-r1 (16 Aug 2010)
+
+ 16 Aug 2010; Jeroen Roovers <jer@gentoo.org> -libhash-1.0.2.ebuild,
+ +libhash-1.0.3-r1.ebuild:
+ Add SONAME thanks to Nathan Phillip Brink (bug #332937).
+
+ 18 May 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ libhash-1.0.3.ebuild:
+ Respect CPPFLAGS/LDFLAGS and fix linking of tests with --as-needed.
+
+ 09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
+ Regenerate digest in Manifest2 format.
+
+*libhash-1.0.3 (14 Jun 2005)
+
+ 14 Jun 2005; Mike Frysinger <vapier@gentoo.org> +libhash-1.0.3.ebuild:
+ Version bump #96070 by David Holm.
+
+ 17 Jul 2004; David Holm <dholm@gentoo.org> libhash-1.0.2.ebuild:
+ Added to ~ppc.
+
+*libhash-1.0.2 (13 Jul 2004)
+
+ 13 Jul 2004; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/dev-libs/libhash/Manifest b/dev-libs/libhash/Manifest
new file mode 100644
index 0000000..890a2e9
--- /dev/null
+++ b/dev-libs/libhash/Manifest
@@ -0,0 +1,4 @@
+DIST libhash-1.0.3.tar.gz 8918 RMD160 d3a470424da8380e2e360ce92c7fcd78d60fcb90 SHA1 51c5d9e08132b91ffabcb9755ba2f3dfc0ee72d7 SHA256 13d57b35537d98aaf39115d0bb253fe54009f773d239b235267c34769bd1ef9d
+EBUILD libhash-1.0.3-r1.ebuild 1203 RMD160 948dfd9e1a4be716e8185ae44f7f76c98d15d188 SHA1 bdb8d13bf08fbee771415c51a8d2cf105000f911 SHA256 84e87569c3263587f5c31376b9b36786e1f2fa279f384d2bbbbd23c075cfbcd6
+MISC ChangeLog 1001 RMD160 419185a0a14af82f151ad1e9acf65f8cffd5c8f2 SHA1 b0a5a110517ca34e116e4190e3455a681fe2e60f SHA256 2ffa1bb23c53d2c513427c7517ec99aff26897359e17969c0125ff7e8a7f9d8f
+MISC metadata.xml 232 RMD160 9175a294469e617e696f19e3b6468f8747de37b0 SHA1 cc789056a277a74bd76eaf8139cee7bbbd350785 SHA256 433f35a36976e29c3c0e3f51bf5184d26578cf99de91cff0b50796b57c6b6ca1
diff --git a/dev-libs/libhash/libhash-1.0.3-r1.ebuild b/dev-libs/libhash/libhash-1.0.3-r1.ebuild
new file mode 100644
index 0000000..9409771
--- /dev/null
+++ b/dev-libs/libhash/libhash-1.0.3-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2010 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-r1.ebuild,v 1.1 2010/08/16 00:52:43 jer 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) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} \
+ -Wl,-soname,libhash.so -fPIC -shared \
+ -o libhash.so hash.c || die ".so failed"
+ $(tc-getCC) ${CPPFLAGS} ${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) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -I.. -L.. ${n}.c -o ${n} -lhash || 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
+}
diff --git a/dev-libs/libhash/metadata.xml b/dev-libs/libhash/metadata.xml
new file mode 100644
index 0000000..9af43a3
--- /dev/null
+++ b/dev-libs/libhash/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>