Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b8f2b8a164c8efb2582303f57f8eaee0385167eb

commit b8f2b8a164c8efb2582303f57f8eaee0385167eb
Author: András Vöröskői <voros...@frugalware.org>
Date:   Sat Jul 11 10:55:09 2009 +0200

flexdock-0.5.1-1-i686

initial import

diff --git a/source/devel-extra/flexdock/FrugalBuild 
b/source/devel-extra/flexdock/FrugalBuild
new file mode 100644
index 0000000..43a6a55
--- /dev/null
+++ b/source/devel-extra/flexdock/FrugalBuild
@@ -0,0 +1,26 @@
+# Compiling Time: 0.12 SBU
+# Maintainer: voroskoi <voros...@frugalware.org>
+
+pkgname=flexdock
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Swing windowing and docking framework."
+url="https://flexdock.dev.java.net/";
+Finclude java
+depends=(${depen...@]} 'commons-logging' 'skinlf' 'looks' 'jmf')
+rodepends=('rubberband')
+groups=('devel-extra')
+archs=('i686')
+up2date="lynx -dump ${url} |grep src |sed 's/.*k-\(.*\)-src.*/\1/'"
+source=(https://flexdock.dev.java.net/files/documents/2037/52480/flexdock-${pkgver}-src.zip
 \
+       buildfixes.patch)
+sha1sums=('e5abeedaf3631589cbe3ecc9180cc8493498d664' \
+          'aa76cae885bbae4c2445bd1811cd57a8b56a5c2b')
+_F_cd_path='.'
+
+build() {
+       Fcd
+       Fpatchall
+       Fant jar
+       Fjar build/*.jar
+}
diff --git a/source/devel-extra/flexdock/buildfixes.patch 
b/source/devel-extra/flexdock/buildfixes.patch
new file mode 100644
index 0000000..bb5c1c7
--- /dev/null
+++ b/source/devel-extra/flexdock/buildfixes.patch
@@ -0,0 +1,57 @@
+--- build.xml  2007-03-09 21:16:08.000000000 +0200
++++ build.xml.fixed    2007-04-08 14:32:56.000000000 +0300
+@@ -144,9 +144,7 @@
+          <src path="${java.src.dockbar}"/>
+          <src path="${java.src.drag}"/>
+          <src path="${java.src.perspective}"/>
+-      </javac>
+-      <javac classpathref="javac.classpath.demo" srcdir="${java.src.demo}" 
destdir="${bin.dir.demo}" debug="true" source="1.4"/>
+-      <javac classpathref="javac.classpath.test" srcdir="${java.src.test}" 
destdir="${bin.dir.test}" debug="true" source="1.4"/>
++      </javac>
+    </target>
+
+
+@@ -279,22 +277,22 @@
+    <target name="compile.unix.lib" depends="native.init,compile,resources" 
if="os.unixWithXlib"
+            description="Compile the shared library if you're on a UNIX of 
some sort">
+
+-      <getprefixlibrarykey property="library.key"/>
+
+       <property name="c.dir" 
value="${basedir}/src/c/core/org/flexdock/docking/drag/outline/xlib"/>
+       <property name="so.dir" 
value="${build.dir}/bin/org/flexdock/docking/drag/outline/xlib"/>
+
+
+       <!-- Cleanup existing .so or ensure the dir exists -->
+-      <delete file="${so.dir}/libRubberBand${library.key}.so" 
failonerror="false"/>
++      <delete file="${so.dir}/libRubberBand.so" failonerror="false"/>
+       <mkdir dir="${so.dir}"/>
+
+-      <exec executable="gcc" failonerror="true">
++      <exec executable="${CC}" failonerror="true">
++         <arg value="-fPIC"/>
+          <arg value="-lX11"/>
+          <arg value="-L/usr/X11R6/lib"/>
+          <arg value="-I/usr/X11R6/include"/>
+          <arg value="-o"/>
+-         <arg value="${so.dir}/libRubberBand${library.key}.so"/>
++         <arg value="${so.dir}/libRubberBand.so"/>
+          <arg value="-shared"/>
+          <arg value="${c.dir}/RubberBand.c"/>
+          <arg line='${sdk.include.gcc.args}'/> <!-- potentially multiple 
include dirs -->
+@@ -328,16 +326,6 @@
+
+       <!-- Don't try to make a generic demo jar,
+            here shouldn't be native code in the demos. -->
+-      <jar jarfile="${build.dir}/${dist.demo.jar.name}" 
basedir="${bin.dir.demo}" excludes="${jar.excludes}">
+-         <!-- NOTE: don't use index="true", the classpath lookup of the other 
jar will not work.
+-              See: 
http://forum.java.sun.com/thread.jspa?forumID=22&threadID=568620,
+-              I believe this BUG is the cause: 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4490798 -->
+-         <manifest>
+-            <!-- matches core jar name -->
+-            <attribute name="Class-Path" value="${dist.jar.name} 
lib/commons-logging-1.1.jar lib/jmf/lib/jmf.jar lib/looks-2.1.1.jar"/>
+-            <attribute name="Main-Class" value="org.flexdock.demos.AllDemos"/>
+-         </manifest>
+-      </jar>
+
+       <mkdir dir="${build.dir}/lib"/>
+       <copy todir="${build.dir}/lib">
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to