parent
00208c774f
commit
1ea35b2b3a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy )
|
||||
DISTUTILS_OPTIONAL="1"
|
||||
DISTUTILS_IN_SOURCE_BUILD="1"
|
||||
|
||||
inherit cmake-multilib distutils-r1 eapi7-ver
|
||||
|
||||
DESCRIPTION="Generic-purpose lossless compression algorithm"
|
||||
HOMEPAGE="https://github.com/google/brotli"
|
||||
|
||||
SLOT="0/$(ver_cut 1)"
|
||||
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
IUSE="python test"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
LICENSE="MIT python? ( Apache-2.0 )"
|
||||
|
||||
DOCS=( README.md CONTRIBUTING.md )
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/google/${PN}.git"
|
||||
inherit git-r3
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris"
|
||||
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
src_prepare() {
|
||||
use python && distutils-r1_src_prepare
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DBUILD_TESTING="$(usex test)"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
src_configure() {
|
||||
cmake-multilib_src_configure
|
||||
use python && distutils-r1_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
cmake-utils_src_compile
|
||||
}
|
||||
src_compile() {
|
||||
cmake-multilib_src_compile
|
||||
use python && distutils-r1_src_compile
|
||||
}
|
||||
|
||||
python_test(){
|
||||
esetup.py test || die
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
cmake-utils_src_test
|
||||
}
|
||||
src_test() {
|
||||
cmake-multilib_src_test
|
||||
use python && distutils-r1_src_test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
cmake-utils_src_install
|
||||
}
|
||||
multilib_src_install_all() {
|
||||
use python && distutils-r1_src_install
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST dpkg_1.19.0.5.tar.xz 4557428 BLAKE2B 99c31705bfad1cfa024366c788264f4e747a7143f87c581730797975303c1054003e41fd65ecf80df1dc053ba87c0e8449ec574ddcb158228b41ae57a23db18f SHA512 60d7198ffe6ea759c30ad82143b3107d41ce59224b853cb5a7beb79af0de6ba6a69414c365e6b3555a0a9c60e3cf9b543a3a448d80a734be38ccecb77ae963a9
|
||||
DIST dpkg_1.19.1.tar.xz 4600848 BLAKE2B daadc95f0f66312e6012a5c9ce053dba055d87f766d8e9b9e99ed3eed59e83616b89cb2324fc61205bf4e22388cc0f9f62d191cbdd858250a50f7c6d141adf7d SHA512 d2c745f8cc3db94be15ce3ef74f9317768b316d9bb96aac2c681c2f47433524774e0c2d5ff3daf6e7cc779e5ffc4ce96783de12802f32dab1d72022786ca6c20
|
||||
|
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils multilib autotools toolchain-funcs
|
||||
|
||||
DESCRIPTION="Package maintenance system for Debian"
|
||||
HOMEPAGE="https://packages.qa.debian.org/dpkg"
|
||||
SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="+bzip2 libmd +lzma nls selinux static-libs test unicode +update-alternatives +zlib"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/perl-5.14.2:=
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
libmd? ( app-crypt/libmd )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
nls? ( virtual/libintl )
|
||||
selinux? ( sys-libs/libselinux )
|
||||
zlib? ( >=sys-libs/zlib-1.1.4 )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
nls? (
|
||||
app-text/po4a
|
||||
>=sys-devel/gettext-0.18.2
|
||||
)
|
||||
test? (
|
||||
dev-perl/IO-String
|
||||
dev-perl/Test-Pod
|
||||
virtual/perl-Test-Harness
|
||||
)
|
||||
"
|
||||
DOCS=(
|
||||
ChangeLog
|
||||
THANKS
|
||||
TODO
|
||||
)
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.18.12-dpkg_buildpackage-test.patch
|
||||
"${FILESDIR}"/${PN}-1.18.12-flags.patch
|
||||
"${FILESDIR}"/${PN}-1.18.12-rsyncable.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
use nls && strip-linguas -i po
|
||||
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable unicode) \
|
||||
$(use_enable update-alternatives) \
|
||||
$(use_with bzip2 libbz2) \
|
||||
$(use_with libmd) \
|
||||
$(use_with lzma liblzma) \
|
||||
$(use_with selinux libselinux) \
|
||||
$(use_with zlib libz) \
|
||||
--disable-compiler-warnings \
|
||||
--disable-dselect \
|
||||
--disable-silent-rules \
|
||||
--disable-start-stop-daemon \
|
||||
--localstatedir="${EPREFIX}"/var
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake AR=$(tc-getAR)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
keepdir \
|
||||
/usr/$(get_libdir)/db/methods/{mnt,floppy,disk} \
|
||||
/var/lib/dpkg/{alternatives,info,parts,updates}
|
||||
# /usr/$(get_libdir)/db/{alternatives,info,parts,updates} \
|
||||
|
||||
prune_libtool_files
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST libmd-0.0.0.tar.xz 252384 BLAKE2B 00db5db91c35fc27a681977155eb18fee44f553911938abd4b57656a4b71c0de7014df0d8303d48b40b5fe688fb150e06a03ea44d089e4ea1f52ac4060ea7c84 SHA512 6677959b7725114d7ebb747e0746d2712fc9b65f688eb28fa931c9042cee10cda3de33a1496b0220141800e98cf923d95dd5a5f3c2b8a68c3e169ef9fdaa39ef
|
||||
DIST libmd-1.0.0.tar.xz 254852 BLAKE2B af0d3c645a18262965e708d678cb30c7ed168af8055885b08084fafd7299e9aaea95efb8437ffa756e43c5bb75fac99af067c6a560f3bb2b8b93ee889d5e664b SHA512 54c3cae1308f7686a1f642d25ae5d8cfb0fce2b98b33cf5e2891682893715c7de7e9700c70a6bd7e4ab4cf7f54c87643b259319e09e03f529b70d273477fc8be
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type='project'>
|
||||
<email>deb-tools@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST signify-20.tar.gz 97765 BLAKE2B c2b086b59310cd364d28ee7f8802daa7f170eb2a19a5d6722d0b59202b7ee302f4b810a2809f8badfab38ae4d8402dec82141207be3d1b64f747c2e27b2c54f7 SHA512 993f02b10ef9c74a98455e2c93e094de40a40710c38ff35752decb87430895bd276cb5e6a46b5f7cf3f098d66562f1f0e134158d221a87fb33cfff09199a8773
|
||||
DIST signify-23.tar.gz 95335 BLAKE2B 4cdbee5dae7f217644a5df41d4253938c5cb8fb1f621f945addfceb64090234199e8dd81d7ef42c41aae13e9e5158541f40062296ca07562977473e39f68cd0b SHA512 f0330994f3d308e9ad7c7bf4b6d6f8e8bef914d6d10d83507002ad97f853b4e0a829997a0225373e2c34829a611b70980d7d3674247d4b5b447204ad7f039608
|
||||
DIST signify-24.tar.gz 92038 BLAKE2B 4d9413a423534fb4f9adfb50494802b737e6099b47933eed9686ba751f7ffb6999b084c5a5431652a33baab11d7384e762c4709bab52bb0de4694a885c8eb570 SHA512 d612aca617f44ea7bf32a31d65da7e265dfdbe67f7983fc095b1f2d5c83cfa27f4c857279d98f6928199d15193c706cf3c77022fec70529a7b5d38b16ce64df5
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Cryptographically sign and verify files"
|
||||
HOMEPAGE="http://www.openbsd.org/ https://github.com/aperezdc/signify"
|
||||
SRC_URI="https://github.com/aperezdc/signify/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND=">=dev-libs/libbsd-0.7"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${D}" PREFIX="/usr" emake install
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="github">kuba/simp_le</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python{2_7,3_4,3_5,3_6})
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
EGIT_REPO_URI="https://github.com/kuba/simp_le.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/kuba/simp_le/archive/v${PV}.tar.gz -> simp_le-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simple Let's Encrypt Client"
|
||||
HOMEPAGE="https://github.com/kuba/simp_le"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-python/cryptography-0.8[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.15[${PYTHON_USEDEP}]
|
||||
dev-python/pyrfc3339[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
=app-crypt/acme-0.1.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="test? ( ${RDEPEND} dev-python/pylint[${PYTHON_USEDEP}] dev-python/pep8[${PYTHON_USEDEP}] )
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST diskimage-builder-2.15.1.tar.gz 359802 BLAKE2B bfcd43ae76350f72d368bbb6eadf61d72de3ca26963399004921df721213d8aeb1c980085d414b227674d2b147ee06531381b59e78e7b11f949dfc4d63f43f5b SHA512 7ab18f4d950c7578fc5f16f0aabfb469a74b38b0aa9d3209550019e3ea585a451a69be0a46901df2ae1ecfdc0dabcbd5554edae4ea71ae2921f5a8e99d4cb0b9
|
||||
DIST diskimage-builder-2.16.0.tar.gz 357777 BLAKE2B 29d9c2e0a2a42de3939a0ebac499f13755ef883074a43f7147e322af8c6cb2120fc0987271a4f6d4cead775283b4d502302dd50e8b3411e265c826b7f7fb9617 SHA512 2a10d7e3b69968f91de9f3aded7109addbe48201567257f1e849985dca7ad4860247aac431d3055780f2345670d10a27714acfb74507078bd6ec585c05cc7635
|
||||
DIST diskimage-builder-2.17.0.tar.gz 362965 BLAKE2B 27668c38e480aa14354a7efcb7f3f64b9cfe9f7a61507d2e08809a757aba95f3d51754b35985089c39bc3bca1204e9e2325e19e0d4f77996e22b479e6d804ae2 SHA512 02505823ba48da235127f9bd686bbad3dec32feb2252e5c5b69723a53f6d0926a384c6be5a4055bebf9e0ded82cd9945dab6f26fa7db280722f45d27fef25bc9
|
||||
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Golden Disk Image builder."
|
||||
HOMEPAGE="http://docs.openstack.org/developer/diskimage-builder/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=dev-python/Babel-2.3.4[${PYTHON_USEDEP}]
|
||||
!~dev-python/Babel-2.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/networkx-1.10[${PYTHON_USEDEP}]
|
||||
<dev-python/networkx-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/flake8-2.5.4[${PYTHON_USEDEP}]
|
||||
<dev-python/flake8-2.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||
app-emulation/qemu
|
||||
sys-block/parted
|
||||
sys-fs/multipath-tools
|
||||
sys-fs/dosfstools
|
||||
sys-apps/gptfdisk
|
||||
!dev-python/dib-utils[${PYTHON_USEDEP}]"
|
Binary file not shown.
@ -0,0 +1,109 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools bash-completion-r1 flag-o-matic tmpfiles
|
||||
|
||||
DESCRIPTION="Search and query ebuilds"
|
||||
HOMEPAGE="https://github.com/vaeth/eix/"
|
||||
SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc nls sqlite"
|
||||
|
||||
BOTHDEPEND="nls? ( virtual/libintl )
|
||||
sqlite? ( >=dev-db/sqlite-3:= )"
|
||||
RDEPEND="${BOTHDEPEND}
|
||||
>=app-shells/push-2.0-r1
|
||||
>=app-shells/quoter-3.0_p2-r1"
|
||||
DEPEND="${BOTHDEPEND}
|
||||
app-arch/xz-utils
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
# remove stale cache file to prevent collisions
|
||||
local old_cache=${EROOT%/}/var/cache/${PN}
|
||||
if [[ -f ${old_cache} ]]; then
|
||||
rm "${old_cache}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
|
||||
|
||||
sed -e "/eixf_source=/s:push.sh:cat \"${EROOT}usr/share/push/push.sh\":" \
|
||||
-e "/eixf_source=/s:quoter_pipe.sh:cat \"${EROOT}usr/share/quoter/quoter_pipe.sh\":" \
|
||||
-i src/eix-functions.sh.in || die
|
||||
sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EROOT}usr/share/eix/eix-functions\\\\\":" \
|
||||
-i src/Makefile.am || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable debug paranoic-asserts)
|
||||
$(use_enable nls)
|
||||
$(use_with doc extra-doc)
|
||||
$(use_with sqlite)
|
||||
|
||||
# default configuration
|
||||
$(use_with prefix always-accept-keywords)
|
||||
--with-dep-default
|
||||
--with-required-use-default
|
||||
|
||||
# paths
|
||||
--with-portage-rootpath="${ROOTPATH}"
|
||||
--with-eprefix-default="${EPREFIX}"
|
||||
|
||||
# build a single executable with symlinks
|
||||
--disable-separate-binaries
|
||||
--disable-separate-tools
|
||||
|
||||
# used purely to control/disrespect *FLAGS
|
||||
--disable-debugging
|
||||
--disable-new_dialect
|
||||
--disable-optimization
|
||||
--disable-strong-optimization
|
||||
--disable-security
|
||||
--disable-nopie-security
|
||||
--disable-strong-security
|
||||
)
|
||||
|
||||
# https://github.com/vaeth/eix/issues/35
|
||||
append-cxxflags -std=c++14
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobashcomp bash/eix
|
||||
dotmpfiles tmpfiles.d/eix.conf
|
||||
|
||||
rm -r "${ED%/}"/usr/bin/eix-functions.sh || die
|
||||
|
||||
keepdir /var/cache/eix
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use prefix; then
|
||||
# note: if this is done in src_install(), portage:portage
|
||||
# ownership may be reset to root
|
||||
tmpfiles_process eix.conf
|
||||
fi
|
||||
|
||||
local obs=${EROOT%/}/var/cache/eix.previous
|
||||
if [[ -f ${obs} ]]; then
|
||||
ewarn "Found obsolete ${obs}, please remove it"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
|
||||
rm -rf "${EROOT%/}/var/cache/${PN}" || die
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -0,0 +1,102 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN=github.com/influxdata/${PN}
|
||||
EGO_VENDOR=(
|
||||
"collectd.org e84e8af5356e7f47485bbc95c96da6dd7984a67e github.com/collectd/go-collectd"
|
||||
"github.com/BurntSushi/toml a368813c5e648fee92e5f6c30e3944ff9d5e8895"
|
||||
"github.com/RoaringBitmap/roaring cefad6e4f79d4fa5d1d758ff937dde300641ccfa"
|
||||
"github.com/beorn7/perks 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9"
|
||||
"github.com/bmizerany/pat c068ca2f0aacee5ac3681d68e4d0a003b7d1fd2c"
|
||||
"github.com/boltdb/bolt 4b1ebc1869ad66568b313d0dc410e2be72670dda"
|
||||
"github.com/cespare/xxhash 1b6d2e40c16ba0dfce5c8eac2480ad6e7394819b"
|
||||
"github.com/davecgh/go-spew 346938d642f2ec3594ed81d874461961cd0faa76"
|
||||
"github.com/dgrijalva/jwt-go 24c63f56522a87ec5339cc3567883f1039378fdb"
|
||||
"github.com/dgryski/go-bits 2ad8d707cc05b1815ce6ff2543bb5e8d8f9298ef"
|
||||
"github.com/dgryski/go-bitstream 7d46cd22db7004f0cceb6f7975824b560cf0e486"
|
||||
"github.com/glycerine/go-unsnap-stream 62a9a9eb44fd8932157b1a8ace2149eff5971af6"
|
||||
"github.com/gogo/protobuf 1c2b16bc280d6635de6c52fc1471ab962dc36ec9"
|
||||
"github.com/golang/protobuf 1e59b77b52bf8e4b449a57e6f79f21226d571845"
|
||||
"github.com/golang/snappy d9eb7a3d35ec988b8585d4a0068e462c27d28380"
|
||||
"github.com/google/go-cmp 18107e6c56edb2d51f965f7d68e59404f0daee54"
|
||||
"github.com/influxdata/influxql 21ddebb5641365d9b92234e8f5a566c41da9ab48"
|
||||
"github.com/influxdata/usage-client 6d3895376368aa52a3a81d2a16e90f0f52371967"
|
||||
"github.com/influxdata/yamux 1f58ded512de5feabbe30b60c7d33a7a896c5f16"
|
||||
"github.com/influxdata/yarpc 036268cdec22b7074cd6d50cc6d7315c667063c7"
|
||||
"github.com/jsternberg/zap-logfmt 5ea53862c7fa897f44ae0b3004283308c0b0c9d1"
|
||||
"github.com/jwilder/encoding 27894731927e49b0a9023f00312be26733744815"
|
||||
"github.com/mattn/go-isatty 6ca4dbf54d38eea1a992b3c722a76a5d1c4cb25c"
|
||||
"github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c"
|
||||
"github.com/opentracing/opentracing-go 1361b9cd60be79c4c3a7fa9841b3c132e40066a7"
|
||||
"github.com/paulbellamy/ratecounter 5a11f585a31379765c190c033b6ad39956584447"
|
||||
"github.com/peterh/liner 88609521dc4b6c858fd4c98b628147da928ce4ac"
|
||||
"github.com/philhofer/fwd 1612a298117663d7bc9a760ae20d383413859798"
|
||||
"github.com/prometheus/client_golang 661e31bf844dfca9aeba15f27ea8aa0d485ad212"
|
||||
"github.com/prometheus/client_model 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c"
|
||||
"github.com/prometheus/common 2e54d0b93cba2fd133edc32211dcc32c06ef72ca"
|
||||
"github.com/prometheus/procfs a6e9df898b1336106c743392c48ee0b71f5c4efa"
|
||||
"github.com/retailnext/hllpp 38a7bb71b483e855d35010808143beaf05b67f9d"
|
||||
"github.com/tinylib/msgp ad0ff2e232ad2e37faf67087fb24bf8d04a8ce20"
|
||||
"github.com/xlab/treeprint 06dfc6fa17cdde904617990a0c2d89e3e332dbb3"
|
||||
"go.uber.org/atomic 54f72d32435d760d5604f17a82e2435b28dc4ba5 github.com/uber-go/atomic"
|
||||
"go.uber.org/multierr fb7d312c2c04c34f0ad621048bbb953b168f9ff6 github.com/uber-go/multierr"
|
||||
"go.uber.org/zap 35aad584952c3e7020db7b839f6b102de6271f89 github.com/uber-go/zap"
|
||||
"golang.org/x/crypto 9477e0b78b9ac3d0b03822fd95422e2fe07627cd github.com/golang/crypto"
|
||||
"golang.org/x/net 9dfe39835686865bff950a07b394c12a98ddc811 github.com/golang/net"
|
||||
"golang.org/x/sync fd80eb99c8f653c847d294a001bdf2a3a6f768f5 github.com/golang/sync"
|
||||
"golang.org/x/sys 062cd7e4e68206d8bab9b18396626e855c992658 github.com/golang/sys"
|
||||
"golang.org/x/text a71fd10341b064c10f4a81ceac72bcf70f26ea34 github.com/golang/text"
|
||||
"golang.org/x/time 6dc17368e09b0e8634d71cac8168d853e869a0c7 github.com/golang/time"
|
||||
)
|
||||
|
||||
inherit golang-build golang-vcs-snapshot systemd user
|
||||
|
||||
DESCRIPTION=" Scalable datastore for metrics, events, and real-time analytics"
|
||||
HOMEPAGE="https://www.influxdata.com"
|
||||
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=app-text/asciidoc-8.6.10
|
||||
app-text/xmlto"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup influxdb
|
||||
enewuser influxdb -1 -1 /var/lib/influxdb influxdb
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pushd "src/${EGO_PN}" > /dev/null || die
|
||||
set -- env GOPATH="${S}" go build -v -work -x ./...
|
||||
echo "$@"
|
||||
"$@" || die "compile failed"
|
||||
cd man
|
||||
emake build
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd "src/${EGO_PN}" > /dev/null || die
|
||||
set -- env GOPATH="${S}" go install -v -work -x ./...
|
||||
echo "$@"
|
||||
"$@" || die
|
||||
dobin "${S}"/bin/influx*
|
||||
dodoc CHANGELOG.md etc/config.sample.toml
|
||||
doman man/*.1
|
||||
insinto /etc/logrotate.d
|
||||
newins scripts/logrotate influxdb
|
||||
systemd_dounit scripts/influxdb.service
|
||||
newconfd "${FILESDIR}"/influxdb.confd influxdb
|
||||
newinitd "${FILESDIR}"/influxdb.rc influxdb
|
||||
insinto /etc/influxdb
|
||||
doins "${FILESDIR}"/influxd.conf
|
||||
keepdir /var/log/influxdb
|
||||
fowners influxdb:influxdb /var/log/influxdb
|
||||
popd > /dev/null || die
|
||||
}
|
Binary file not shown.
@ -1,2 +0,0 @@
|
||||
DIST spring-framework-3.2.4-buildscripts.tar.bz2 2894 BLAKE2B da3bc9130a054c874303fa10d796566cc1a7a043adce0aa15fdcf67b4bb529a97af9611357f3a8c2e192b0bf89fa0e2877416d19a1a742891de74d2b7acac1a2 SHA512 003551ffd37501c8b8dceba7ca484709cdf05f96c893d35c33161288770d72f70c092917f79216aa71742e045cb71ddcb17e6b58a2221fe2c153a70e5e0346b9
|
||||
DIST spring-framework-3.2.4.tar.gz 8925304 BLAKE2B ecc8b52f8dad35f7118f1231355f71a2f1e89afe4d1105afe3878e9f9150f519eae6660403856af09b79f178870bfa99657f3502389d2192f6c9860f6e6e35b6 SHA512 6a8fe58213f105deaa982b188e7b49a5bd9e0cf32917c568423509fed6b7c708cb5ca42ee7b3818327d673e59e7af7c67c13707e8a635329540b2febddda0f1b
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
The Spring Framework provides a comprehensive programming and configuration model for
|
||||
modern Java-based enterprise applications - on any kind of deployment platform. A key
|
||||
element of Spring is infrastructural support at the application level: Spring focuses
|
||||
on the "plumbing" of enterprise applications so that teams can focus on application-level
|
||||
business logic, without unnecessary ties to specific deployment environments.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">SpringSource/spring-framework</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A comprehensive programming and configuration model for enterprise applications"
|
||||
HOMEPAGE="http://www.springsource.org/spring-framework"
|
||||
SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="dev-java/spring-core:${SLOT}
|
||||
dev-java/spring-beans:${SLOT}
|
||||
dev-java/aopalliance:1
|
||||
dev-java/aspectj:0
|
||||
dev-java/commons-logging:0
|
||||
dev-java/commons-pool:0
|
||||
dev-java/jamon:1"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
test? (
|
||||
dev-java/hamcrest-core:1.3
|
||||
dev-java/hamcrest-library:1.3
|
||||
dev-java/junit:4
|
||||
dev-java/mockito:0
|
||||
dev-java/ant-junit4:0
|
||||
dev-java/xmlunit:1
|
||||
)
|
||||
${CDEPEND}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
|
||||
|
||||
EANT_BUILD_XML=${S}/${PN}/build.xml
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="spring-core-${SLOT}
|
||||
spring-beans-${SLOT}
|
||||
aopalliance-1
|
||||
aspectj
|
||||
commons-logging
|
||||
commons-pool
|
||||
jamon-1"
|
||||
|
||||
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
|
||||
hamcrest-library-1.3
|
||||
hamcrest-core-1.3
|
||||
junit-4
|
||||
mockito
|
||||
xmlunit-1"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
|
||||
|
||||
use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
|
||||
use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
DIST spring-framework-3.2.4-buildscripts.tar.bz2 2894 BLAKE2B da3bc9130a054c874303fa10d796566cc1a7a043adce0aa15fdcf67b4bb529a97af9611357f3a8c2e192b0bf89fa0e2877416d19a1a742891de74d2b7acac1a2 SHA512 003551ffd37501c8b8dceba7ca484709cdf05f96c893d35c33161288770d72f70c092917f79216aa71742e045cb71ddcb17e6b58a2221fe2c153a70e5e0346b9
|
||||
DIST spring-framework-3.2.4.tar.gz 8925304 BLAKE2B ecc8b52f8dad35f7118f1231355f71a2f1e89afe4d1105afe3878e9f9150f519eae6660403856af09b79f178870bfa99657f3502389d2192f6c9860f6e6e35b6 SHA512 6a8fe58213f105deaa982b188e7b49a5bd9e0cf32917c568423509fed6b7c708cb5ca42ee7b3818327d673e59e7af7c67c13707e8a635329540b2febddda0f1b
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
The Spring Framework provides a comprehensive programming and configuration model for
|
||||
modern Java-based enterprise applications - on any kind of deployment platform. A key
|
||||
element of Spring is infrastructural support at the application level: Spring focuses
|
||||
on the "plumbing" of enterprise applications so that teams can focus on application-level
|
||||
business logic, without unnecessary ties to specific deployment environments.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">SpringSource/spring-framework</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A comprehensive programming and configuration model for enterprise applications"
|
||||
HOMEPAGE="http://www.springsource.org/spring-framework"
|
||||
SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.2"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="
|
||||
dev-java/commons-logging:0
|
||||
java-virtuals/servlet-api:3.0
|
||||
dev-java/javax-inject:0
|
||||
dev-java/spring-core:${SLOT}"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
test? (
|
||||
dev-java/hamcrest-core:1.3
|
||||
dev-java/hamcrest-library:1.3
|
||||
dev-java/junit:4
|
||||
dev-java/mockito:0
|
||||
dev-java/ant-junit4:0
|
||||
dev-java/xmlunit:1
|
||||
)
|
||||
${CDEPEND}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
|
||||
|
||||
EANT_BUILD_XML=${S}/${PN}/build.xml
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="spring-core-${SLOT},commons-logging,servlet-api-3.0,javax-inject"
|
||||
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
|
||||
hamcrest-library-1.3
|
||||
hamcrest-core-1.3
|
||||
junit-4
|
||||
mockito
|
||||
xmlunit-1"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
|
||||
|
||||
use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
|
||||
use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
DIST spring-framework-3.2.4-buildscripts.tar.bz2 2894 BLAKE2B da3bc9130a054c874303fa10d796566cc1a7a043adce0aa15fdcf67b4bb529a97af9611357f3a8c2e192b0bf89fa0e2877416d19a1a742891de74d2b7acac1a2 SHA512 003551ffd37501c8b8dceba7ca484709cdf05f96c893d35c33161288770d72f70c092917f79216aa71742e045cb71ddcb17e6b58a2221fe2c153a70e5e0346b9
|
||||
DIST spring-framework-3.2.4.tar.gz 8925304 BLAKE2B ecc8b52f8dad35f7118f1231355f71a2f1e89afe4d1105afe3878e9f9150f519eae6660403856af09b79f178870bfa99657f3502389d2192f6c9860f6e6e35b6 SHA512 6a8fe58213f105deaa982b188e7b49a5bd9e0cf32917c568423509fed6b7c708cb5ca42ee7b3818327d673e59e7af7c67c13707e8a635329540b2febddda0f1b
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
The Spring Framework provides a comprehensive programming and configuration model for
|
||||
modern Java-based enterprise applications - on any kind of deployment platform. A key
|
||||
element of Spring is infrastructural support at the application level: Spring focuses
|
||||
on the "plumbing" of enterprise applications so that teams can focus on application-level
|
||||
business logic, without unnecessary ties to specific deployment environments.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">SpringSource/spring-framework</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,83 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
WANT_ANT_TASKS="dev-java/jarjar:1 dev-java/ant-junit:0"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A comprehensive programming and configuration model for enterprise applications"
|
||||
HOMEPAGE="http://www.springsource.org/spring-framework"
|
||||
SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.2"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="
|
||||
dev-java/commons-logging:0
|
||||
dev-java/log4j:0
|
||||
dev-java/aspectj:0
|
||||
dev-java/asm:4
|
||||
dev-java/cglib:3
|
||||
dev-java/jopt-simple:4.4
|
||||
"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
test? (
|
||||
>=dev-java/junit-4.11:4
|
||||
dev-java/hamcrest-core:1.3
|
||||
dev-java/hamcrest-library:1.3
|
||||
dev-java/mockito:0
|
||||
dev-java/xmlunit:1
|
||||
)
|
||||
${CDEPEND}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
|
||||
|
||||
EANT_BUILD_XML=${S}/${PN}/build.xml
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH="
|
||||
commons-logging
|
||||
log4j
|
||||
aspectj
|
||||
jopt-simple-4.4
|
||||
asm-4"
|
||||
|
||||
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
|
||||
hamcrest-library-1.3
|
||||
hamcrest-core-1.3
|
||||
junit-4
|
||||
mockito
|
||||
xmlunit-1
|
||||
junit-4"
|
||||
|
||||
java_prepare() {
|
||||
# see build.xml
|
||||
mkdir "${S}/${PN}/lib/" || die
|
||||
java-pkg_jar-from --build-only --into "${S}/${PN}/lib/" asm-4
|
||||
java-pkg_jar-from --build-only --into "${S}/${PN}/lib/" cglib-3 cglib.jar
|
||||
|
||||
# broken test.
|
||||
rm -v ${PN}/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/${PN}/dist/{${PN},asm-renamed,cglib-renamed}.jar
|
||||
|
||||
use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
|
||||
use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
DIST spring-framework-3.2.4-buildscripts.tar.bz2 2894 BLAKE2B da3bc9130a054c874303fa10d796566cc1a7a043adce0aa15fdcf67b4bb529a97af9611357f3a8c2e192b0bf89fa0e2877416d19a1a742891de74d2b7acac1a2 SHA512 003551ffd37501c8b8dceba7ca484709cdf05f96c893d35c33161288770d72f70c092917f79216aa71742e045cb71ddcb17e6b58a2221fe2c153a70e5e0346b9
|
||||
DIST spring-framework-3.2.4.tar.gz 8925304 BLAKE2B ecc8b52f8dad35f7118f1231355f71a2f1e89afe4d1105afe3878e9f9150f519eae6660403856af09b79f178870bfa99657f3502389d2192f6c9860f6e6e35b6 SHA512 6a8fe58213f105deaa982b188e7b49a5bd9e0cf32917c568423509fed6b7c708cb5ca42ee7b3818327d673e59e7af7c67c13707e8a635329540b2febddda0f1b
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
The Spring Framework provides a comprehensive programming and configuration model for
|
||||
modern Java-based enterprise applications - on any kind of deployment platform. A key
|
||||
element of Spring is infrastructural support at the application level: Spring focuses
|
||||
on the "plumbing" of enterprise applications so that teams can focus on application-level
|
||||
business logic, without unnecessary ties to specific deployment environments.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">SpringSource/spring-framework</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A comprehensive programming and configuration model for enterprise applications"
|
||||
HOMEPAGE="http://www.springsource.org/spring-framework"
|
||||
SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
CDEPEND="dev-java/spring-core:${SLOT}"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
test? (
|
||||
dev-java/hamcrest-core:1.3
|
||||
dev-java/hamcrest-library:1.3
|
||||
dev-java/junit:4
|
||||
dev-java/mockito:0
|
||||
dev-java/ant-junit4:0
|
||||
dev-java/xmlunit:1
|
||||
)
|
||||
${CDEPEND}"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7
|
||||
${CDEPEND}"
|
||||
|
||||
S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
|
||||
|
||||
EANT_BUILD_XML=${S}/${PN}/build.xml
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
|
||||
EANT_GENTOO_CLASSPATH="spring-core-${SLOT}"
|
||||
|
||||
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
|
||||
hamcrest-library-1.3
|
||||
hamcrest-core-1.3
|
||||
junit-4
|
||||
mockito
|
||||
xmlunit-1"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
|
||||
|
||||
use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
|
||||
use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
DIST spring-framework-3.2.4-buildscripts.tar.bz2 2894 BLAKE2B da3bc9130a054c874303fa10d796566cc1a7a043adce0aa15fdcf67b4bb529a97af9611357f3a8c2e192b0bf89fa0e2877416d19a1a742891de74d2b7acac1a2 SHA512 003551ffd37501c8b8dceba7ca484709cdf05f96c893d35c33161288770d72f70c092917f79216aa71742e045cb71ddcb17e6b58a2221fe2c153a70e5e0346b9
|
||||
DIST spring-framework-3.2.4.tar.gz 8925304 BLAKE2B ecc8b52f8dad35f7118f1231355f71a2f1e89afe4d1105afe3878e9f9150f519eae6660403856af09b79f178870bfa99657f3502389d2192f6c9860f6e6e35b6 SHA512 6a8fe58213f105deaa982b188e7b49a5bd9e0cf32917c568423509fed6b7c708cb5ca42ee7b3818327d673e59e7af7c67c13707e8a635329540b2febddda0f1b
|
@ -1,109 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="spring-instrument" default="jar" basedir=".">
|
||||
|
||||
<property name="src.dir" value="${basedir}/src/main/java" />
|
||||
<property name="resources.dir" value="${basedir}/src/main/resources" />
|
||||
|
||||
<property name="test.src.dir" value="${basedir}/src/test/java" />
|
||||
<property name="test.resources.dir" value="${basedir}/src/test/resources" />
|
||||
|
||||
<property name="reports.tests" value="${basedir}/test-output" />
|
||||
<property name="classes.dir" value="${basedir}/classes" />
|
||||
<property name="classes.dir.test" value="${basedir}/classes-test" />
|
||||
<property name="dist.dir" value="${basedir}/dist" />
|
||||
|
||||
<property name="jar.file" value="${dist.dir}/${ant.project.name}.jar" />
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${classes.dir}" />
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="clean">
|
||||
<mkdir dir="${classes.dir}" />
|
||||
|
||||
<javac destdir="${classes.dir}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
|
||||
<src>
|
||||
<pathelement location="${src.dir}" />
|
||||
</src>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<!-- this target gets called from the other spring-* build.xml files to compile the required test utils -->
|
||||
<target name="compile-instrument-testutils">
|
||||
<mkdir dir="${classes.dir.test}" />
|
||||
<javac destdir="${classes.dir.test}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
|
||||
<src path="${test.src.dir}" />
|
||||
|
||||
<!-- these excludes are a little bit fuzzy, but they should work -->
|
||||
<exclude name="org/springframework/**/*Tests.java"/>
|
||||
<exclude name="org/springframework/**/*TestCase.java"/>
|
||||
|
||||
<classpath>
|
||||
<pathelement location="${classes.dir}" />
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<copy todir="${classes.dir.test}" verbose="true">
|
||||
<fileset dir="${test.resources.dir}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="compile-tests" depends="compile-instrument-testutils">
|
||||
<ant antfile="${basedir}/../spring-core/build.xml" target="compile-core-testutils" dir="${basedir}/../spring-core/" inheritall="false" />
|
||||
|
||||
<mkdir dir="${classes.dir.test}" />
|
||||
<javac destdir="${classes.dir.test}" nowarn="false" debug="true" optimize="true" deprecation="false" target="1.5" verbose="false" fork="false" source="1.5">
|
||||
<src path="${test.src.dir}" />
|
||||
<exclude name="**/DirectFieldAccessorTests.java"/> <!-- tries to instantiate a JPanel which needs an X-Server -->
|
||||
|
||||
<classpath>
|
||||
<pathelement location="${classes.dir}" />
|
||||
|
||||
<pathelement location="${basedir}/../spring-core/classes-test" />
|
||||
</classpath>
|
||||
</javac>
|
||||
|
||||
<copy todir="${classes.dir.test}" verbose="true">
|
||||
<fileset dir="${test.resources.dir}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="test" depends="jar, compile-tests">
|
||||
<mkdir dir="${reports.tests}" />
|
||||
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
|
||||
<sysproperty key="log4j.configuration" value="log4j.xml"/>
|
||||
|
||||
<classpath>
|
||||
<pathelement location="${jar.file}" />
|
||||
<pathelement location="${classes.dir.test}" />
|
||||
<pathelement location="${test.src.dir}" />
|
||||
|
||||
<pathelement location="${basedir}/../spring-core/classes-test" />
|
||||
</classpath>
|
||||
|
||||
<sysproperty key="basedir" value="." />
|
||||
|
||||
<formatter type="xml" />
|
||||
<formatter type="plain" usefile="false" />
|
||||
|
||||
<batchtest todir="${reports.tests}">
|
||||
<fileset dir="${classes.dir.test}">
|
||||
<include name="**/*Tests.class" />
|
||||
<exclude name="**/*Abstract*.*" />
|
||||
<exclude name="**/*$*.class" />
|
||||
|
||||
<exclude name="**/org/springframework/beans/factory/support/security/CallbacksSecurityTests*" />
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="javadoc">
|
||||
<javadoc sourcepath="${src.dir}" packagenames="*" destdir="${dist.dir}/apidocs" />
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<jar jarfile="${jar.file}" compress="true" index="false" basedir="${classes.dir}" excludes="**/package.html" />
|
||||
</target>
|
||||
</project>
|
@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>java@gentoo.org</email>
|
||||
<name>Java</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
The Spring Framework provides a comprehensive programming and configuration model for
|
||||
modern Java-based enterprise applications - on any kind of deployment platform. A key
|
||||
element of Spring is infrastructural support at the application level: Spring focuses
|
||||
on the "plumbing" of enterprise applications so that teams can focus on application-level
|
||||
business logic, without unnecessary ties to specific deployment environments.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">SpringSource/spring-framework</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
JAVA_PKG_IUSE="doc source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="A comprehensive programming and configuration model for enterprise applications"
|
||||
HOMEPAGE="http://www.springsource.org/spring-framework"
|
||||
SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
|
||||
https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.2"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7
|
||||
test? (
|
||||
dev-java/ant-junit4:0
|
||||
dev-java/hamcrest-core:1.3
|
||||
dev-java/hamcrest-library:1.3
|
||||
dev-java/junit:4
|
||||
dev-java/mockito:0
|
||||
dev-java/spring-core:${SLOT}
|
||||
dev-java/xmlunit:1
|
||||
)"
|
||||
|
||||
RDEPEND=">=virtual/jre-1.7"
|
||||
|
||||
S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
|
||||
|
||||
EANT_BUILD_XML=${S}/${PN}/build.xml
|
||||
|
||||
JAVA_ANT_REWRITE_CLASSPATH="true"
|
||||
EANT_GENTOO_CLASSPATH=""
|
||||
EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
|
||||
hamcrest-library-1.3
|
||||
hamcrest-core-1.3
|
||||
junit-4
|
||||
mockito
|
||||
spring-core-${SLOT}
|
||||
xmlunit-1"
|
||||
|
||||
java_prepare() {
|
||||
find . -name '*.jar' -print -delete || die
|
||||
|
||||
cp "${FILESDIR}"/${P}-build.xml "${EANT_BUILD_XML}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
|
||||
|
||||
use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
|
||||
use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
|
||||
}
|
Binary file not shown.
@ -1,8 +1,3 @@
|
||||
DIST MoarVM-2018.01.tar.gz 4762110 BLAKE2B 643fc082ec1ba9b79bb5d0c13e66703850b75673a73e659fc8b2400cbb0d986b1882b7d23721a77773891649d709328ace1023d50d4ffacae5d75091a8976912 SHA512 2e558c92562096596992e6e0070092481e5a5d25ac3047110d023536deebc9a4db21d9844ecf3b7c0ae5cc6fa529cc48d9a8e98cdc2f5e23a8effc37b7509ef9
|
||||
DIST MoarVM-2018.02.tar.gz 4769154 BLAKE2B 28eaf603c908c4d1fb5d9fc8e771e3a54165102288f566aca04df6740cfc307e2cea5beeeed9be490b9f4136e4dc8e9bb20249aab07d46e9f3bb9ab522f5a4a8 SHA512 3364a1af68b828de30affa4c21fe691d10353175cc18e815f962f8dcafb63947ce3fd3ae5c10c656b90f4cb02f3fd008a9a99f832d76098c12525b36e46924d0
|
||||
DIST MoarVM-2018.03.tar.gz 4859280 BLAKE2B 373ed24f30abc669aef914dd8e683a09f09831c82fa81784da78bd9ab31ee14bc6967afce1e2753cc6df7155bfbfba076062375348345d529872352a396a7c36 SHA512 be613e038747d771de03129e52d6e65712ddf6f73ed87eb008ae78968f2d516b4fded792a67e1ce031378c223408101ceaf25f90abf9ba35ee20c6e8401b46f1
|
||||
DIST MoarVM-2018.04.1.tar.gz 4966704 BLAKE2B e69e953d98713c0571d6970b57048fa542d9d99a09b248983c043c744b8e32af4cf582f19404c89a4dbc4d2df35a3b17390fcc0e313ac9510ded5c4914f5aaff SHA512 fb79b14cadae5475df48affecc72a07085cce963f4e34e7bb20511718f73d904f53b65d2bf30c0128917b7066430cc3fedee24f97bfbec24bbed46f42bcf0082
|
||||
DIST MoarVM-2018.04.tar.gz 4966390 BLAKE2B 708753aaccdd997e0703ce31706221efaaaafa0c877ae3fdf1035e399545a633a9d9fbc26909798084bf9f9d6854cc07457299119f7f50e7335a6b09291c360b SHA512 cbcceabc2f3d3d3ac73655bf16246f714923abbe909f2bfa6b1f2456801a4bebfe246f552e2704da254609e1edb66b564ef5b845c88af3761a6d552b2364fc51
|
||||
DIST MoarVM-2018.05.tar.gz 4981931 BLAKE2B cbd650cc84efbe6967ff24f0eed5e3f5ad5b199a268e6623a004cb690bdbaa75d8295b83c4e75d20584a54e17e157ab7c348bb783c82e56d6b1efdfe4815039c SHA512 0f71eafcaa1c917257bf47955b82d5c8218c171acc9c09080325f7f2b36a1418e718408ef13f69a71ed142620fd4c47d3681dda0543feb705b62d7643e00cd5f
|
||||
DIST MoarVM-2018.06.tar.gz 5002170 BLAKE2B 7c30dc54724c13538621fbf710d6bc1bd7d8b211824d4b5262685c95602c4910b7f7f6d59e52b0595d23dc9a68954fd1213055d72a20b418bf205ac770d05b67 SHA512 5d256cd7a49472e106326281059f8e9f8eb7591d116bfcdd33daeada42764774362ab8802edf889c5d875d438518ee9f243f5e44f451c9cf3495f7c7641be700
|
||||
DIST MoarVM-2018.08.tar.gz 5047553 BLAKE2B bcb3350e4a063958eee508885784f3f8eda20f7952759c084d4c0237c70afc4944836607c138e3df2e3a71fa3820190718ab1dd48851ae4a9f267562b9dbf87d SHA512 048fe4f333b017f21dbac34eb385f0569f566ec5ebba9f0e9ee217d325b61fc3542e39e0f1db6fc2cbfa48b09b1acb16c79f02fbe34ed8a5a1946927528c0570
|
||||
DIST MoarVM-2018.09.tar.gz 5070458 BLAKE2B 6c391907eb7bcda7eb6629d9f1aea16414fa9ee62d97ec3c72cea6c9b8f6323ef2869e560d8574d30b339889aff92ad73cfd174f9b23f4a98ef359873e053a94 SHA512 14d5ca1f6a8c77ee89fd05d66057b640b1e222391fded17631a4e11801de25e1fb3eb6b8b4dd977990e64952f7067482bf405a9ef5ebb6fdacdfa7c11bee21b1
|
||||
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libuv
|
||||
dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libuv
|
||||
dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libuv
|
||||
dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libuv
|
||||
dev-lang/lua
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libuv
|
||||
dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
@ -1,8 +1,3 @@
|
||||
DIST nqp-2018.01.tar.gz 3798898 BLAKE2B 5dc492bc5561a674d3faabb63c881ad97bff3528bc3f8bd75caa7f2e78aa4464849f326c611936106c6f14ca56f4de5f4575407ab134d4218409829c22885b3a SHA512 0bfec280ed2c70bbf25b274632e830838526fef1e8f8c08387b1e79e1ef739dfaafe67dbab17eb24cf33c1b2aa984029dc0740fcc43e463e92f908dfb2360249
|
||||
DIST nqp-2018.02.tar.gz 3759551 BLAKE2B 48713a0d300ec2e296b426784bb22f785969371043046251868c23c1f5710291c4b524d9d2d37fa4634eb910ad817c01e52bc132b3609cb292ae13cdd418c9bd SHA512 57c63d76ac0e44f1017c1cbdc9c128107c46c5339d468e3cb6e909df440cca0f37d2050e909c5cf1b10be7f08a9f33485c762150e5456317a777b14d15216225
|
||||
DIST nqp-2018.03.tar.gz 3778268 BLAKE2B 16e8e3924daa3aecf9987e9c39173fb32a769cd668add4b62bf04feb09755e5442224357610189ae8184c8c5c6fa35b2ce0d29cb708e8c5c0218963e2f918022 SHA512 d90fc8c933c31f1013bfdda5a02699c1c668ed5466167d58355c6baa65c294269cb4dbe072452bd14a9bbf180d83e61fedd3354b4404d590304be04e28489460
|
||||
DIST nqp-2018.04.1.tar.gz 3783660 BLAKE2B b596163b4d4a8d4b708d59dba586713e50edf3d5d1dc400960464e9528cefbf9867508712b74ee7014f4ad0badb742ca483816c6efff5909c8c52bf48d5fa85a SHA512 01211c8535873f26f1eb144033bbee318948dfaf2988f9f737002e41ad745294a6fe193e15d997e7d9297fcd2632fc71f9c9a6960c3af7606946c23e49d284de
|
||||
DIST nqp-2018.04.tar.gz 3782652 BLAKE2B 0d36363956a3b150c5dbd7e9c094281680bfe2b87fa509e5a27ffc8be1df8ab82cd89276d9392c11b0912cf4d00d5a668dd6f497f4cfdf4914c40de2b0443c5c SHA512 5cb749577c5e985174c0721b92a00af7a93a5a7b3833718718b825d71d135ba14150b8a6bb065cf21356a37ea082431eacbff8ca63bce6f0ddeaf200494fe646
|
||||
DIST nqp-2018.05.tar.gz 3785860 BLAKE2B 058f29acf6a9a2f79677dcca7fd145a8bf4d780eb516a874bf128cca4c8916e7b13868a29189888a22b827656156039a2fadaca26865d8a609559ebab6cec5c7 SHA512 463e795a6893dc418d87a347672781f8424ae3484f2d5ab20fa75a4fb226c239175d10889783e3cbca83c4f8d317406afa858f725dbe7f9869277f9d1cbcd9f0
|
||||
DIST nqp-2018.06.tar.gz 3792244 BLAKE2B 95cfa80c83951e91b71e14162c4c5cd78a8f546ba601002836d2b3fe79325aa26b963d0bb58df70935546f6960f3797a3a7762187defcb6b7c5124a7205bb257 SHA512 312f203c51f3d58bbc474cd7263a118f3438efe230a56a30f38a688b4a57aac88a94a0e6630736066255c122bb001d748a76272f7f634be8ddda91cc3340574b
|
||||
DIST nqp-2018.08.tar.gz 3769932 BLAKE2B 892eec3dcbfcf57bddbbbb296aea2d126176a5b5db79493beccb7625360c42e26fc9025c8f594430c8cdac346b5af93d7a5167fbbd6e17776070bc3b4b754b63 SHA512 b3f1729060c88407eee07fb32841febb51b68e375ff797aa9ebc6019a4c1229ea7e713262fbe7dfbd9e0317594eb8526179b9d63cf034ac3aca3d82c4ff7d565
|
||||
DIST nqp-2018.09.tar.gz 3797808 BLAKE2B e5c7c79d7577338e89190ee11673e65093f2e08cd5950727ed8f33a35769db8d6f5e5c7450a93ceb73bf011cdd0a492ce70de6026948a20dd972dcb79a07fb9e SHA512 7412ef9c25f9540ae399c8d83b090eec1c7cea63f0cda970e21e3d760ed915895f8d69c092847feda002702e401e6eee8a6521c41e879c82619340d096948126
|
||||
|
@ -1,159 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2 multibuild
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="java? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
dev-java/jna:4
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
|
||||
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
|
||||
ewarn "already being installed. So if it fails, try uninstalling both"
|
||||
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't clean stage0 jars.
|
||||
einfo "Cleaning upstream jars"
|
||||
java-pkg_clean 3rdparty/
|
||||
|
||||
# Don't use jars we just deleted.
|
||||
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
|
||||
src/vm/jvm/runners/nqp-j || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
MULTIBUILD_VARIANTS=()
|
||||
use moar && MULTIBUILD_VARIANTS+=( moar )
|
||||
use java && MULTIBUILD_VARIANTS+=( jvm )
|
||||
|
||||
multibuild_copy_sources
|
||||
|
||||
# This will pull in conditional java_prepare
|
||||
default
|
||||
}
|
||||
|
||||
nqp_configure() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
local myconfargs=(
|
||||
"--backend=${MULTIBUILD_VARIANT}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
nqp_compile() {
|
||||
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
|
||||
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
|
||||
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
nqp_test() {
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
test
|
||||
}
|
||||
|
||||
nqp_install() {
|
||||
# This is the actual reason we need multibuild.eclass.
|
||||
# We need to distinguish the install procedure for MoarVM and JVM backends.
|
||||
case "${MULTIBUILD_VARIANT}" in
|
||||
moar)
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
-C "${BUILD_DIR}" \
|
||||
install
|
||||
;;
|
||||
jvm)
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
# Set JAVA_PKG_JARDEST early.
|
||||
java-pkg_init_paths_
|
||||
|
||||
# Upstream sets the classpath to this location. Perhaps it's
|
||||
# used to locate the additional libraries?
|
||||
java-pkg_addcp "${JAVA_PKG_JARDEST}"
|
||||
|
||||
insinto "${JAVA_PKG_JARDEST}"
|
||||
local jar
|
||||
|
||||
for jar in *.jar; do
|
||||
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
|
||||
# jars for NQP itself.
|
||||
java-pkg_dojar ${jar}
|
||||
else
|
||||
# jars used by NQP.
|
||||
doins ${jar}
|
||||
fi
|
||||
done
|
||||
|
||||
# Upstream uses -Xbootclasspath/a, which is faster due to lack
|
||||
# of verification, but gjl isn't flexible enough yet. :(
|
||||
java-pkg_dolauncher ${PN}-j --main ${PN}
|
||||
dosym ${PN}-j /usr/bin/${PN}
|
||||
dobin tools/jvm/eval-client.pl
|
||||
popd > /dev/null || die
|
||||
;;
|
||||
*)
|
||||
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_foreach_variant nqp_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant nqp_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
multibuild_foreach_variant nqp_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multibuild_foreach_variant nqp_install
|
||||
|
||||
dodoc CREDITS README.pod
|
||||
use doc && dodoc -r docs/*
|
||||
}
|
@ -1,159 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2 multibuild
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="java? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
dev-java/jna:4
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
|
||||
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
|
||||
ewarn "already being installed. So if it fails, try uninstalling both"
|
||||
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't clean stage0 jars.
|
||||
einfo "Cleaning upstream jars"
|
||||
java-pkg_clean 3rdparty/
|
||||
|
||||
# Don't use jars we just deleted.
|
||||
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
|
||||
src/vm/jvm/runners/nqp-j || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
MULTIBUILD_VARIANTS=()
|
||||
use moar && MULTIBUILD_VARIANTS+=( moar )
|
||||
use java && MULTIBUILD_VARIANTS+=( jvm )
|
||||
|
||||
multibuild_copy_sources
|
||||
|
||||
# This will pull in conditional java_prepare
|
||||
default
|
||||
}
|
||||
|
||||
nqp_configure() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
local myconfargs=(
|
||||
"--backend=${MULTIBUILD_VARIANT}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
nqp_compile() {
|
||||
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
|
||||
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
|
||||
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
nqp_test() {
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
test
|
||||
}
|
||||
|
||||
nqp_install() {
|
||||
# This is the actual reason we need multibuild.eclass.
|
||||
# We need to distinguish the install procedure for MoarVM and JVM backends.
|
||||
case "${MULTIBUILD_VARIANT}" in
|
||||
moar)
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
-C "${BUILD_DIR}" \
|
||||
install
|
||||
;;
|
||||
jvm)
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
# Set JAVA_PKG_JARDEST early.
|
||||
java-pkg_init_paths_
|
||||
|
||||
# Upstream sets the classpath to this location. Perhaps it's
|
||||
# used to locate the additional libraries?
|
||||
java-pkg_addcp "${JAVA_PKG_JARDEST}"
|
||||
|
||||
insinto "${JAVA_PKG_JARDEST}"
|
||||
local jar
|
||||
|
||||
for jar in *.jar; do
|
||||
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
|
||||
# jars for NQP itself.
|
||||
java-pkg_dojar ${jar}
|
||||
else
|
||||
# jars used by NQP.
|
||||
doins ${jar}
|
||||
fi
|
||||
done
|
||||
|
||||
# Upstream uses -Xbootclasspath/a, which is faster due to lack
|
||||
# of verification, but gjl isn't flexible enough yet. :(
|
||||
java-pkg_dolauncher ${PN}-j --main ${PN}
|
||||
dosym ${PN}-j /usr/bin/${PN}
|
||||
dobin tools/jvm/eval-client.pl
|
||||
popd > /dev/null || die
|
||||
;;
|
||||
*)
|
||||
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_foreach_variant nqp_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant nqp_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
multibuild_foreach_variant nqp_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multibuild_foreach_variant nqp_install
|
||||
|
||||
dodoc CREDITS README.pod
|
||||
use doc && dodoc -r docs/*
|
||||
}
|
@ -1,159 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2 multibuild
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="java? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
dev-java/jna:4
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
|
||||
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
|
||||
ewarn "already being installed. So if it fails, try uninstalling both"
|
||||
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't clean stage0 jars.
|
||||
einfo "Cleaning upstream jars"
|
||||
java-pkg_clean 3rdparty/
|
||||
|
||||
# Don't use jars we just deleted.
|
||||
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
|
||||
src/vm/jvm/runners/nqp-j || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
MULTIBUILD_VARIANTS=()
|
||||
use moar && MULTIBUILD_VARIANTS+=( moar )
|
||||
use java && MULTIBUILD_VARIANTS+=( jvm )
|
||||
|
||||
multibuild_copy_sources
|
||||
|
||||
# This will pull in conditional java_prepare
|
||||
default
|
||||
}
|
||||
|
||||
nqp_configure() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
local myconfargs=(
|
||||
"--backend=${MULTIBUILD_VARIANT}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
nqp_compile() {
|
||||
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
|
||||
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
|
||||
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
nqp_test() {
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
test
|
||||
}
|
||||
|
||||
nqp_install() {
|
||||
# This is the actual reason we need multibuild.eclass.
|
||||
# We need to distinguish the install procedure for MoarVM and JVM backends.
|
||||
case "${MULTIBUILD_VARIANT}" in
|
||||
moar)
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
-C "${BUILD_DIR}" \
|
||||
install
|
||||
;;
|
||||
jvm)
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
# Set JAVA_PKG_JARDEST early.
|
||||
java-pkg_init_paths_
|
||||
|
||||
# Upstream sets the classpath to this location. Perhaps it's
|
||||
# used to locate the additional libraries?
|
||||
java-pkg_addcp "${JAVA_PKG_JARDEST}"
|
||||
|
||||
insinto "${JAVA_PKG_JARDEST}"
|
||||
local jar
|
||||
|
||||
for jar in *.jar; do
|
||||
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
|
||||
# jars for NQP itself.
|
||||
java-pkg_dojar ${jar}
|
||||
else
|
||||
# jars used by NQP.
|
||||
doins ${jar}
|
||||
fi
|
||||
done
|
||||
|
||||
# Upstream uses -Xbootclasspath/a, which is faster due to lack
|
||||
# of verification, but gjl isn't flexible enough yet. :(
|
||||
java-pkg_dolauncher ${PN}-j --main ${PN}
|
||||
dosym ${PN}-j /usr/bin/${PN}
|
||||
dobin tools/jvm/eval-client.pl
|
||||
popd > /dev/null || die
|
||||
;;
|
||||
*)
|
||||
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_foreach_variant nqp_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant nqp_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
multibuild_foreach_variant nqp_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multibuild_foreach_variant nqp_install
|
||||
|
||||
dodoc CREDITS README.pod
|
||||
use doc && dodoc -r docs/*
|
||||
}
|
@ -1,159 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2 multibuild
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="java? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
dev-java/jna:4
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
|
||||
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
|
||||
ewarn "already being installed. So if it fails, try uninstalling both"
|
||||
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't clean stage0 jars.
|
||||
einfo "Cleaning upstream jars"
|
||||
java-pkg_clean 3rdparty/
|
||||
|
||||
# Don't use jars we just deleted.
|
||||
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
|
||||
src/vm/jvm/runners/nqp-j || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
MULTIBUILD_VARIANTS=()
|
||||
use moar && MULTIBUILD_VARIANTS+=( moar )
|
||||
use java && MULTIBUILD_VARIANTS+=( jvm )
|
||||
|
||||
multibuild_copy_sources
|
||||
|
||||
# This will pull in conditional java_prepare
|
||||
default
|
||||
}
|
||||
|
||||
nqp_configure() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
local myconfargs=(
|
||||
"--backend=${MULTIBUILD_VARIANT}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
nqp_compile() {
|
||||
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
|
||||
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
|
||||
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
nqp_test() {
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
test
|
||||
}
|
||||
|
||||
nqp_install() {
|
||||
# This is the actual reason we need multibuild.eclass.
|
||||
# We need to distinguish the install procedure for MoarVM and JVM backends.
|
||||
case "${MULTIBUILD_VARIANT}" in
|
||||
moar)
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
-C "${BUILD_DIR}" \
|
||||
install
|
||||
;;
|
||||
jvm)
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
# Set JAVA_PKG_JARDEST early.
|
||||
java-pkg_init_paths_
|
||||
|
||||
# Upstream sets the classpath to this location. Perhaps it's
|
||||
# used to locate the additional libraries?
|
||||
java-pkg_addcp "${JAVA_PKG_JARDEST}"
|
||||
|
||||
insinto "${JAVA_PKG_JARDEST}"
|
||||
local jar
|
||||
|
||||
for jar in *.jar; do
|
||||
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
|
||||
# jars for NQP itself.
|
||||
java-pkg_dojar ${jar}
|
||||
else
|
||||
# jars used by NQP.
|
||||
doins ${jar}
|
||||
fi
|
||||
done
|
||||
|
||||
# Upstream uses -Xbootclasspath/a, which is faster due to lack
|
||||
# of verification, but gjl isn't flexible enough yet. :(
|
||||
java-pkg_dolauncher ${PN}-j --main ${PN}
|
||||
dosym ${PN}-j /usr/bin/${PN}
|
||||
dobin tools/jvm/eval-client.pl
|
||||
popd > /dev/null || die
|
||||
;;
|
||||
*)
|
||||
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_foreach_variant nqp_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant nqp_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
multibuild_foreach_variant nqp_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multibuild_foreach_variant nqp_install
|
||||
|
||||
dodoc CREDITS README.pod
|
||||
use doc && dodoc -r docs/*
|
||||
}
|
@ -1,159 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2 multibuild
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="java? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
dev-java/jna:4
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-${PV}[clang=] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
|
||||
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
|
||||
ewarn "already being installed. So if it fails, try uninstalling both"
|
||||
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't clean stage0 jars.
|
||||
einfo "Cleaning upstream jars"
|
||||
java-pkg_clean 3rdparty/
|
||||
|
||||
# Don't use jars we just deleted.
|
||||
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
|
||||
src/vm/jvm/runners/nqp-j || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
MULTIBUILD_VARIANTS=()
|
||||
use moar && MULTIBUILD_VARIANTS+=( moar )
|
||||
use java && MULTIBUILD_VARIANTS+=( jvm )
|
||||
|
||||
multibuild_copy_sources
|
||||
|
||||
# This will pull in conditional java_prepare
|
||||
default
|
||||
}
|
||||
|
||||
nqp_configure() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
local myconfargs=(
|
||||
"--backend=${MULTIBUILD_VARIANT}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
nqp_compile() {
|
||||
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
|
||||
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
|
||||
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
nqp_test() {
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
test
|
||||
}
|
||||
|
||||
nqp_install() {
|
||||
# This is the actual reason we need multibuild.eclass.
|
||||
# We need to distinguish the install procedure for MoarVM and JVM backends.
|
||||
case "${MULTIBUILD_VARIANT}" in
|
||||
moar)
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
-C "${BUILD_DIR}" \
|
||||
install
|
||||
;;
|
||||
jvm)
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
# Set JAVA_PKG_JARDEST early.
|
||||
java-pkg_init_paths_
|
||||
|
||||
# Upstream sets the classpath to this location. Perhaps it's
|
||||
# used to locate the additional libraries?
|
||||
java-pkg_addcp "${JAVA_PKG_JARDEST}"
|
||||
|
||||
insinto "${JAVA_PKG_JARDEST}"
|
||||
local jar
|
||||
|
||||
for jar in *.jar; do
|
||||
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
|
||||
# jars for NQP itself.
|
||||
java-pkg_dojar ${jar}
|
||||
else
|
||||
# jars used by NQP.
|
||||
doins ${jar}
|
||||
fi
|
||||
done
|
||||
|
||||
# Upstream uses -Xbootclasspath/a, which is faster due to lack
|
||||
# of verification, but gjl isn't flexible enough yet. :(
|
||||
java-pkg_dolauncher ${PN}-j --main ${PN}
|
||||
dosym ${PN}-j /usr/bin/${PN}
|
||||
dobin tools/jvm/eval-client.pl
|
||||
popd > /dev/null || die
|
||||
;;
|
||||
*)
|
||||
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_foreach_variant nqp_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant nqp_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
multibuild_foreach_variant nqp_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multibuild_foreach_variant nqp_install
|
||||
|
||||
dodoc CREDITS README.pod
|
||||
use doc && dodoc -r docs/*
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
@ -1,9 +1,3 @@
|
||||
DIST rakudo-2018.01.tar.gz 3089785 BLAKE2B 6e74c17b44e489a5a1a60f177290962eac752ad5750dd5d6e64e5a9264d8b6ba7dfe4234087a1b1cbebd3933376b83dd305c3bd255ad39bc81b9c99b8e51b303 SHA512 5030089265f7c4d0bde663eb1d26a0e40ddc9b1dedfd7a350a2238f5136f08abb986d2568c05efe031248ecacdd19888be6e08b954bbeedc03e769d3016b17ea
|
||||
DIST rakudo-2018.02.1.tar.gz 3478957 BLAKE2B 39568af458cc15705db48f607675a7ca4fe2d6430fdaac42e37b7096f0974d42788fa0965ee9da61c2ae56dafb27e3d759007c6600f291a07c0dc50dd1d34638 SHA512 59be2c41e6b1784fb9eaf7590ee77d8424c449d7c58e93c66f3adde5be3fe05260c41c01171c8fb59542b32bb5ee5064e1c9be69efc3e8cb20554b09b10240ea
|
||||
DIST rakudo-2018.02.tar.gz 3478799 BLAKE2B 36f50a38c26e9b96a31d63566337315bed41bdd9b19e3b4e74dcdd1e0b56a060b0fcd7430078250e7e3b45473f7ee08ee0f059f10e1d01a24f0a3f08fe43c158 SHA512 743dbe01c20388e7c0f1af6f8175def283f9c92ac6f2c3b7d8c442c03d5204de8bd12d33f6ee99d75f9c0a171ca96cc2a3438b2ebfa0265d80441b353c64bbc4
|
||||
DIST rakudo-2018.03.tar.gz 3492524 BLAKE2B be2d9fbc8789e78025e18da873873d99872984815a56c0e255487b4250c900e142dbcdb5ce8eede496504401ca37c0e433fb9060fc5f4e8ac0b2778fc35cff62 SHA512 b644f333f6b9501631ee95949017b9e39416311853880a71bc714bb36f2da448fc57147f819d876f6d7ab207c2921474f94e25a4df90c735ba15f270f0c1fd7b
|
||||
DIST rakudo-2018.04.1.tar.gz 3511991 BLAKE2B 9d87e10664ebe59e258e12166bf12390c52a09f32e07adabe30454169016f4ea1649cf215bbb0a093dc5cb332cae9c4adc9cdc87f5276a5006cd84d8c9731b04 SHA512 e57d34c08e32e7ace5ab681f4472409bb9a2eb74361784b4ef43aa1a4b6adeed903219a1810063a10b5c0baf113a9cf88b00c989347c0c395a041a018fd9a626
|
||||
DIST rakudo-2018.04.tar.gz 3512276 BLAKE2B 9d9bb4070a27ce3185c5ebc2627a5f05359d23fc9377954c30edac7f36bbe4089d3b35da0e2ec17a20c155d857219aa962baa058e393bc6690e2ba30731cfa73 SHA512 5a549113583ce94c2606b7aa5fad2089f1ccebd50f503ce0eb24163599ed3aacd26dd876c6ace675798d577b8063ba260c1b4553c382cf4d13041d692a5bdf6a
|
||||
DIST rakudo-2018.05.tar.gz 3515782 BLAKE2B a39df1867bc099dd46262fd29e9f1a9544e995a6383efc438d3e0dd9a7f6d0782a437cfee2220f268d5ce4dd34e6532317f3ecc0693bc82100e328dd5dd7ccbd SHA512 d3514cd46d46ce44eac0e84292504a62669de5b5b053012a36a4c742059d8c2302752a41cd30c20d1b5f11acfdb09b8d855401b0e971e811216899c8b7dd66fc
|
||||
DIST rakudo-2018.06.tar.gz 3520888 BLAKE2B 68d568650aef1dcc4bf84843232db0d8f918684c69d80028acd12846fb913dd9600bed2b42ec55019d752370672de3f2fe81c498ffc892ab03954630a2158ea0 SHA512 574b074b4a2412b4e020906645787b9e57160a9e87c58b73771b1a3732a39a5b961d778d25a8099a8da5e7b3df57b84599df64cd65089a63fe236f3cae06355d
|
||||
DIST rakudo-2018.08.tar.gz 3541161 BLAKE2B af283a2d05b067d1bb8f6f8413dc3f88f2c44b6fcc32a9238b27288de613bd9b56b5e200a72402e3ac5f3189a6fb5a3bc39fa66812663bc5d04f5b047166dc6d SHA512 0d4145cf372843514d4ea23f2f9768b6740b10bf19fca2a1878db3babb9e842599b4134c7cb75be08f9fd15c4f93dc4c73fc9f8bdfe370ec8efb059ed7737459
|
||||
DIST rakudo-2018.09.tar.gz 3547819 BLAKE2B 50f7fb96eba9f03bff2bc455c3f1d19e29338971a9b6f638d1068ef06dca1fd8e1bd25cd3ecae085fad91950314c0a68af8080ae542d052d280f777d7efebe20 SHA512 da00486d64a10c1892949cb243da96e1379570dbc17e4ee2f6b5fc6524e628cec7a1c243f47e0eb211259467c1e95e62ea309474bdcaaf598f945a95a7d1a19c
|
||||
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://rakudo.perl6.org/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://rakudo.perl6.org/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-2018.02:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://rakudo.perl6.org/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://rakudo.perl6.org/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://rakudo.perl6.org/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="https://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://rakudo.perl6.org/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
@ -0,0 +1,176 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils bash-completion-r1 versionator toolchain-funcs
|
||||
|
||||
MY_P="rust-${PV}"
|
||||
|
||||
DESCRIPTION="Systems programming language from Mozilla"
|
||||
HOMEPAGE="https://www.rust-lang.org/"
|
||||
SRC_URI="amd64? ( https://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.xz )
|
||||
arm? (
|
||||
https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabi.tar.xz
|
||||
https://static.rust-lang.org/dist/${MY_P}-arm-unknown-linux-gnueabihf.tar.xz
|
||||
https://static.rust-lang.org/dist/${MY_P}-armv7-unknown-linux-gnueabihf.tar.xz
|
||||
)
|
||||
arm64? ( https://static.rust-lang.org/dist/${MY_P}-aarch64-unknown-linux-gnu.tar.xz )
|
||||
x86? ( https://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.xz )"
|
||||
|
||||
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||
SLOT="stable"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="cargo clippy doc libressl rustfmt"
|
||||
|
||||
CARGO_DEPEND_VERSION="0.$(($(get_version_component_range 2) + 1)).0"
|
||||
|
||||
DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
|
||||
!dev-lang/rust:0
|
||||
cargo? ( !dev-util/cargo )
|
||||
rustfmt? ( !dev-util/rustfmt )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
cargo? (
|
||||
sys-libs/zlib
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
net-libs/libssh2
|
||||
net-libs/http-parser:=
|
||||
net-misc/curl[ssl]
|
||||
)"
|
||||
PDEPEND="!cargo? ( >=dev-util/cargo-${CARGO_DEPEND_VERSION} )"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/${P}/bin/*-${PV}
|
||||
opt/${P}/lib/*.so
|
||||
opt/${P}/lib/rustlib/*/lib/*.so
|
||||
opt/${P}/lib/rustlib/*/lib/*.rlib*
|
||||
"
|
||||
|
||||
pkg_pretend () {
|
||||
if [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv7* ]]; then
|
||||
die "${CHOST} is not supported by upstream Rust. You must use a hard float version."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
local postfix
|
||||
use amd64 && postfix=x86_64-unknown-linux-gnu
|
||||
|
||||
if use arm && [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv6* ]]; then
|
||||
postfix=arm-unknown-linux-gnueabi
|
||||
elif use arm && [[ ${CHOST} == armv6*h* ]]; then
|
||||
postfix=arm-unknown-linux-gnueabihf
|
||||
elif use arm && [[ ${CHOST} == armv7*h* ]]; then
|
||||
postfix=armv7-unknown-linux-gnueabihf
|
||||
fi
|
||||
|
||||
use arm64 && postfix=aarch64-unknown-linux-gnu
|
||||
use x86 && postfix=i686-unknown-linux-gnu
|
||||
mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local std=$(grep 'std' ./components)
|
||||
local components="rustc,${std}"
|
||||
use doc && components="${components},rust-docs"
|
||||
use cargo && components="${components},cargo"
|
||||
use clippy && components="${components},clippy-preview"
|
||||
use rustfmt && components="${components},rustfmt-preview"
|
||||
./install.sh \
|
||||
--components="${components}" \
|
||||
--disable-verify \
|
||||
--prefix="${D}/opt/${P}" \
|
||||
--mandir="${D}/usr/share/${P}/man" \
|
||||
--disable-ldconfig \
|
||||
|| die
|
||||
|
||||
local rustc=rustc-bin-${PV}
|
||||
local rustdoc=rustdoc-bin-${PV}
|
||||
local rustgdb=rust-gdb-bin-${PV}
|
||||
local rustlldb=rust-lldb-bin-${PV}
|
||||
|
||||
mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
|
||||
mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
|
||||
mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
|
||||
mv "${D}/opt/${P}/bin/rust-lldb" "${D}/opt/${P}/bin/${rustlldb}" || die
|
||||
|
||||
dosym "../../opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
|
||||
dosym "../../opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
|
||||
dosym "../../opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
|
||||
dosym "../../opt/${P}/bin/${rustlldb}" "/usr/bin/${rustlldb}"
|
||||
|
||||
if use cargo; then
|
||||
local cargo=cargo-bin-${PV}
|
||||
mv "${D}/opt/${P}/bin/cargo" "${D}/opt/${P}/bin/${cargo}" || die
|
||||
dosym "../../opt/${P}/bin/${cargo}" "/usr/bin/${cargo}"
|
||||
fi
|
||||
if use clippy; then
|
||||
local clippy_driver=clippy-driver-bin-${PV}
|
||||
local cargo_clippy=cargo-clippy-bin-${PV}
|
||||
mv "${D}/opt/${P}/bin/clippy-driver" "${D}/opt/${P}/bin/${clippy_driver}" || die
|
||||
mv "${D}/opt/${P}/bin/cargo-clippy" "${D}/opt/${P}/bin/${cargo_clippy}" || die
|
||||
dosym "../../opt/${P}/bin/${clippy_driver}" "/usr/bin/${clippy_driver}"
|
||||
dosym "../../opt/${P}/bin/${cargo_clippy}" "/usr/bin/${cargo_clippy}"
|
||||
fi
|
||||
if use rustfmt; then
|
||||
local rustfmt=rustfmt-bin-${PV}
|
||||
local cargo_fmt=cargo-fmt-bin-${PV}
|
||||
mv "${D}/opt/${P}/bin/rustfmt" "${D}/opt/${P}/bin/${rustfmt}" || die
|
||||
mv "${D}/opt/${P}/bin/cargo-fmt" "${D}/opt/${P}/bin/${cargo_fmt}" || die
|
||||
dosym "../../opt/${P}/bin/${rustfmt}" "/usr/bin/${rustfmt}"
|
||||
dosym "../../opt/${P}/bin/${cargo_fmt}" "/usr/bin/${cargo_fmt}"
|
||||
fi
|
||||
|
||||
cat <<-EOF > "${T}"/50${P}
|
||||
LDPATH="/opt/${P}/lib"
|
||||
MANPATH="/usr/share/${P}/man"
|
||||
EOF
|
||||
doenvd "${T}"/50${P}
|
||||
|
||||
cat <<-EOF > "${T}/provider-${P}"
|
||||
/usr/bin/rustdoc
|
||||
/usr/bin/rust-gdb
|
||||
/usr/bin/rust-lldb
|
||||
EOF
|
||||
if use cargo; then
|
||||
echo /usr/bin/cargo >> "${T}/provider-${P}"
|
||||
fi
|
||||
if use clippy; then
|
||||
echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
|
||||
echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
|
||||
fi
|
||||
if use rustfmt; then
|
||||
echo /usr/bin/rustfmt >> "${T}/provider-${P}"
|
||||
echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
|
||||
fi
|
||||
dodir /etc/env.d/rust
|
||||
insinto /etc/env.d/rust
|
||||
doins "${T}/provider-${P}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect rust update --if-unset
|
||||
|
||||
elog "Rust installs a helper script for calling GDB now,"
|
||||
elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
|
||||
|
||||
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
|
||||
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||
fi
|
||||
|
||||
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||
elog "install app-vim/rust-vim to get vim support for rust."
|
||||
fi
|
||||
|
||||
if has_version 'app-shells/zsh'; then
|
||||
elog "install app-shells/rust-zshcomp to get zsh completion for rust."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect rust unset --if-invalid
|
||||
}
|
@ -0,0 +1,290 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{5,6} pypy )
|
||||
|
||||
inherit multiprocessing multilib-build python-any-r1 toolchain-funcs versionator
|
||||
|
||||
if [[ ${PV} = *beta* ]]; then
|
||||
betaver=${PV//*beta}
|
||||
BETA_SNAPSHOT="${betaver:0:4}-${betaver:4:2}-${betaver:6:2}"
|
||||
MY_P="rustc-beta"
|
||||
SLOT="beta/${PV}"
|
||||
SRC="${BETA_SNAPSHOT}/rustc-beta-src.tar.xz"
|
||||
KEYWORDS=""
|
||||
else
|
||||
ABI_VER="$(get_version_component_range 1-2)"
|
||||
SLOT="stable/${ABI_VER}"
|
||||
MY_P="rustc-${PV}"
|
||||
SRC="${MY_P}-src.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
CHOST_amd64=x86_64-unknown-linux-gnu
|
||||
CHOST_x86=i686-unknown-linux-gnu
|
||||
CHOST_arm64=aarch64-unknown-linux-gnu
|
||||
|
||||
RUST_STAGE0_VERSION="1.$(($(get_version_component_range 2) - 1)).0"
|
||||
RUST_STAGE0_amd64="rust-${RUST_STAGE0_VERSION}-${CHOST_amd64}"
|
||||
RUST_STAGE0_x86="rust-${RUST_STAGE0_VERSION}-${CHOST_x86}"
|
||||
RUST_STAGE0_arm64="rust-${RUST_STAGE0_VERSION}-${CHOST_arm64}"
|
||||
|
||||
CARGO_DEPEND_VERSION="0.$(($(get_version_component_range 2) + 1)).0"
|
||||
|
||||
DESCRIPTION="Systems programming language from Mozilla"
|
||||
HOMEPAGE="https://www.rust-lang.org/"
|
||||
|
||||
SRC_URI="https://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.xz
|
||||
amd64? ( https://static.rust-lang.org/dist/${RUST_STAGE0_amd64}.tar.xz )
|
||||
x86? ( https://static.rust-lang.org/dist/${RUST_STAGE0_x86}.tar.xz )
|
||||
arm64? ( https://static.rust-lang.org/dist/${RUST_STAGE0_arm64}.tar.xz )
|
||||
"
|
||||
|
||||
ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
|
||||
NVPTX PowerPC Sparc SystemZ X86 XCore )
|
||||
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
|
||||
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
|
||||
|
||||
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||
|
||||
IUSE="cargo clippy debug doc +jemalloc libressl rls rustfmt wasm ${ALL_LLVM_TARGETS[*]}"
|
||||
|
||||
RDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
cargo? (
|
||||
sys-libs/zlib
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
net-libs/libssh2
|
||||
net-libs/http-parser:=
|
||||
net-misc/curl[ssl]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
|| (
|
||||
>=sys-devel/gcc-4.7
|
||||
>=sys-devel/clang-3.5
|
||||
)
|
||||
cargo? ( !dev-util/cargo )
|
||||
rustfmt? ( !dev-util/rustfmt )
|
||||
dev-util/cmake
|
||||
"
|
||||
PDEPEND="!cargo? ( >=dev-util/cargo-${CARGO_DEPEND_VERSION} )"
|
||||
|
||||
REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}-src"
|
||||
|
||||
toml_usex() {
|
||||
usex "$1" true false
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local rust_stage0_root="${WORKDIR}"/rust-stage0
|
||||
|
||||
local rust_stage0_name="RUST_STAGE0_${ARCH}"
|
||||
local rust_stage0="${!rust_stage0_name}"
|
||||
|
||||
"${WORKDIR}/${rust_stage0}"/install.sh --disable-ldconfig --destdir="${rust_stage0_root}" --prefix=/ || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local rust_target="" rust_targets="" rust_target_name arch_cflags
|
||||
|
||||
# Collect rust target names to compile standard libs for all ABIs.
|
||||
for v in $(multilib_get_enabled_abi_pairs); do
|
||||
rust_target_name="CHOST_${v##*.}"
|
||||
rust_targets="${rust_targets},\"${!rust_target_name}\""
|
||||
done
|
||||
if use wasm; then
|
||||
rust_targets="${rust_targets},\"wasm32-unknown-unknown\""
|
||||
fi
|
||||
rust_targets="${rust_targets#,}"
|
||||
|
||||
local extended="false" tools=""
|
||||
if use cargo; then
|
||||
extended="true"
|
||||
tools="\"cargo\","
|
||||
fi
|
||||
if use clippy; then
|
||||
extended="true"
|
||||
tools="\"clippy\",$tools"
|
||||
fi
|
||||
if use rls; then
|
||||
extended="true"
|
||||
tools="\"rls\",\"analysis\",\"src\",$tools"
|
||||
fi
|
||||
if use rustfmt; then
|
||||
extended="true"
|
||||
tools="\"rustfmt\",$tools"
|
||||
fi
|
||||
|
||||
local rust_stage0_root="${WORKDIR}"/rust-stage0
|
||||
|
||||
rust_target_name="CHOST_${ARCH}"
|
||||
rust_target="${!rust_target_name}"
|
||||
|
||||
cat <<- EOF > "${S}"/config.toml
|
||||
[llvm]
|
||||
optimize = $(toml_usex !debug)
|
||||
release-debuginfo = $(toml_usex debug)
|
||||
assertions = $(toml_usex debug)
|
||||
targets = "${LLVM_TARGETS// /;}"
|
||||
[build]
|
||||
build = "${rust_target}"
|
||||
host = ["${rust_target}"]
|
||||
target = [${rust_targets}]
|
||||
cargo = "${rust_stage0_root}/bin/cargo"
|
||||
rustc = "${rust_stage0_root}/bin/rustc"
|
||||
docs = $(toml_usex doc)
|
||||
submodules = false
|
||||
python = "${EPYTHON}"
|
||||
locked-deps = true
|
||||
vendor = true
|
||||
extended = ${extended}
|
||||
tools = [${tools}]
|
||||
[install]
|
||||
prefix = "${EPREFIX}/usr"
|
||||
libdir = "$(get_libdir)"
|
||||
docdir = "share/doc/${P}"
|
||||
mandir = "share/${P}/man"
|
||||
[rust]
|
||||
optimize = $(toml_usex !debug)
|
||||
debuginfo = $(toml_usex debug)
|
||||
debug-assertions = $(toml_usex debug)
|
||||
use-jemalloc = $(toml_usex jemalloc)
|
||||
default-linker = "$(tc-getCC)"
|
||||
channel = "stable"
|
||||
rpath = false
|
||||
lld = $(toml_usex wasm)
|
||||
EOF
|
||||
|
||||
for v in $(multilib_get_enabled_abi_pairs); do
|
||||
rust_target=$(get_abi_CHOST ${v##*.})
|
||||
arch_cflags="$(get_abi_CFLAGS ${v##*.})"
|
||||
|
||||
cat <<- EOF >> "${S}"/config.env
|
||||
CFLAGS_${rust_target}=${arch_cflags}
|
||||
EOF
|
||||
|
||||
cat <<- EOF >> "${S}"/config.toml
|
||||
[target.${rust_target}]
|
||||
cc = "$(tc-getBUILD_CC)"
|
||||
cxx = "$(tc-getBUILD_CXX)"
|
||||
linker = "$(tc-getCC)"
|
||||
ar = "$(tc-getAR)"
|
||||
EOF
|
||||
done
|
||||
|
||||
if use wasm; then
|
||||
cat <<- EOF >> "${S}"/config.toml
|
||||
[target.wasm32-unknown-unknown]
|
||||
linker = "rust-lld"
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
env $(cat "${S}"/config.env)\
|
||||
"${EPYTHON}" ./x.py build --config="${S}"/config.toml -j$(makeopts_jobs) \
|
||||
--exclude src/tools/miri || die # https://github.com/rust-lang/rust/issues/52305
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local rust_target abi_libdir
|
||||
|
||||
env DESTDIR="${D}" "${EPYTHON}" ./x.py install || die
|
||||
|
||||
mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die
|
||||
mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die
|
||||
mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die
|
||||
mv "${D}/usr/bin/rust-lldb" "${D}/usr/bin/rust-lldb-${PV}" || die
|
||||
if use cargo; then
|
||||
mv "${D}/usr/bin/cargo" "${D}/usr/bin/cargo-${PV}" || die
|
||||
fi
|
||||
if use clippy; then
|
||||
mv "${D}/usr/bin/clippy-driver" "${D}/usr/bin/clippy-driver-${PV}" || die
|
||||
mv "${D}/usr/bin/cargo-clippy" "${D}/usr/bin/cargo-clippy-${PV}" || die
|
||||
fi
|
||||
if use rls; then
|
||||
mv "${D}/usr/bin/rls" "${D}/usr/bin/rls-${PV}" || die
|
||||
fi
|
||||
if use rustfmt; then
|
||||
mv "${D}/usr/bin/rustfmt" "${D}/usr/bin/rustfmt-${PV}" || die
|
||||
mv "${D}/usr/bin/cargo-fmt" "${D}/usr/bin/cargo-fmt-${PV}" || die
|
||||
fi
|
||||
|
||||
# Copy shared library versions of standard libraries for all targets
|
||||
# into the system's abi-dependent lib directories because the rust
|
||||
# installer only does so for the native ABI.
|
||||
for v in $(multilib_get_enabled_abi_pairs); do
|
||||
if [ ${v##*.} = ${DEFAULT_ABI} ]; then
|
||||
continue
|
||||
fi
|
||||
abi_libdir=$(get_abi_LIBDIR ${v##*.})
|
||||
rust_target=$(get_abi_CHOST ${v##*.})
|
||||
mkdir -p "${D}/usr/${abi_libdir}"
|
||||
cp "${D}/usr/$(get_libdir)/rustlib/${rust_target}/lib"/*.so \
|
||||
"${D}/usr/${abi_libdir}" || die
|
||||
done
|
||||
|
||||
dodoc COPYRIGHT
|
||||
|
||||
# FIXME:
|
||||
# Really not sure if that env is needed, specailly LDPATH
|
||||
cat <<-EOF > "${T}"/50${P}
|
||||
LDPATH="/usr/$(get_libdir)/${P}"
|
||||
MANPATH="/usr/share/${P}/man"
|
||||
EOF
|
||||
doenvd "${T}"/50${P}
|
||||
|
||||
cat <<-EOF > "${T}/provider-${P}"
|
||||
/usr/bin/rustdoc
|
||||
/usr/bin/rust-gdb
|
||||
/usr/bin/rust-lldb
|
||||
EOF
|
||||
if use cargo; then
|
||||
echo /usr/bin/cargo >> "${T}/provider-${P}"
|
||||
fi
|
||||
if use clippy; then
|
||||
echo /usr/bin/clippy-driver >> "${T}/provider-${P}"
|
||||
echo /usr/bin/cargo-clippy >> "${T}/provider-${P}"
|
||||
fi
|
||||
if use rls; then
|
||||
echo /usr/bin/rls >> "${T}/provider-${P}"
|
||||
fi
|
||||
if use rustfmt; then
|
||||
echo /usr/bin/rustfmt >> "${T}/provider-${P}"
|
||||
echo /usr/bin/cargo-fmt >> "${T}/provider-${P}"
|
||||
fi
|
||||
dodir /etc/env.d/rust
|
||||
insinto /etc/env.d/rust
|
||||
doins "${T}/provider-${P}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect rust update --if-unset
|
||||
|
||||
elog "Rust installs a helper script for calling GDB and LLDB,"
|
||||
elog "for your convenience it is installed under /usr/bin/rust-{gdb,lldb}-${PV}."
|
||||
|
||||
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
|
||||
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||
fi
|
||||
|
||||
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||
elog "install app-vim/rust-vim to get vim support for rust."
|
||||
fi
|
||||
|
||||
if has_version 'app-shells/zsh'; then
|
||||
elog "install app-shells/rust-zshcomp to get zsh completion for rust."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect rust unset --if-invalid
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST cl-1.2.3.tar.gz 137921 BLAKE2B 66e79e60d9e5b16b7ff15ecfbccb928ce293a39ad72b403d885c676cd5eed0d1a08e7359a5f38bdfe22db485aacc314c0956585a04fdf3d2d6c10903b352172e SHA512 aaa19700b1b54921ea8194e1b7fcb2dbb11f22c32108fd99d0cd9796c7524a49653dcc97c8c8b34f7739d0b972cbbc3cf61b929e342429b524b11df93e434863
|
||||
DIST cl-1.2.4.tar.gz 142258 BLAKE2B 28d72842c092ceb81722769136e2282fdf7062f630eae0fb2097f4b2ae0690e41bb96d3fd947186d90b88a68982f5af03bf0cf0f6375304f6a1d05395f018701 SHA512 f7a7f24abf6c374b42f9aa809984c818ac2514d013ff224b3392b2b5df1ba75f2b393ad0bcd822c4118dd0034ed4e815f83041f0b2350ba71def1b33b42e8801
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="OpenCL bindings for Erlang"
|
||||
HOMEPAGE="https://github.com/tonyrog/cl"
|
||||
SRC_URI="${HOMEPAGE}/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/erlang-16
|
||||
virtual/opencl
|
||||
dev-util/rebar
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/${PN}-${P}
|
||||
|
||||
src_compile() {
|
||||
rebar compile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
ERLANG_DIR="/usr/$(get_libdir)/erlang/lib"
|
||||
CL_DIR="${ERLANG_DIR}/${P}"
|
||||
insinto "${CL_DIR}"
|
||||
doins -r ebin src include c_src examples
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST npth-1.3.tar.bz2 295998 BLAKE2B 25c0176439a5be3766df15526b06dd07f318dca8b729eb5ec461a40b912132ebbf7bf6ddb2b57a064bfba73f3fe0ab59c00daf6138324f53f5e9e6df91941bf8 SHA512 97b0278cc9448adb42c4a83b8e7bafeed939acaf3dd3a201a1b103df4e48f24224d4bdaeb97903ad1884914ce363cbceffe948a7c1db4f19abf87ca5964f5699
|
||||
DIST npth-1.4.tar.bz2 299106 BLAKE2B ba5186de1371d08137e86ef1f6ad12a610a26b7ae3ca50d6fc49f685083380803b245acf01110a28ab25427208bab82de73f16d6f21011b1a0590d16c7c85cf7 SHA512 649009b4fbd2bbbb8fce2911c2f9070a758d037be0d147a63754e3c1f5a9ffb73b907cd09c79314fe60c25084ca7a7b3b387139dd83cc0e11a7e7ba64630ae1f
|
||||
DIST npth-1.5.tar.bz2 299308 BLAKE2B 1a3cef4475ad5440487151026889ef321626b372d1c6970c7482df92a702d02860589f7f1f541b1fccf0e8f39b194476ef91507e33a35e05ba3713465f9f11d1 SHA512 20f0ec59d304c68081e42535870af8e76c18e30aa7b04ccdafe60fe5261ad7275c2c0e3ea3a767d6145258a3a39fa641032cd97205318266dd727a5fe7ee331a
|
||||
DIST npth-1.6.tar.bz2 300486 BLAKE2B 665fdb2f4cbe59750b6b4b7c2701ee80a23a122df10c9f8be47c4af5f3bf5968f709637ab3f4878bb68609752fbb6ce1364e109fdfeba64e4db258733a33f3fc SHA512 2ed1012e14a9d10665420b9a23628be7e206fd9348111ec751349b93557ee69f1176bcf7e6b195b35b1c44a5e0e81ee33b713f03d79a33d1ecd9037035afeda2
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit libtool
|
||||
|
||||
DESCRIPTION="New GNU Portable Threads Library"
|
||||
HOMEPAGE="https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git"
|
||||
SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~amd64-fbsd"
|
||||
IUSE="static-libs"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize # for Solaris shared library
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue