Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#9 gentoo support

closed
Jiri Tyr
None
1
2008-06-24
2007-04-23
Jiri Tyr
No

Hello,

thanks for your great work on this project. It's really very useful project! I'm looking forward to have Jeuclid support in FOP. It's really very necessary to have MathML in FOP. Thanks!

And now the request. Please, could you provide ANT build.xml file to build the jeuclid.jar file? I use Gentoo Linux and I would like to create ebuild to make possible to install the new Jeuclid into my system. I'm sure that I'm not only one who would appreciate that.

Best Regards,
Jiri

Discussion

  • Max Berger

    Max Berger - 2007-04-23
    • assigned_to: nobody --> maxberger
    • status: open --> pending
     
  • Jiri Tyr

    Jiri Tyr - 2007-04-24
    • status: pending --> open
     
  • Jiri Tyr

    Jiri Tyr - 2007-04-24

    Logged In: YES
    user_id=498168
    Originator: YES

    Thanks for your replay. The best solution would be if you could provide the build.xml file in your source codes. You can generate it simpler with the command "mvn ant:ant". Then everybody could decide what method will use. Then you could also provide source code package in the download section. Not only "distribution" and "osx" package. Then It would be much simpler to make the ebuild. Otherwise I would need to download source codes from SVN and it takes more time then download one package with the source codes. Please let me know if you could provide source code package (jeuclid-2.6.9.zip) including build.xml file.

    Best Regards,
    Jiri

     
  • Max Berger

    Max Berger - 2007-04-24

    Logged In: YES
    user_id=99210
    Originator: NO

    Dear Jiri,

    I have added the creation of the source code package including build.xml file to the package creation process. If you call "mvn package" (from the current svn version), you will get a heuclid-..-source.zip file in the target directory (including build.xml). Please try and test this and see if it is sufficient. If so, i can patch the 2.9.6 code to generate a source package as well, and i'll add the source package to the future releases.

    Please note that the build.xml file may not fully support all features. For example, the run scripts are missing. For full functionality there is no way around using maven.

    Max

     
  • Max Berger

    Max Berger - 2007-04-24
    • status: open --> pending
     
  • Nobody/Anonymous

    Logged In: NO

    Hi Max,

    thanks for the option to make build.xml and source code package. I tried that a minute ago and I have got a problem. It makes jeuclid-2.9.7-SNAPSHOT-source.zip but when I unpack it and if I try to do "ant" it's trying to get some packages from internet. So I looked into the build.xml and I adjusted it a little bit:

    <project name="jeuclid" default="jar" basedir=".">
    <property name="build.output" value="target/classes"/>
    <property name="build.directory" value="target"/>
    <property name="build.final.name" value="jeuclid-2.9.7"/>
    <property name="repo.local" value="/usr/share/"/>
    <path id="build.classpath">
    <fileset dir="${repo.local}">
    <include name="ant-core/lib/ant.jar"/>
    <include name="batik-1.6/lib/batik-awt-util.jar"/>
    <include name="batik-1.6/lib/batik-css.jar"/>
    <include name="batik-1.6/lib/batik-dom.jar"/>
    <include name="batik-1.6/lib/batik-ext.jar"/>
    <include name="batik-1.6/lib/batik-gui-util.jar"/>
    <include name="batik-1.6/lib/batik-gvt.jar"/>
    <include name="batik-1.6/lib/batik-parser.jar"/>
    <include name="batik-1.6/lib/batik-svg-dom.jar"/>
    <include name="batik-1.6/lib/batik-svggen.jar"/>
    <include name="batik-1.6/lib/batik-util.jar"/>
    <include name="batik-1.6/lib/batik-xml.jar"/>
    <include name="commons-logging/lib/commons-logging-api.jar"/>
    </fileset>
    </path>
    <target name="clean" description="Clean the output directory">
    <delete dir="${build.directory}"/>
    </target>
    <target name="compile" description="Compile the code">
    <mkdir dir="${build.output}"/>
    <javac destdir="${build.output}" excludes="**/package.html" debug="true" deprecation="true" optimize="false">
    <src>
    <pathelement location="src/main/java"/>
    </src>
    <classpath refid="build.classpath"/>
    </javac>
    <copy todir="${build.output}">
    <fileset dir="src/main/resources"/>
    </copy>
    </target>
    <target name="jar" depends="compile" description="Clean the JAR">
    <jar jarfile="${build.directory}/${build.final.name}.jar" basedir="${build.output}" excludes="**/package.html"/>
    </target>
    </project>

    Then it creates the jeuclid-2.9.7.jar file. I tested also if the MathViewer works and it does:

    java -cp "./jeuclid-2.9.7.jar:/usr/share/commons-logging/lib/commons-logging-api.jar" -Dapp.name="mathviewer" net.sourceforge.jeuclid.app.MathViewer

    Well, the question is if you can generate the build.xml file somehow better. If not, then I have to include the modified build.xml to my ebuild.

    Cheers,
    Jiri

     
  • Max Berger

    Max Berger - 2007-04-25
    • priority: 5 --> 1
    • summary: ANT build.xml file... --> gentoo support
    • status: pending --> open
     
  • Max Berger

    Max Berger - 2007-04-25

    Logged In: YES
    user_id=99210
    Originator: NO

    Dear Jiri,

    right now I see two possible solutions:
    - create a patch for the generated build.xml
    - improve maven-ant-plugin to better support gentoo.

    I think the latter one is the solution of choice. However, this is way beyond my scope.

    I have browsed the bug database for maven-ant-plugin, and did find some gentoo related feature request:
    http://jira.codehaus.org/browse/MANT-22

    (which disables the test cases, similar to what you have done)

    I don't know how to fix the repository location problem though.

    So for now you'll have to use your own build file. I'll leave this bug open and rename it to "gentoo support".

     
  • Erik Putrycz

    Erik Putrycz - 2007-04-27

    Logged In: YES
    user_id=568958
    Originator: NO

    MathML is built with Maven now. I dont know gentoo but an easy way to install it on Linux is through Jpackage (www.jpackage.org).

     
  • Jiri Tyr

    Jiri Tyr - 2008-06-02

    Logged In: YES
    user_id=498168
    Originator: YES

    Hello Max,

    after a while I have came back to this topic. I suppose it would be not so difficult to compile jeuclid-core and jeuclid-fop from source codes with ANT if it would not depend on FreeHEP Java libraries. Pity is that without this library is not possible to compile jeuclid-core module BUT when you run it, it is not more needed!

    Please could you have a look at it and tell me if it would be possible to replace the really huge FreeHEP library with some more common library which is easier to compile along with jeuclid-core?

    Cheers,
    Jiri

     
  • Max Berger

    Max Berger - 2008-06-03

    Logged In: YES
    user_id=99210
    Originator: NO

    Jiri,

    I've just added source zips to the file release of 3.1.1. Please try to use these and tell me if something is missing. They contain the same auto-generated build.xml files as before.

    As for FreeHEP: It is only needed for advanced graphics output, such as SWF, and never used in the fop plugin. Do get rid of the FreeHep dependency, you'll need to do the following:

    rm jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/FreeHep*
    grep -v FreeHep jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java > convreg.tmp
    mv convreg.tmp jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java

    hth

    Max

     
  • Max Berger

    Max Berger - 2008-06-24

    Logged In: YES
    user_id=99210
    Originator: NO

    fixed by making you a developer of the project :)

     
  • Max Berger

    Max Berger - 2008-06-24
    • assigned_to: maxberger --> jirityr
    • status: open --> closed
     

Log in to post a comment.