blob: 54d4923671a7b10815fcf8b03816b7a80f617eff (
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
39
40
41
42
43
44
45
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.24.ebuild,v 1.2 2011/01/28 19:17:50 grobian Exp $
EAPI=3
inherit base java-pkg-opt-2 autotools
DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
HOMEPAGE="http://astyle.sourceforge.net/"
SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz
http://gentoo.ccss.cz/${PV}-autotools.patch.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="debug java"
DEPEND="java? ( >=virtual/jdk-1.6 )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
src_prepare() {
java-pkg-opt-2_src_prepare
cd "${WORKDIR}"
epatch "${PV}-autotools.patch"
cd "${S}"
eautoreconf
}
src_configure() {
local myopts
if use java; then
myopts="--with-java-include-dir=${JAVA_HOME}/include/"
fi
econf \
--disable-dependency-tracking \
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html/ \
$(use_enable debug) \
${myopts}
}
|