Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 167628
Collapse All | Expand All

(-)hashit-0.9.4.ebuild (-5 / +13 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/hashit/hashit-0.9.4.ebuild,v 1.1 2006/11/16 11:22:03 pyrania Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/hashit/hashit-0.9.4.ebuild,v 1.1 2006/11/16 11:22:03 pyrania Exp $
4
4
5
inherit flag-o-matic toolchain-funcs multilib
6
5
DESCRIPTION="Hashit is a library of generic hash tables that supports different collision handling methods with one common interface. Both data and keys can be of any type. It is small and easy to use."
7
DESCRIPTION="Hashit is a library of generic hash tables that supports different collision handling methods with one common interface. Both data and keys can be of any type. It is small and easy to use."
6
HOMEPAGE="http://www.pleyades.net/david/projects/"
8
HOMEPAGE="http://www.pleyades.net/david/projects/"
7
SRC_URI="http://www.pleyades.net/david/projects/${PN}/${P}.tar.bz2"
9
SRC_URI="http://www.pleyades.net/david/projects/${PN}/${P}.tar.bz2"
Lines 9-27 Link Here
9
SLOT="0"
11
SLOT="0"
10
KEYWORDS="~x86 ~ppc ~amd64"
12
KEYWORDS="~x86 ~ppc ~amd64"
11
IUSE=""
13
IUSE=""
12
DEPEND="virtual/libc"
14
DEPEND=""
13
15
14
src_unpack() {
16
src_unpack() {
15
	unpack ${A}
17
	unpack ${A}
16
	cd ${S}
18
	cd "${S}"
17
	./0 --prefix=${D}/usr --infodir=${D}/usr/share/info:${D}/usr/X11R6/info
19
20
	[[ "${ARCH}" = amd64 ]] && append-flags -fPIC
18
}
21
}
19
22
20
src_compile() {
23
src_compile() {
21
	emake || die "emake failed"
24
	./0 --prefix="${D}"/usr \
25
		--infodir="${D}"/usr/share/info:"${D}"/usr/X11R6/info \
26
		--libdir="${D}/usr/$(get_libdir)"
27
	emake GCC="$(tc-getCC)" LD="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
22
}
28
}
23
29
24
src_install() {
30
src_install() {
25
	einstall || die "einstall failed"
31
	einstall || die "einstall failed"
26
	dosym libhashit.so /usr/lib/libhashit.so.0
32
	rm "${D}/usr/$(get_libdir)/libhashit.so"
33
	dosym libhashit.so.1.0 /usr/"$(get_libdir)"/libhashit.so
34
	dosym libhashit.so /usr/"$(get_libdir)"/libhashit.so.0
27
}
35
}

Return to bug 167628