View | Details | Raw Unified
Collapse All | Expand All

(-) astyle-1.21.ebuild.orig (-3 / +9 lines)
 Lines 2-8    Link Here 
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.21.ebuild,v 1.7 2008/05/24 13:38:45 maekke Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.21.ebuild,v 1.7 2008/05/24 13:38:45 maekke Exp $
inherit eutils
inherit eutils toolchain-funcs
DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
HOMEPAGE="http://astyle.sourceforge.net/"
HOMEPAGE="http://astyle.sourceforge.net/"
 Lines 21-27    Link Here 
src_unpack() {
src_unpack() {
	unpack ${A}
	unpack ${A}
	cd "${S}"
	cd "${S}"
	epatch "${FILESDIR}"/${PN}-${PV}-strip.patch
	epatch "${FILESDIR}"/${P}-strip.patch
	sed -i "/CFLAGS/s/-O3/${CXXFLAGS}/" build/Makefile || die "sed failed."
	if use debug ; then
		sed -i 's/\($(CBASEFLAGS)\)/\1 ${CXXFLAGS}/' \
		build/Makefile || die "sed failed."
	fi
}
}
src_compile() {
src_compile() {
 Lines 37-43    Link Here 
		build_targets="release static shared"
		build_targets="release static shared"
	    fi
	    fi
	fi
	fi
	emake ${build_targets} || die "build failed"
	emake CXX="$(tc-getCXX)" ${build_targets} || die "build failed"
}
}
src_install() {
src_install() {