| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/bibutils/bibutils-4.11.ebuild,v 1.1 2010/09/15 18:26:11 xarthisius Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit toolchain-funcs
|
| 7 |
|
| 8 |
MY_P="${PN}_${PV}"
|
| 9 |
DESCRIPTION="Interconverts between various bibliography formats using a common XML intermediate"
|
| 10 |
HOMEPAGE="http://www.scripps.edu/~cdputnam/software/bibutils/"
|
| 11 |
SRC_URI="http://www.scripps.edu/~cdputnam/software/bibutils/${MY_P}_src.tgz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~ppc ~x86"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
S=${WORKDIR}/${MY_P}
|
| 19 |
|
| 20 |
src_prepare() {
|
| 21 |
# The custom configure script sucks, so we'll just do its
|
| 22 |
# job ourselves
|
| 23 |
rm -f Makefile configure || die "Failed to purge old Makefile"
|
| 24 |
sed \
|
| 25 |
-e "s:REPLACE_CC:CC=\"$(tc-getCC) ${CFLAGS}\":g" \
|
| 26 |
-e "s:REPLACE_RANLIB:RANLIB=\"$(tc-getRANLIB)\":g" \
|
| 27 |
-e "s:REPLACE_INSTALLDIR:\"${D}/usr/bin\":g" \
|
| 28 |
-e 's:REPLACE_POSTFIX::g' \
|
| 29 |
-e 's:make:$(MAKE):g' \
|
| 30 |
Makefile_start > Makefile \
|
| 31 |
|| die "Failed to set up Makefile"
|
| 32 |
}
|
| 33 |
|
| 34 |
src_install() {
|
| 35 |
dodir /usr/bin
|
| 36 |
emake install || die
|
| 37 |
dodoc ChangeLog || die
|
| 38 |
}
|