You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/djb/djb-0.5.2.ebuild

41 lines
1.0 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/djb/djb-0.5.2.ebuild,v 1.8 2013/01/01 20:38:31 ulm Exp $
inherit toolchain-funcs fixheadtails
DESCRIPTION="Library created from code by Dan Bernstein"
HOMEPAGE="http://www.fefe.de/djb/"
SRC_URI="http://www.fefe.de/djb/djb-${PV}.tar.bz2"
LICENSE="all-rights-reserved public-domain"
SLOT="0"
KEYWORDS="~x86 ~ppc"
RESTRICT="mirror bindist"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
ht_fix_file */Makefile.static
for cc in */conf-cc ; do echo "$(tc-getCC) ${CFLAGS}" > ${cc} ; done
for ld in */conf-ld ; do echo "$(tc-getCC) ${LDFLAGS}" > ${ld} ; done
}
src_compile() {
emake || die
}
src_install() {
for lib in */*.a ; do
newlib.a ${lib} libdjb-$(basename ${lib}) || die "newlib failed"
done
for man in */*.3 ; do
newman ${man} ${PN}-$(basename ${man})
done
exeinto /usr/lib/${PN}
doexe *.pl || die "doexe .pl failed"
dodoc CHANGES TODO
}