dev-scheme/racket: move to racket-overlay
https://gitlab.com/src_prepare/racket/racket-overlay Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
parent
49b652ec8f
commit
e42ca45f09
@ -1,4 +0,0 @@
|
|||||||
DIST racket-8.1-src-builtpkgs.tgz 154340467 BLAKE2B 1a12ca71a3af0c506238e2abad44596c54b5102fbe81d99c713356dc52abcdba8f0a0cf969702cff1f7738a0383d55894a546f682f3d854b504ceab34cef600e SHA512 afc8c737087a98172dbf699d24cee73966da699aebbdefb8b7785a6521dc4de61b8d7f2ed3a3f1d2be7a1dfe6675db7a33d39492da9dfe0aad8d9074cd03cf9f
|
|
||||||
DIST racket-8.2-src-builtpkgs.tgz 150467561 BLAKE2B 5005aa852b089becd9d6da136a55a035ac5fd86bd1ad186ec30cdcf411927d444e1814797d63dbde3eb7b52bba7756e0464edf1d854d2ee7f5851caaae18ba55 SHA512 9e4c0cabfcbdb8c8742e8170548bee58021697e8b0842f575f94193db31adc04a7b9023ed8fd70dae197e5ec6f1aee7985d849be3ce5b4279f216e900ee143c7
|
|
||||||
DIST racket-minimal-8.1-src-builtpkgs.tgz 24172851 BLAKE2B ab3e898e257d610874b31ac5ea3034b5c213f1d181f105c206c45129c35efb53250986163ea8c2399c02084d0d7ec55d0c79c8c8499578067f1bbef4c02568c5 SHA512 eb786882383c33fc77a697a66b06d797b0dbb2de8435daa41db4211cfa893dbbc213910ada4ea087f848dae1abb4d5ff9df162af5cf8eae689f1ef69b410d6c5
|
|
||||||
DIST racket-minimal-8.2-src-builtpkgs.tgz 21187959 BLAKE2B 0f62a900e71ee101fa3acf0985b0a72215ac657285c5ce9e4f5f49189180b82dcca94ded9778b7ba92a42919f17b1dc24eec07e13c64c77e47fc958614d7dc0a SHA512 04950703fa73cdbbb10c234d57c89e70db6076b42d4a74ddb8cace9e0438b9a1431f7317baf31d667368ad75ae19e4eecec39667ba0c5b08a3580f8cc81f4f5e
|
|
@ -1,41 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>xgqt@protonmail.com</email>
|
|
||||||
<name>Maciej Barć</name>
|
|
||||||
</maintainer>
|
|
||||||
<longdescription lang="en">
|
|
||||||
Racket's interactive mode encourages experimentation, and quick scripts
|
|
||||||
easily compose into larger systems. Small scripts and large systems both
|
|
||||||
benefit from native-code JIT compilation. When a system gets too big to
|
|
||||||
keep in your head, you can add static types.
|
|
||||||
Extend Racket whenever you need to. Mold it to better suit your tasks
|
|
||||||
without sacrificing interoperability with existing libraries and without
|
|
||||||
having to modify the tool chain. When less is more, you can remove parts
|
|
||||||
of a language or start over and build a new one.
|
|
||||||
Whether you're just starting out, want to know more about programming
|
|
||||||
language applications or models, looking to expand your horizons, or
|
|
||||||
ready to dive into research, Racket can help you become a better
|
|
||||||
programmer and system builder.
|
|
||||||
</longdescription>
|
|
||||||
<use>
|
|
||||||
<flag name="chez">
|
|
||||||
Build Racket on Chez (Racket CS)
|
|
||||||
</flag>
|
|
||||||
<flag name="futures">
|
|
||||||
Enable racket/future library for fine-grained hardware parallelism
|
|
||||||
</flag>
|
|
||||||
<flag name="places">
|
|
||||||
Enable racket/place library for share-nothing parallelism and message-passing communication. Compared to futures, places are heavyweight, but they have a simpler performance model.
|
|
||||||
</flag>
|
|
||||||
<flag name="threads">
|
|
||||||
Enable support for green threads
|
|
||||||
</flag>
|
|
||||||
</use>
|
|
||||||
<upstream>
|
|
||||||
<bugs-to>https://github.com/racket/racket</bugs-to>
|
|
||||||
<remote-id type="github">racket/racket</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
@ -1,147 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit desktop pax-utils xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language"
|
|
||||||
HOMEPAGE="https://racket-lang.org/"
|
|
||||||
SRC_URI="
|
|
||||||
minimal? ( https://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz )
|
|
||||||
!minimal? ( https://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )
|
|
||||||
"
|
|
||||||
|
|
||||||
# See https://blog.racket-lang.org/2019/11/completing-racket-s-relicensing-effort.html
|
|
||||||
LICENSE="
|
|
||||||
|| ( MIT Apache-2.0 )
|
|
||||||
chez? ( Apache-2.0 )
|
|
||||||
!chez? ( LGPL-3 )
|
|
||||||
"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="X +chez +doc +futures +jit minimal +places +readline +threads"
|
|
||||||
REQUIRED_USE="futures? ( jit )"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
!dev-tex/slatex
|
|
||||||
dev-db/sqlite:3
|
|
||||||
dev-libs/libffi:=
|
|
||||||
X? (
|
|
||||||
dev-util/desktop-file-utils
|
|
||||||
media-libs/libpng:0
|
|
||||||
virtual/jpeg:0
|
|
||||||
x11-libs/cairo[X]
|
|
||||||
x11-libs/gtk+:3[X]
|
|
||||||
x11-libs/pango[X]
|
|
||||||
x11-misc/shared-mime-info
|
|
||||||
)
|
|
||||||
readline? ( dev-libs/libedit )
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P}/src"
|
|
||||||
|
|
||||||
# BC library is being stripped unconditionally
|
|
||||||
QA_PRESTRIPPED="/usr/lib64/libracket3m-8.0.so"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
unset PLTUSERHOME
|
|
||||||
xdg_environment_reset
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
rm -r ./bc/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
|
|
||||||
# --enable-bc builds Racket w/o chez backend
|
|
||||||
local myconf=(
|
|
||||||
--disable-libs
|
|
||||||
--disable-strip
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}"
|
|
||||||
--enable-float
|
|
||||||
--enable-foreign
|
|
||||||
--enable-libffi
|
|
||||||
--enable-shared
|
|
||||||
$(usex chez "--enable-cs --enable-csonly" "--enable-bc --enable-bconly")
|
|
||||||
$(use_enable X gracket)
|
|
||||||
$(use_enable doc docs)
|
|
||||||
$(use_enable jit)
|
|
||||||
$(use_enable places)
|
|
||||||
$(use_enable futures)
|
|
||||||
$(use_enable threads pthread)
|
|
||||||
)
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
if use jit && ! use chez; 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 ./bc || die
|
|
||||||
emake cgc-core
|
|
||||||
pax-mark m .libs/racketcgc
|
|
||||||
|
|
||||||
pushd ./gc2 || die
|
|
||||||
emake all
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
pax-mark m .libs/racket3m
|
|
||||||
popd || die
|
|
||||||
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.
|
|
||||||
local f
|
|
||||||
for f in mred mzscheme racket; do
|
|
||||||
pax-mark m "${D}/usr/bin/${f}"
|
|
||||||
done
|
|
||||||
|
|
||||||
pax-mark m "${D}/usr/$(get_libdir)/racket/starter"
|
|
||||||
use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# raco needs decompressed files for packages doc installation bug 662424
|
|
||||||
if use doc; then
|
|
||||||
docompress -x "/usr/share/doc/${PF}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
|
|
||||||
|
|
||||||
# Create missing desktop files
|
|
||||||
if use X; then
|
|
||||||
newicon "${D}/usr/share/racket/drracket-exe-icon.png" "racket.png"
|
|
||||||
make_desktop_entry "gracket" "GRacket" "racket" "Development;Education;"
|
|
||||||
make_desktop_entry "plt-games" "PLT Games" "racket" "Education;Game;"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use X; then
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_icon_cache_update
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
if use X; then
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_icon_cache_update
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,147 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit desktop pax-utils xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language"
|
|
||||||
HOMEPAGE="https://racket-lang.org/"
|
|
||||||
SRC_URI="
|
|
||||||
minimal? ( https://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz )
|
|
||||||
!minimal? ( https://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )
|
|
||||||
"
|
|
||||||
|
|
||||||
# See https://blog.racket-lang.org/2019/11/completing-racket-s-relicensing-effort.html
|
|
||||||
LICENSE="
|
|
||||||
|| ( MIT Apache-2.0 )
|
|
||||||
chez? ( Apache-2.0 )
|
|
||||||
!chez? ( LGPL-3 )
|
|
||||||
"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="X +chez +doc +futures +jit minimal +places +readline +threads"
|
|
||||||
REQUIRED_USE="futures? ( jit )"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
!dev-tex/slatex
|
|
||||||
dev-db/sqlite:3
|
|
||||||
dev-libs/libffi:=
|
|
||||||
X? (
|
|
||||||
dev-util/desktop-file-utils
|
|
||||||
media-libs/libpng:0
|
|
||||||
virtual/jpeg:0
|
|
||||||
x11-libs/cairo[X]
|
|
||||||
x11-libs/gtk+:3[X]
|
|
||||||
x11-libs/pango[X]
|
|
||||||
x11-misc/shared-mime-info
|
|
||||||
)
|
|
||||||
readline? ( dev-libs/libedit )
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${P}/src"
|
|
||||||
|
|
||||||
# BC library is being stripped unconditionally
|
|
||||||
QA_PRESTRIPPED="/usr/lib64/libracket3m-8.0.so"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
unset PLTUSERHOME
|
|
||||||
xdg_environment_reset
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
rm -r ./bc/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
|
|
||||||
# --enable-bc builds Racket w/o chez backend
|
|
||||||
local myconf=(
|
|
||||||
--disable-libs
|
|
||||||
--disable-strip
|
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}"
|
|
||||||
--enable-float
|
|
||||||
--enable-foreign
|
|
||||||
--enable-libffi
|
|
||||||
--enable-shared
|
|
||||||
$(usex chez "--enable-cs --enable-csonly" "--enable-bc --enable-bconly")
|
|
||||||
$(use_enable X gracket)
|
|
||||||
$(use_enable doc docs)
|
|
||||||
$(use_enable jit)
|
|
||||||
$(use_enable places)
|
|
||||||
$(use_enable futures)
|
|
||||||
$(use_enable threads pthread)
|
|
||||||
)
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
if use jit && ! use chez; 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 ./bc || die
|
|
||||||
emake cgc-core
|
|
||||||
pax-mark m .libs/racketcgc
|
|
||||||
|
|
||||||
pushd ./gc2 || die
|
|
||||||
emake all
|
|
||||||
popd || die
|
|
||||||
|
|
||||||
pax-mark m .libs/racket3m
|
|
||||||
popd || die
|
|
||||||
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.
|
|
||||||
local f
|
|
||||||
for f in mred mzscheme racket; do
|
|
||||||
pax-mark m "${D}/usr/bin/${f}"
|
|
||||||
done
|
|
||||||
|
|
||||||
pax-mark m "${D}/usr/$(get_libdir)/racket/starter"
|
|
||||||
use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# raco needs decompressed files for packages doc installation bug 662424
|
|
||||||
if use doc; then
|
|
||||||
docompress -x "/usr/share/doc/${PF}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
|
|
||||||
|
|
||||||
# Create missing desktop files
|
|
||||||
if use X; then
|
|
||||||
newicon "${D}/usr/share/racket/drracket-exe-icon.png" "racket.png"
|
|
||||||
make_desktop_entry "gracket" "GRacket" "racket" "Development;Education;"
|
|
||||||
make_desktop_entry "plt-games" "PLT Games" "racket" "Education;Game;"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if use X; then
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_icon_cache_update
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
if use X; then
|
|
||||||
xdg_desktop_database_update
|
|
||||||
xdg_icon_cache_update
|
|
||||||
fi
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user