diff options
Diffstat (limited to 'dev-scheme/kawa')
-rw-r--r-- | dev-scheme/kawa/Manifest | 11 | ||||
-rw-r--r-- | dev-scheme/kawa/files/kawa-1.10.patch | 24 | ||||
-rw-r--r-- | dev-scheme/kawa/files/kawa-1.14.patch | 24 | ||||
-rw-r--r-- | dev-scheme/kawa/kawa-1.10.ebuild | 109 | ||||
-rw-r--r-- | dev-scheme/kawa/kawa-1.14.ebuild | 108 | ||||
-rw-r--r-- | dev-scheme/kawa/metadata.xml | 30 |
6 files changed, 306 insertions, 0 deletions
diff --git a/dev-scheme/kawa/Manifest b/dev-scheme/kawa/Manifest new file mode 100644 index 000000000000..02c4bc4fa229 --- /dev/null +++ b/dev-scheme/kawa/Manifest @@ -0,0 +1,11 @@ +AUX kawa-1.10.patch 1482 SHA256 e9b59585d9877807c6207d9c86862123f72b5062f441fd9fa63e0c4e8b954410 SHA512 796621da5483629953ed421e7643439702e088c74098af234b4023d50841dd98374a9b51d6549a3791a47bb8c6904aaebfd82cb668cd1e082f595d63c8bc3f92 WHIRLPOOL 71848e8ca8be6d311b9332272a822c96e715681ff8800f6303d0a86fec82591136f492b2f3ad2359305a90a8e31194126bc91f72a8dab13dd25946204a9dfcd5 +AUX kawa-1.14.patch 1482 SHA256 e9b59585d9877807c6207d9c86862123f72b5062f441fd9fa63e0c4e8b954410 SHA512 796621da5483629953ed421e7643439702e088c74098af234b4023d50841dd98374a9b51d6549a3791a47bb8c6904aaebfd82cb668cd1e082f595d63c8bc3f92 WHIRLPOOL 71848e8ca8be6d311b9332272a822c96e715681ff8800f6303d0a86fec82591136f492b2f3ad2359305a90a8e31194126bc91f72a8dab13dd25946204a9dfcd5 +DIST XQTS_1_0_2.zip 19879467 SHA256 923361362d70a20818c6442eb52a6401fe9d2e53e4f52ee8b4d7fb1c841b4443 SHA512 a9c35ee02871b2b9629ce87125886347ef407133871c63e7628bfc8b99a60045c0187a2fbfa1a6f02dc572d7ac1b27cac24e467dd07f95acdedc6b4c7ffd969a WHIRLPOOL 43628d3650e0996c97f7bc05da2255661d8dcedfa45ddbb325311a3aec0d9e7e6f6383f73ed2f65a77bd5a26158c069dcfe1eac04b418da21c14bfcdf2a55a0f +DIST XQTS_1_0_3.zip 30956043 SHA256 1a6c9dd8761f021e78105efd4f46d5d35bb8b73b18e14bfde0512661e6be78ec SHA512 e00efd3dbf0b1cf530795073f7548cf4ab4f3c55921f76af7c000e61e1d7293cd11f41d617b3ce5343df5e9c5b6de4ee3819a6db2b15df9441a19489ae46e1dd WHIRLPOOL 57ac5b2d5a38446d89df7bd7d06dbe09a592b6243ceb415fac4d2d0bf154a8cf51307194feab7eef14643bdd8f24e87f307b2cb521f5f81ef412814bf9fddc8b +DIST kawa-1.10.tar.gz 2238130 SHA256 f697f5784b55b1945f0644954459f88a0eb9511bb60d695b1a9767b58eb7492e SHA512 4ab27331f7be6d6107272e75508179ed7d14c475e1fffaceeb7a16600e3ba4e54fc63506788ed89fca1f2d390477d2e3e685f29b015a28214fcb4f62016c943d WHIRLPOOL 2dc4c85ae4d8496b0425d6faf9c6077fe66906a107d0780b60d19fc91992b0a06f066857c4aa45fb81e29495ec4f9c7d9bac9d6f9a210874d2ffaf79dbf851eb +DIST kawa-1.14.tar.gz 2691484 SHA256 2201cf3f4c57f49f15cf929d8634855cb8ef4ffe79158cecd66ebd5bd9b4b909 SHA512 e0a0eafd4ed0ce7d254f295db8e920b82cfef6f4f71c440db655d73761a2f99ab743def1daa54241998497db8f29269c7d98f7e3bf819a36d7f7151d3ba2913e WHIRLPOOL 6f7e32e38ecea68e4d7faffc2cb1df16d33b384010391d23507397714891ad1588a35aa7d0b4c1079322acc3250f25459c94ddb68f90a14f04a552f847542d6a +EBUILD kawa-1.10.ebuild 2919 SHA256 070d23426abfbd8e7edf942e557d13a16ecacc2888a9e5b8ed5482fc0a2a8aed SHA512 9e7e3c895a19bf854e2631b87b556b40098d5225d75342b7bc2963d9bd214c2a946ae4ce85a42b01345b1c2f61d64b57d163bb62eee48b9298f2a7c451dd4ae7 WHIRLPOOL 334865e65b440a5558d5433b551fa3fb7ff3fd11ac8e0f1ad6ce1af5cae9740d07eec0a1d3249761955c9112dfa47e92d346cd775240fe24425f4bf13d58ef0e +EBUILD kawa-1.14.ebuild 2880 SHA256 94c37f3e74d720774daef3487cbc47f3466c862b1a84f828c28fa01035cf0aeb SHA512 fd67b6e5e1102b983ab5064164a5d0ca5fb89f19772a3b6da1b67e3688f0a2204079e58384c311d66a05f9fabeca411eac5c37cb0197966e298b284a6b44b81e WHIRLPOOL d0cc48c9a018d2e537808589966924322dc68380d4224d3cb50c3c3a8de54a1093c8d89ea4e624f2fc4856bbb29c2c1d0c78b3220c13e491542f4c878acad587 +MISC ChangeLog 3214 SHA256 445ca07eaed0cea91a04d58bedcd9980031cb159500033f6c7acd58682f429f6 SHA512 fb0590f437ad707dafbc823193fddfb37337bd57f0255af60393880838b7fcf3ddccb006c30d24136147ab95d82f55a967fc74927d321e59d857eedc71358df9 WHIRLPOOL 161ea64093bd3da327ea1ccfcd2780930029d5fc6fee0d7a76059423c2dedce0132b8107a8f90bb57679bed7010e454cca485e7a67d41235f44d030fceb8b734 +MISC ChangeLog-2015 3007 SHA256 b2a17e8bad89eb3c42247d6eb845a98a1645029b20c895716c01d22ce1ea1d48 SHA512 403abc855263b57cb3f77382d44f623d783079fd170a89133890772210afd98c6d5cdf0cbc91a8e4830e7eb1281cdf9203766d6fc1cd3d5346ba8e2ecbc67f1e WHIRLPOOL d4b0f397cc0f8ffd4652e2c3bba16ecad1fab5be79c5905fc36429c630a5b8ed80b8eb0893aaa205818d141fdecd8828348ba55d566a05ff285b1c7fa06c756a +MISC metadata.xml 1375 SHA256 77077bfe7470f9bf6f8d5ed8038da2b320212d65f1779675f79f63cd9713ad02 SHA512 6d211ce3778ee387d9776cc33a361f745414dc546e3acece0b5240d2a62f2b1f83ebe505a04e5ae66d7c6f46631bfa8b248234da6176fcca993c9602d1a265b0 WHIRLPOOL 503a3cd09af92f29fba62e10ddbb4f11c9c16d860f012139bb3ad7bec3b6d97b9da00dcb8bcc2e4c345f63577f545ee06732534fa920159cce9fa18b558ebabc diff --git a/dev-scheme/kawa/files/kawa-1.10.patch b/dev-scheme/kawa/files/kawa-1.10.patch new file mode 100644 index 000000000000..8acc5e442f69 --- /dev/null +++ b/dev-scheme/kawa/files/kawa-1.10.patch @@ -0,0 +1,24 @@ +diff -Naur kawa-1.10.orig/Makefile.in kawa-1.10/Makefile.in +--- kawa-1.10.orig/Makefile.in 2010-09-19 01:38:24.000000000 +0200 ++++ kawa-1.10/Makefile.in 2010-09-19 01:38:59.000000000 +0200 +@@ -908,7 +908,7 @@ + | sed -e 's|./||' | sort > $@ + + gnu/kawa/util/PreProcess.class: $(srcdir)/gnu/kawa/util/PreProcess.java +- $(JAVAC) -d . $(srcdir)/gnu/kawa/util/PreProcess.java ++ $(JAVAC) $(JAVACFLAGS) -d . $(srcdir)/gnu/kawa/util/PreProcess.java + + # JDK 1.1 + select-java1: $(srcdir)/patch-source-list gnu/kawa/util/PreProcess.class +diff -Naur kawa-1.9.90.orig/bin/Makefile.in kawa-1.9.90/bin/Makefile.in +--- kawa-1.9.90.orig/bin/Makefile.in 2009-08-08 12:20:49.000000000 -0300 ++++ kawa-1.9.90/bin/Makefile.in 2009-09-21 20:15:06.000000000 -0300 +@@ -686,7 +686,7 @@ + install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" +-@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT) ++@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) ./kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT) + @WITH_GCJ_DBTOOL_FALSE@@WITH_GCJ_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa-bin$(EXEEXT) $(DESTDIR)$(bindir)/kawa-bin$(EXEEXT) + @ENABLE_SERVLET_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) cgi-servlet$(EXEEXT) $(DESTDIR)$(bindir)/cgi-servlet$(EXEEXT) + diff --git a/dev-scheme/kawa/files/kawa-1.14.patch b/dev-scheme/kawa/files/kawa-1.14.patch new file mode 100644 index 000000000000..8acc5e442f69 --- /dev/null +++ b/dev-scheme/kawa/files/kawa-1.14.patch @@ -0,0 +1,24 @@ +diff -Naur kawa-1.10.orig/Makefile.in kawa-1.10/Makefile.in +--- kawa-1.10.orig/Makefile.in 2010-09-19 01:38:24.000000000 +0200 ++++ kawa-1.10/Makefile.in 2010-09-19 01:38:59.000000000 +0200 +@@ -908,7 +908,7 @@ + | sed -e 's|./||' | sort > $@ + + gnu/kawa/util/PreProcess.class: $(srcdir)/gnu/kawa/util/PreProcess.java +- $(JAVAC) -d . $(srcdir)/gnu/kawa/util/PreProcess.java ++ $(JAVAC) $(JAVACFLAGS) -d . $(srcdir)/gnu/kawa/util/PreProcess.java + + # JDK 1.1 + select-java1: $(srcdir)/patch-source-list gnu/kawa/util/PreProcess.class +diff -Naur kawa-1.9.90.orig/bin/Makefile.in kawa-1.9.90/bin/Makefile.in +--- kawa-1.9.90.orig/bin/Makefile.in 2009-08-08 12:20:49.000000000 -0300 ++++ kawa-1.9.90/bin/Makefile.in 2009-09-21 20:15:06.000000000 -0300 +@@ -686,7 +686,7 @@ + install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" +-@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT) ++@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) ./kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT) + @WITH_GCJ_DBTOOL_FALSE@@WITH_GCJ_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa-bin$(EXEEXT) $(DESTDIR)$(bindir)/kawa-bin$(EXEEXT) + @ENABLE_SERVLET_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) cgi-servlet$(EXEEXT) $(DESTDIR)$(bindir)/cgi-servlet$(EXEEXT) + diff --git a/dev-scheme/kawa/kawa-1.10.ebuild b/dev-scheme/kawa/kawa-1.10.ebuild new file mode 100644 index 000000000000..74950542bece --- /dev/null +++ b/dev-scheme/kawa/kawa-1.10.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="3" + +JAVA_PKG_IUSE="source" + +inherit eutils java-pkg-2 + +DESCRIPTION="Kawa, the Java-based Scheme system & Language Framework" +HOMEPAGE="https://www.gnu.org/software/kawa/" +XQTS_Ver="1_0_2" +SRC_URI="mirror://gnu/kawa/${P}.tar.gz + xqtests? ( http://www.w3.org/XML/Query/test-suite/XQTS_${XQTS_Ver}.zip )" + +LICENSE="MIT public-domain + jemacs? ( GPL-2 ) + krl? ( GPL-2 )" +SLOT="0" +KEYWORDS="x86" +IUSE="+awt echo2 +frontend jemacs krl +sax servlets +swing swt +xml xqtests" + +COMMON_DEPEND="( >=virtual/jdk-1.5 ) + frontend? ( sys-libs/readline:0 ) + sax? ( dev-java/sax:0 ) + echo2? ( dev-java/echo2 ) + swt? ( dev-java/swt:3.5 ) + servlets? ( dev-java/servletapi:2.4 )" +DEPEND="${COMMON_DEPEND} + xqtests? ( app-arch/unzip:0 )" +RDEPEND="${COMMON_DEPEND}" + +xtestsuite="XQTS_${XQTS_Ver}" + +src_unpack () { + unpack kawa-${PV}.tar.gz || die + if use xqtests; then + mkdir "${WORKDIR}/${xtestsuite}" || die + cd "${WORKDIR}/${xtestsuite}" || die + unpack ${xtestsuite}.zip || die + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}.patch +} + +src_configure() { + # speeds up one-shot ebuilds. + myconf="--disable-dependency-tracking" + if use jemacs && ! use swing; then + echo + einfo "Although the swing USE flag is disabled you chose to enable jemacs," + einfo "so swing is enabled anyway." + echo + myconf="${myconf} --with-swing" + else + myconf="${myconf} $(use_with swing)" + fi + if use xqtests; then + myconf="${myconf} $(use_with xqtests XQTS=${WORKDIR}/${xtestsuite})" + fi + if use servlets; then + myconf="${myconf} --with-servlet=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)" + fi + if use swt; then + myconf="${myconf} --with-swt=$(java-pkg_getjar swt-3.5 swt.jar)" + fi + + econf ${myconf} $(use_enable frontend kawa-frontend) \ + $(use_enable xml) \ + $(use_enable krl brl) \ + $(use_enable echo2) \ + $(use_enable jemacs) \ + $(use_with awt) \ + $(use_with sax sax2) \ + --with-java-source=$(java-pkg_get-source) || die "econf failed." +} + +src_compile() { + emake -j1 || die "emake failed." +} + +src_install () { + emake -j1 DESTDIR="${D}" install || die "emake install failed" + rm -rv "${D}"/usr/share/java/ || die "rm -rv failed" + + java-pkg_newjar kawa-${PV}.jar || die + + java-pkg_dolauncher "kawa" --main kawa.repl || die "dolauncher failed" + java-pkg_dolauncher "qexo" --main kawa.repl --pkg_args \ + "--xquery" || die "dolauncher qexo failed" + if use servlets; then + java-pkg_dolauncher "kawa-cgi-servlet" --main \ + gnu.kawa.servlet.CGIServletWrapper || die + fi + if use jemacs; then + java-pkg_dolauncher "jemacs" --main \ + gnu.jemacs.lang.ELisp || die + fi + + use source && java-pkg_dosrc kawa/* gnu/* + + dodoc ChangeLog TODO README NEWS || die + doinfo doc/kawa.info* || die + cp doc/kawa.man doc/kawa.2 || die + cp doc/qexo.man doc/qexo.2 || die + doman doc/*.2 || die +} diff --git a/dev-scheme/kawa/kawa-1.14.ebuild b/dev-scheme/kawa/kawa-1.14.ebuild new file mode 100644 index 000000000000..f029a48fca02 --- /dev/null +++ b/dev-scheme/kawa/kawa-1.14.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +EAPI=5 + +JAVA_PKG_IUSE="source" + +inherit eutils java-pkg-2 + +DESCRIPTION="Kawa, the Java-based Scheme system & Language Framework" +HOMEPAGE="https://www.gnu.org/software/kawa/" +XQTS_Ver="1_0_3" +SRC_URI="mirror://gnu/kawa/${P}.tar.gz + xqtests? ( http://www.w3.org/XML/Query/test-suite/XQTS_${XQTS_Ver}.zip )" + +LICENSE="MIT public-domain + jemacs? ( GPL-2 ) + krl? ( GPL-2 )" +SLOT="0" +KEYWORDS="~x86" +IUSE="+awt echo2 +frontend jemacs krl +sax servlets +swing swt +xml xqtests" + +CDEPEND="( >=virtual/jdk-1.6 ) + frontend? ( sys-libs/readline:0 ) + sax? ( dev-java/sax:0 ) + echo2? ( dev-java/echo2 ) + swt? ( dev-java/swt:3.5 ) + servlets? ( java-virtuals/servlet-api:3.0 )" +DEPEND="${CDEPEND} + xqtests? ( app-arch/unzip:0 )" +RDEPEND="${CDEPEND}" + +xtestsuite="XQTS_${XQTS_Ver}" + +src_unpack () { + unpack kawa-${PV}.tar.gz || die + if use xqtests; then + mkdir "${WORKDIR}/${xtestsuite}" || die + cd "${WORKDIR}/${xtestsuite}" || die + unpack ${xtestsuite}.Zip || die + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}.patch +} + +src_configure() { + # speeds up one-shot ebuilds. + myconf="--disable-dependency-tracking" + if use jemacs && ! use swing; then + echo + einfo "Although the swing USE flag is disabled you chose to enable jemacs," + einfo "so swing is enabled anyway." + echo + myconf="${myconf} --with-swing" + else + myconf="${myconf} $(use_with swing)" + fi + if use xqtests; then + myconf="${myconf} $(use_with xqtests XQTS=${WORKDIR}/${xtestsuite})" + fi + if use servlets; then + myconf="${myconf} --with-servlet=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)" + fi + if use swt; then + myconf="${myconf} --with-swt=$(java-pkg_getjar swt-3.5 swt.jar)" + fi + + econf ${myconf} $(use_enable frontend kawa-frontend) \ + $(use_enable xml) \ + $(use_enable krl brl) \ + $(use_enable echo2) \ + $(use_enable jemacs) \ + $(use_with awt) \ + $(use_with sax sax2) \ + --with-java-source=$(java-pkg_get-source) || die "econf failed." +} + +src_compile() { + emake -j1 || die "emake failed." +} + +src_install () { + emake -j1 DESTDIR="${D}" install || die "emake install failed" + rm -rv "${D}"/usr/share/java/ || die "rm -rv failed" + + java-pkg_newjar kawa-${PV}.jar || die + + java-pkg_dolauncher "kawa" --main kawa.repl || die "dolauncher failed" + java-pkg_dolauncher "qexo" --main kawa.repl --pkg_args \ + "--xquery" || die "dolauncher qexo failed" + if use servlets; then + java-pkg_dolauncher "kawa-cgi-servlet" --main \ + gnu.kawa.servlet.CGIServletWrapper || die + fi + if use jemacs; then + java-pkg_dolauncher "jemacs" --main \ + gnu.jemacs.lang.ELisp || die + fi + + use source && java-pkg_dosrc kawa/* gnu/* + + dodoc ChangeLog TODO README NEWS || die + doinfo doc/kawa.info* || die + cp doc/kawa.man doc/kawa.2 || die + cp doc/qexo.man doc/qexo.2 || die + doman doc/*.2 || die +} diff --git a/dev-scheme/kawa/metadata.xml b/dev-scheme/kawa/metadata.xml new file mode 100644 index 000000000000..c7ff97f104a7 --- /dev/null +++ b/dev-scheme/kawa/metadata.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>scheme@gentoo.org</email> + <name>Gentoo Scheme Project</name> +</maintainer> +<longdescription lang="en"> + Kawa is a full Scheme implementation. It implements almost all of R5RS, + plus some extensions. By default, symbols are case sensitive. It is + completely written in Java. Scheme functions and files are automatically + compiled into Java byte-codes. Kawa does some optimizations, and the + compiled code runs at reasonable speed. +</longdescription> +<use> + <flag name="awt">Assume AWT is available</flag> + <flag name="echo2">Enable support for the Echo2 web toolkit with + <pkg>dev-java/echo2</pkg></flag> + <flag name="frontend">Build "kawa" front-end program using + <pkg>sys-libs/readline</pkg></flag> + <flag name="jemacs">Build JEmacs</flag> + <flag name="krl">Build BRL emulation and KRL</flag> + <flag name="sax">Assume SAX2 is available with <pkg>dev-java/sax</pkg></flag> + <flag name="servlets">Build support for generating servlets with + <pkg>dev-java/servletapi</pkg></flag> + <flag name="swing">Assume Swing is available</flag> + <flag name="swt">Assume SWT is available with <pkg>dev-java/swt</pkg></flag> + <flag name="xqtests">Support XQuery Test Suite</flag> +</use> +</pkgmetadata> |