blob: abd3f755a21dae0ba13b68f89a7f4e34e79ac10c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/btyacc/btyacc-3.0-r1.ebuild,v 1.3 2010/11/18 19:37:08 patrick Exp $
EAPI="2"
inherit eutils toolchain-funcs
MY_P=${P/./-}
IUSE=""
DESCRIPTION="Backtracking YACC - modified from Berkeley YACC"
HOMEPAGE="http://www.siber.com/btyacc"
SRC_URI="http://www.siber.com/btyacc/${MY_P}.tar.gz"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos ~x86-macos"
S="${WORKDIR}"
src_prepare() {
cp -av Makefile{,.orig}
epatch "${FILESDIR}/${P}-includes.patch"
epatch "${FILESDIR}/${P}-makefile.patch"
# Darwin doesn't do static binaries
[[ ${CHOST} == *-darwin* ]] && sed -i -e 's/-static//' Makefile
}
src_compile() {
tc-export CC
emake || die
}
src_install() {
dobin btyacc
dodoc README README.BYACC
newman manpage btyacc.1
}
|