ChangeLog

# ChangeLog for dev-util/astyle
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.25 2008/05/30 18:53:54 corsair Exp $

30 May 2008; Markus Rothe astyle-1.22.ebuild:
Does not compile on ppc64. mark it -ppc64. error is
"../src/astyle_main.cpp:56:17: error: jni.h: No such file or directory"

24 May 2008; Markus Meier astyle-1.21.ebuild:
amd64 stable, bug #220739

21 May 2008; Christian Faulhammer astyle-1.21.ebuild:
stable x86, bug 220739

17 May 2008; Tobias Klausmann astyle-1.21.ebuild:
Stable on alpha, bug #220739

*astyle-1.22 (12 May 2008)

12 May 2008; Steve Arnold
+files/astyle-1.22-strip.patch, +astyle-1.22.ebuild:
Updated for bug #217262 and added some basic java support and a soname;
thanks to Adam for the updated patch.

04 Feb 2008; Steve Arnold astyle-1.21.ebuild:
Fixed string quoting and added some dies to the manual install commands,
but only in the latest version; emake works so far...

27 Jan 2008; Fabian Groffen astyle-1.15.3-r1.ebuild,
astyle-1.21.ebuild:
Dropped ppc-macos keyword, see you in prefix

14 Nov 2007; Robin H. Johnson astyle-1.21.ebuild:
Fix $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.25 2008/05/30 18:53:54 corsair Exp $ string.

*astyle-1.21 (07 Oct 2007)

07 Oct 2007; Steve Arnold
+files/astyle-1.21-strip.patch, metadata.xml, +astyle-1.21.ebuild:
overdue version bump and maintainer update

09 Feb 2007; Diego Pettenò ChangeLog:
Regenerate digest in Manifest2 format.

05 Nov 2005; Fabian Groffen astyle-1.15.3-r1.ebuild:
Marked ~ppc-macos (bug #111585)

10 Sep 2005; Aron Griffis astyle-1.15.3-r1.ebuild:
Mark 1.15.3-r1 stable on alpha

19 May 2005; astyle-1.15.3-r1.ebuild:
Added ~amd64

24 Apr 2005; Michael Hanselmann
astyle-1.15.3-r1.ebuild:
Stable on ppc.

08 Nov 2004; Bryan Østergaard
astyle-1.15.3-r1.ebuild, astyle-1.15.3.ebuild:
~alpha keyword, fix license syntax.

27 Sep 2004; Karol Wojtaszek
+files/astyle-gcc34.patch, astyle-1.15.3-r1.ebuild, astyle-1.15.3.ebuild:
Fixed gcc-3.4 compile issues. Thanks to Igor V. Kovalenko
in Bug #63811

28 Mar 2004; David Holm astyle-1.15.3-r1.ebuild:
Added to ~ppc.

*astyle-1.15.3-r1 (28 Mar 2004)

28 Mar 2004; Karl Trygve Kalleberg
Added patch to fix --force-indent-tab, see #43091, thanks to
Luca Santarelli .

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*astyle-1.15.3 (24 Apr 2002)

24 Apr 2002; Karl Trygve Kalleberg astyle-1.15.3.ebuild files/digest/astyle-1.15.3 :
Initial import. Ebuild submitted by .

Manifest

AUX astyle-1.21-strip.patch 555 RMD160 a88439b27146dee7f02a9fc19f5acab26687069a SHA1 2d7db843c96cffd02677b5138234f5a4226ab8a7 SHA256 980f476309adb279bbde0c39225ca30789ef5489c393528d988ee2040b5f1cf5
AUX astyle-1.22-strip.patch 711 RMD160 52253bd9c58064e4b79d479b84d05e105f8905f4 SHA1 85f5b578c4105e1592539888331ede9f4a3de056 SHA256 312e7b5471f1286df93ede7d4a012d9d3a1d907e44cbe7f05fb85c4082b15cbf
AUX astyle-gcc34.patch 322 RMD160 5172371d64574507e0a22d4496c92fbd183aaa6e SHA1 d2d47fc4e0df5736744be3a569b011f57728d9d9 SHA256 698051a5dd8dffd38ab64858a9cda721defa0a1525e42b37adbbbbcc6d669d6d
AUX cmd-line-fix.diff 5830 RMD160 59d4e4b085ac8a64ffc6ed3ad91ab9ec4f04ac41 SHA1 203b8c6d662362ab6edfd332dfbd1067d08f5a98 SHA256 9dbc57f6d20ed2a25fc13f19fbc47a8695e8c779d25e21358935fb9e08608c03
DIST astyle_1.15.3.zip 60880 RMD160 ec84150edbe09dcd62ef960f288b688b52553d8b SHA1 51e115d1f84028899fff1725d4c6298d5e191ea4 SHA256 091adc2dbdcc7532c70dfb00e46361271c23726baa9cd0e5e0e3616838693c75
DIST astyle_1.21_linux.tar.gz 81678 RMD160 929134074557865b95d25b84093851a9240f65ac SHA1 914493e4834183b2544a9baff2898597ab12ef29 SHA256 894ed6838e61977ee846c219c0e0caa2eaf3f6d9f1df4ed354a8cd45c32d0ec2
DIST astyle_1.22_linux.tar.gz 92580 RMD160 e0707298358ff9bd9c8540b460a87c446fad3b8f SHA1 9c18d9bd23c87cfef3a3bd48a7f31ae9978d1bcb SHA256 0ddac906531192dcecd3d160f181522c065779223f78476c027d9d25ec8bb27a
EBUILD astyle-1.15.3-r1.ebuild 833 RMD160 e00c05a85a43ce4567d0748d4f48ac8eda4aeec3 SHA1 471bc3e2cc3e7f37d1978dcf6a28e324b30f0f9b SHA256 b858d6a3b262d379cb2234ebbe12463e5464292c9a2224aa157468160bd32a9c
EBUILD astyle-1.15.3.ebuild 813 RMD160 c56cb404c14e49b13f379ad4850bc75edd740b66 SHA1 f0609e9d51b06d23b4b0438ad16e0fc1a064979d SHA256 87e52c827d06b6f3093cde884a33b78a4daf814132d7af616cd99e3548344a4b
EBUILD astyle-1.21.ebuild 1563 RMD160 639fc48bdb029f0be4f959ab405e10cb5b9f51e8 SHA1 5e564e153492a5886144891564be6899342eca05 SHA256 60ac4ff4c666fd107f2a098e4f61ebb4a6c1e92bc679493ba67a98e07fa48f1d
EBUILD astyle-1.22.ebuild 2771 RMD160 ccf7c08c40ebc35dec2ea2b8895673977949da59 SHA1 e066f11540d9b7f3471cafbd24dab9f1a03175bc SHA256 cc34668888bea76d70626b09d166c2b8962b0427e73a6c3d33330e1decf96037
MISC ChangeLog 3159 RMD160 61ed9da8878e0e54094cd41b853c7bffee08fed8 SHA1 7ce4330ecfa1b45ab0b9b0bb3b08e5da4ec92f03 SHA256 3c313e74f250ca8f83a61840c52443c84db0140640049c1847c684548ffa529e
MISC metadata.xml 1751 RMD160 2b19c912e2ed3fffde21fc78e709adfa01f3f306 SHA1 282847bdb605ee83bc032eeb02922d36e13ba90d SHA256 f7b72e8fca0bd5a04e471921afc936fdd51530996f661d3268fd6eb88e50249f

astyle-1.15.3-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.15.3-r1.ebuild,v 1.11 2008/01/27 10:39:22 grobian Exp $

inherit eutils

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}.zip"

LICENSE="|| ( Artistic GPL-2 )"
SLOT="0"
KEYWORDS="alpha ~amd64 ppc sparc x86"
IUSE=""

DEPEND=">=app-arch/unzip-5.42"

S=${WORKDIR}

src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/cmd-line-fix.diff

#gcc-3.4 fix
epatch "${FILESDIR}"/${PN}-gcc34.patch
}

src_compile() {
emake || die
}

src_install() {
dobin astyle
dohtml astyle.html astyle_release_notes.html license.html
dodoc INSTALL.TXT
}

astyle-1.15.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.15.3.ebuild,v 1.15 2008/02/04 03:58:43 nerdboy Exp $

inherit eutils

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}.zip"

LICENSE="|| ( Artistic GPL-2 )"
SLOT="0"
KEYWORDS="x86 sparc"
IUSE=""

DEPEND=">=app-arch/unzip-5.42"

S=${WORKDIR}

src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/cmd-line-fix.diff

#gcc-3.4 fix
epatch "${FILESDIR}"/${PN}-gcc34.patch
}

src_compile() {
emake || die
}

src_install() {
dobin astyle
dohtml astyle.html astyle_release_notes.html license.html
dodoc INSTALL.TXT
}

astyle-1.21.ebuild

# Copyright 1999-2008 Gentoo Foundation
# 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 $

inherit eutils

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"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 ~ppc ~ppc64 ~sparc x86"
IUSE="debug libs"

DEPEND=""
RDEPEND=""

S=${WORKDIR}/${PN}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-${PV}-strip.patch
}

src_compile() {
cd build
local build_targets="release"
if use debug; then
build_targets="debug"
if use libs; then
build_targets="debug staticdebug shareddebug"
fi
else
if use libs; then
build_targets="release static shared"
fi
fi
emake ${build_targets} || die "build failed"
}

src_install() {
if use debug; then
newbin bin/astyled astyle || die "install debug bin failed"
if use libs; then
newlib.a bin/libastyled.a libastyle.a \
|| die "install debug static lib failed"
# shared lib needs at least a soname patch
newlib.so bin/libastyled.so libastyle.so \
|| die "install debug shared lib failed"
fi
else
if use libs; then
dolib.a bin/libastyle.a || die "install static lib failed"
dolib.so bin/libastyle.so || die "install shared lib failed"
fi
dobin bin/astyle || die "install bin failed"
fi
dohtml doc/*.html
}

astyle-1.22.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.22.ebuild,v 1.3 2008/05/30 18:53:54 corsair Exp $

inherit eutils java-pkg-opt-2

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"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc -ppc64 ~sparc ~x86"

IUSE="debug java libs"

RDEPEND="java? ( >=virtual/jre-1.5 )"

DEPEND="java? ( >=virtual/jre-1.5 )"

S=${WORKDIR}/${PN}

pkg_setup() {
use java && java-pkg-2_pkg_setup

if use x86; then
jvmarch=i386
else
jvmarch=${ARCH}
fi
}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-strip.patch
# Add basic soname to make QA happy...
sed -i -e "s:-shared:-shared -Wl,-soname,\$@ :g" buildgcc/Makefile
use java && setup-jvm-opts
}

src_compile() {
cd buildgcc

local build_targets="all"
use java && build_targets="${build_targets} javaall"

emake ${build_targets} || die "build failed"
}

src_install() {
if use debug ; then
newbin bin/astyled astyle || die "install debug bin failed"
newlib.a bin/libastyled.a libastyle.a \
|| die "install debug static lib failed"
if use libs ; then
# shared lib got a soname patch
newlib.so bin/libastyled.so libastyle.so \
|| die "install debug shared lib failed"
if use java ; then
local j_dir="/usr/$(get_libdir)"
dolib.so bin/libastylejd.so \
|| die "install debug shared java lib failed"
java-pkg_regso "${D}${j_dir}/libastylejd.so"
fi
fi
else
if use libs ; then
dolib.so bin/libastyle.so || die "install shared lib failed"
if use java ; then
local j_dir="/usr/$(get_libdir)"
dolib.so bin/libastylej.so \
|| die "install shared java lib failed"
java-pkg_regso "${D}${j_dir}/libastylej.so"
fi
fi
dobin bin/astyle || die "install bin failed"
dolib.a bin/libastyle.a || die "install static lib failed"
fi
dohtml doc/*.html
}

setup-jvm-opts() {
# Figure out correct boot classpath
# stolen from eclipse-sdk ebuild
local bp="$(java-config --jdk-home)/jre/lib"
local bootclasspath=$(java-config --runtime)
if java-config --java-version | grep -q IBM ; then
# IBM JDK
JAVA_LIB_DIR="$(java-config --jdk-home)/jre/bin"
else
# Sun derived JDKs (Blackdown, Sun)
JAVA_LIB_DIR="$(java-config --jdk-home)/jre/lib/${jvmarch}"
fi

einfo "Using bootclasspath ${bootclasspath}"
einfo "Using JVM library path ${JAVA_LIB_DIR}"

if [[ ! -f ${JAVA_LIB_DIR}/libawt.so ]] ; then
die "Could not find libawt.so native library"
fi

export AWT_LIB_PATH=${JAVA_LIB_DIR}
}

files

metadata.xml




dev-tools

nerdboy@gentoo.org
Primary maintainer



From the web page:

Artistic Style is a reindenter and reformatter of C++, C and Java source
code.

When indenting source code, we as programmers have a tendency to use both
spaces and tab characters to create the wanted indentation. Moreover, some
editors by default insert spaces instead of tabs when pressing the tab key,
and other editors (Emacs for example) have the ability to "pretty up" lines
by automatically setting up the white space before the code on the line,
possibly inserting spaces in a code that up to now used only tabs for
indentation.

Since the NUMBER of space characters showed on screen for each tab character
in the source code changes between editors (until the user sets up the
number to his liking...), one of the standard problems facing programmers
when moving from one source code editor to another is that code containing
both spaces and tabs that was up to now perfectly indented, suddenly becomes
a mess to look at when changing to another editor. Even if you as a
programmer take care to ONLY use spaces or tabs, looking at other peoples
source code can still be problematic.

To address this problem I have created Artistic Style - a series of filters,
written in C++, that automatically reindent & reformat C/C++/Java source
files. These can be used from a command line, or it can be incorporated as
classes in another C++ program.