blob: c067f4720d96a38d665cfb8bbfd5ca22879453e2 (
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-2012 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.3 2012/07/29 16:56:41 armin76 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="~amd64 ~ppc ~ppc64 ~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}
}
|