summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-02-10 12:43:51 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-02-10 12:43:51 +0000
commitaae43a3dce8e3319b410e4aa44dcbc87d3c48b8a (patch)
tree5ce75c700d518d79c0369b35ece384b2ca29c9ca /dev-java/cpptasks
parentStable on ppc wrt bug 165389 (diff)
downloadgentoo-2-aae43a3dce8e3319b410e4aa44dcbc87d3c48b8a.tar.gz
gentoo-2-aae43a3dce8e3319b410e4aa44dcbc87d3c48b8a.tar.bz2
gentoo-2-aae43a3dce8e3319b410e4aa44dcbc87d3c48b8a.zip
Added patch to make cpptasks work with profiling (bug #156596) and changed to use split ant features and latest eclass features. Thanks to Martijn Hijdra <hijdra@imst.de> for the patch.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-java/cpptasks')
-rw-r--r--dev-java/cpptasks/ChangeLog12
-rw-r--r--dev-java/cpptasks/cpptasks-1.0_beta4-r1.ebuild49
-rw-r--r--dev-java/cpptasks/files/1.0b4-profiling.patch27
-rw-r--r--dev-java/cpptasks/files/digest-cpptasks-1.0_beta4-r13
4 files changed, 89 insertions, 2 deletions
diff --git a/dev-java/cpptasks/ChangeLog b/dev-java/cpptasks/ChangeLog
index 6969caa6e954..d35965ef3395 100644
--- a/dev-java/cpptasks/ChangeLog
+++ b/dev-java/cpptasks/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-java/cpptasks
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/cpptasks/ChangeLog,v 1.6 2006/12/20 23:30:36 betelgeuse Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/cpptasks/ChangeLog,v 1.7 2007/02/10 12:43:51 betelgeuse Exp $
+
+*cpptasks-1.0_beta4-r1 (10 Feb 2007)
+
+ 10 Feb 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +files/1.0b4-profiling.patch, +cpptasks-1.0_beta4-r1.ebuild:
+ Added patch to make cpptasks work with profiling (bug #156596) and changed
+ to use split ant features and latest eclass features. Thanks to Martijn
+ Hijdra <hijdra@imst.de> for the patch.
20 Dec 2006; Petteri Räty <betelgeuse@gentoo.org>
cpptasks-1.0_beta4.ebuild:
diff --git a/dev-java/cpptasks/cpptasks-1.0_beta4-r1.ebuild b/dev-java/cpptasks/cpptasks-1.0_beta4-r1.ebuild
new file mode 100644
index 000000000000..bc98db40834f
--- /dev/null
+++ b/dev-java/cpptasks/cpptasks-1.0_beta4-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/cpptasks/cpptasks-1.0_beta4-r1.ebuild,v 1.1 2007/02/10 12:43:51 betelgeuse Exp $
+
+inherit java-pkg-2 java-ant-2
+
+MY_P="${PN}-${PV/_beta/b}"
+DESCRIPTION="Ant-tasks to compile various source languages and produce executables, shared libraries and static libraries"
+HOMEPAGE="http://ant-contrib.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ant-contrib/${MY_P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc source examples"
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/ant-core-1.7
+ >=dev-java/xerces-2.7"
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}
+ source? ( app-arch/zip )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ # https://sourceforge.net/tracker/index.php?func=detail&aid=829906&group_id=36177&atid=416920
+ # https://bugs.gentoo.org/show_bug.cgi?id=156596
+ epatch "${FILESDIR}/1.0b4-profiling.patch"
+ cd "${S}"
+ rm -v *.jar || die
+ java-ant_rewrite-classpath
+}
+
+EANT_BUILD_TARGET="jars"
+EANT_DOC_TARGET="javadocs -Dbuild.javadocs=build/api"
+EANT_GENTOO_CLASSPATH="ant-core,xerces-2"
+
+src_install() {
+ java-pkg_dojar build/lib/${PN}.jar
+
+ java-pkg_register-ant-task
+
+ dodoc NOTICE || die
+ use doc && java-pkg_dojavadoc build/api
+ use examples && dodoc samples/*
+ use source && java-pkg_dosrc src/net
+
+}
diff --git a/dev-java/cpptasks/files/1.0b4-profiling.patch b/dev-java/cpptasks/files/1.0b4-profiling.patch
new file mode 100644
index 000000000000..6795ecd59fcd
--- /dev/null
+++ b/dev-java/cpptasks/files/1.0b4-profiling.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/attachment.cgi?id=102974
+https://sourceforge.net/tracker/index.php?func=detail&aid=829906&group_id=36177&atid=416920
+
+diff -ur cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java
+--- cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java 2006-11-29 13:05:30.000000000 +0100
++++ cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GccLinker.java 2006-11-29 13:14:00.000000000 +0100
+@@ -35,7 +35,7 @@
+ private static String[] linkerOptions = new String[]{"-bundle",
+ "-dynamiclib", "-nostartfiles", "-nostdlib", "-prebind", "-s",
+ "-static", "-shared", "-symbolic", "-Xlinker",
+- "--export-all-symbols", "-static-libgcc",};
++ "--export-all-symbols", "-static-libgcc", "-pg", };
+ private static final GccLinker dllLinker = new GccLinker("gcc", objFiles,
+ discardFiles, "lib", ".so", false, new GccLinker("gcc", objFiles,
+ discardFiles, "lib", ".so", true, null));
+diff -ur cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java
+--- cpptasks-1.0b4.orig/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java 2006-11-29 13:05:30.000000000 +0100
++++ cpptasks-1.0b4/src/net/sf/antcontrib/cpptasks/gcc/GppLinker.java 2006-11-29 13:13:21.000000000 +0100
+@@ -41,7 +41,7 @@
+ ".lib", ".dll", ".so", ".sl"};
+ private static String[] linkerOptions = new String[]{"-bundle", "-dylib",
+ "-dynamic", "-dynamiclib", "-nostartfiles", "-nostdlib",
+- "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker"};
++ "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker", "-pg" };
+ private static final GppLinker instance = new GppLinker("gcc", objFiles,
+ discardFiles, "", "", false, null);
+ private static final GppLinker machDllLinker = new GppLinker("gcc",
diff --git a/dev-java/cpptasks/files/digest-cpptasks-1.0_beta4-r1 b/dev-java/cpptasks/files/digest-cpptasks-1.0_beta4-r1
new file mode 100644
index 000000000000..9a584bcf595f
--- /dev/null
+++ b/dev-java/cpptasks/files/digest-cpptasks-1.0_beta4-r1
@@ -0,0 +1,3 @@
+MD5 1b770a0b07a9f2f3c558bca1ad619439 cpptasks-1.0b4.tar.gz 879715
+RMD160 bfd90f71412ead94023da3b0a4156309dd4f6f4a cpptasks-1.0b4.tar.gz 879715
+SHA256 3472af7389c5a7daaff48a054c2b9f10994b55352025b8a2249a7dfcebca14c8 cpptasks-1.0b4.tar.gz 879715