Lines 2-8
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/dev-util/astyle/astyle-1.21.ebuild,v 1.7 2008/05/24 13:38:45 maekke Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.21.ebuild,v 1.7 2008/05/24 13:38:45 maekke Exp $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils toolchain-funcs |
6 |
|
6 |
|
7 |
DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code" |
7 |
DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code" |
8 |
HOMEPAGE="http://astyle.sourceforge.net/" |
8 |
HOMEPAGE="http://astyle.sourceforge.net/" |
Lines 21-27
Link Here
|
21 |
src_unpack() { |
21 |
src_unpack() { |
22 |
unpack ${A} |
22 |
unpack ${A} |
23 |
cd "${S}" |
23 |
cd "${S}" |
24 |
epatch "${FILESDIR}"/${PN}-${PV}-strip.patch |
24 |
epatch "${FILESDIR}"/${P}-strip.patch |
|
|
25 |
|
26 |
sed -i "/CFLAGS/s/-O3/${CXXFLAGS}/" build/Makefile || die "sed failed." |
27 |
if use debug ; then |
28 |
sed -i 's/\($(CBASEFLAGS)\)/\1 ${CXXFLAGS}/' \ |
29 |
build/Makefile || die "sed failed." |
30 |
fi |
25 |
} |
31 |
} |
26 |
|
32 |
|
27 |
src_compile() { |
33 |
src_compile() { |
Lines 37-43
Link Here
|
37 |
build_targets="release static shared" |
43 |
build_targets="release static shared" |
38 |
fi |
44 |
fi |
39 |
fi |
45 |
fi |
40 |
emake ${build_targets} || die "build failed" |
46 |
emake CXX="$(tc-getCXX)" ${build_targets} || die "build failed" |
41 |
} |
47 |
} |
42 |
|
48 |
|
43 |
src_install() { |
49 |
src_install() { |