| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/skalibs/skalibs-1.2.7.ebuild,v 1.3 2012/06/06 03:48:30 zmedico Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit multilib toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="development files used for building software at skarnet.org: essentially general-purpose libraries"
|
| 10 |
HOMEPAGE="http://www.skarnet.org/software/skalibs/index.html"
|
| 11 |
SRC_URI="http://www.skarnet.org/software/${PN}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="ISC"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="doc static-libs"
|
| 17 |
|
| 18 |
DEPEND=""
|
| 19 |
RDEPEND=""
|
| 20 |
|
| 21 |
S=${WORKDIR}/prog/${P}
|
| 22 |
|
| 23 |
src_configure() {
|
| 24 |
echo $(tc-getCC) ${CFLAGS} > conf-compile/conf-cc
|
| 25 |
echo $(tc-getCC) ${LDFLAGS} > conf-compile/conf-dynld
|
| 26 |
echo $(tc-getCC) ${LDFLAGS} > conf-compile/conf-ld
|
| 27 |
}
|
| 28 |
|
| 29 |
src_compile() {
|
| 30 |
emake -j1
|
| 31 |
}
|
| 32 |
|
| 33 |
src_install() {
|
| 34 |
insinto /etc
|
| 35 |
doins etc/leapsecs.dat
|
| 36 |
|
| 37 |
insinto /usr/include/${PN}
|
| 38 |
doins include/*
|
| 39 |
|
| 40 |
insopts -m0755
|
| 41 |
insinto /usr/$(get_libdir)/${PN}
|
| 42 |
doins library.so/*
|
| 43 |
if use static-libs ; then
|
| 44 |
doins library/*
|
| 45 |
fi
|
| 46 |
|
| 47 |
dodir /etc/ld.so.conf.d/
|
| 48 |
echo "/usr/$(get_libdir)/${PN}" > ${ED}/etc/ld.so.conf.d/10${PN}.conf || die
|
| 49 |
|
| 50 |
cd doc || die
|
| 51 |
for f in $(find . -type f ! -name "*.html" ! -name "COPYING") ; do
|
| 52 |
docinto $(dirname f)
|
| 53 |
dodoc $f
|
| 54 |
done
|
| 55 |
docinto html
|
| 56 |
use doc && dohtml -r .
|
| 57 |
}
|