summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2008-10-16 06:02:44 +0000
committerSteve Arnold <nerdboy@gentoo.org>2008-10-16 06:02:44 +0000
commit04f3c276731156aadda50f75da0c27d35a696009 (patch)
tree3be5f1bdc643c67d6b63b62e65497bc3ba883f32 /dev-util/astyle
parentbump to 2.48 (bug #242202), with three revisions for different ffmpeg version... (diff)
downloadhistorical-04f3c276731156aadda50f75da0c27d35a696009.tar.gz
historical-04f3c276731156aadda50f75da0c27d35a696009.tar.bz2
historical-04f3c276731156aadda50f75da0c27d35a696009.zip
Updated to fix borked JAVA_HOME and CFLAGS
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.26.5 x86_64
Diffstat (limited to 'dev-util/astyle')
-rw-r--r--dev-util/astyle/ChangeLog9
-rw-r--r--dev-util/astyle/Manifest6
-rw-r--r--dev-util/astyle/astyle-1.22.ebuild53
-rw-r--r--dev-util/astyle/files/astyle-1.22-Makefile.patch52
-rw-r--r--dev-util/astyle/files/astyle-1.22-strip.patch29
5 files changed, 80 insertions, 69 deletions
diff --git a/dev-util/astyle/ChangeLog b/dev-util/astyle/ChangeLog
index 2632fd75ccc7..219fd81731b1 100644
--- a/dev-util/astyle/ChangeLog
+++ b/dev-util/astyle/ChangeLog
@@ -1,6 +1,11 @@
# 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.26 2008/09/10 13:06:01 fmccor Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.27 2008/10/16 06:02:44 nerdboy Exp $
+
+ 28 Sep 2008; Steve Arnold <nerdboy@gentoo.org> astyle-1.22.ebuild,
+ +filers/astyle-1.22-Makefile.patch, -files/astyle-1.22-strip.patch:
+ Updated to fix borked JAVA_HOME and CFLAGS; requires a 1.6 JDK now...
+ Tested on amd64 with Sun JDK.
10 Sep 2008; Ferris McCormick <fmccor@gentoo.org> astyle-1.21.ebuild:
Sparc stable --- Bug #220739 --- seems to work fine.
@@ -34,7 +39,7 @@
Dropped ppc-macos keyword, see you in prefix
14 Nov 2007; Robin H. Johnson <robbat2@gentoo.org> astyle-1.21.ebuild:
- Fix $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.26 2008/09/10 13:06:01 fmccor Exp $ string.
+ Fix $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.27 2008/10/16 06:02:44 nerdboy Exp $ string.
*astyle-1.21 (07 Oct 2007)
diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest
index b9d63fb362d5..510079c4071c 100644
--- a/dev-util/astyle/Manifest
+++ b/dev-util/astyle/Manifest
@@ -1,5 +1,5 @@
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-1.22-Makefile.patch 1672 RMD160 666026d8264ab09643c5fcff6cfbdc10a042213c SHA1 85d0ca6b7d665080c54b54eb1fd3ef52e7dc38fc SHA256 273b0c949a963902949616027353b10d69c05f76f8d8747c7e7fb18184cc0027
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
@@ -8,6 +8,6 @@ DIST astyle_1.22_linux.tar.gz 92580 RMD160 e0707298358ff9bd9c8540b460a87c446fad3
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 1562 RMD160 be22db1cb1a06c982501754289c30b5ddd08d0f8 SHA1 b37bffebd36b30d0f89239ac3aae446245962a31 SHA256 e23f4157ca6f84563716ca290e7447bbd754de0e0a4a2acad40b2c4a2a27e186
-EBUILD astyle-1.22.ebuild 2771 RMD160 ccf7c08c40ebc35dec2ea2b8895673977949da59 SHA1 e066f11540d9b7f3471cafbd24dab9f1a03175bc SHA256 cc34668888bea76d70626b09d166c2b8962b0427e73a6c3d33330e1decf96037
-MISC ChangeLog 3285 RMD160 6fcc8d17413c3a9b99432261d898e00ea84e5b4d SHA1 96111880bc8714c356a67984801cda3c4372c525 SHA256 b3e55bcb48e75cf5da49fcf9ec2be06d07eb048dfdac478b2737ef223bb19ea1
+EBUILD astyle-1.22.ebuild 2340 RMD160 30cbc3482a33e72559e6e59b28c76adce23b3cd0 SHA1 a085083ea9758676fce113c96a92cb7a939f9d80 SHA256 7d992072d4280ebe905d9f4f90d50d6c9d5cb39b7918ecb7de3dfe6026e2c718
+MISC ChangeLog 3531 RMD160 318ab63a1320f8b2822628bf83d595335010639f SHA1 5fbe97258d18b80aa9e46c00f6822d5f7ad9a71f SHA256 bd3008d0f8702474914ac645a70eadf25987defc511156cc4911b1477759cffe
MISC metadata.xml 1870 RMD160 37574beac94e9e90c65cd7a32ede203251425390 SHA1 ee0bae24008249d404bd1d16bb30cfcce59df598 SHA256 904db7ed27910cf28033f752c2e3e4b5ff1435ca7594fc78bea37d3e857ef5d7
diff --git a/dev-util/astyle/astyle-1.22.ebuild b/dev-util/astyle/astyle-1.22.ebuild
index 75d6ac5aee2f..f451e6b91fe2 100644
--- a/dev-util/astyle/astyle-1.22.ebuild
+++ b/dev-util/astyle/astyle-1.22.ebuild
@@ -1,8 +1,8 @@
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.22.ebuild,v 1.4 2008/10/16 06:02:44 nerdboy Exp $
-inherit eutils java-pkg-opt-2
+inherit eutils java-pkg-2 java-pkg-opt-2 toolchain-funcs
DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
HOMEPAGE="http://astyle.sourceforge.net/"
@@ -14,29 +14,35 @@ KEYWORDS="~alpha ~amd64 ~ppc -ppc64 ~sparc ~x86"
IUSE="debug java libs"
-RDEPEND="java? ( >=virtual/jre-1.5 )"
+RDEPEND="java? ( >=virtual/jre-1.6 )"
-DEPEND="java? ( >=virtual/jre-1.5 )"
+DEPEND="java? ( >=virtual/jre-1.6 )"
S=${WORKDIR}/${PN}
pkg_setup() {
- use java && java-pkg-2_pkg_setup
+ if use java ; then
+ java-pkg-2_pkg_setup
- if use x86; then
- jvmarch=i386
- else
- jvmarch=${ARCH}
+ if use x86; then
+ jvmarch=i386
+ else
+ jvmarch=${ARCH}
+ fi
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
+ # Fix JAVA_HOME
+ sed -i -e \
+ "s:/usr/lib/jvm/java-6-sun-1.6.0.00:$(java-config --jdk-home):g" \
+ buildgcc/Makefile || die "sed failed"
+ # respect CFLAGS, remove strip and other hard-coded crap
+ epatch "${FILESDIR}"/${P}-Makefile.patch
}
src_compile() {
@@ -45,7 +51,7 @@ src_compile() {
local build_targets="all"
use java && build_targets="${build_targets} javaall"
- emake ${build_targets} || die "build failed"
+ emake CXX="$(tc-getCXX)" ${build_targets} || die "build failed"
}
src_install() {
@@ -54,7 +60,6 @@ src_install() {
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
@@ -80,25 +85,3 @@ src_install() {
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}
-}
diff --git a/dev-util/astyle/files/astyle-1.22-Makefile.patch b/dev-util/astyle/files/astyle-1.22-Makefile.patch
new file mode 100644
index 000000000000..aa1dd25c21ff
--- /dev/null
+++ b/dev-util/astyle/files/astyle-1.22-Makefile.patch
@@ -0,0 +1,52 @@
+--- buildgcc/Makefile.orig 2008-10-14 20:31:23.645424162 -0700
++++ buildgcc/Makefile 2008-10-14 20:36:36.484423984 -0700
+@@ -36,14 +36,14 @@
+ ##################################################
+
+ # define compile options for each build
+-CFLAGS = -DNDEBUG -O3 $(CBASEFLAGS)
+-CFLAGSd = -g $(CBASEFLAGS)
+-CFLAGSs = -DNDEBUG -DASTYLE_LIB -O3 -fpic $(CBASEFLAGS)
+-CFLAGSsd = -DASTYLE_LIB -g -fpic $(CBASEFLAGS)
+-CFLAGSa = -DNDEBUG -DASTYLE_LIB -O3 $(CBASEFLAGS)
+-CFLAGSad = -DASTYLE_LIB -g $(CBASEFLAGS)
+-CFLAGSsj = -DNDEBUG -DASTYLE_JNI -O3 -fpic $(CBASEFLAGS) $(JAVAINCS)
+-CFLAGSsjd = -DASTYLE_JNI -g -fpic $(CBASEFLAGS) $(JAVAINCS)
++CFLAGSb = -DNDEBUG $(CFLAGS)
++CFLAGSd = -g $(CFLAGS)
++CFLAGSs = -DNDEBUG -DASTYLE_LIB -fPIC $(CFLAGS)
++CFLAGSsd = -DASTYLE_LIB -g -fPIC $(CFLAGS)
++CFLAGSa = -DNDEBUG -DASTYLE_LIB $(CFLAGS)
++CFLAGSad = -DASTYLE_LIB -g $(CFLAGS)
++CFLAGSsj = -DNDEBUG -DASTYLE_JNI -fPIC $(CFLAGS) $(JAVAINCS)
++CFLAGSsjd = -DASTYLE_JNI -g -fPIC $(CFLAGS) $(JAVAINCS)
+
+ # object files are built from the source list $(SRC)
+ # a suffix is added for each build
+@@ -61,7 +61,7 @@
+ # OBJ
+ $(objdir)/%.o: %.cpp astyle.h
+ @ mkdir -p $(objdir)
+- $(CXX) $(CFLAGS) -c -o $@ $<
++ $(CXX) $(CFLAGSb) -c -o $@ $<
+
+ # OBJd
+ $(objdir)/%_d.o: %.cpp astyle.h
+@@ -104,7 +104,7 @@
+ release: astyle
+ astyle: $(OBJ)
+ @ mkdir -p $(bindir)
+- $(CXX) -s -o $(bindir)/$@ $^
++ $(CXX) -o $(bindir)/$@ $^
+ @ echo
+
+ debug: astyled
+@@ -116,7 +116,7 @@
+ shared: libastyle.so
+ libastyle.so: $(OBJs)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared -Wl,-soname,$@ -s -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ -o $(bindir)/$@ $^
+ @ echo
+
+ shareddebug: libastyled.so
diff --git a/dev-util/astyle/files/astyle-1.22-strip.patch b/dev-util/astyle/files/astyle-1.22-strip.patch
deleted file mode 100644
index 3015ec12be08..000000000000
--- a/dev-util/astyle/files/astyle-1.22-strip.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- astyle.orig/buildgcc/Makefile 2008-04-11 11:25:13.000000000 +0200
-+++ astyle/buildgcc/Makefile 2008-04-11 11:25:52.000000000 +0200
-@@ -104,7 +104,7 @@
- release: astyle
- astyle: $(OBJ)
- @ mkdir -p $(bindir)
-- $(CXX) -s -o $(bindir)/$@ $^
-+ $(CXX) -o $(bindir)/$@ $^
- @ echo
-
- debug: astyled
-@@ -116,7 +116,7 @@
- shared: libastyle.so
- libastyle.so: $(OBJs)
- @ mkdir -p $(bindir)
-- $(CXX) -shared -s -o $(bindir)/$@ $^
-+ $(CXX) -shared -o $(bindir)/$@ $^
- @ echo
-
- shareddebug: libastyled.so
-@@ -140,7 +140,7 @@
- java: libastylej.so
- libastylej.so: $(OBJsj)
- @ mkdir -p $(bindir)
-- $(CXX) -shared -s -o $(bindir)/$@ $^
-+ $(CXX) -shared -o $(bindir)/$@ $^
- @ echo
-
- javadebug: libastylejd.so