diff options
author | Guillaume Horel <guillaume.horel@gmail.com> | 2014-01-09 23:24:26 -0500 |
---|---|---|
committer | Guillaume Horel <guillaume.horel@gmail.com> | 2014-01-09 23:24:26 -0500 |
commit | 0d6371a2404d53149632b2b2b0c2bef5b5ee8066 (patch) | |
tree | 76cffc2a6a24a0491da250686ae8cf78db8bda15 /sci-mathematics/scilab | |
parent | Add sci-libs/pmx (diff) | |
download | sci-0d6371a2404d53149632b2b2b0c2bef5b5ee8066.tar.gz sci-0d6371a2404d53149632b2b2b0c2bef5b5ee8066.tar.bz2 sci-0d6371a2404d53149632b2b2b0c2bef5b5ee8066.zip |
sci-mathematics/scilab ebuild cleanup
should fix bugs #490356, #494718 and bug #497638
Diffstat (limited to 'sci-mathematics/scilab')
-rw-r--r-- | sci-mathematics/scilab/files/scilab-5.5.0_beta1-nogui.patch | 13 | ||||
-rw-r--r-- | sci-mathematics/scilab/scilab-5.5.0_beta1.ebuild | 64 |
2 files changed, 44 insertions, 33 deletions
diff --git a/sci-mathematics/scilab/files/scilab-5.5.0_beta1-nogui.patch b/sci-mathematics/scilab/files/scilab-5.5.0_beta1-nogui.patch new file mode 100644 index 000000000..60cee5a45 --- /dev/null +++ b/sci-mathematics/scilab/files/scilab-5.5.0_beta1-nogui.patch @@ -0,0 +1,13 @@ +--- Makefile.in.orig 2014-01-09 22:29:06.534469383 -0500 ++++ Makefile.in 2014-01-09 22:29:40.368471544 -0500 +@@ -2247,8 +2247,8 @@ + @BUILD_HELP_TRUE@ done; \ + @BUILD_HELP_TRUE@ fi + # Also install scirenderer.jar +-@EXTERNAL_SCIRENDERER_FALSE@ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER) +-@EXTERNAL_SCIRENDERER_FALSE@ $(INSTALL_DATA) $(top_builddir)/$(PATHTOSCIRENDERER)/$(SCIRENDERERJAR) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER)/ ++@EXTERNAL_SCIRENDERER_FALSE@@NEED_JAVA_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER) ++@EXTERNAL_SCIRENDERER_FALSE@@NEED_JAVA_TRUE@ $(INSTALL_DATA) $(top_builddir)/$(PATHTOSCIRENDERER)/$(SCIRENDERERJAR) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER)/ + + .PHONY: macros localization doc + diff --git a/sci-mathematics/scilab/scilab-5.5.0_beta1.ebuild b/sci-mathematics/scilab/scilab-5.5.0_beta1.ebuild index e6b96b6e3..c733e9429 100644 --- a/sci-mathematics/scilab/scilab-5.5.0_beta1.ebuild +++ b/sci-mathematics/scilab/scilab-5.5.0_beta1.ebuild @@ -28,15 +28,12 @@ IUSE="bash-completion debug +doc fftw +gui +matio mpi nls openmp static-libs test tk +umfpack +xcos" REQUIRED_USE="xcos? ( gui ) doc? ( gui )" -# ALL_LINGUAS variable defined in configure.ac -LINGUAS="fr_FR zh_CN zh_TW ca_ES es_ES pt_BR" +LINGUAS="fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ" +LINGUAS_DOC="fr_FR pt_BR ja_JP ru_RU" + for l in ${LINGUAS}; do IUSE="${IUSE} linguas_${l}" done -LINGUASLONG="de_DE ja_JP it_IT uk_UA pl_PL ru_RU" -for l in ${LINGUASLONG}; do - IUSE="${IUSE} linguas_${l%_*}" -done CDEPEND="dev-libs/libpcre dev-libs/libxml2:2 @@ -51,21 +48,20 @@ CDEPEND="dev-libs/libpcre dev-java/avalon-framework:4.2 dev-java/batik:1.7 dev-java/commons-io:1 + dev-java/commons-logging:0 >=dev-java/flexdock-1.2.4:0 dev-java/fop:0 - dev-java/gluegen:2.1 + =dev-java/gluegen-2.1.2:2.1 dev-java/javahelp:0 dev-java/jeuclid-core:0 dev-java/jgoodies-looks:2.0 - dev-java/jgraphx:2.1 dev-java/jlatexmath:1 - dev-java/jogl:2.1 + dev-java/jlatexmath-fop:1 + =dev-java/jogl-2.1.2:2.1 >=dev-java/jrosetta-1.0.4:0 dev-java/skinlf:0 dev-java/xmlgraphics-commons:1.5 - virtual/opengl - doc? ( dev-java/saxon:9 ) - xcos? ( dev-java/commons-logging:0 ) ) + virtual/opengl ) matio? ( >=sci-libs/matio-1.5 ) tk? ( dev-lang/tk ) umfpack? ( sci-libs/umfpack )" @@ -80,8 +76,9 @@ DEPEND="${CDEPEND} >=virtual/jdk-1.5 doc? ( app-text/docbook-xsl-stylesheets dev-java/xml-commons-external:1.4 - dev-java/jlatexmath-fop:1 ) - xcos? ( dev-lang/ocaml ) ) + dev-java/saxon:9 ) + xcos? ( dev-lang/ocaml + dev-java/jgraphx:2.1 ) ) test? ( dev-java/junit:4 gui? ( ${VIRTUALX_DEPEND} ) )" @@ -107,13 +104,14 @@ pkg_setup() { java-pkg-opt-2_pkg_setup ALL_LINGUAS="en_US" + ALL_LINGUAS_DOC="en_US" for l in ${LINGUAS}; do use linguas_${l} && ALL_LINGUAS="${ALL_LINGUAS} ${l}" done - for l in ${LINGUASLONG}; do - use linguas_${l%_*} && ALL_LINGUAS="${ALL_LINGUAS} ${l}" + for l in ${LINGUAS_DOC}; do + use linguas_${l} && ALL_LINGUAS_DOC="${ALL_LINGUAS_DOC} ${l}" done - export ALL_LINGUAS ALL_LINGUAS_DOC=$ALL_LINGUAS + export ALL_LINGUAS ALL_LINGUAS_DOC } src_prepare() { @@ -123,7 +121,8 @@ src_prepare() { "${FILESDIR}/${P}-fix-random-runtime-failure.patch" \ "${FILESDIR}/${P}-disable-static-systemlib.patch" \ "${FILESDIR}/${P}-always-use-dynamic-stack.patch" \ - "${FILESDIR}/${P}-accessviolation.patch" + "${FILESDIR}/${P}-accessviolation.patch" \ + "${FILESDIR}/${P}-nogui.patch" append-ldflags $(no-as-needed) @@ -150,26 +149,25 @@ src_prepare() { fi mkdir jar || die - pushd jar - java-pkg_jar-from jgraphx-2.1,jlatexmath-1,flexdock,skinlf - java-pkg_jar-from jgoodies-looks-2.0,jrosetta - java-pkg_jar-from avalon-framework-4.2,jeuclid-core - java-pkg_jar-from xmlgraphics-commons-1.5,commons-io-1 - java-pkg_jar-from jogl-2.1 jogl-all.jar jogl2.jar - java-pkg_jar-from gluegen-2.1 gluegen-rt.jar gluegen2-rt.jar - java-pkg_jar-from batik-1.7 batik-all.jar - java-pkg_jar-from fop fop.jar - java-pkg_jar-from javahelp jhall.jar - if use xcos; then - java-pkg_jar-from commons-logging - fi - if use doc; then - java-pkg_jar-from saxon-9 saxon.jar saxon9he.jar + pushd jar >/dev/null + if use gui; then + java-pkg_jar-from jlatexmath-1,flexdock,skinlf + java-pkg_jar-from jgoodies-looks-2.0,jrosetta + java-pkg_jar-from avalon-framework-4.2,jeuclid-core + java-pkg_jar-from xmlgraphics-commons-1.5,commons-io-1 + java-pkg_jar-from jogl-2.1 jogl-all.jar jogl2.jar + java-pkg_jar-from gluegen-2.1 gluegen-rt.jar gluegen2-rt.jar + java-pkg_jar-from batik-1.7 batik-all.jar + java-pkg_jar-from fop fop.jar + java-pkg_jar-from javahelp jhall.jar java-pkg_jar-from jlatexmath-fop-1 java-pkg_jar-from xml-commons-external-1.4 xml-apis-ext.jar + use xcos && java-pkg_jar-from jgraphx-2.1 + use doc && java-pkg_jar-from saxon-9 saxon.jar saxon9he.jar fi if use test; then java-pkg_jar-from junit-4 junit.jar junit4.jar + java-pkg_jar-from ant-junit fi popd |