From 1e4b82793695e46eb67dfc8afaaff66288d0628a Mon Sep 17 00:00:00 2001 From: pini Date: Sun, 3 Jun 2018 12:31:07 +0200 Subject: dev-scheme/racket: add readline support to REPL Racket REPL supports readline by searching for libedit. Closes: https://github.com/gentoo/gentoo/pull/8708 Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- dev-scheme/racket/racket-6.11-r1.ebuild | 89 +++++++++++++++++++++++++++++++++ dev-scheme/racket/racket-6.11.ebuild | 88 -------------------------------- dev-scheme/racket/racket-6.12-r1.ebuild | 89 +++++++++++++++++++++++++++++++++ dev-scheme/racket/racket-6.12.ebuild | 88 -------------------------------- 4 files changed, 178 insertions(+), 176 deletions(-) create mode 100644 dev-scheme/racket/racket-6.11-r1.ebuild delete mode 100644 dev-scheme/racket/racket-6.11.ebuild create mode 100644 dev-scheme/racket/racket-6.12-r1.ebuild delete mode 100644 dev-scheme/racket/racket-6.12.ebuild diff --git a/dev-scheme/racket/racket-6.11-r1.ebuild b/dev-scheme/racket/racket-6.11-r1.ebuild new file mode 100644 index 000000000000..0ce238ca01ba --- /dev/null +++ b/dev-scheme/racket/racket-6.11-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit pax-utils + +DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language" +HOMEPAGE="http://racket-lang.org/" +SRC_URI="minimal? ( http://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( http://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )" +LICENSE="GPL-3+ LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="doc +futures +jit minimal +places +readline +threads +X" +REQUIRED_USE="futures? ( jit )" + +RDEPEND="dev-db/sqlite:3 + media-libs/libpng:0 + x11-libs/cairo[X?] + x11-libs/pango[X?] + virtual/libffi + virtual/jpeg:0 + readline? ( dev-libs/libedit ) + X? ( x11-libs/gtk+[X?] )" +RDEPEND="${RDEPEND} !dev-tex/slatex" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P}/src" + +src_prepare() { + default + rm -r foreign/libffi || die 'failed to remove bundled libffi' +} + +src_configure() { + # According to vapier, we should use the bundled libtool + # such that we don't preclude cross-compile. Thus don't use + # --enable-lt=/usr/bin/libtool + econf \ + --enable-shared \ + --enable-float \ + --enable-libffi \ + --enable-foreign \ + --disable-libs \ + --disable-strip \ + $(use_enable X gracket) \ + $(use_enable doc docs) \ + $(use_enable jit) \ + $(use_enable places) \ + $(use_enable futures) \ + $(use_enable threads pthread) +} + +src_compile() { + if use jit; then + # When the JIT is enabled, a few binaries need to be pax-marked + # on hardened systems (bug 613634). The trick is to pax-mark + # them before they're used later in the build system. The + # following order for racketcgc and racket3m was determined by + # digging through the Makefile in src/racket to find out which + # targets would build those binaries but not use them. + pushd racket + emake cgc-core + pax-mark m .libs/racketcgc + pushd gc2 + emake all + popd + pax-mark m .libs/racket3m + popd + fi + + default +} + +src_install() { + default + + if use jit; then + # The final binaries need to be pax-marked, too, if you want to + # actually use them. The src_compile marking get lost somewhere + # in the install process. + for f in mred mzscheme racket; do + pax-mark m "${D}/usr/bin/${f}" + done + + use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket" + fi +} diff --git a/dev-scheme/racket/racket-6.11.ebuild b/dev-scheme/racket/racket-6.11.ebuild deleted file mode 100644 index 6fefcbd3de33..000000000000 --- a/dev-scheme/racket/racket-6.11.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit pax-utils - -DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language" -HOMEPAGE="http://racket-lang.org/" -SRC_URI="minimal? ( http://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( http://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )" -LICENSE="GPL-3+ LGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" -IUSE="doc +futures +jit minimal +places +threads +X" -REQUIRED_USE="futures? ( jit )" - -RDEPEND="dev-db/sqlite:3 - media-libs/libpng:0 - x11-libs/cairo[X?] - x11-libs/pango[X?] - virtual/libffi - virtual/jpeg:0 - X? ( x11-libs/gtk+[X?] )" -RDEPEND="${RDEPEND} !dev-tex/slatex" - -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${P}/src" - -src_prepare() { - default - rm -r foreign/libffi || die 'failed to remove bundled libffi' -} - -src_configure() { - # According to vapier, we should use the bundled libtool - # such that we don't preclude cross-compile. Thus don't use - # --enable-lt=/usr/bin/libtool - econf \ - --enable-shared \ - --enable-float \ - --enable-libffi \ - --enable-foreign \ - --disable-libs \ - --disable-strip \ - $(use_enable X gracket) \ - $(use_enable doc docs) \ - $(use_enable jit) \ - $(use_enable places) \ - $(use_enable futures) \ - $(use_enable threads pthread) -} - -src_compile() { - if use jit; then - # When the JIT is enabled, a few binaries need to be pax-marked - # on hardened systems (bug 613634). The trick is to pax-mark - # them before they're used later in the build system. The - # following order for racketcgc and racket3m was determined by - # digging through the Makefile in src/racket to find out which - # targets would build those binaries but not use them. - pushd racket - emake cgc-core - pax-mark m .libs/racketcgc - pushd gc2 - emake all - popd - pax-mark m .libs/racket3m - popd - fi - - default -} - -src_install() { - default - - if use jit; then - # The final binaries need to be pax-marked, too, if you want to - # actually use them. The src_compile marking get lost somewhere - # in the install process. - for f in mred mzscheme racket; do - pax-mark m "${D}/usr/bin/${f}" - done - - use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket" - fi -} diff --git a/dev-scheme/racket/racket-6.12-r1.ebuild b/dev-scheme/racket/racket-6.12-r1.ebuild new file mode 100644 index 000000000000..0ce238ca01ba --- /dev/null +++ b/dev-scheme/racket/racket-6.12-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit pax-utils + +DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language" +HOMEPAGE="http://racket-lang.org/" +SRC_URI="minimal? ( http://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( http://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )" +LICENSE="GPL-3+ LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="doc +futures +jit minimal +places +readline +threads +X" +REQUIRED_USE="futures? ( jit )" + +RDEPEND="dev-db/sqlite:3 + media-libs/libpng:0 + x11-libs/cairo[X?] + x11-libs/pango[X?] + virtual/libffi + virtual/jpeg:0 + readline? ( dev-libs/libedit ) + X? ( x11-libs/gtk+[X?] )" +RDEPEND="${RDEPEND} !dev-tex/slatex" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P}/src" + +src_prepare() { + default + rm -r foreign/libffi || die 'failed to remove bundled libffi' +} + +src_configure() { + # According to vapier, we should use the bundled libtool + # such that we don't preclude cross-compile. Thus don't use + # --enable-lt=/usr/bin/libtool + econf \ + --enable-shared \ + --enable-float \ + --enable-libffi \ + --enable-foreign \ + --disable-libs \ + --disable-strip \ + $(use_enable X gracket) \ + $(use_enable doc docs) \ + $(use_enable jit) \ + $(use_enable places) \ + $(use_enable futures) \ + $(use_enable threads pthread) +} + +src_compile() { + if use jit; then + # When the JIT is enabled, a few binaries need to be pax-marked + # on hardened systems (bug 613634). The trick is to pax-mark + # them before they're used later in the build system. The + # following order for racketcgc and racket3m was determined by + # digging through the Makefile in src/racket to find out which + # targets would build those binaries but not use them. + pushd racket + emake cgc-core + pax-mark m .libs/racketcgc + pushd gc2 + emake all + popd + pax-mark m .libs/racket3m + popd + fi + + default +} + +src_install() { + default + + if use jit; then + # The final binaries need to be pax-marked, too, if you want to + # actually use them. The src_compile marking get lost somewhere + # in the install process. + for f in mred mzscheme racket; do + pax-mark m "${D}/usr/bin/${f}" + done + + use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket" + fi +} diff --git a/dev-scheme/racket/racket-6.12.ebuild b/dev-scheme/racket/racket-6.12.ebuild deleted file mode 100644 index 6fefcbd3de33..000000000000 --- a/dev-scheme/racket/racket-6.12.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit pax-utils - -DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language" -HOMEPAGE="http://racket-lang.org/" -SRC_URI="minimal? ( http://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( http://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )" -LICENSE="GPL-3+ LGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" -IUSE="doc +futures +jit minimal +places +threads +X" -REQUIRED_USE="futures? ( jit )" - -RDEPEND="dev-db/sqlite:3 - media-libs/libpng:0 - x11-libs/cairo[X?] - x11-libs/pango[X?] - virtual/libffi - virtual/jpeg:0 - X? ( x11-libs/gtk+[X?] )" -RDEPEND="${RDEPEND} !dev-tex/slatex" - -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${P}/src" - -src_prepare() { - default - rm -r foreign/libffi || die 'failed to remove bundled libffi' -} - -src_configure() { - # According to vapier, we should use the bundled libtool - # such that we don't preclude cross-compile. Thus don't use - # --enable-lt=/usr/bin/libtool - econf \ - --enable-shared \ - --enable-float \ - --enable-libffi \ - --enable-foreign \ - --disable-libs \ - --disable-strip \ - $(use_enable X gracket) \ - $(use_enable doc docs) \ - $(use_enable jit) \ - $(use_enable places) \ - $(use_enable futures) \ - $(use_enable threads pthread) -} - -src_compile() { - if use jit; then - # When the JIT is enabled, a few binaries need to be pax-marked - # on hardened systems (bug 613634). The trick is to pax-mark - # them before they're used later in the build system. The - # following order for racketcgc and racket3m was determined by - # digging through the Makefile in src/racket to find out which - # targets would build those binaries but not use them. - pushd racket - emake cgc-core - pax-mark m .libs/racketcgc - pushd gc2 - emake all - popd - pax-mark m .libs/racket3m - popd - fi - - default -} - -src_install() { - default - - if use jit; then - # The final binaries need to be pax-marked, too, if you want to - # actually use them. The src_compile marking get lost somewhere - # in the install process. - for f in mred mzscheme racket; do - pax-mark m "${D}/usr/bin/${f}" - done - - use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket" - fi -} -- cgit v1.2.3-18-g5258