|
Lines 2-14
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/sys-devel/flex/flex-2.5.35.ebuild,v 1.12 2010/06/08 19:00:00 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.35.ebuild,v 1.12 2010/06/08 19:00:00 ssuominen Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit eutils flag-o-matic |
5 |
EAPI=2 |
|
|
6 |
|
| 7 |
inherit eutils flag-o-matic autotools |
| 8 |
|
| 9 |
if [[ ${PV} == *_p* ]]; then |
| 10 |
DEB_DIFF=${PN}_${PV/_p/-} |
| 11 |
fi |
| 12 |
|
| 13 |
MY_P=${P%_p*} |
| 6 |
|
14 |
|
| 7 |
#DEB_VER=36 |
|
|
| 8 |
DESCRIPTION="The Fast Lexical Analyzer" |
15 |
DESCRIPTION="The Fast Lexical Analyzer" |
| 9 |
HOMEPAGE="http://flex.sourceforge.net/" |
16 |
HOMEPAGE="http://flex.sourceforge.net/" |
| 10 |
SRC_URI="mirror://sourceforge/flex/${P}.tar.bz2" |
17 |
SRC_URI="mirror://sourceforge/flex/${MY_P}.tar.bz2 |
| 11 |
# mirror://debian/pool/main/f/flex/${PN}_${PV}-${DEB_VER}.diff.gz" |
18 |
${DEB_DIFF+mirror://debian/pool/main/f/flex/${DEB_DIFF}.diff.gz}" |
| 12 |
|
19 |
|
| 13 |
LICENSE="FLEX" |
20 |
LICENSE="FLEX" |
| 14 |
SLOT="0" |
21 |
SLOT="0" |
|
Lines 18-37
Link Here
|
| 18 |
DEPEND="nls? ( sys-devel/gettext )" |
25 |
DEPEND="nls? ( sys-devel/gettext )" |
| 19 |
RDEPEND="" |
26 |
RDEPEND="" |
| 20 |
|
27 |
|
| 21 |
src_unpack() { |
28 |
S=${WORKDIR}/${MY_P} |
| 22 |
unpack ${A} |
29 |
|
| 23 |
cd "${S}" |
30 |
src_prepare() { |
| 24 |
[[ -n ${DEB_VER} ]] && epatch "${WORKDIR}"/${PN}_${PV}-${DEB_VER}.diff |
31 |
epatch ${DEB_DIFF+"${WORKDIR}"/${DEB_DIFF}.diff} \ |
| 25 |
epatch "${FILESDIR}"/${PN}-2.5.34-isatty.patch #119598 |
32 |
"${FILESDIR}"/${PN}-2.5.35-gcc44.patch \ |
| 26 |
epatch "${FILESDIR}"/${PN}-2.5.33-pic.patch |
33 |
"${FILESDIR}"/${PN}-2.5.35-saneautotools.patch |
| 27 |
epatch "${FILESDIR}"/${PN}-2.5.35-gcc44.patch |
34 |
|
| 28 |
sed -i 's:^LDFLAGS:LOADLIBES:' tests/test-pthread/Makefile.in #262989 |
35 |
eautoreconf |
| 29 |
} |
36 |
} |
| 30 |
|
37 |
|
| 31 |
src_compile() { |
38 |
src_configure() { |
| 32 |
use static && append-ldflags -static |
39 |
use static && append-ldflags -static |
| 33 |
econf $(use_enable nls) || die |
40 |
econf $(use_enable nls) || die |
| 34 |
emake || die |
|
|
| 35 |
} |
41 |
} |
| 36 |
|
42 |
|
| 37 |
src_install() { |
43 |
src_install() { |