parent
00a6e83401
commit
8deb036505
Binary file not shown.
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST eselect-1.4.15.tar.xz 178996 BLAKE2B 4354d975c8af2e1de0f0c6efe2badc92584e947f9b73c05aac144caf8f9d74c850d366c7c225112322a504262b5f285f6e2e8d32223f1b2d4bac87db740a148c SHA512 ceb55fecc2bf70e816679af9b20653b29aa9ce24ca2d4cd0c6e02ab214689459bc2ccd5b3968ac49249b8fb6613c6055e7e76598b86c6a114a9abf847c4a2b58
|
|
||||||
DIST eselect-1.4.16.tar.xz 178660 BLAKE2B dae97ee324cb67983c5395b5dc54c4b84d2da43f6a0c5c8ab81ff402ab211e9d1f1d3fe5c174b130ac1e11d3dd19e3812056274145415ee029e649cda880cd95 SHA512 264fb6122f5f7c9e73bb2250a94c3c0377e5263e2e5ae653ed58e08ebf6ed1b4aa165ae5c1d70b0156081c4db5672d1ec9d379782919d5b40a2f3e862378ce62
|
DIST eselect-1.4.16.tar.xz 178660 BLAKE2B dae97ee324cb67983c5395b5dc54c4b84d2da43f6a0c5c8ab81ff402ab211e9d1f1d3fe5c174b130ac1e11d3dd19e3812056274145415ee029e649cda880cd95 SHA512 264fb6122f5f7c9e73bb2250a94c3c0377e5263e2e5ae653ed58e08ebf6ed1b4aa165ae5c1d70b0156081c4db5672d1ec9d379782919d5b40a2f3e862378ce62
|
||||||
DIST eselect-1.4.17.tar.xz 178980 BLAKE2B d905ac88bc009080912af75e64c7920d745788866fa3cb35466d68a652efbbd6984d6e1efeed76d9a344aed94705b74c85aa43e9c037d4d548d2e24afa69bd7a SHA512 35dc4c52f44c4f64db9c0dc2aec57b3055a6d36760b1bbbd094ad11b3f9e71a731444802632817b89c3b511f1dc9bb92046b59322d177e13fdc501ed767b591e
|
DIST eselect-1.4.17.tar.xz 178980 BLAKE2B d905ac88bc009080912af75e64c7920d745788866fa3cb35466d68a652efbbd6984d6e1efeed76d9a344aed94705b74c85aa43e9c037d4d548d2e24afa69bd7a SHA512 35dc4c52f44c4f64db9c0dc2aec57b3055a6d36760b1bbbd094ad11b3f9e71a731444802632817b89c3b511f1dc9bb92046b59322d177e13fdc501ed767b591e
|
||||||
|
@ -1,60 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit bash-completion-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
|
|
||||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect"
|
|
||||||
SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-3.0 )"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="doc emacs vim-syntax"
|
|
||||||
|
|
||||||
RDEPEND="sys-apps/sed
|
|
||||||
|| (
|
|
||||||
sys-apps/coreutils
|
|
||||||
app-misc/realpath
|
|
||||||
)"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
doc? ( dev-python/docutils )"
|
|
||||||
RDEPEND="${RDEPEND}
|
|
||||||
sys-apps/file
|
|
||||||
sys-libs/ncurses:0"
|
|
||||||
|
|
||||||
PDEPEND="emacs? ( app-emacs/eselect-mode )
|
|
||||||
vim-syntax? ( app-vim/eselect-syntax )"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake
|
|
||||||
use doc && emake html
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install
|
|
||||||
newbashcomp misc/${PN}.bashcomp ${PN}
|
|
||||||
dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
|
|
||||||
if use doc; then
|
|
||||||
docinto html
|
|
||||||
dodoc *.html doc/*.html doc/*.css
|
|
||||||
fi
|
|
||||||
|
|
||||||
# needed by news module
|
|
||||||
keepdir /var/lib/gentoo/news
|
|
||||||
if ! use prefix; then
|
|
||||||
fowners root:portage /var/lib/gentoo/news
|
|
||||||
fperms g+w /var/lib/gentoo/news
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# fowners in src_install doesn't work for the portage group:
|
|
||||||
# merging changes the group back to root
|
|
||||||
if ! use prefix; then
|
|
||||||
chgrp portage "${EROOT}/var/lib/gentoo/news" \
|
|
||||||
&& chmod g+w "${EROOT}/var/lib/gentoo/news"
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
DIST eselect-1.4.15.tar.xz 178996 BLAKE2B 4354d975c8af2e1de0f0c6efe2badc92584e947f9b73c05aac144caf8f9d74c850d366c7c225112322a504262b5f285f6e2e8d32223f1b2d4bac87db740a148c SHA512 ceb55fecc2bf70e816679af9b20653b29aa9ce24ca2d4cd0c6e02ab214689459bc2ccd5b3968ac49249b8fb6613c6055e7e76598b86c6a114a9abf847c4a2b58
|
|
||||||
DIST eselect-1.4.16.tar.xz 178660 BLAKE2B dae97ee324cb67983c5395b5dc54c4b84d2da43f6a0c5c8ab81ff402ab211e9d1f1d3fe5c174b130ac1e11d3dd19e3812056274145415ee029e649cda880cd95 SHA512 264fb6122f5f7c9e73bb2250a94c3c0377e5263e2e5ae653ed58e08ebf6ed1b4aa165ae5c1d70b0156081c4db5672d1ec9d379782919d5b40a2f3e862378ce62
|
DIST eselect-1.4.16.tar.xz 178660 BLAKE2B dae97ee324cb67983c5395b5dc54c4b84d2da43f6a0c5c8ab81ff402ab211e9d1f1d3fe5c174b130ac1e11d3dd19e3812056274145415ee029e649cda880cd95 SHA512 264fb6122f5f7c9e73bb2250a94c3c0377e5263e2e5ae653ed58e08ebf6ed1b4aa165ae5c1d70b0156081c4db5672d1ec9d379782919d5b40a2f3e862378ce62
|
||||||
|
DIST eselect-1.4.17.tar.xz 178980 BLAKE2B d905ac88bc009080912af75e64c7920d745788866fa3cb35466d68a652efbbd6984d6e1efeed76d9a344aed94705b74c85aa43e9c037d4d548d2e24afa69bd7a SHA512 35dc4c52f44c4f64db9c0dc2aec57b3055a6d36760b1bbbd094ad11b3f9e71a731444802632817b89c3b511f1dc9bb92046b59322d177e13fdc501ed767b591e
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,4 @@
|
|||||||
DIST chkrootkit-0.53-gentoo.diff.xz 4844 BLAKE2B b4f0077989e032154f190f6bad98e8882390a2ac7e144a2c755fbeb560c809c8289563e57dd8fda23eca07dcb1b3e59d6fb016e72ecbb29d184fdf8feb4949d0 SHA512 664c203b093fb91963bae8f70d5711dfd0023c789ddd4265031c84f91f01a53b3b28757cd08b8633c3f6c184a257616b05bc12d8c84202ff98db523aaff5a6f3
|
DIST chkrootkit-0.53-gentoo.diff.xz 4844 BLAKE2B b4f0077989e032154f190f6bad98e8882390a2ac7e144a2c755fbeb560c809c8289563e57dd8fda23eca07dcb1b3e59d6fb016e72ecbb29d184fdf8feb4949d0 SHA512 664c203b093fb91963bae8f70d5711dfd0023c789ddd4265031c84f91f01a53b3b28757cd08b8633c3f6c184a257616b05bc12d8c84202ff98db523aaff5a6f3
|
||||||
DIST chkrootkit-0.53.tar.gz 40483 BLAKE2B ee78afc5bb5453fe7b30d966988060a68b7286fce0f87fb76d8ea3b1dd548c287c8bfc6f0772e05e6eee362af873148399a0a8af91d48765e542970dc3149c9d SHA512 f8de19d0a61ccb6ac184ad6642d78041729cba799eedcc8088cb6d2c5cf4de0574c6083caad364576a601265322e61c183b266304f00667527bf29fdc51359c7
|
DIST chkrootkit-0.53.tar.gz 40483 BLAKE2B ee78afc5bb5453fe7b30d966988060a68b7286fce0f87fb76d8ea3b1dd548c287c8bfc6f0772e05e6eee362af873148399a0a8af91d48765e542970dc3149c9d SHA512 f8de19d0a61ccb6ac184ad6642d78041729cba799eedcc8088cb6d2c5cf4de0574c6083caad364576a601265322e61c183b266304f00667527bf29fdc51359c7
|
||||||
|
DIST chkrootkit-0.54-gentoo.diff.xz 4848 BLAKE2B 25d1736bb839533fae36550518b311e52bb38f8a562a63d40629789dc9497b6e71dbc306d1f845b6a5cd586468afa6a7ac4ce8b6f1bfb40d7ac9b0331a55def9 SHA512 6c972b081794681b61b7c67f9a5762ba5d2c0c731c9a2bf9f75e715984edf7022ddcd44d34803eacb58a59e8b21932ffb586cc9fb7998a43393367c2530e353e
|
||||||
|
DIST chkrootkit-0.54.tar.gz 41461 BLAKE2B 61384fda7db08ca2a52ab060ee4ea3edb7311cb9908599a511459dac22340f28e75d732b10d827aaeed89a1ecb6fc7f69ab8fef970aae5a73bae8c7949944831 SHA512 fe8955ac33abaabf304f5580b6f12929f8bf02329ab442380eaa6298440cf1cb0eee2db8e5667ea7d78b89ee2bceb82c10ebb732a71d6bcdda9400569cd587fd
|
||||||
|
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
GENTOO_PATCH="${PN}-0.54-gentoo.diff"
|
||||||
|
|
||||||
|
DESCRIPTION="Tool to locally check for signs of a rootkit"
|
||||||
|
HOMEPAGE="http://www.chkrootkit.org/"
|
||||||
|
SRC_URI="ftp://ftp.pangeia.com.br/pub/seg/pac/${P}.tar.gz
|
||||||
|
https://dev.gentoo.org/~polynomial-c/${GENTOO_PATCH}.xz"
|
||||||
|
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||||||
|
IUSE="+cron"
|
||||||
|
|
||||||
|
RDEPEND="cron? ( virtual/cron )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${WORKDIR}/${GENTOO_PATCH}"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -e 's:/var/adm/:/var/log/:g' \
|
||||||
|
-i chklastlog.c || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CC="$(tc-getCC)" STRIP=true sense
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dosbin chkdirs chklastlog chkproc chkrootkit chkwtmp chkutmp ifpromisc strings-static
|
||||||
|
dodoc ACKNOWLEDGMENTS README*
|
||||||
|
|
||||||
|
if use cron ; then
|
||||||
|
exeinto /etc/cron.weekly
|
||||||
|
newexe "${FILESDIR}"/${PN}.cron ${PN}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use cron ; then
|
||||||
|
elog
|
||||||
|
elog "Edit /etc/cron.weekly/chkrootkit to activate chkrootkit!"
|
||||||
|
elog
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "Some applications, such as portsentry, will cause chkrootkit"
|
||||||
|
elog "to produce false positives. Read the chkrootkit FAQ at"
|
||||||
|
elog "http://www.chkrootkit.org/ for more information."
|
||||||
|
elog
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
DIST lynis-3.0.1.tar.gz 322638 BLAKE2B b0a6b03351af95e766321164fab34c7eb8314f18747d3df87946e379781970253406132a1674236a39879374ecc559489679d34ef3368d74faf98b0f44425293 SHA512 e237984b404752bd0856e1cbb884d0191a1177023780d9d0f885538846e419fcb75302a33320ba41e5895cabca0ead094e1c49865677906e547e255b4f5aab41
|
DIST lynis-3.0.2.tar.gz 330490 BLAKE2B 824ab760aedff00c39632431ecd60cfb7c784e1c944fa7e54830a56e87c605dcb697cdd7d34fcc1a91d876e5170350b66296dbb51f4734b6881820d59535bfe8 SHA512 a23207a1f227f723b3f7a1d46ac84b3cc14b0ac1a9727f57ca3f6f112d1b62ade6e6f21983fb74570aa1209bce8c7b8395f91245309d616c22cd245103028031
|
||||||
|
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST pax-utils-1.2.6.tar.xz 680696 BLAKE2B b271e19ed5ec1024d7c6e5723c12464c6ab07646dfbfd4738bfe0250629205051642421425d7c7c5f540b1ac3d100c13d1beca398d9766f7f477830ab128eef2 SHA512 59fe16c5573414aa2952a99c5b85c16cf10dbbee76943f263d31d5b1aa8818a9b00fa78c8b6dadbe02216de54fc32b26d80303a17e2d854de6bb9dd8b431f617
|
DIST pax-utils-1.2.6.tar.xz 680696 BLAKE2B b271e19ed5ec1024d7c6e5723c12464c6ab07646dfbfd4738bfe0250629205051642421425d7c7c5f540b1ac3d100c13d1beca398d9766f7f477830ab128eef2 SHA512 59fe16c5573414aa2952a99c5b85c16cf10dbbee76943f263d31d5b1aa8818a9b00fa78c8b6dadbe02216de54fc32b26d80303a17e2d854de6bb9dd8b431f617
|
||||||
DIST pax-utils-1.2.7.tar.xz 689680 BLAKE2B 9d7dd0aeaecc10edf1dc70acef1561e3984b9d4f30f2ff54b27cdd91fb88d194e6f1bb9b2b01064a25a1842855dfe4f448f7267d69bbed0102a854635b5829aa SHA512 e3bbe7fe0cf7c1607218187f272edad3652a55317a620905b76bba5bc9617f31b8eced6760f353b4558e7b118664c3df5c6d97c78b653f8d4636f094b96307f8
|
|
||||||
DIST pax-utils-1.2.8.tar.xz 704804 BLAKE2B b64b50f985320618e10528aaddbeee9a2c86b05724d8564342fc78fd8bd31a84f3cfe5e6051b3b8a1a882bb0b3da586ca351b6fdda0fd6168930e8e4a44806cb SHA512 c211defb72921a6dfa950173bef7ef6bc5ac059dbb394a82d2b2455d082843fc7722a6819f37aa39033bd37a5a77880f193f8be550020320e87ce5becfa6e5bf
|
DIST pax-utils-1.2.8.tar.xz 704804 BLAKE2B b64b50f985320618e10528aaddbeee9a2c86b05724d8564342fc78fd8bd31a84f3cfe5e6051b3b8a1a882bb0b3da586ca351b6fdda0fd6168930e8e4a44806cb SHA512 c211defb72921a6dfa950173bef7ef6bc5ac059dbb394a82d2b2455d082843fc7722a6819f37aa39033bd37a5a77880f193f8be550020320e87ce5becfa6e5bf
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
|
||||||
|
|
||||||
inherit eutils python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
|
||||||
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
|
||||||
https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="caps debug kernel_linux python seccomp"
|
|
||||||
|
|
||||||
RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
|
|
||||||
python? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/pyelftools[${PYTHON_MULTI_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
seccomp? ( sys-libs/libseccomp )
|
|
||||||
"
|
|
||||||
# >=linux-headers-4.11 to pick linux headers with statx, bug #737094
|
|
||||||
DEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
kernel_linux? ( !prefix-guest? ( >=sys-kernel/linux-headers-4.11 ) )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
caps? ( virtual/pkgconfig )
|
|
||||||
seccomp? ( virtual/pkgconfig )
|
|
||||||
"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
_emake() {
|
|
||||||
emake \
|
|
||||||
USE_CAP=$(usex caps) \
|
|
||||||
USE_DEBUG=$(usex debug) \
|
|
||||||
USE_PYTHON=$(usex python) \
|
|
||||||
USE_SECCOMP=$(usex seccomp) \
|
|
||||||
"$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if use python; then
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Avoid slow configure+gnulib+make if on an up-to-date Linux system
|
|
||||||
if use prefix || ! use kernel_linux ||
|
|
||||||
has_version '<sys-libs/glibc-2.10'
|
|
||||||
then
|
|
||||||
econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp)
|
|
||||||
else
|
|
||||||
tc-export CC PKG_CONFIG
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
_emake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
_emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
_emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install
|
|
||||||
|
|
||||||
use python && python_fix_shebang "${ED}"/usr/bin/lddtree
|
|
||||||
}
|
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST dash-0.5.11.2.tar.gz 244475 BLAKE2B 4edc85a70af62684b29fec7fd9c599aaade38ffcfb62b873dd149c4ada9e750f24cddf9a390c512313bc7dde67cab3d7b57776c92fe5f8e08bf8bdc164a4e5ec SHA512 2f846c26f3722ea3315aae73461f9c21a0a8a9ac712e1caf8dd9993e34729227c7648bf6f72fad8488247986e560298f95aa2411bd4e395410565c0b527b9db4
|
DIST dash-0.5.11.2.tar.gz 244475 BLAKE2B 4edc85a70af62684b29fec7fd9c599aaade38ffcfb62b873dd149c4ada9e750f24cddf9a390c512313bc7dde67cab3d7b57776c92fe5f8e08bf8bdc164a4e5ec SHA512 2f846c26f3722ea3315aae73461f9c21a0a8a9ac712e1caf8dd9993e34729227c7648bf6f72fad8488247986e560298f95aa2411bd4e395410565c0b527b9db4
|
||||||
|
DIST dash-0.5.11.3.tar.gz 244507 BLAKE2B 06d4bd9f4c93e76ddf895f5a0ebca0c18d9554f5d4fd30a948eafc862db0f4cd523f623dad75969ddb5f510ac85d174f3b3aac3726f9d3ca8fbdb4377715b244 SHA512 ffe69b8de3586aba298d936168c329524e385252e12979aa1db28761e882048eb5a80673e93a2a2227f61b52fd8b56546b78c5db9c21a022072f536267f8bc20
|
||||||
|
@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit flag-o-matic toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Debian Almquist Shell"
|
||||||
|
HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/"
|
||||||
|
SRC_URI="http://gondor.apana.org.au/~herbert/dash/files/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="libedit static"
|
||||||
|
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
libedit? ( static? ( dev-libs/libedit[static-libs] ) )"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Fix the invalid sort
|
||||||
|
sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
|
||||||
|
|
||||||
|
# Use pkg-config for libedit linkage
|
||||||
|
sed -i \
|
||||||
|
-e "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(usex static --static '')\`:" \
|
||||||
|
configure || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||||
|
# don't redefine stat, open, dirent, etc. on Solaris
|
||||||
|
export ac_cv_func_stat64=yes
|
||||||
|
export ac_cv_func_open64=yes
|
||||||
|
|
||||||
|
# if your headers strictly adhere to POSIX, you'll need this too
|
||||||
|
[[ ${CHOST##*solaris2.} -le 10 ]] && append-cppflags -DNAME_MAX=255
|
||||||
|
fi
|
||||||
|
if [[ ${CHOST} == powerpc-*-darwin* ]] ; then
|
||||||
|
sed -i -e 's/= stpncpy(s, \([^,]\+\), \([0-9]\+\))/+= snprintf(s, \2, "%s", \1)/' \
|
||||||
|
src/jobs.c || die
|
||||||
|
fi
|
||||||
|
append-cppflags -DJOBS=$(usex libedit 1 0)
|
||||||
|
use static && append-ldflags -static
|
||||||
|
# Do not pass --enable-glob due to #443552.
|
||||||
|
local myeconfargs=(
|
||||||
|
CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||||
|
--bindir="${EPREFIX}"/bin
|
||||||
|
--enable-fnmatch
|
||||||
|
$(use_with libedit)
|
||||||
|
)
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,13 @@
|
|||||||
|
Unnecessary (the linker gets the right library from pkgconfig anyway)
|
||||||
|
and breaks slotted Lua. See Bug #761511 for details.
|
||||||
|
|
||||||
|
--- a/src/gui-qt/highlight.pro
|
||||||
|
+++ b/src/gui-qt/highlight.pro
|
||||||
|
@@ -39,7 +39,6 @@
|
||||||
|
unix {
|
||||||
|
DESTDIR = ../
|
||||||
|
LIBS += -L.. -lhighlight
|
||||||
|
- LIBS += -llua
|
||||||
|
CONFIG += link_pkgconfig
|
||||||
|
PKGCONFIG += lua
|
||||||
|
|
Binary file not shown.
@ -1,5 +1,2 @@
|
|||||||
DIST pgadmin4-4.17.tar.gz 28007097 BLAKE2B d296f2b9372c23067db899fa82e1b8e732837b01a6172dd2d70520f815aafde161715eea9d9d53e7507a6a715dbfdaabf001a10d143c1aa0505237b2b138e334 SHA512 f9e292ba7ff1e5edaa8738188eb01744d69d0eb134700feb0623806425c998e7f298f74cd498a09f2d9a073a9a349c82f7a3f617e1da3c8dd757cc982d941c9f
|
|
||||||
DIST pgadmin4-4.25.tar.gz 33167393 BLAKE2B 5a40e45c53f79ea66c6f685d1605ddce7b1758540bf3a6863d4b092cc4dab5b00daff15832cd6feee28aa348c7a5376e25a93508fd348d8ffd4d29031e2b6c68 SHA512 a1944f9c65b8aa7ec5bd83ef75702293d869ae341ea73f81fb4358bfbc7f91a6981237eb9f1b20055c5f3fa182428afe19dc170963265789c34d73f2e240c268
|
|
||||||
DIST pgadmin4-4.26.tar.gz 33525278 BLAKE2B 2a4061f59299bc48b029a4a93f410538170b6c3d97597074d2b3b6eed1de0f9a1ac88bc187614d9e46d8fe872941f173ba0f0a02def590451dad09e6a3b78e5a SHA512 952a4771f80541c54234fcaa9c870283fdf4887246d0d9751a77c28340b7e39ba871141f230086efda9a274d5e6bd567305047cdc7edf766ccd41112281fdf94
|
DIST pgadmin4-4.26.tar.gz 33525278 BLAKE2B 2a4061f59299bc48b029a4a93f410538170b6c3d97597074d2b3b6eed1de0f9a1ac88bc187614d9e46d8fe872941f173ba0f0a02def590451dad09e6a3b78e5a SHA512 952a4771f80541c54234fcaa9c870283fdf4887246d0d9751a77c28340b7e39ba871141f230086efda9a274d5e6bd567305047cdc7edf766ccd41112281fdf94
|
||||||
DIST pgadmin4-4.28.tar.gz 35386627 BLAKE2B 6cbee6ccadf3b35e1b0aece2e8fc4b9e35dd04ed70436a3b74d69c09e887499c3a2ab8710d16df3327cd848c3c5ee1fac2cde06facbdc5605673b04a4a4fc434 SHA512 b9e8946e8133b382b9d69126c1ec6fc07a4b2051316c2151c339f15652900fa2bdf0a07811e052548c3f8699e382d8c16d187e89409b194e491148123558522e
|
|
||||||
DIST pgadmin4-4.29.tar.gz 35389494 BLAKE2B faaa84c0eee9c92ba483f4adffaf9e39e0c5f8ea21630a9ee8fad62aa833c88aa913df50c760be740afa0696aa1fbf1b6902a8b5bfd322822472f7d2dcb295e1 SHA512 2c7d20d10c96712f41621c2862a6a6222f6d6dad4a0b3e1aaf04744e65744460dcae4220f61b27785e02c82a624fa0793df2ea9d8e83ac0a6de048455929e615
|
DIST pgadmin4-4.29.tar.gz 35389494 BLAKE2B faaa84c0eee9c92ba483f4adffaf9e39e0c5f8ea21630a9ee8fad62aa833c88aa913df50c760be740afa0696aa1fbf1b6902a8b5bfd322822472f7d2dcb295e1 SHA512 2c7d20d10c96712f41621c2862a6a6222f6d6dad4a0b3e1aaf04744e65744460dcae4220f61b27785e02c82a624fa0793df2ea9d8e83ac0a6de048455929e615
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
diff -uprb pgadmin4-4.13.orig/runtime/pgAdmin4.pro pgadmin4-4.13/runtime/pgAdmin4.pro
|
|
||||||
--- a/runtime/pgAdmin4.pro 2019-10-16 10:07:59.000000000 +0300
|
|
||||||
+++ b/runtime/pgAdmin4.pro 2019-11-05 18:33:18.524516120 +0200
|
|
||||||
@@ -75,7 +75,7 @@ else {
|
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += $$system($$PYTHON_CONFIG --includes)
|
|
||||||
QMAKE_LFLAGS += $$system($$PYTHON_CONFIG --ldflags)
|
|
||||||
- LIBS += $$system($$PYTHON_CONFIG --libs)
|
|
||||||
+ LIBS += $$system(PYTHON_LIBS=`$$PYTHON_CONFIG --libs --embed` || PYTHON_LIBS=`$$PYTHON_CONFIG --libs`; echo $PYTHON_LIBS)
|
|
||||||
|
|
||||||
contains( LIBS, -lpython2.* ) {
|
|
||||||
DEFINES += PYTHON2
|
|
@ -1,120 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
||||||
PYTHON_REQ_USE="sqlite"
|
|
||||||
inherit desktop python-single-r1 qmake-utils xdg
|
|
||||||
|
|
||||||
DESCRIPTION="GUI administration and development platform for PostgreSQL"
|
|
||||||
HOMEPAGE="https://www.pgadmin.org/"
|
|
||||||
SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="POSTGRESQL"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
# libsodium dep added because of 689678
|
|
||||||
COMMON_DEPEND="${PYTHON_DEPS}
|
|
||||||
dev-libs/libsodium[-minimal]
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtnetwork:5[ssl]
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
doc? (
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
virtual/imagemagick-tools[png]
|
|
||||||
"
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
>=app-text/htmlmin-0.1.12[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/blinker-1.4[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-1.0.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-gravatar-0.5.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-htmlmin-1.5.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-login-0.4.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-mail-0.9.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-migrate-2.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-paranoid-0.2.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-principal-0.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-security-3.0.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-wtf-0.14.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/passlib-1.7.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/psutil-5.5.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/psycopg-2.8[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/python-dateutil-2.8.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/pytz-2018.9[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/simplejson-3.16.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/six-1.12.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/speaklater-1.3[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sqlalchemy-1.2.18[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sqlparse-0.2.4[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sshtunnel-0.1.4[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/wtforms-2.2.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
')
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${P}-python-3.8.patch )
|
|
||||||
|
|
||||||
S="${WORKDIR}"/${P}/runtime
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "${WORKDIR}"/${P} || die
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
eqmake5
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
default
|
|
||||||
use doc && emake -C "${WORKDIR}"/${P} docs
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin pgAdmin4
|
|
||||||
|
|
||||||
cd "${WORKDIR}"/${P} || die
|
|
||||||
|
|
||||||
local APP_DIR=/usr/share/${PN}/web
|
|
||||||
insinto "${APP_DIR}"
|
|
||||||
doins -r web/.
|
|
||||||
newins - config_local.py <<-EOF
|
|
||||||
SERVER_MODE = False
|
|
||||||
UPGRADE_CHECK_ENABLED = False
|
|
||||||
EOF
|
|
||||||
python_optimize "${D}${APP_DIR}"
|
|
||||||
|
|
||||||
insinto /etc/xdg/pgadmin
|
|
||||||
newins - pgadmin4.conf <<-EOF
|
|
||||||
[General]
|
|
||||||
ApplicationPath=${APP_DIR}
|
|
||||||
PythonPath=$(python_get_sitedir)
|
|
||||||
EOF
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
rm -r docs/en_US/_build/html/_sources || die
|
|
||||||
insinto /usr/share/${PN}/docs/en_US/_build
|
|
||||||
doins -r docs/en_US/_build/html
|
|
||||||
fi
|
|
||||||
|
|
||||||
local s
|
|
||||||
for s in 16 32 48 64 72 96 128 192 256; do
|
|
||||||
convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die
|
|
||||||
newicon -s ${s} ${PN}_${s}.png ${PN}.png
|
|
||||||
done
|
|
||||||
domenu "${FILESDIR}"/${PN}.desktop
|
|
||||||
}
|
|
@ -1,124 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
||||||
PYTHON_REQ_USE="sqlite"
|
|
||||||
inherit desktop python-single-r1 qmake-utils xdg
|
|
||||||
|
|
||||||
DESCRIPTION="GUI administration and development platform for PostgreSQL"
|
|
||||||
HOMEPAGE="https://www.pgadmin.org/"
|
|
||||||
SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="POSTGRESQL"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
# libsodium dep added because of 689678
|
|
||||||
COMMON_DEPEND="${PYTHON_DEPS}
|
|
||||||
dev-libs/libsodium[-minimal]
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtnetwork:5[ssl]
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
doc? (
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
virtual/imagemagick-tools[png]
|
|
||||||
"
|
|
||||||
|
|
||||||
# In 4.25's requirement.txt, bcrypt is listed as <=3.17, but upstream's
|
|
||||||
# git history shows this is just for compatibility with <python-3.6.
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
>=dev-python/blinker-1.4[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-1.0.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-compress-1.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-gravatar-0.5.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-login-0.4.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-mail-0.9.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-migrate-2.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-paranoid-0.2.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-principal-0.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-security-3.0.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-sqlalchemy-2.3.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-wtf-0.14.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/ldap3-2.5.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/passlib-1.7.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/psutil-5.7.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/psycopg-2.8[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/python-dateutil-2.8.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/pytz-2018.9[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/simplejson-3.16.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/six-1.12.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/speaklater-1.3[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sqlalchemy-1.3.13[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sqlparse-0.2.4[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sshtunnel-0.1.5[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/werkzeug-0.15.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/wtforms-2.2.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
dev-python/bcrypt[${PYTHON_MULTI_USEDEP}]
|
|
||||||
')
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}"/${P}/runtime
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "${WORKDIR}"/${P} || die
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export PGADMIN_PYTHON_DIR="${EPREFIX}/usr"
|
|
||||||
eqmake5
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
default
|
|
||||||
use doc && emake -C "${WORKDIR}"/${P} docs
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin pgAdmin4
|
|
||||||
|
|
||||||
cd "${WORKDIR}"/${P} || die
|
|
||||||
|
|
||||||
local APP_DIR=/usr/share/${PN}/web
|
|
||||||
insinto "${APP_DIR}"
|
|
||||||
doins -r web/.
|
|
||||||
newins - config_local.py <<-EOF
|
|
||||||
SERVER_MODE = False
|
|
||||||
UPGRADE_CHECK_ENABLED = False
|
|
||||||
EOF
|
|
||||||
python_optimize "${D}${APP_DIR}"
|
|
||||||
|
|
||||||
insinto /etc/xdg/pgadmin
|
|
||||||
newins - pgadmin4.conf <<-EOF
|
|
||||||
[General]
|
|
||||||
ApplicationPath=${APP_DIR}
|
|
||||||
PythonPath=$(python_get_sitedir)
|
|
||||||
EOF
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
rm -r docs/en_US/_build/html/_sources || die
|
|
||||||
insinto /usr/share/${PN}/docs/en_US/_build
|
|
||||||
doins -r docs/en_US/_build/html
|
|
||||||
fi
|
|
||||||
|
|
||||||
local s
|
|
||||||
for s in 16 32 48 64 72 96 128 192 256; do
|
|
||||||
convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die
|
|
||||||
newicon -s ${s} ${PN}_${s}.png ${PN}.png
|
|
||||||
done
|
|
||||||
domenu "${FILESDIR}"/${PN}.desktop
|
|
||||||
}
|
|
@ -1,130 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
||||||
PYTHON_REQ_USE="sqlite"
|
|
||||||
inherit desktop python-single-r1 qmake-utils xdg
|
|
||||||
|
|
||||||
DESCRIPTION="GUI administration and development platform for PostgreSQL"
|
|
||||||
HOMEPAGE="https://www.pgadmin.org/"
|
|
||||||
SRC_URI="https://ftp.postgresql.org/pub/pgadmin/${PN}/v${PV}/source/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="POSTGRESQL"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="doc"
|
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
# libsodium dep added because of 689678
|
|
||||||
COMMON_DEPEND="${PYTHON_DEPS}
|
|
||||||
dev-libs/libsodium[-minimal]
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtnetwork:5[ssl]
|
|
||||||
dev-qt/qtwidgets:5
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEPEND}
|
|
||||||
doc? (
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
virtual/imagemagick-tools[png]
|
|
||||||
"
|
|
||||||
|
|
||||||
# In 4.25's requirement.txt, bcrypt is listed as <=3.17, but upstream's
|
|
||||||
# git history shows this is just for compatibility with <python-3.6.
|
|
||||||
# In 4.26's requirement.txt, cryptography is listed as <=3.0, but upstream's
|
|
||||||
# git history shows this is just for compatibility with Windows.
|
|
||||||
# 4.28; requirement.txt: Flask-Security was renamed to
|
|
||||||
# Flask-Security-Too. This is still the same dev-python/flask-security.
|
|
||||||
RDEPEND="${COMMON_DEPEND}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
>=dev-python/blinker-1.4[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-1.0.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-compress-1.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-gravatar-0.5.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-login-0.4.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-mail-0.9.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-migrate-2.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-paranoid-0.2.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-principal-0.4.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-security-3.0.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-sqlalchemy-2.4.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/flask-wtf-0.14.3[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/ldap3-2.5.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/passlib-1.7.2[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/psutil-5.7.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/psycopg-2.8[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/python-dateutil-2.8.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/pytz-2020.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/simplejson-3.16.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/six-1.12.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/speaklater-1.3[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sqlalchemy-1.3.13[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sqlparse-0.3.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/sshtunnel-0.1.5[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/werkzeug-0.15.0[${PYTHON_MULTI_USEDEP}]
|
|
||||||
>=dev-python/wtforms-2.2.1[${PYTHON_MULTI_USEDEP}]
|
|
||||||
dev-python/bcrypt[${PYTHON_MULTI_USEDEP}]
|
|
||||||
dev-python/cryptography[${PYTHON_MULTI_USEDEP}]
|
|
||||||
dev-python/python-email-validator[${PYTHON_MULTI_USEDEP}]
|
|
||||||
')
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}"/${P}/runtime
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "${WORKDIR}"/${P} || die
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
export PGADMIN_PYTHON_DIR="${EPREFIX}/usr"
|
|
||||||
eqmake5
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
default
|
|
||||||
use doc && emake -C "${WORKDIR}"/${P} docs
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin pgAdmin4
|
|
||||||
|
|
||||||
cd "${WORKDIR}"/${P} || die
|
|
||||||
|
|
||||||
local APP_DIR=/usr/share/${PN}/web
|
|
||||||
insinto "${APP_DIR}"
|
|
||||||
doins -r web/.
|
|
||||||
newins - config_local.py <<-EOF
|
|
||||||
SERVER_MODE = False
|
|
||||||
UPGRADE_CHECK_ENABLED = False
|
|
||||||
EOF
|
|
||||||
python_optimize "${D}${APP_DIR}"
|
|
||||||
|
|
||||||
insinto /etc/xdg/pgadmin
|
|
||||||
newins - pgadmin4.conf <<-EOF
|
|
||||||
[General]
|
|
||||||
ApplicationPath=${APP_DIR}
|
|
||||||
PythonPath=$(python_get_sitedir)
|
|
||||||
EOF
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
rm -r docs/en_US/_build/html/_sources || die
|
|
||||||
insinto /usr/share/${PN}/docs/en_US/_build
|
|
||||||
doins -r docs/en_US/_build/html
|
|
||||||
fi
|
|
||||||
|
|
||||||
local s
|
|
||||||
for s in 16 32 48 64 72 96 128 192 256; do
|
|
||||||
convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die
|
|
||||||
newicon -s ${s} ${PN}_${s}.png ${PN}.png
|
|
||||||
done
|
|
||||||
domenu "${FILESDIR}"/${PN}.desktop
|
|
||||||
}
|
|
Binary file not shown.
@ -1,4 +1,3 @@
|
|||||||
DIST ruby-2.5.8.tar.xz 11298404 BLAKE2B 3256c0448e72b63c0bd89f89a27fa9c09c8feed54d42cd79899b7d5cfe9dbc29ca708d12c630b3f52ff85b0c6a4011ae7ff0483d64b2fd445700a72a91028035 SHA512 2886be764a454425c5beef2777c64a70ee0d048b07896b327633d904f5077fea4299526689f9e2ac4dcd2fc4811cf9a6c8ce75367ed35d29dfe1a54222872e0d
|
DIST ruby-2.5.8.tar.xz 11298404 BLAKE2B 3256c0448e72b63c0bd89f89a27fa9c09c8feed54d42cd79899b7d5cfe9dbc29ca708d12c630b3f52ff85b0c6a4011ae7ff0483d64b2fd445700a72a91028035 SHA512 2886be764a454425c5beef2777c64a70ee0d048b07896b327633d904f5077fea4299526689f9e2ac4dcd2fc4811cf9a6c8ce75367ed35d29dfe1a54222872e0d
|
||||||
DIST ruby-2.6.6.tar.xz 11567284 BLAKE2B 45e910dd9b128c46bff3003834c4fdcbbc2e2e4d3e44f298ff4356a285de2c375d6b6021a3aa28d89336b32a1655fa4a7c086d07f4a0f6bcd578a11dd4a894da SHA512 86caf93dbf61d03781767ab5375a7edf4761f13ba08ccfefe16c0a7550499237e7390c2f72a95d42670d4fe76b2401b4218936187c62ec1572799e9e04c50d62
|
DIST ruby-2.6.6.tar.xz 11567284 BLAKE2B 45e910dd9b128c46bff3003834c4fdcbbc2e2e4d3e44f298ff4356a285de2c375d6b6021a3aa28d89336b32a1655fa4a7c086d07f4a0f6bcd578a11dd4a894da SHA512 86caf93dbf61d03781767ab5375a7edf4761f13ba08ccfefe16c0a7550499237e7390c2f72a95d42670d4fe76b2401b4218936187c62ec1572799e9e04c50d62
|
||||||
DIST ruby-2.7.1.tar.xz 12003684 BLAKE2B 90a35c3e246cfe982a146be29a3d121d6e2c251ed96703dbc46b98c21e0e43e5445132e6119e584ae35f7193f063ff1b14822f947a4e07037c37fbba5e4038da SHA512 79f98b1ea98e0b10ec79da1883e8fc84d48ffe5c09ae945cbebde94365e35a589d919aac965f74d70ca7e21370ecee631ac5a8f9c4eac61d62f5aa629f27bf31
|
|
||||||
DIST ruby-2.7.2.tar.xz 12037052 BLAKE2B a4ad22295b3fed4e8064fc6e77adb8642d1fa7ae1f4ef912d7bde19c735cb25b1a3e3aefba53dad944046d844d608bcefba61c314cf1e52747f50d7d91f4c436 SHA512 7972278b096aa768c7adf2befd26003e18781a29ca317640317d30d93d6e963ded197724c8e2f1dfe1e838c5647176d414a74732a62e931fb50d6f2e0f777349
|
DIST ruby-2.7.2.tar.xz 12037052 BLAKE2B a4ad22295b3fed4e8064fc6e77adb8642d1fa7ae1f4ef912d7bde19c735cb25b1a3e3aefba53dad944046d844d608bcefba61c314cf1e52747f50d7d91f4c436 SHA512 7972278b096aa768c7adf2befd26003e18781a29ca317640317d30d93d6e963ded197724c8e2f1dfe1e838c5647176d414a74732a62e931fb50d6f2e0f777349
|
||||||
|
@ -1,232 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic multilib
|
|
||||||
|
|
||||||
MY_P="${PN}-$(ver_cut 1-3)"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
SLOT=$(ver_cut 1-2)
|
|
||||||
MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
|
|
||||||
RUBYVERSION=${SLOT}.0
|
|
||||||
|
|
||||||
DESCRIPTION="An object-oriented scripting language"
|
|
||||||
HOMEPAGE="https://www.ruby-lang.org/"
|
|
||||||
SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
|
||||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
berkdb? ( sys-libs/db:= )
|
|
||||||
gdbm? ( sys-libs/gdbm:= )
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
jit? ( || ( sys-devel/gcc:* sys-devel/clang:* ) )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
)
|
|
||||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
|
||||||
tk? (
|
|
||||||
dev-lang/tcl:0=[threads]
|
|
||||||
dev-lang/tk:0=[threads]
|
|
||||||
)
|
|
||||||
dev-libs/libyaml
|
|
||||||
dev-libs/libffi:=
|
|
||||||
sys-libs/readline:0=
|
|
||||||
sys-libs/zlib
|
|
||||||
>=app-eselect/eselect-ruby-20181225
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
BUNDLED_GEMS="
|
|
||||||
>=dev-ruby/did_you_mean-1.2.1[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/minitest-5.11.3[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/power_assert-1.1.3[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/rake-12.3.2[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/test-unit-3.2.9[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby26]
|
|
||||||
"
|
|
||||||
|
|
||||||
PDEPEND="
|
|
||||||
${BUNDLED_GEMS}
|
|
||||||
virtual/rubygems[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/bundler-1.17.2[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/json-2.0.2[ruby_targets_ruby26]
|
|
||||||
rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby26] )
|
|
||||||
xemacs? ( app-xemacs/ruby-modes )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# 005 does not compile bigdecimal and is questionable because it
|
|
||||||
# compiles ruby in a non-standard way, may be dropped
|
|
||||||
eapply "${FILESDIR}"/2.6/010*.patch
|
|
||||||
|
|
||||||
einfo "Unbundling gems..."
|
|
||||||
cd "$S"
|
|
||||||
# Remove bundled gems that we will install via PDEPEND, bug
|
|
||||||
# 539700.
|
|
||||||
rm -fr gems/* || die
|
|
||||||
|
|
||||||
einfo "Removing bundled libraries..."
|
|
||||||
rm -fr ext/fiddle/libffi-3.2.1 || die
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local modules= myconf=
|
|
||||||
|
|
||||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
|
||||||
filter-flags -fomit-frame-pointer
|
|
||||||
# In many places aliasing rules are broken; play it safe
|
|
||||||
# as it's risky with newer compilers to leave it as it is.
|
|
||||||
append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Socks support via dante
|
|
||||||
if use socks5 ; then
|
|
||||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
|
||||||
# set and socks library is present, so need to unset
|
|
||||||
# SOCKS_SERVER in that case.
|
|
||||||
unset SOCKS_SERVER
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
|
||||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
|
||||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
|
||||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
|
||||||
|
|
||||||
# Determine which modules *not* to build depending in the USE flags.
|
|
||||||
if ! use berkdb ; then
|
|
||||||
modules="${modules},dbm"
|
|
||||||
fi
|
|
||||||
if ! use gdbm ; then
|
|
||||||
modules="${modules},gdbm"
|
|
||||||
fi
|
|
||||||
if ! use ssl ; then
|
|
||||||
modules="${modules},openssl"
|
|
||||||
fi
|
|
||||||
if ! use tk ; then
|
|
||||||
modules="${modules},tk"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Provide an empty LIBPATHENV because we disable rpath but we do not
|
|
||||||
# need LD_LIBRARY_PATH by default since that breaks USE=multitarget
|
|
||||||
# #564272
|
|
||||||
INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
|
|
||||||
--program-suffix=${MY_SUFFIX} \
|
|
||||||
--with-soname=ruby${MY_SUFFIX} \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-pthread \
|
|
||||||
--disable-rpath \
|
|
||||||
--with-out-ext="${modules}" \
|
|
||||||
$(use_with jemalloc jemalloc) \
|
|
||||||
$(use_enable jit jit-support ) \
|
|
||||||
$(use_enable socks5 socks) \
|
|
||||||
$(use_enable doc install-doc) \
|
|
||||||
--enable-ipv6 \
|
|
||||||
$(use_enable static-libs static) \
|
|
||||||
$(use_enable static-libs install-static-library) \
|
|
||||||
$(use_with static-libs static-linked-ext) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
${myconf} \
|
|
||||||
--enable-option-checking=no
|
|
||||||
|
|
||||||
# Makefile is broken because it lacks -ldl
|
|
||||||
rm -rf ext/-test-/popen_deadlock || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS=""
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
emake -j1 V=1 test
|
|
||||||
|
|
||||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
|
||||||
elog "that cannot be run until after ruby has been installed."
|
|
||||||
elog
|
|
||||||
if use rubytests; then
|
|
||||||
elog "You have enabled rubytests, so they will be installed to"
|
|
||||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
|
||||||
elog "than root, and you must place them into a writeable directory."
|
|
||||||
elog "Then call: "
|
|
||||||
elog
|
|
||||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
|
||||||
else
|
|
||||||
elog "Enable the rubytests USE flag to install the make check tests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Remove the remaining bundled gems. We do this late in the process
|
|
||||||
# since they are used during the build to e.g. create the
|
|
||||||
# documentation.
|
|
||||||
rm -rf ext/json || die
|
|
||||||
rm -rf lib/bundler* lib/rdoc/rdoc.gemspec || die
|
|
||||||
|
|
||||||
# Ruby is involved in the install process, we don't want interference here.
|
|
||||||
unset RUBYOPT
|
|
||||||
|
|
||||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
|
||||||
|
|
||||||
LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
|
||||||
RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
|
||||||
for d in $(find "${S}/ext" -type d) ; do
|
|
||||||
RUBYLIB="${RUBYLIB}:$d"
|
|
||||||
done
|
|
||||||
export LD_LIBRARY_PATH RUBYLIB
|
|
||||||
|
|
||||||
# Create directory for the default gems
|
|
||||||
local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
|
|
||||||
mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
|
|
||||||
|
|
||||||
emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install
|
|
||||||
|
|
||||||
# Remove installed rubygems and rdoc copy
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
dodoc -r sample
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc ChangeLog NEWS doc/NEWS* README*
|
|
||||||
|
|
||||||
if use rubytests; then
|
|
||||||
pushd test
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/test
|
|
||||||
doins -r .
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
|
|
||||||
eselect ruby set ruby${MY_SUFFIX}
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "To switch between available Ruby profiles, execute as root:"
|
|
||||||
elog "\teselect ruby set ruby(23|24|...)"
|
|
||||||
elog
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
eselect ruby cleanup
|
|
||||||
}
|
|
@ -1,232 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic multilib
|
|
||||||
|
|
||||||
MY_P="${PN}-$(ver_cut 1-3)"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
SLOT=$(ver_cut 1-2)
|
|
||||||
MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
|
|
||||||
RUBYVERSION=${SLOT}.0
|
|
||||||
|
|
||||||
DESCRIPTION="An object-oriented scripting language"
|
|
||||||
HOMEPAGE="https://www.ruby-lang.org/"
|
|
||||||
SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
|
||||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
berkdb? ( sys-libs/db:= )
|
|
||||||
gdbm? ( sys-libs/gdbm:= )
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
jit? ( || ( sys-devel/gcc:* sys-devel/clang:* ) )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
)
|
|
||||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
|
||||||
tk? (
|
|
||||||
dev-lang/tcl:0=[threads]
|
|
||||||
dev-lang/tk:0=[threads]
|
|
||||||
)
|
|
||||||
dev-libs/libyaml
|
|
||||||
dev-libs/libffi:=
|
|
||||||
sys-libs/readline:0=
|
|
||||||
sys-libs/zlib
|
|
||||||
>=app-eselect/eselect-ruby-20171225
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
BUNDLED_GEMS="
|
|
||||||
>=dev-ruby/did_you_mean-1.2.1[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/minitest-5.11.3[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/power_assert-1.1.3[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/rake-12.3.2[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/test-unit-3.2.9[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby26]
|
|
||||||
"
|
|
||||||
|
|
||||||
PDEPEND="
|
|
||||||
${BUNDLED_GEMS}
|
|
||||||
virtual/rubygems[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/bundler-1.17.2[ruby_targets_ruby26]
|
|
||||||
>=dev-ruby/json-2.0.2[ruby_targets_ruby26]
|
|
||||||
rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby26] )
|
|
||||||
xemacs? ( app-xemacs/ruby-modes )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# 005 does not compile bigdecimal and is questionable because it
|
|
||||||
# compiles ruby in a non-standard way, may be dropped
|
|
||||||
eapply "${FILESDIR}"/2.6/010*.patch
|
|
||||||
|
|
||||||
einfo "Unbundling gems..."
|
|
||||||
cd "$S"
|
|
||||||
# Remove bundled gems that we will install via PDEPEND, bug
|
|
||||||
# 539700.
|
|
||||||
rm -fr gems/* || die
|
|
||||||
|
|
||||||
einfo "Removing bundled libraries..."
|
|
||||||
rm -fr ext/fiddle/libffi-3.2.1 || die
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local modules= myconf=
|
|
||||||
|
|
||||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
|
||||||
filter-flags -fomit-frame-pointer
|
|
||||||
# In many places aliasing rules are broken; play it safe
|
|
||||||
# as it's risky with newer compilers to leave it as it is.
|
|
||||||
append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Socks support via dante
|
|
||||||
if use socks5 ; then
|
|
||||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
|
||||||
# set and socks library is present, so need to unset
|
|
||||||
# SOCKS_SERVER in that case.
|
|
||||||
unset SOCKS_SERVER
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
|
||||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
|
||||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
|
||||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
|
||||||
|
|
||||||
# Determine which modules *not* to build depending in the USE flags.
|
|
||||||
if ! use berkdb ; then
|
|
||||||
modules="${modules},dbm"
|
|
||||||
fi
|
|
||||||
if ! use gdbm ; then
|
|
||||||
modules="${modules},gdbm"
|
|
||||||
fi
|
|
||||||
if ! use ssl ; then
|
|
||||||
modules="${modules},openssl"
|
|
||||||
fi
|
|
||||||
if ! use tk ; then
|
|
||||||
modules="${modules},tk"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Provide an empty LIBPATHENV because we disable rpath but we do not
|
|
||||||
# need LD_LIBRARY_PATH by default since that breaks USE=multitarget
|
|
||||||
# #564272
|
|
||||||
INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
|
|
||||||
--program-suffix=${MY_SUFFIX} \
|
|
||||||
--with-soname=ruby${MY_SUFFIX} \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-pthread \
|
|
||||||
--disable-rpath \
|
|
||||||
--with-out-ext="${modules}" \
|
|
||||||
$(use_with jemalloc jemalloc) \
|
|
||||||
$(use_enable jit jit-support ) \
|
|
||||||
$(use_enable socks5 socks) \
|
|
||||||
$(use_enable doc install-doc) \
|
|
||||||
--enable-ipv6 \
|
|
||||||
$(use_enable static-libs static) \
|
|
||||||
$(use_enable static-libs install-static-library) \
|
|
||||||
$(use_with static-libs static-linked-ext) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
${myconf} \
|
|
||||||
--enable-option-checking=no
|
|
||||||
|
|
||||||
# Makefile is broken because it lacks -ldl
|
|
||||||
rm -rf ext/-test-/popen_deadlock || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS=""
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
emake -j1 V=1 test
|
|
||||||
|
|
||||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
|
||||||
elog "that cannot be run until after ruby has been installed."
|
|
||||||
elog
|
|
||||||
if use rubytests; then
|
|
||||||
elog "You have enabled rubytests, so they will be installed to"
|
|
||||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
|
||||||
elog "than root, and you must place them into a writeable directory."
|
|
||||||
elog "Then call: "
|
|
||||||
elog
|
|
||||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
|
||||||
else
|
|
||||||
elog "Enable the rubytests USE flag to install the make check tests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Remove the remaining bundled gems. We do this late in the process
|
|
||||||
# since they are used during the build to e.g. create the
|
|
||||||
# documentation.
|
|
||||||
rm -rf ext/json || die
|
|
||||||
rm -rf lib/bundler* lib/rdoc/rdoc.gemspec || die
|
|
||||||
|
|
||||||
# Ruby is involved in the install process, we don't want interference here.
|
|
||||||
unset RUBYOPT
|
|
||||||
|
|
||||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
|
||||||
|
|
||||||
LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
|
||||||
RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
|
||||||
for d in $(find "${S}/ext" -type d) ; do
|
|
||||||
RUBYLIB="${RUBYLIB}:$d"
|
|
||||||
done
|
|
||||||
export LD_LIBRARY_PATH RUBYLIB
|
|
||||||
|
|
||||||
# Create directory for the default gems
|
|
||||||
local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
|
|
||||||
mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
|
|
||||||
|
|
||||||
emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install
|
|
||||||
|
|
||||||
# Remove installed rubygems and rdoc copy
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
dodoc -r sample
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc ChangeLog NEWS doc/NEWS* README*
|
|
||||||
|
|
||||||
if use rubytests; then
|
|
||||||
pushd test
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/test
|
|
||||||
doins -r .
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
|
|
||||||
eselect ruby set ruby${MY_SUFFIX}
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "To switch between available Ruby profiles, execute as root:"
|
|
||||||
elog "\teselect ruby set ruby(23|24|...)"
|
|
||||||
elog
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
eselect ruby cleanup
|
|
||||||
}
|
|
@ -1,235 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic multilib
|
|
||||||
|
|
||||||
MY_P="${PN}-$(ver_cut 1-3)"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
SLOT=$(ver_cut 1-2)
|
|
||||||
MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
|
|
||||||
RUBYVERSION=${SLOT}.0
|
|
||||||
|
|
||||||
DESCRIPTION="An object-oriented scripting language"
|
|
||||||
HOMEPAGE="https://www.ruby-lang.org/"
|
|
||||||
SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
|
||||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
berkdb? ( sys-libs/db:= )
|
|
||||||
gdbm? ( sys-libs/gdbm:= )
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
jit? ( || ( sys-devel/gcc:* sys-devel/clang:* ) )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
)
|
|
||||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
|
||||||
tk? (
|
|
||||||
dev-lang/tcl:0=[threads]
|
|
||||||
dev-lang/tk:0=[threads]
|
|
||||||
)
|
|
||||||
dev-libs/libyaml
|
|
||||||
dev-libs/libffi:=
|
|
||||||
sys-libs/readline:0=
|
|
||||||
sys-libs/zlib
|
|
||||||
>=app-eselect/eselect-ruby-20191222
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
BUNDLED_GEMS="
|
|
||||||
>=dev-ruby/minitest-5.13.0[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/power_assert-1.1.7[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/rake-13.0.1[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/test-unit-3.3.4[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby27]
|
|
||||||
"
|
|
||||||
|
|
||||||
PDEPEND="
|
|
||||||
${BUNDLED_GEMS}
|
|
||||||
virtual/rubygems[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/bundler-2.1.4[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/did_you_mean-1.3.1[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/json-2.0.2[ruby_targets_ruby27]
|
|
||||||
rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby27] )
|
|
||||||
xemacs? ( app-xemacs/ruby-modes )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# 005 does not compile bigdecimal and is questionable because it
|
|
||||||
# compiles ruby in a non-standard way, may be dropped
|
|
||||||
eapply "${FILESDIR}"/2.7/010*.patch
|
|
||||||
|
|
||||||
einfo "Unbundling gems..."
|
|
||||||
cd "$S"
|
|
||||||
# Remove bundled gems that we will install via PDEPEND, bug
|
|
||||||
# 539700.
|
|
||||||
rm -fr gems/* || die
|
|
||||||
# Don't install CLI tools since they will clash with the gem
|
|
||||||
rm -f bin/{racc,racc2y,y2racc} || die
|
|
||||||
sed -i -e '/executables/ s:^:#:' lib/racc/racc.gemspec || die
|
|
||||||
|
|
||||||
einfo "Removing bundled libraries..."
|
|
||||||
rm -fr ext/fiddle/libffi-3.2.1 || die
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local modules= myconf=
|
|
||||||
|
|
||||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
|
||||||
filter-flags -fomit-frame-pointer
|
|
||||||
# In many places aliasing rules are broken; play it safe
|
|
||||||
# as it's risky with newer compilers to leave it as it is.
|
|
||||||
append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Socks support via dante
|
|
||||||
if use socks5 ; then
|
|
||||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
|
||||||
# set and socks library is present, so need to unset
|
|
||||||
# SOCKS_SERVER in that case.
|
|
||||||
unset SOCKS_SERVER
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
|
||||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
|
||||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
|
||||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
|
||||||
|
|
||||||
# Determine which modules *not* to build depending in the USE flags.
|
|
||||||
if ! use berkdb ; then
|
|
||||||
modules="${modules},dbm"
|
|
||||||
fi
|
|
||||||
if ! use gdbm ; then
|
|
||||||
modules="${modules},gdbm"
|
|
||||||
fi
|
|
||||||
if ! use ssl ; then
|
|
||||||
modules="${modules},openssl"
|
|
||||||
fi
|
|
||||||
if ! use tk ; then
|
|
||||||
modules="${modules},tk"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Provide an empty LIBPATHENV because we disable rpath but we do not
|
|
||||||
# need LD_LIBRARY_PATH by default since that breaks USE=multitarget
|
|
||||||
# #564272
|
|
||||||
INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
|
|
||||||
--program-suffix=${MY_SUFFIX} \
|
|
||||||
--with-soname=ruby${MY_SUFFIX} \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-pthread \
|
|
||||||
--disable-rpath \
|
|
||||||
--with-out-ext="${modules}" \
|
|
||||||
$(use_with jemalloc jemalloc) \
|
|
||||||
$(use_enable jit jit-support ) \
|
|
||||||
$(use_enable socks5 socks) \
|
|
||||||
$(use_enable doc install-doc) \
|
|
||||||
--enable-ipv6 \
|
|
||||||
$(use_enable static-libs static) \
|
|
||||||
$(use_enable static-libs install-static-library) \
|
|
||||||
$(use_with static-libs static-linked-ext) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
${myconf} \
|
|
||||||
--enable-option-checking=no
|
|
||||||
|
|
||||||
# Makefile is broken because it lacks -ldl
|
|
||||||
rm -rf ext/-test-/popen_deadlock || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS=""
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
emake -j1 V=1 test
|
|
||||||
|
|
||||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
|
||||||
elog "that cannot be run until after ruby has been installed."
|
|
||||||
elog
|
|
||||||
if use rubytests; then
|
|
||||||
elog "You have enabled rubytests, so they will be installed to"
|
|
||||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
|
||||||
elog "than root, and you must place them into a writeable directory."
|
|
||||||
elog "Then call: "
|
|
||||||
elog
|
|
||||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
|
||||||
else
|
|
||||||
elog "Enable the rubytests USE flag to install the make check tests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Remove the remaining bundled gems. We do this late in the process
|
|
||||||
# since they are used during the build to e.g. create the
|
|
||||||
# documentation.
|
|
||||||
rm -rf ext/json || die
|
|
||||||
rm -rf lib/bundler* lib/rdoc/rdoc.gemspec || die
|
|
||||||
|
|
||||||
# Ruby is involved in the install process, we don't want interference here.
|
|
||||||
unset RUBYOPT
|
|
||||||
|
|
||||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
|
||||||
|
|
||||||
LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
|
||||||
RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
|
||||||
for d in $(find "${S}/ext" -type d) ; do
|
|
||||||
RUBYLIB="${RUBYLIB}:$d"
|
|
||||||
done
|
|
||||||
export LD_LIBRARY_PATH RUBYLIB
|
|
||||||
|
|
||||||
# Create directory for the default gems
|
|
||||||
local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
|
|
||||||
mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
|
|
||||||
|
|
||||||
emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install
|
|
||||||
|
|
||||||
# Remove installed rubygems and rdoc copy
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
dodoc -r sample
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc ChangeLog NEWS doc/NEWS* README*
|
|
||||||
|
|
||||||
if use rubytests; then
|
|
||||||
pushd test
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/test
|
|
||||||
doins -r .
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
|
|
||||||
eselect ruby set ruby${MY_SUFFIX}
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "To switch between available Ruby profiles, execute as root:"
|
|
||||||
elog "\teselect ruby set ruby(23|24|...)"
|
|
||||||
elog
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
eselect ruby cleanup
|
|
||||||
}
|
|
@ -1,237 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic multilib
|
|
||||||
|
|
||||||
MY_P="${PN}-$(ver_cut 1-3)"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
SLOT=$(ver_cut 1-2)
|
|
||||||
MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
|
|
||||||
RUBYVERSION=${SLOT}.0
|
|
||||||
|
|
||||||
DESCRIPTION="An object-oriented scripting language"
|
|
||||||
HOMEPAGE="https://www.ruby-lang.org/"
|
|
||||||
SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
|
||||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs systemtap tk xemacs"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
berkdb? ( sys-libs/db:= )
|
|
||||||
gdbm? ( sys-libs/gdbm:= )
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
jit? ( || ( sys-devel/gcc:* sys-devel/clang:* ) )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
)
|
|
||||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
|
||||||
systemtap? ( dev-util/systemtap )
|
|
||||||
tk? (
|
|
||||||
dev-lang/tcl:0=[threads]
|
|
||||||
dev-lang/tk:0=[threads]
|
|
||||||
)
|
|
||||||
dev-libs/libyaml
|
|
||||||
dev-libs/libffi:=
|
|
||||||
sys-libs/readline:0=
|
|
||||||
sys-libs/zlib
|
|
||||||
>=app-eselect/eselect-ruby-20191222
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
BUNDLED_GEMS="
|
|
||||||
>=dev-ruby/minitest-5.13.0[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/power_assert-1.1.7[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/rake-13.0.1[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/test-unit-3.3.4[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby27]
|
|
||||||
"
|
|
||||||
|
|
||||||
PDEPEND="
|
|
||||||
${BUNDLED_GEMS}
|
|
||||||
virtual/rubygems[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/bundler-2.1.4[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/did_you_mean-1.3.1[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/json-2.0.2[ruby_targets_ruby27]
|
|
||||||
rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby27] )
|
|
||||||
xemacs? ( app-xemacs/ruby-modes )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# 005 does not compile bigdecimal and is questionable because it
|
|
||||||
# compiles ruby in a non-standard way, may be dropped
|
|
||||||
eapply "${FILESDIR}"/2.7/010*.patch
|
|
||||||
|
|
||||||
einfo "Unbundling gems..."
|
|
||||||
cd "$S"
|
|
||||||
# Remove bundled gems that we will install via PDEPEND, bug
|
|
||||||
# 539700.
|
|
||||||
rm -fr gems/* || die
|
|
||||||
# Don't install CLI tools since they will clash with the gem
|
|
||||||
rm -f bin/{racc,racc2y,y2racc} || die
|
|
||||||
sed -i -e '/executables/ s:^:#:' lib/racc/racc.gemspec || die
|
|
||||||
|
|
||||||
einfo "Removing bundled libraries..."
|
|
||||||
rm -fr ext/fiddle/libffi-3.2.1 || die
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local modules= myconf=
|
|
||||||
|
|
||||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
|
||||||
filter-flags -fomit-frame-pointer
|
|
||||||
# In many places aliasing rules are broken; play it safe
|
|
||||||
# as it's risky with newer compilers to leave it as it is.
|
|
||||||
append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Socks support via dante
|
|
||||||
if use socks5 ; then
|
|
||||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
|
||||||
# set and socks library is present, so need to unset
|
|
||||||
# SOCKS_SERVER in that case.
|
|
||||||
unset SOCKS_SERVER
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
|
||||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
|
||||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
|
||||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
|
||||||
|
|
||||||
# Determine which modules *not* to build depending in the USE flags.
|
|
||||||
if ! use berkdb ; then
|
|
||||||
modules="${modules},dbm"
|
|
||||||
fi
|
|
||||||
if ! use gdbm ; then
|
|
||||||
modules="${modules},gdbm"
|
|
||||||
fi
|
|
||||||
if ! use ssl ; then
|
|
||||||
modules="${modules},openssl"
|
|
||||||
fi
|
|
||||||
if ! use tk ; then
|
|
||||||
modules="${modules},tk"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Provide an empty LIBPATHENV because we disable rpath but we do not
|
|
||||||
# need LD_LIBRARY_PATH by default since that breaks USE=multitarget
|
|
||||||
# #564272
|
|
||||||
INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
|
|
||||||
--program-suffix=${MY_SUFFIX} \
|
|
||||||
--with-soname=ruby${MY_SUFFIX} \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-pthread \
|
|
||||||
--disable-rpath \
|
|
||||||
--with-out-ext="${modules}" \
|
|
||||||
$(use_with jemalloc jemalloc) \
|
|
||||||
$(use_enable jit jit-support ) \
|
|
||||||
$(use_enable socks5 socks) \
|
|
||||||
$(use_enable systemtap dtrace) \
|
|
||||||
$(use_enable doc install-doc) \
|
|
||||||
--enable-ipv6 \
|
|
||||||
$(use_enable static-libs static) \
|
|
||||||
$(use_enable static-libs install-static-library) \
|
|
||||||
$(use_with static-libs static-linked-ext) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
${myconf} \
|
|
||||||
--enable-option-checking=no
|
|
||||||
|
|
||||||
# Makefile is broken because it lacks -ldl
|
|
||||||
rm -rf ext/-test-/popen_deadlock || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS=""
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
emake -j1 V=1 test
|
|
||||||
|
|
||||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
|
||||||
elog "that cannot be run until after ruby has been installed."
|
|
||||||
elog
|
|
||||||
if use rubytests; then
|
|
||||||
elog "You have enabled rubytests, so they will be installed to"
|
|
||||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
|
||||||
elog "than root, and you must place them into a writeable directory."
|
|
||||||
elog "Then call: "
|
|
||||||
elog
|
|
||||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
|
||||||
else
|
|
||||||
elog "Enable the rubytests USE flag to install the make check tests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Remove the remaining bundled gems. We do this late in the process
|
|
||||||
# since they are used during the build to e.g. create the
|
|
||||||
# documentation.
|
|
||||||
rm -rf ext/json || die
|
|
||||||
rm -rf lib/bundler* lib/rdoc/rdoc.gemspec || die
|
|
||||||
|
|
||||||
# Ruby is involved in the install process, we don't want interference here.
|
|
||||||
unset RUBYOPT
|
|
||||||
|
|
||||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
|
||||||
|
|
||||||
LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
|
||||||
RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
|
||||||
for d in $(find "${S}/ext" -type d) ; do
|
|
||||||
RUBYLIB="${RUBYLIB}:$d"
|
|
||||||
done
|
|
||||||
export LD_LIBRARY_PATH RUBYLIB
|
|
||||||
|
|
||||||
# Create directory for the default gems
|
|
||||||
local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
|
|
||||||
mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
|
|
||||||
|
|
||||||
emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install
|
|
||||||
|
|
||||||
# Remove installed rubygems and rdoc copy
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
dodoc -r sample
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc ChangeLog NEWS doc/NEWS* README*
|
|
||||||
|
|
||||||
if use rubytests; then
|
|
||||||
pushd test
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/test
|
|
||||||
doins -r .
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
|
|
||||||
eselect ruby set ruby${MY_SUFFIX}
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "To switch between available Ruby profiles, execute as root:"
|
|
||||||
elog "\teselect ruby set ruby(23|24|...)"
|
|
||||||
elog
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
eselect ruby cleanup
|
|
||||||
}
|
|
@ -1,235 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit autotools flag-o-matic multilib
|
|
||||||
|
|
||||||
MY_P="${PN}-$(ver_cut 1-3)"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
SLOT=$(ver_cut 1-2)
|
|
||||||
MY_SUFFIX=$(ver_rs 1 '' ${SLOT})
|
|
||||||
RUBYVERSION=${SLOT}.0
|
|
||||||
|
|
||||||
DESCRIPTION="An object-oriented scripting language"
|
|
||||||
HOMEPAGE="https://www.ruby-lang.org/"
|
|
||||||
SRC_URI="https://cache.ruby-lang.org/pub/ruby/${SLOT}/${MY_P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
|
||||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc jit libressl +rdoc rubytests socks5 +ssl static-libs tk xemacs"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
berkdb? ( sys-libs/db:= )
|
|
||||||
gdbm? ( sys-libs/gdbm:= )
|
|
||||||
jemalloc? ( dev-libs/jemalloc )
|
|
||||||
jit? ( || ( sys-devel/gcc:* sys-devel/clang:* ) )
|
|
||||||
ssl? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl )
|
|
||||||
)
|
|
||||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
|
||||||
tk? (
|
|
||||||
dev-lang/tcl:0=[threads]
|
|
||||||
dev-lang/tk:0=[threads]
|
|
||||||
)
|
|
||||||
dev-libs/libyaml
|
|
||||||
dev-libs/libffi:=
|
|
||||||
sys-libs/readline:0=
|
|
||||||
sys-libs/zlib
|
|
||||||
>=app-eselect/eselect-ruby-20171225
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
|
|
||||||
BUNDLED_GEMS="
|
|
||||||
>=dev-ruby/minitest-5.13.0[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/net-telnet-0.2.0[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/power_assert-1.1.7[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/rake-13.0.1[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/test-unit-3.3.4[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby27]
|
|
||||||
"
|
|
||||||
|
|
||||||
PDEPEND="
|
|
||||||
${BUNDLED_GEMS}
|
|
||||||
virtual/rubygems[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/bundler-2.1.4[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/did_you_mean-1.3.1[ruby_targets_ruby27]
|
|
||||||
>=dev-ruby/json-2.0.2[ruby_targets_ruby27]
|
|
||||||
rdoc? ( >=dev-ruby/rdoc-6.1.2[ruby_targets_ruby27] )
|
|
||||||
xemacs? ( app-xemacs/ruby-modes )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# 005 does not compile bigdecimal and is questionable because it
|
|
||||||
# compiles ruby in a non-standard way, may be dropped
|
|
||||||
eapply "${FILESDIR}"/2.7/010*.patch
|
|
||||||
|
|
||||||
einfo "Unbundling gems..."
|
|
||||||
cd "$S"
|
|
||||||
# Remove bundled gems that we will install via PDEPEND, bug
|
|
||||||
# 539700.
|
|
||||||
rm -fr gems/* || die
|
|
||||||
# Don't install CLI tools since they will clash with the gem
|
|
||||||
rm -f bin/{racc,racc2y,y2racc} || die
|
|
||||||
sed -i -e '/executables/ s:^:#:' lib/racc/racc.gemspec || die
|
|
||||||
|
|
||||||
einfo "Removing bundled libraries..."
|
|
||||||
rm -fr ext/fiddle/libffi-3.2.1 || die
|
|
||||||
|
|
||||||
eapply_user
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local modules= myconf=
|
|
||||||
|
|
||||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
|
||||||
filter-flags -fomit-frame-pointer
|
|
||||||
# In many places aliasing rules are broken; play it safe
|
|
||||||
# as it's risky with newer compilers to leave it as it is.
|
|
||||||
append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Socks support via dante
|
|
||||||
if use socks5 ; then
|
|
||||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
|
||||||
# set and socks library is present, so need to unset
|
|
||||||
# SOCKS_SERVER in that case.
|
|
||||||
unset SOCKS_SERVER
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
|
||||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
|
||||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
|
||||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
|
||||||
|
|
||||||
# Determine which modules *not* to build depending in the USE flags.
|
|
||||||
if ! use berkdb ; then
|
|
||||||
modules="${modules},dbm"
|
|
||||||
fi
|
|
||||||
if ! use gdbm ; then
|
|
||||||
modules="${modules},gdbm"
|
|
||||||
fi
|
|
||||||
if ! use ssl ; then
|
|
||||||
modules="${modules},openssl"
|
|
||||||
fi
|
|
||||||
if ! use tk ; then
|
|
||||||
modules="${modules},tk"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Provide an empty LIBPATHENV because we disable rpath but we do not
|
|
||||||
# need LD_LIBRARY_PATH by default since that breaks USE=multitarget
|
|
||||||
# #564272
|
|
||||||
INSTALL="${EPREFIX}/usr/bin/install -c" LIBPATHENV="" econf \
|
|
||||||
--program-suffix=${MY_SUFFIX} \
|
|
||||||
--with-soname=ruby${MY_SUFFIX} \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-pthread \
|
|
||||||
--disable-rpath \
|
|
||||||
--with-out-ext="${modules}" \
|
|
||||||
$(use_with jemalloc jemalloc) \
|
|
||||||
$(use_enable jit jit-support ) \
|
|
||||||
$(use_enable socks5 socks) \
|
|
||||||
$(use_enable doc install-doc) \
|
|
||||||
--enable-ipv6 \
|
|
||||||
$(use_enable static-libs static) \
|
|
||||||
$(use_enable static-libs install-static-library) \
|
|
||||||
$(use_with static-libs static-linked-ext) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
${myconf} \
|
|
||||||
--enable-option-checking=no
|
|
||||||
|
|
||||||
# Makefile is broken because it lacks -ldl
|
|
||||||
rm -rf ext/-test-/popen_deadlock || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS=""
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
emake -j1 V=1 test
|
|
||||||
|
|
||||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
|
||||||
elog "that cannot be run until after ruby has been installed."
|
|
||||||
elog
|
|
||||||
if use rubytests; then
|
|
||||||
elog "You have enabled rubytests, so they will be installed to"
|
|
||||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
|
||||||
elog "than root, and you must place them into a writeable directory."
|
|
||||||
elog "Then call: "
|
|
||||||
elog
|
|
||||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
|
||||||
else
|
|
||||||
elog "Enable the rubytests USE flag to install the make check tests"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# Remove the remaining bundled gems. We do this late in the process
|
|
||||||
# since they are used during the build to e.g. create the
|
|
||||||
# documentation.
|
|
||||||
rm -rf ext/json || die
|
|
||||||
rm -rf lib/bundler* lib/rdoc/rdoc.gemspec || die
|
|
||||||
|
|
||||||
# Ruby is involved in the install process, we don't want interference here.
|
|
||||||
unset RUBYOPT
|
|
||||||
|
|
||||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
|
||||||
|
|
||||||
LD_LIBRARY_PATH="${S}:${ED}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
|
||||||
RUBYLIB="${S}:${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
|
||||||
for d in $(find "${S}/ext" -type d) ; do
|
|
||||||
RUBYLIB="${RUBYLIB}:$d"
|
|
||||||
done
|
|
||||||
export LD_LIBRARY_PATH RUBYLIB
|
|
||||||
|
|
||||||
# Create directory for the default gems
|
|
||||||
local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
|
|
||||||
mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
|
|
||||||
|
|
||||||
emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install
|
|
||||||
|
|
||||||
# Remove installed rubygems and rdoc copy
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"gem"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
|
||||||
rm -rf "${ED}/usr/bin/"{bundle,bundler,ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
emake DESTDIR="${D}" GEM_DESTDIR=${gem_home} install-doc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use examples; then
|
|
||||||
dodoc -r sample
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc ChangeLog NEWS doc/NEWS* README*
|
|
||||||
|
|
||||||
if use rubytests; then
|
|
||||||
pushd test
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/test
|
|
||||||
doins -r .
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [[ ! -n $(readlink "${EROOT}"/usr/bin/ruby) ]] ; then
|
|
||||||
eselect ruby set ruby${MY_SUFFIX}
|
|
||||||
fi
|
|
||||||
|
|
||||||
elog
|
|
||||||
elog "To switch between available Ruby profiles, execute as root:"
|
|
||||||
elog "\teselect ruby set ruby(23|24|...)"
|
|
||||||
elog
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
eselect ruby cleanup
|
|
||||||
}
|
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST boost_1_72_0.tar.bz2 106907358 BLAKE2B ab270a0e3cb24da687d86785e2d2e6d7731b4dbc07bd839eadb642dfa5a428ad584acb1f3529661a8de9a986008ff3427491041059ea2b742348d02e00761cd8 SHA512 63bbd1743e7c904b2e69fdc2eafd1c2a8a30fd70d960dcd366059d0100f000cb605d56cbd9397bb18421631f1c9552a772c434d0f0caddbe56302273f51fd1f6
|
|
||||||
DIST boost_1_74_0.tar.bz2 109600630 BLAKE2B 2982f64fccf6fdb3b4b74452e603f459242d7abb42df4162278d9b558b637786a2eb97442126967b19088d591777c64ced8f60a23e71eaa0b7545e80f800de63 SHA512 4ec9c1164ec9b95ce46ba1c073e586c94b3882dce5b7347ea14bbef0c1da230e12aa5328a501ce38cae1b1d7623daa3246325625899179b4cc309242540982a4
|
DIST boost_1_74_0.tar.bz2 109600630 BLAKE2B 2982f64fccf6fdb3b4b74452e603f459242d7abb42df4162278d9b558b637786a2eb97442126967b19088d591777c64ced8f60a23e71eaa0b7545e80f800de63 SHA512 4ec9c1164ec9b95ce46ba1c073e586c94b3882dce5b7347ea14bbef0c1da230e12aa5328a501ce38cae1b1d7623daa3246325625899179b4cc309242540982a4
|
||||||
|
@ -1,358 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
|
||||||
|
|
||||||
inherit flag-o-matic multiprocessing python-r1 toolchain-funcs multilib-minimal
|
|
||||||
|
|
||||||
MY_PV="$(ver_rs 1- _)"
|
|
||||||
MAJOR_V="$(ver_cut 1-2)"
|
|
||||||
|
|
||||||
DESCRIPTION="Boost Libraries for C++"
|
|
||||||
HOMEPAGE="https://www.boost.org/"
|
|
||||||
SRC_URI="https://dl.bintray.com/boostorg/release/${PV}/source/boost_${MY_PV}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="Boost-1.0"
|
|
||||||
SLOT="0/${PV}" # ${PV} instead ${MAJOR_V} due to bug 486122
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE="bzip2 context debug doc icu lzma +nls mpi numpy python static-libs +threads tools zlib zstd"
|
|
||||||
REQUIRED_USE="
|
|
||||||
mpi? ( threads )
|
|
||||||
python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
# the tests will never fail because these are not intended as sanity
|
|
||||||
# tests at all. They are more a way for upstream to check their own code
|
|
||||||
# on new compilers. Since they would either be completely unreliable
|
|
||||||
# (failing for no good reason) or completely useless (never failing)
|
|
||||||
# there is no point in having them in the ebuild to begin with.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!app-admin/eselect-boost
|
|
||||||
!dev-libs/boost-numpy
|
|
||||||
bzip2? ( app-arch/bzip2:=[${MULTILIB_USEDEP}] )
|
|
||||||
icu? ( >=dev-libs/icu-3.6:=[${MULTILIB_USEDEP}] )
|
|
||||||
!icu? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
|
||||||
lzma? ( app-arch/xz-utils:=[${MULTILIB_USEDEP}] )
|
|
||||||
mpi? ( >=virtual/mpi-2.0-r4[${MULTILIB_USEDEP},cxx,threads] )
|
|
||||||
python? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
numpy? ( $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' -3) )
|
|
||||||
)
|
|
||||||
zlib? ( sys-libs/zlib:=[${MULTILIB_USEDEP}] )
|
|
||||||
zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="=dev-util/boost-build-${MAJOR_V}*"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}_${MY_PV}"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.71.0-disable_icu_rpath.patch
|
|
||||||
"${FILESDIR}"/${PN}-1.71.0-context-x32.patch
|
|
||||||
"${FILESDIR}"/${PN}-1.71.0-build-auto_index-tool.patch
|
|
||||||
# Bug 703294, incomplete Boost.Serialization refactoring
|
|
||||||
"${FILESDIR}"/${PN}-1.72.0-missing-serialization-split_member-include.patch
|
|
||||||
# Bug 703036, per python-impl Boost.MPI
|
|
||||||
"${FILESDIR}"/${PN}-1.72.0-boost-mpi-python.patch
|
|
||||||
# Bug 704128, missing include on Boost.Ranges
|
|
||||||
"${FILESDIR}"/${PN}-1.72.0-revert-cease-dependence-on-range.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
python_bindings_needed() {
|
|
||||||
multilib_is_native_abi && use python
|
|
||||||
}
|
|
||||||
|
|
||||||
tools_needed() {
|
|
||||||
multilib_is_native_abi && use tools
|
|
||||||
}
|
|
||||||
|
|
||||||
create_user-config.jam() {
|
|
||||||
local user_config_jam="${BUILD_DIR}"/user-config.jam
|
|
||||||
if [[ -s ${user_config_jam} ]]; then
|
|
||||||
einfo "${user_config_jam} already exists, skipping configuration"
|
|
||||||
return
|
|
||||||
else
|
|
||||||
einfo "Creating configuration in ${user_config_jam}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local compiler compiler_version compiler_executable="$(tc-getCXX)"
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
compiler="darwin"
|
|
||||||
compiler_version="$(gcc-fullversion)"
|
|
||||||
else
|
|
||||||
compiler="gcc"
|
|
||||||
compiler_version="$(gcc-version)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mpi; then
|
|
||||||
local mpi_configuration="using mpi ;"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat > "${user_config_jam}" <<- __EOF__ || die
|
|
||||||
using ${compiler} : ${compiler_version} : ${compiler_executable} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
|
|
||||||
${mpi_configuration}
|
|
||||||
__EOF__
|
|
||||||
|
|
||||||
if python_bindings_needed; then
|
|
||||||
append_to_user_config() {
|
|
||||||
local py_config
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
py_config="using python : ${EPYTHON#python} : : ${ESYSROOT}/usr/include/${EPYTHON} : ${ESYSROOT}/usr/$(get_libdir) ;"
|
|
||||||
else
|
|
||||||
py_config="using python : ${EPYTHON#python} : ${PYTHON} : $(python_get_includedir) ;"
|
|
||||||
fi
|
|
||||||
echo "${py_config}" >> "${user_config_jam}" || die
|
|
||||||
}
|
|
||||||
python_foreach_impl append_to_user_config
|
|
||||||
fi
|
|
||||||
|
|
||||||
if python_bindings_needed && use numpy; then
|
|
||||||
einfo "Enabling support for NumPy extensions in Boost.Python"
|
|
||||||
else
|
|
||||||
einfo "Disabling support for NumPy extensions in Boost.Python"
|
|
||||||
|
|
||||||
# Boost.Build does not allow for disabling of numpy
|
|
||||||
# extensions, thereby leading to automagic numpy
|
|
||||||
# https://github.com/boostorg/python/issues/111#issuecomment-280447482
|
|
||||||
sed \
|
|
||||||
-e 's/\[ unless \[ python\.numpy \] : <build>no \]/<build>no/g' \
|
|
||||||
-i "${BUILD_DIR}"/libs/python/build/Jamfile || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# Bail out on unsupported build configuration, bug #456792
|
|
||||||
if [[ -f "${EROOT}"/etc/site-config.jam ]]; then
|
|
||||||
if ! grep -q 'gentoo\(debug\|release\)' "${EROOT}"/etc/site-config.jam; then
|
|
||||||
eerror "You are using custom ${EROOT}/etc/site-config.jam without defined gentoorelease/gentoodebug targets."
|
|
||||||
eerror "Boost can not be built in such configuration."
|
|
||||||
eerror "Please, either remove this file or add targets from ${EROOT}/usr/share/boost-build/site-config.jam to it."
|
|
||||||
die "Unsupported target in ${EROOT}/etc/site-config.jam"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
multilib_copy_sources
|
|
||||||
}
|
|
||||||
|
|
||||||
ejam() {
|
|
||||||
create_user-config.jam
|
|
||||||
|
|
||||||
local b2_opts=( "--user-config=${BUILD_DIR}/user-config.jam" )
|
|
||||||
if python_bindings_needed; then
|
|
||||||
append_to_b2_opts() {
|
|
||||||
b2_opts+=( python="${EPYTHON#python}" )
|
|
||||||
}
|
|
||||||
python_foreach_impl append_to_b2_opts
|
|
||||||
else
|
|
||||||
b2_opts+=( --without-python )
|
|
||||||
fi
|
|
||||||
b2_opts+=( "$@" )
|
|
||||||
|
|
||||||
echo b2 "${b2_opts[@]}" >&2
|
|
||||||
b2 "${b2_opts[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Workaround for too many parallel processes requested, bug #506064
|
|
||||||
[[ "$(makeopts_jobs)" -gt 64 ]] && MAKEOPTS="${MAKEOPTS} -j64"
|
|
||||||
|
|
||||||
OPTIONS=(
|
|
||||||
$(usex debug gentoodebug gentoorelease)
|
|
||||||
"-j$(makeopts_jobs)"
|
|
||||||
-q
|
|
||||||
-d+2
|
|
||||||
pch=off
|
|
||||||
$(usex icu "-sICU_PATH=${ESYSROOT}/usr" '--disable-icu boost.locale.icu=off')
|
|
||||||
$(usex mpi '' '--without-mpi')
|
|
||||||
$(usex nls '' '--without-locale')
|
|
||||||
$(usex context '' '--without-context --without-coroutine --without-fiber')
|
|
||||||
$(usex threads '' '--without-thread')
|
|
||||||
--without-stacktrace
|
|
||||||
--boost-build="${BROOT}"/usr/share/boost-build
|
|
||||||
--prefix="${ED}/usr"
|
|
||||||
--layout=system
|
|
||||||
# CMake has issues working with multiple python impls,
|
|
||||||
# disable cmake config generation for the time being
|
|
||||||
# https://github.com/boostorg/python/issues/262#issuecomment-483069294
|
|
||||||
--no-cmake-config
|
|
||||||
# building with threading=single is currently not possible
|
|
||||||
# https://svn.boost.org/trac/boost/ticket/7105
|
|
||||||
threading=multi
|
|
||||||
link=$(usex static-libs shared,static shared)
|
|
||||||
# this seems to be the only way to disable compression algorithms
|
|
||||||
# https://www.boost.org/doc/libs/1_70_0/libs/iostreams/doc/installation.html#boost-build
|
|
||||||
-sNO_BZIP2=$(usex bzip2 0 1)
|
|
||||||
-sNO_LZMA=$(usex lzma 0 1)
|
|
||||||
-sNO_ZLIB=$(usex zlib 0 1)
|
|
||||||
-sNO_ZSTD=$(usex zstd 0 1)
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
# We need to add the prefix, and in two cases this exceeds, so prepare
|
|
||||||
# for the largest possible space allocation.
|
|
||||||
append-ldflags -Wl,-headerpad_max_install_names
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Use C++14 globally as of 1.62
|
|
||||||
append-cxxflags -std=c++14
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
ejam "${OPTIONS[@]}" || die
|
|
||||||
|
|
||||||
if tools_needed; then
|
|
||||||
pushd tools >/dev/null || die
|
|
||||||
ejam \
|
|
||||||
"${OPTIONS[@]}" \
|
|
||||||
|| die "Building of Boost tools failed"
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
if ! use numpy; then
|
|
||||||
rm -r "${ED}"/usr/include/boost/python/numpy* || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
if use mpi; then
|
|
||||||
move_mpi_py_into_sitedir() {
|
|
||||||
local pyver="${EPYTHON#python}"
|
|
||||||
python_moduleinto boost
|
|
||||||
python_domodule "${ED}"/usr/$(get_libdir)/mpi${pyver/./}.so
|
|
||||||
rm "${ED}"/usr/$(get_libdir)/mpi${pyver/./}* || die
|
|
||||||
dosym mpi${pyver/./}.so $(python_get_sitedir)/boost/mpi.so
|
|
||||||
|
|
||||||
# create a proper python package
|
|
||||||
touch "${D}"/$(python_get_sitedir)/boost/__init__.py || die
|
|
||||||
python_optimize
|
|
||||||
}
|
|
||||||
python_foreach_impl move_mpi_py_into_sitedir
|
|
||||||
else
|
|
||||||
rm -r "${ED}"/usr/include/boost/mpi/python* || die
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
rm -r "${ED}"/usr/include/boost/{python*,mpi/python*,parameter/aux_/python,parameter/python*} || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use nls; then
|
|
||||||
rm -r "${ED}"/usr/include/boost/locale || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use context; then
|
|
||||||
rm -r "${ED}"/usr/include/boost/context || die
|
|
||||||
rm -r "${ED}"/usr/include/boost/coroutine{,2} || die
|
|
||||||
rm "${ED}"/usr/include/boost/asio/spawn.hpp || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
# find extraneous files that shouldn't be installed
|
|
||||||
# as part of the documentation and remove them.
|
|
||||||
find libs/*/* \( -iname 'test' -o -iname 'src' \) -exec rm -rf '{}' + || die
|
|
||||||
find doc \( -name 'Jamfile.v2' -o -name 'build' -o -name '*.manifest' \) -exec rm -rf '{}' + || die
|
|
||||||
find tools \( -name 'Jamfile.v2' -o -name 'src' -o -name '*.cpp' -o -name '*.hpp' \) -exec rm -rf '{}' + || die
|
|
||||||
|
|
||||||
docinto html
|
|
||||||
dodoc *.{htm,html,png,css}
|
|
||||||
dodoc -r doc libs more tools
|
|
||||||
|
|
||||||
# To avoid broken links
|
|
||||||
dodoc LICENSE_1_0.txt
|
|
||||||
|
|
||||||
dosym ../../../../include/boost /usr/share/doc/${PF}/html/boost
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
ejam \
|
|
||||||
"${OPTIONS[@]}" \
|
|
||||||
--includedir="${ED}/usr/include" \
|
|
||||||
--libdir="${ED}/usr/$(get_libdir)" \
|
|
||||||
install || die "Installation of Boost libraries failed"
|
|
||||||
|
|
||||||
pushd "${ED}/usr/$(get_libdir)" >/dev/null || die
|
|
||||||
|
|
||||||
local ext=$(get_libname)
|
|
||||||
if use threads; then
|
|
||||||
local f
|
|
||||||
for f in *${ext}; do
|
|
||||||
dosym ${f} /usr/$(get_libdir)/${f/${ext}/-mt${ext}}
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
popd >/dev/null || die
|
|
||||||
|
|
||||||
if tools_needed; then
|
|
||||||
dobin dist/bin/*
|
|
||||||
|
|
||||||
insinto /usr/share
|
|
||||||
doins -r dist/share/boostbook
|
|
||||||
fi
|
|
||||||
|
|
||||||
# boost's build system truely sucks for not having a destdir. Because for
|
|
||||||
# this reason we are forced to build with a prefix that includes the
|
|
||||||
# DESTROOT, dynamic libraries on Darwin end messed up, referencing the
|
|
||||||
# DESTROOT instread of the actual EPREFIX. There is no way out of here
|
|
||||||
# but to do it the dirty way of manually setting the right install_names.
|
|
||||||
if [[ ${CHOST} == *-darwin* ]]; then
|
|
||||||
einfo "Working around completely broken build-system(tm)"
|
|
||||||
local d
|
|
||||||
for d in "${ED}"/usr/lib/*.dylib; do
|
|
||||||
if [[ -f ${d} ]]; then
|
|
||||||
# fix the "soname"
|
|
||||||
ebegin " correcting install_name of ${d#${ED}}"
|
|
||||||
install_name_tool -id "/${d#${D}}" "${d}"
|
|
||||||
eend $?
|
|
||||||
# fix references to other libs
|
|
||||||
refs=$(otool -XL "${d}" | \
|
|
||||||
sed -e '1d' -e 's/^\t//' | \
|
|
||||||
grep "^libboost_" | \
|
|
||||||
cut -f1 -d' ')
|
|
||||||
local r
|
|
||||||
for r in ${refs}; do
|
|
||||||
ebegin " correcting reference to ${r}"
|
|
||||||
install_name_tool -change \
|
|
||||||
"${r}" \
|
|
||||||
"${EPREFIX}/usr/lib/${r}" \
|
|
||||||
"${d}"
|
|
||||||
eend $?
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Yai for having symlinks that are nigh-impossible to remove without
|
|
||||||
# resorting to dirty hacks like these. Removes lingering symlinks
|
|
||||||
# from the slotted versions.
|
|
||||||
local symlink
|
|
||||||
for symlink in "${EROOT}"/usr/include/boost "${EROOT}"/usr/share/boostbook; do
|
|
||||||
if [[ -L ${symlink} ]]; then
|
|
||||||
rm -f "${symlink}" || die
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# some ancient installs still have boost cruft lying around
|
|
||||||
# for unknown reasons, causing havoc for reverse dependencies
|
|
||||||
# Bug: 607734
|
|
||||||
rm -rf "${EROOT}"/usr/include/boost-1_[3-5]? || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Boost.Regex is *extremely* ABI sensitive. If you get errors such as"
|
|
||||||
elog
|
|
||||||
elog " undefined reference to \`boost::re_detail_$(ver_cut 1)0$(ver_cut 2)00::cpp_regex_traits_implementation"
|
|
||||||
elog " <char>::transform_primary[abi:cxx11](char const*, char const*) const'"
|
|
||||||
elog
|
|
||||||
elog "Then you need to recompile Boost and all its reverse dependencies"
|
|
||||||
elog "using the same toolchain. In general, *every* change of the C++ toolchain"
|
|
||||||
elog "requires a complete rebuild of the boost-dependent ecosystem."
|
|
||||||
elog
|
|
||||||
elog "See for instance https://bugs.gentoo.org/638138"
|
|
||||||
}
|
|
@ -1,50 +0,0 @@
|
|||||||
Tag Boost.MPI python impls properly to avoid name clash
|
|
||||||
https://github.com/boostorg/mpi/issues/112
|
|
||||||
|
|
||||||
--- a/boostcpp.jam
|
|
||||||
+++ b/boostcpp.jam
|
|
||||||
@@ -185,7 +185,7 @@
|
|
||||||
|
|
||||||
rule tag ( name : type ? : property-set )
|
|
||||||
{
|
|
||||||
- if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
|
|
||||||
+ if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB PYTHON_EXTENSION
|
|
||||||
{
|
|
||||||
local args = $(.format-name-args) ;
|
|
||||||
if $(layout) = versioned
|
|
||||||
@@ -223,7 +223,7 @@
|
|
||||||
{
|
|
||||||
local result = $(name) ;
|
|
||||||
|
|
||||||
- if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
|
|
||||||
+ if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB PYTHON_EXTENSION
|
|
||||||
{
|
|
||||||
# Add Python version suffix
|
|
||||||
|
|
||||||
--- a/libs/mpi/build/Jamfile.v2
|
|
||||||
+++ b/libs/mpi/build/Jamfile.v2
|
|
||||||
@@ -58,13 +58,13 @@
|
|
||||||
rule python-tag ( name : type ? : property-set )
|
|
||||||
{
|
|
||||||
local result = $(name) ;
|
|
||||||
- if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
|
|
||||||
+ if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB PYTHON_EXTENSION
|
|
||||||
{
|
|
||||||
local version = [ $(property-set).get <python> ] ;
|
|
||||||
local lib-suffix = [ version-suffix $(version) ] ;
|
|
||||||
result = $(result)$(lib-suffix) ;
|
|
||||||
}
|
|
||||||
- if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB && $(PYTHON_ID)
|
|
||||||
+ if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB PYTHON_EXTENSION && $(PYTHON_ID)
|
|
||||||
{
|
|
||||||
result = $(result)-$(PYTHON_ID) ;
|
|
||||||
}
|
|
||||||
@@ -168,6 +168,8 @@
|
|
||||||
<link>shared:<define>BOOST_PYTHON_DYN_LINK=1
|
|
||||||
<link>shared <runtime-link>shared
|
|
||||||
<python-debugging>on:<define>BOOST_DEBUG_PYTHON
|
|
||||||
+ -<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
|
|
||||||
+ <tag>@$(__name__).python-tag
|
|
||||||
;
|
|
||||||
|
|
||||||
mpi_python_libs = boost_mpi_python mpi ;
|
|
@ -1,29 +0,0 @@
|
|||||||
Missing #include, as the split_member.hpp include is not
|
|
||||||
part of the nvp.hpp interface, and hence cannot be relied
|
|
||||||
upon to be included transitively.
|
|
||||||
|
|
||||||
Confirmed on
|
|
||||||
https://github.com/boostorg/serialization/commit/c32a663c9963385430abc563f9c85f94d8da43a9#r36528430
|
|
||||||
|
|
||||||
Bug: https://bugs.gentoo.org/703294
|
|
||||||
|
|
||||||
--- a/boost/bimap/detail/map_view_iterator.hpp
|
|
||||||
+++ b/boost/bimap/detail/map_view_iterator.hpp
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
|
|
||||||
#ifndef BOOST_BIMAP_DISABLE_SERIALIZATION
|
|
||||||
#include <boost/serialization/nvp.hpp>
|
|
||||||
+ #include <boost/serialization/split_member.hpp>
|
|
||||||
#endif // BOOST_BIMAP_DISABLE_SERIALIZATION
|
|
||||||
|
|
||||||
#include <boost/iterator/detail/enable_if.hpp>
|
|
||||||
--- a/boost/bimap/detail/set_view_iterator.hpp
|
|
||||||
+++ b/boost/bimap/detail/set_view_iterator.hpp
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
|
|
||||||
#ifndef BOOST_BIMAP_DISABLE_SERIALIZATION
|
|
||||||
#include <boost/serialization/nvp.hpp>
|
|
||||||
+ #include <boost/serialization/split_member.hpp>
|
|
||||||
#endif // BOOST_BIMAP_DISABLE_SERIALIZATION
|
|
||||||
|
|
||||||
#include <boost/iterator/detail/enable_if.hpp>
|
|
@ -1,49 +0,0 @@
|
|||||||
From 436e1dbe6fcd31523d261d18ad011392f1d6fbbc Mon Sep 17 00:00:00 2001
|
|
||||||
From: Oliver Kowalke <oliver.kowalke@gmail.com>
|
|
||||||
Date: Sun, 1 Dec 2019 20:40:28 +0100
|
|
||||||
Subject: [PATCH] Revert "Cease dependence on Range"
|
|
||||||
|
|
||||||
This reverts commit 0c556bb59241e682bbcd3f572815149c5a9b17db.
|
|
||||||
|
|
||||||
see #44 (One test fails to compile after boostorg/coroutine submodule updated)
|
|
||||||
---
|
|
||||||
boost/coroutine/asymmetric_coroutine.hpp | 12 +++---------
|
|
||||||
1 file changed, 3 insertions(+), 9 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/boost/coroutine/asymmetric_coroutine.hpp b/boost/coroutine/asymmetric_coroutine.hpp
|
|
||||||
index ea96981..640896f 100644
|
|
||||||
--- a/boost/coroutine/asymmetric_coroutine.hpp
|
|
||||||
+++ b/boost/coroutine/asymmetric_coroutine.hpp
|
|
||||||
@@ -14,6 +14,7 @@
|
|
||||||
#include <boost/assert.hpp>
|
|
||||||
#include <boost/config.hpp>
|
|
||||||
#include <boost/move/move.hpp>
|
|
||||||
+#include <boost/range.hpp>
|
|
||||||
#include <boost/throw_exception.hpp>
|
|
||||||
#include <boost/utility/explicit_operator_bool.hpp>
|
|
||||||
|
|
||||||
@@ -2354,19 +2355,12 @@ end( push_coroutine< R > & c)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
-// forward declaration of Boost.Range traits to break dependency on it
|
|
||||||
-template<typename C, typename Enabler>
|
|
||||||
-struct range_mutable_iterator;
|
|
||||||
-
|
|
||||||
-template<typename C, typename Enabler>
|
|
||||||
-struct range_const_iterator;
|
|
||||||
-
|
|
||||||
template< typename Arg >
|
|
||||||
-struct range_mutable_iterator< coroutines::push_coroutine< Arg >, void >
|
|
||||||
+struct range_mutable_iterator< coroutines::push_coroutine< Arg > >
|
|
||||||
{ typedef typename coroutines::push_coroutine< Arg >::iterator type; };
|
|
||||||
|
|
||||||
template< typename R >
|
|
||||||
-struct range_mutable_iterator< coroutines::pull_coroutine< R >, void >
|
|
||||||
+struct range_mutable_iterator< coroutines::pull_coroutine< R > >
|
|
||||||
{ typedef typename coroutines::pull_coroutine< R >::iterator type; };
|
|
||||||
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.24.1
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
|||||||
DIST gmp-6.2.0.tar.xz 2012444 BLAKE2B 928141cf7b0b70f78b66e7bc52aecd39a5fc30e8865b6de6effb5b061ade05a5a51b4680ef2f36ea0d682b319d54ceb1c6c8ef93bde6c2eef2e8b826a34602c3 SHA512 a066f0456f0314a1359f553c49fc2587e484ff8ac390ff88537266a146ea373f97a1c0ba24608bf6756f4eab11c9056f103c8deb99e5b57741b4f7f0ec44b90c
|
|
||||||
DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb SHA512 c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
|
DIST gmp-6.2.1.tar.xz 2027316 BLAKE2B c0d85f175392a50cfa01bc6b0a312b235946ad8b4f6f84f6dabd33d7a6f2cc75c9b0e1e33057be07750bfa0145b7c4cf3b6188a5be6ca9d7271ec2276c84ebcb SHA512 c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
|
||||||
DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61 SHA512 25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239
|
DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61 SHA512 25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239
|
||||||
|
@ -1,105 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
|
|
||||||
|
|
||||||
MY_PV=${PV/_p*}
|
|
||||||
MY_PV=${MY_PV/_/-}
|
|
||||||
MY_P=${PN}-${MY_PV}
|
|
||||||
PLEVEL=${PV/*p}
|
|
||||||
DESCRIPTION="Library for arbitrary-precision arithmetic on different type of numbers"
|
|
||||||
HOMEPAGE="https://gmplib.org/"
|
|
||||||
SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
|
|
||||||
mirror://gnu/${PN}/${MY_P}.tar.xz
|
|
||||||
doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
|
|
||||||
|
|
||||||
LICENSE="|| ( LGPL-3+ GPL-2+ )"
|
|
||||||
# The subslot reflects the C & C++ SONAMEs.
|
|
||||||
SLOT="0/10.4"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="+asm doc +cxx pic static-libs"
|
|
||||||
|
|
||||||
BDEPEND="sys-devel/m4
|
|
||||||
app-arch/xz-utils"
|
|
||||||
|
|
||||||
S=${WORKDIR}/${MY_P%a}
|
|
||||||
|
|
||||||
DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
|
|
||||||
HTML_DOCS=( doc )
|
|
||||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# note: we cannot run autotools here as gcc depends on this package
|
|
||||||
elibtoolize
|
|
||||||
|
|
||||||
# https://bugs.gentoo.org/536894
|
|
||||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
||||||
eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
# GMP uses the "ABI" env var during configure as does Gentoo (econf).
|
|
||||||
# So, to avoid patching the source constantly, wrap things up.
|
|
||||||
mv configure configure.wrapped || die
|
|
||||||
cat <<-\EOF > configure
|
|
||||||
#!/usr/bin/env sh
|
|
||||||
exec env ABI="${GMPABI}" "$0.wrapped" "$@"
|
|
||||||
EOF
|
|
||||||
# Patches to original configure might have lost the +x bit.
|
|
||||||
chmod a+rx configure{,.wrapped} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
# Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
|
|
||||||
# https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
|
|
||||||
if [[ ${CHOST} == hppa2.0-* ]] ; then
|
|
||||||
GMPABI="1.0"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ABI mappings (needs all architectures supported)
|
|
||||||
case ${ABI} in
|
|
||||||
32|x86) GMPABI=32;;
|
|
||||||
64|amd64|n64) GMPABI=64;;
|
|
||||||
[onx]32) GMPABI=${ABI};;
|
|
||||||
esac
|
|
||||||
export GMPABI
|
|
||||||
|
|
||||||
#367719
|
|
||||||
if [[ ${CHOST} == *-mint* ]]; then
|
|
||||||
filter-flags -O?
|
|
||||||
fi
|
|
||||||
|
|
||||||
# --with-pic forces static libraries to be built as PIC
|
|
||||||
# and without TEXTRELs. musl does not support TEXTRELs: bug #707332
|
|
||||||
tc-export CC
|
|
||||||
ECONF_SOURCE="${S}" econf \
|
|
||||||
CC_FOR_BUILD="$(tc-getBUILD_CC)" \
|
|
||||||
--localstatedir="${EPREFIX}"/var/state/gmp \
|
|
||||||
--enable-shared \
|
|
||||||
$(use_enable asm assembly) \
|
|
||||||
$(use_enable cxx) \
|
|
||||||
$(use pic && echo --with-pic) \
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
emake DESTDIR="${D}" install
|
|
||||||
|
|
||||||
# should be a standalone lib
|
|
||||||
rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
|
|
||||||
# this requires libgmp
|
|
||||||
local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
|
|
||||||
use static-libs || rm -f "${la}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
einstalldocs
|
|
||||||
use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf "${ED}"/usr/share/doc/${PF}/
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST blosc-1.10.0.tar.gz 845312 BLAKE2B 15f367f1420f56e64ec01e74d7320adc194db11d15bd26a2b78c59c88a6127f1d2b5fc7bd53e02a6d0cad785c87cf79bb909dec62982b5ee8620c92ccdd80249 SHA512 f071d131966acd74cf71f8688ae9830091ee12a92399e8736f2b2cc2243bc022f9fd194c60493e912aef87a54202813a67a8f9bddd90c1c44631205d58c3f3e3
|
DIST blosc-1.10.0.tar.gz 845312 BLAKE2B 15f367f1420f56e64ec01e74d7320adc194db11d15bd26a2b78c59c88a6127f1d2b5fc7bd53e02a6d0cad785c87cf79bb909dec62982b5ee8620c92ccdd80249 SHA512 f071d131966acd74cf71f8688ae9830091ee12a92399e8736f2b2cc2243bc022f9fd194c60493e912aef87a54202813a67a8f9bddd90c1c44631205d58c3f3e3
|
||||||
|
DIST blosc-1.10.1.tar.gz 858162 BLAKE2B 768ae6d438d9fe05589460dcaeea77dbf2e0212bbc67388c6df1b9fc6bd1921e8cd79da2039cd4300cd91923d7988f8c4741ea1dbd5ebfa13e48f3ade678ac09 SHA512 06e393efa3fc7060205a483787eb4c5befe75dfdd6321b37c43ed7830dccf4d622bd88451e97da663ed9dc9302c30d7486315de9aff6351721862e2eceddd9a3
|
||||||
DIST blosc-1.9.2.tar.gz 816897 BLAKE2B 7d1a2d925500c8ddb93975dd785c03b91dec2716a438915d5dfdb739c650de8a47ed80eb25fc55357e69b586c446c5af61212e0a4fba8158839a66849309f478 SHA512 a8f53afb7fb1bb742e2daa03015b636d4dbb1fd073be079022364ec67035c9e6ee372ab07f7ce06579b85d9fcaedd2a11f30b9cf5b2bd1d1ea62cf32a8aa3c1f
|
DIST blosc-1.9.2.tar.gz 816897 BLAKE2B 7d1a2d925500c8ddb93975dd785c03b91dec2716a438915d5dfdb739c650de8a47ed80eb25fc55357e69b586c446c5af61212e0a4fba8158839a66849309f478 SHA512 a8f53afb7fb1bb742e2daa03015b636d4dbb1fd073be079022364ec67035c9e6ee372ab07f7ce06579b85d9fcaedd2a11f30b9cf5b2bd1d1ea62cf32a8aa3c1f
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="High performance compressor optimized for binary data"
|
||||||
|
HOMEPAGE="http://python-blosc.blosc.org"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="MIT"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-libs/c-blosc-1.19.0:="
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/scikit-build[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
DOCS=( ANNOUNCE.rst README.rst RELEASE_NOTES.rst )
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/blosc-1.10.0-unbundle.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
export BLOSC_DIR="${EPREFIX}/usr"
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
"${EPYTHON}" -m blosc.test -v || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
distutils-r1_python_install
|
||||||
|
python_optimize
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST funcy-1.10.1.tar.gz 29657 BLAKE2B fb2de795a5564f7009ff5717b8eadc3cb24a2cd4c30b9b9627861d7c8bcffdc1ea27f480c2895b8733f6dd965fbf9ee0fd7f12f8bbd3cf5f0d291829bc852f4b SHA512 123a5a828bd3cdbd38926923eb3979c4e5bca246da93179321eb1619df22cf6f722b5971d1309a1bdee2eeb362fc7fa85c6769a60efdd668350bf6c7d95e184c
|
|
||||||
DIST funcy-1.14.tar.gz 548493 BLAKE2B fff352d0e0d685fb51fb30302542c2e8893209df1e01912efae06821fbc885b05ab3fea8786d6924b48ddf32cc6bdd6def5e90db1ff949b005437b5d3771c3c0 SHA512 0c7daf1a6d87f56663ae0d37cc65654c79646c313ec530ac57e6ee8de04849b8846556fda10dd762f92e44a5ffa54d32880bed4cd77cec99ae865de0203d123a
|
DIST funcy-1.14.tar.gz 548493 BLAKE2B fff352d0e0d685fb51fb30302542c2e8893209df1e01912efae06821fbc885b05ab3fea8786d6924b48ddf32cc6bdd6def5e90db1ff949b005437b5d3771c3c0 SHA512 0c7daf1a6d87f56663ae0d37cc65654c79646c313ec530ac57e6ee8de04849b8846556fda10dd762f92e44a5ffa54d32880bed4cd77cec99ae865de0203d123a
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_6 python3_7 )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A collection of fancy functional tools focused on practicality"
|
|
||||||
HOMEPAGE="https://github.com/Suor/funcy"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="${DEPEND}"
|
|
@ -1 +1,2 @@
|
|||||||
DIST graphviz-0.15.zip 183103 BLAKE2B 81d4a121ca2654e6c08570ede7a1f5ef580b6a281358bf32f4178898fc12cfae21b10ce8f4f6fba4644e3275162cc09dbf5ae287a114fb8503be98d6a2fbf728 SHA512 c2a77f0d52595a70b4f8ccd906907453b59622560f0ff84e267e874f5a1dc9a4b721192d236b0519ee7ec85bae9b225b9919ae51bcf599c93bd5816934afd6cc
|
DIST graphviz-0.15.zip 183103 BLAKE2B 81d4a121ca2654e6c08570ede7a1f5ef580b6a281358bf32f4178898fc12cfae21b10ce8f4f6fba4644e3275162cc09dbf5ae287a114fb8503be98d6a2fbf728 SHA512 c2a77f0d52595a70b4f8ccd906907453b59622560f0ff84e267e874f5a1dc9a4b721192d236b0519ee7ec85bae9b225b9919ae51bcf599c93bd5816934afd6cc
|
||||||
|
DIST graphviz-0.16.zip 193031 BLAKE2B abedbe170eaf9d3ad83f91b5ad13aa9fbda8669ac19ebbd1087aeab3f9401b0b8e6557313e04d791451ee501c75bc2843d89d1a0f789a219b0db771467b4b8bb SHA512 7896901decf712657d4cb16fad58eab8492e1476e60a32b1a7fa37ede2e9c47ed31c00b7dedcaafdee291e2cfe6b2e2affa352282665782829fd3fb2f30bdf92
|
||||||
|
@ -0,0 +1,34 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Simple Python interface for Graphviz"
|
||||||
|
HOMEPAGE="https://graphviz.readthedocs.io/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
RDEPEND="media-gfx/graphviz"
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/unzip
|
||||||
|
test? ( ${RDEPEND}
|
||||||
|
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-mock-1.8[${PYTHON_USEDEP}]
|
||||||
|
media-gfx/graphviz[gts,pdf]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -e 's:--cov --cov-report=term --cov-report=html::' \
|
||||||
|
-i setup.cfg || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
|
||||||
|
PYTHON_REQ_USE="threads(+),sqlite"
|
||||||
|
|
||||||
|
inherit distutils-r1 eutils multiprocessing optfeature
|
||||||
|
|
||||||
|
DESCRIPTION="A library for property based testing"
|
||||||
|
HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
|
||||||
|
SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
|
||||||
|
S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
|
||||||
|
|
||||||
|
LICENSE="MPL-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||||
|
IUSE="cli test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
|
||||||
|
cli? (
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/black[${PYTHON_USEDEP}]
|
||||||
|
dev-python/click[${PYTHON_USEDEP}]
|
||||||
|
' python3_{6..9})
|
||||||
|
)
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
${RDEPEND}
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/pytest-6.2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
!!<dev-python/typing-3.7.4.1
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
python_prepare() {
|
||||||
|
if ! use cli || [[ ${EPYTHON} != python* ]]; then
|
||||||
|
sed -i -e '/console_scripts/d' setup.py || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
distutils_install_for_testing --via-root
|
||||||
|
pytest -vv tests/cover tests/pytest tests/quality \
|
||||||
|
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
|
||||||
|
die "Tests fail with ${EPYTHON}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
optfeature "datetime support" dev-python/pytz
|
||||||
|
optfeature "dateutil support" dev-python/python-dateutil
|
||||||
|
optfeature "numpy support" dev-python/numpy
|
||||||
|
optfeature "django support" dev-python/django dev-python/pytz
|
||||||
|
optfeature "pandas support" dev-python/pandas
|
||||||
|
optfeature "pytest support" dev-python/pytest
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# This is a backport of Python 3.9's importlib.resources
|
||||||
|
PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Read resources from Python packages"
|
||||||
|
HOMEPAGE="https://github.com/python/importlib_resources"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/zipp[${PYTHON_USEDEP}]
|
||||||
|
' pypy3 python3_{6,7})
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/toml[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/setuptools_scm-3.4.1[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests unittest
|
||||||
|
distutils_enable_sphinx docs dev-python/rst-linker dev-python/jaraco-packaging
|
@ -1 +1,2 @@
|
|||||||
DIST ipywidgets-7.5.1.tar.gz 5656334 BLAKE2B 8bd98f523b619bea02e01ae5faffb08040dc5011905dd69510728b02736e66444b3c3cdf1e7272884c1df97f610aff790063f783e1d0939786669ef39cd1fc94 SHA512 856b3e4dad331766eff6e5f1fd31984a4b6ede5c678ffd51a4896f6448dac53ba181ccec2821f10e07e0f1095318427affe19f1420d0337bc3d37ef1e0a9ea0d
|
DIST ipywidgets-7.5.1.tar.gz 5656334 BLAKE2B 8bd98f523b619bea02e01ae5faffb08040dc5011905dd69510728b02736e66444b3c3cdf1e7272884c1df97f610aff790063f783e1d0939786669ef39cd1fc94 SHA512 856b3e4dad331766eff6e5f1fd31984a4b6ede5c678ffd51a4896f6448dac53ba181ccec2821f10e07e0f1095318427affe19f1420d0337bc3d37ef1e0a9ea0d
|
||||||
|
DIST ipywidgets-7.6.0.tar.gz 4066107 BLAKE2B 5e5f9f6fca1e554ef2b6157a493435148a9832c7f69ec1245e24828363e2a9a1edea804236beaff1f0870d3c7aa028d329e18bc7b1aade7b212110dda3be018a SHA512 eee04406d90f8cadab0208923d51679677b6f630417b69acd0382fcb69cf3d727e47e5abde071939f0b5f45b8b0e72d0bf9316e41508c2c0df7518bfb322db51
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{7..9} )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="IPython HTML widgets for Jupyter"
|
||||||
|
HOMEPAGE="https://ipywidgets.readthedocs.io/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/ipykernel-4.5.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/nbformat-4.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/traitlets-4.3.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/widgetsnbextension-3.5.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
@ -1,3 +1,4 @@
|
|||||||
DIST pygame-1.9.6.tar.gz 3223131 BLAKE2B a4d04c933fcad244d32bd512ef8717e60ec923f361e9e0296b5c7d57c5949d3434a040d028249c5b8f3c865ac3dcdbb32e6f0b223186678595a8625213ba2a17 SHA512 d923c554203a7c35e37921658cb4c5bf50215ab0ff4d2b869a1ee6b2e2ca31d66ec4bbde4287f5a777838ffe932cd15b993cb0224b86e43d684de61c35acbcd0
|
DIST pygame-1.9.6.tar.gz 3223131 BLAKE2B a4d04c933fcad244d32bd512ef8717e60ec923f361e9e0296b5c7d57c5949d3434a040d028249c5b8f3c865ac3dcdbb32e6f0b223186678595a8625213ba2a17 SHA512 d923c554203a7c35e37921658cb4c5bf50215ab0ff4d2b869a1ee6b2e2ca31d66ec4bbde4287f5a777838ffe932cd15b993cb0224b86e43d684de61c35acbcd0
|
||||||
DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 7d78f260318cfabeb33f1073ae210f890d2f772e3ef302f243cca67724c6012355644ba60d4cae6de72db6dd61d320177deff6ee83dd355ec4cc33e841b565f7 SHA512 4cee7599fd8a6d31ddd66bfaad3bbb67cb167c1ae339f37e83322d810fea8746e81a191c224a0eeb6cc43a64bf1730ff0886c82f1a4f642e2e656ca9a837bf9e
|
DIST pygame-2.0.0.dev10.tar.gz 5567274 BLAKE2B 7d78f260318cfabeb33f1073ae210f890d2f772e3ef302f243cca67724c6012355644ba60d4cae6de72db6dd61d320177deff6ee83dd355ec4cc33e841b565f7 SHA512 4cee7599fd8a6d31ddd66bfaad3bbb67cb167c1ae339f37e83322d810fea8746e81a191c224a0eeb6cc43a64bf1730ff0886c82f1a4f642e2e656ca9a837bf9e
|
||||||
DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 49773979af53595d3ff2db1a18e4bcd217e26db3ec28d6129d2a588f23a1bd5326fa79fab32c25aa796738cde0e68f5741bee58f62432e86f89cd49ee17a8f14 SHA512 3f65924d0e1d2863b84118a4e468b521a289e2cf174405c6f3ee2b2a2ed399cde7f9f310d57c4166351f84caaea02dd7408ee852dbcee7c205bb2955b6078fda
|
DIST pygame-2.0.0.tar.gz 5522621 BLAKE2B 49773979af53595d3ff2db1a18e4bcd217e26db3ec28d6129d2a588f23a1bd5326fa79fab32c25aa796738cde0e68f5741bee58f62432e86f89cd49ee17a8f14 SHA512 3f65924d0e1d2863b84118a4e468b521a289e2cf174405c6f3ee2b2a2ed399cde7f9f310d57c4166351f84caaea02dd7408ee852dbcee7c205bb2955b6078fda
|
||||||
|
DIST pygame-2.0.1.tar.gz 5536907 BLAKE2B b27cb9001499a00da62dac0486a72079ff4e60ca609be444b04f547cb2372090da91d2670307ce7068b964458e6ac1284402439bb7809c9735135d5e93a71d78 SHA512 1535a872c43e5f75acdfa7d325fcfa0f0f826e18602b28b228cfdbe068a382678c21568d80873f7af4f0b318e693adb38afa4d632f8294f716a47188abe5245a
|
||||||
|
@ -0,0 +1,89 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_PV=${PV/_pre/.dev}
|
||||||
|
MY_P=${PN}-${MY_PV}
|
||||||
|
|
||||||
|
DESCRIPTION="Python bindings for SDL multimedia library"
|
||||||
|
HOMEPAGE="https://www.pygame.org/"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/pygame/pygame/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||||
|
IUSE="doc examples midi opengl test X"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
media-libs/freetype
|
||||||
|
>=media-libs/sdl2-image-1.2.2
|
||||||
|
>=media-libs/sdl2-mixer-1.2.4
|
||||||
|
>=media-libs/sdl2-ttf-2.0.6
|
||||||
|
>=media-libs/smpeg2-0.4.4-r1
|
||||||
|
midi? ( media-libs/portmidi )
|
||||||
|
X? ( >=media-libs/libsdl2-1.2.5[opengl?,threads,video,X] )
|
||||||
|
!X? ( >=media-libs/libsdl2-1.2.5[threads] )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? (
|
||||||
|
media-libs/sdl2-image[gif,jpeg,png]
|
||||||
|
media-libs/sdl2-mixer[mp3,vorbis,wav]
|
||||||
|
)"
|
||||||
|
# fontconfig used for fc-list
|
||||||
|
RDEPEND+="
|
||||||
|
media-libs/fontconfig"
|
||||||
|
# util-linux provides script
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
media-libs/fontconfig
|
||||||
|
sys-apps/util-linux
|
||||||
|
)"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if ! use midi; then
|
||||||
|
rm test/midi_test.py || die
|
||||||
|
fi
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_configure() {
|
||||||
|
PORTMIDI_INC_PORTTIME=1 LOCALBASE="${EPREFIX}/usr" \
|
||||||
|
"${EPYTHON}" "${S}"/buildconfig/config.py -auto || die
|
||||||
|
|
||||||
|
# Disable automagic dependency on PortMidi.
|
||||||
|
if ! use midi; then
|
||||||
|
sed -e "s:^pypm :#&:" -i Setup || die "sed failed"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local -x PYTHONPATH=${BUILD_DIR}/install/lib
|
||||||
|
local -x SDL_VIDEODRIVER=dummy
|
||||||
|
local -x SDL_AUDIODRIVER=disk
|
||||||
|
distutils_install_for_testing --via-root
|
||||||
|
script -eqc "${EPYTHON} -m pygame.tests" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
distutils-r1_python_install
|
||||||
|
|
||||||
|
# Bug #497720
|
||||||
|
rm -fr "${D}"$(python_get_sitedir)/pygame/{docs,examples,tests}/ || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
docinto html
|
||||||
|
dodoc -r docs/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
use examples && dodoc -r examples
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST pytz-2020.4.tar.gz 310941 BLAKE2B 8abe524ccb7ed676c64dbc129ade5d6562980ea28f8939a3a7a406acf16a8a936e79ff630bf37884610e8936dfe96311ecb752f3b79519a126e1f1ac48883842 SHA512 dcbe763bc6e48c52df855fe03a8109dc0656a0e851324c0468f4307e8aff60e577fe0c9f0b062319e90d2f639b96e98edf8346064705e244143386c863a0aa7c
|
DIST pytz-2020.4.tar.gz 310941 BLAKE2B 8abe524ccb7ed676c64dbc129ade5d6562980ea28f8939a3a7a406acf16a8a936e79ff630bf37884610e8936dfe96311ecb752f3b79519a126e1f1ac48883842 SHA512 dcbe763bc6e48c52df855fe03a8109dc0656a0e851324c0468f4307e8aff60e577fe0c9f0b062319e90d2f639b96e98edf8346064705e244143386c863a0aa7c
|
||||||
|
DIST pytz-2020.5.tar.gz 314194 BLAKE2B c374e0ee803878ad2dde1ef03c108f59f431d645d8067fb9f183b9feb029b4de283477e7f6c146a6d03462bd5cb4fc98118e03601c838f73903f5f7a7d28bf8f SHA512 0845c0b7cefb8732e3016568b17ae73232fe6537bac6da89cb1bf911ba5786ee1be6b5e3aa8767225291e3a7e9afd5b8e40e4051671a3a006f9e2f71c551e13e
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
diff --git a/pytz/__init__.py b/pytz/__init__.py
|
||||||
|
index a1f75b6..f2a2330 100644
|
||||||
|
--- a/pytz/__init__.py
|
||||||
|
+++ b/pytz/__init__.py
|
||||||
|
@@ -92,8 +92,7 @@ def open_resource(name):
|
||||||
|
if zoneinfo_dir is not None:
|
||||||
|
filename = os.path.join(zoneinfo_dir, *name_parts)
|
||||||
|
else:
|
||||||
|
- filename = os.path.join(os.path.dirname(__file__),
|
||||||
|
- 'zoneinfo', *name_parts)
|
||||||
|
+ filename = os.path.join('/usr/share/zoneinfo', *name_parts)
|
||||||
|
if not os.path.exists(filename):
|
||||||
|
# http://bugs.launchpad.net/bugs/383171 - we avoid using this
|
||||||
|
# unless absolutely necessary to help when a broken version of
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index e31ff2b..ba6926b 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -15,14 +15,8 @@ me = 'Stuart Bishop'
|
||||||
|
memail = 'stuart@stuartbishop.net'
|
||||||
|
packages = ['pytz']
|
||||||
|
resources = ['zone.tab', 'locales/pytz.pot']
|
||||||
|
-for dirpath, dirnames, filenames in os.walk(os.path.join('pytz', 'zoneinfo')):
|
||||||
|
- # remove the 'pytz' part of the path
|
||||||
|
- basepath = dirpath.split(os.path.sep, 1)[1]
|
||||||
|
- resources.extend([os.path.join(basepath, filename) for filename in filenames])
|
||||||
|
package_data = {'pytz': resources}
|
||||||
|
|
||||||
|
-assert len(resources) > 10, 'zoneinfo files not found!'
|
||||||
|
-
|
||||||
|
setup(
|
||||||
|
name='pytz',
|
||||||
|
version=pytz.VERSION,
|
@ -0,0 +1,32 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="World timezone definitions for Python"
|
||||||
|
HOMEPAGE="https://pythonhosted.org/pytz/ https://pypi.org/project/pytz/"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| ( >=sys-libs/timezone-data-2017a sys-libs/glibc[vanilla] )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-arch/unzip"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
# Use timezone-data zoneinfo.
|
||||||
|
"${FILESDIR}"/pytz-2020.5-system-zoneinfo.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
"${EPYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}"
|
||||||
|
}
|
@ -0,0 +1,128 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
PYTHON_COMPAT=( python3_{7..9} pypy3 )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Python documentation generator"
|
||||||
|
HOMEPAGE="https://www.sphinx-doc.org/
|
||||||
|
https://github.com/sphinx-doc/sphinx"
|
||||||
|
SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
|
||||||
|
IUSE="doc latex test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
<dev-python/alabaster-0.8[${PYTHON_USEDEP}]
|
||||||
|
dev-python/Babel[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/imagesize[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jinja[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pygments[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
dev-python/snowballstemmer[${PYTHON_USEDEP}]
|
||||||
|
dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}]
|
||||||
|
dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}]
|
||||||
|
dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}]
|
||||||
|
dev-python/sphinxcontrib-htmlhelp[${PYTHON_USEDEP}]
|
||||||
|
dev-python/sphinxcontrib-serializinghtml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}]
|
||||||
|
dev-python/packaging[${PYTHON_USEDEP}]
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/typed-ast[${PYTHON_USEDEP}]
|
||||||
|
' python3_{6,7})
|
||||||
|
latex? (
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
dev-texlive/texlive-luatex
|
||||||
|
app-text/dvipng
|
||||||
|
)"
|
||||||
|
BDEPEND="
|
||||||
|
doc? (
|
||||||
|
dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
|
||||||
|
media-gfx/graphviz
|
||||||
|
)
|
||||||
|
test? (
|
||||||
|
${RDEPEND}
|
||||||
|
dev-python/html5lib[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
virtual/imagemagick-tools[jpeg,png,svg]
|
||||||
|
dev-texlive/texlive-fontsextra
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
dev-texlive/texlive-luatex
|
||||||
|
app-text/dvipng
|
||||||
|
)"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${P^}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-3.2.1-doc-link.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# disable internet access
|
||||||
|
sed -i -e 's:^intersphinx_mapping:disabled_&:' \
|
||||||
|
doc/conf.py || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
distutils-r1_python_compile
|
||||||
|
|
||||||
|
# Generate the grammar. It will be caught by install somehow.
|
||||||
|
# Note that the tests usually do it for us. However, I don't want
|
||||||
|
# to trust USE=test really running all the tests, especially
|
||||||
|
# with FEATURES=test-fail-continue.
|
||||||
|
pushd "${BUILD_DIR}"/lib >/dev/null || die
|
||||||
|
"${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed."
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile_all() {
|
||||||
|
if use doc; then
|
||||||
|
esetup.py build_sphinx
|
||||||
|
HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
|
||||||
|
local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
|
||||||
|
|
||||||
|
local deselect=(
|
||||||
|
# these tests require Internet access
|
||||||
|
tests/test_build_latex.py::test_latex_images
|
||||||
|
tests/test_build_linkcheck.py::test_defaults
|
||||||
|
tests/test_build_linkcheck.py::test_defaults_json
|
||||||
|
tests/test_build_linkcheck.py::test_anchors_ignored
|
||||||
|
)
|
||||||
|
[[ ${EPYTHON} == pypy3 ]] && deselect+=(
|
||||||
|
tests/test_build_latex.py::test_latex_images
|
||||||
|
tests/test_ext_autodoc.py::test_autodoc_inherited_members_None
|
||||||
|
tests/test_ext_autodoc.py::test_automethod_for_builtin
|
||||||
|
tests/test_ext_autodoc.py::test_partialfunction
|
||||||
|
tests/test_ext_autodoc.py::test_autodoc_typed_instance_variables
|
||||||
|
tests/test_ext_autodoc.py::test_autodoc_typed_inherited_instance_variables
|
||||||
|
tests/test_ext_autodoc.py::test_cython
|
||||||
|
tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type
|
||||||
|
tests/test_ext_autodoc_autodata.py::test_autodata_type_comment
|
||||||
|
tests/test_ext_autodoc_autofunction.py::test_builtin_function
|
||||||
|
tests/test_ext_autodoc_autofunction.py::test_methoddescriptor
|
||||||
|
tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature
|
||||||
|
tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases
|
||||||
|
tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module
|
||||||
|
tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped
|
||||||
|
tests/test_pycode_parser.py::test_annotated_assignment_py36
|
||||||
|
)
|
||||||
|
|
||||||
|
pytest -vv ${deselect[@]/#/--deselect } ||
|
||||||
|
die "Tests fail with ${EPYTHON}"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST twine-3.2.0.tar.gz 145280 BLAKE2B b25fa984486a375e09705703a47994b529f6e5b48c6733c0a07b57bec6c0dfcdf4096d6ac6b0f9b7a7bfebfb32ea1cfb49c5de79f29495eb2a8fc59a5f8de4e5 SHA512 9959430913ea570d22f2d8b94e929af36b409b71691b3f66de8ddb77cfbfbe36590e21a6062db2a4a4f56ce2eb96984b0a474a93ea96b7734f53ada7a6411c28
|
DIST twine-3.2.0.tar.gz 145280 BLAKE2B b25fa984486a375e09705703a47994b529f6e5b48c6733c0a07b57bec6c0dfcdf4096d6ac6b0f9b7a7bfebfb32ea1cfb49c5de79f29495eb2a8fc59a5f8de4e5 SHA512 9959430913ea570d22f2d8b94e929af36b409b71691b3f66de8ddb77cfbfbe36590e21a6062db2a4a4f56ce2eb96984b0a474a93ea96b7734f53ada7a6411c28
|
||||||
|
DIST twine-3.3.0.tar.gz 148996 BLAKE2B 60668acd0481534631ca0ecf3c755df7e9e46c6d183d0f1c73ed7467cfecc144878d6ccf7ef2ee62efa17eb5629f5ed74c77c8ae4d57ef16530fad31afe40d97 SHA512 94fc7a9b3f2b5fc7c06baf55debf4fd55f6a2b4c4321c9bff46b844166769ce8bdcab10355c4967998149b62e13b26e11a30ff66042bfdd5af24d448321fd291
|
||||||
|
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Collection of utilities for publishing packages on PyPI"
|
||||||
|
HOMEPAGE="https://twine.readthedocs.io/ https://github.com/pypa/twine https://pypi.org/project/twine/"
|
||||||
|
SRC_URI="https://github.com/pypa/twine/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/jaraco-envs[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jaraco-functools[${PYTHON_USEDEP}]
|
||||||
|
dev-python/munch[${PYTHON_USEDEP}]
|
||||||
|
dev-python/portend[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pretend[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pypiserver[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/tqdm-4.14[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pkginfo-1.4.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/readme_renderer-21.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/requests-toolbelt-0.8.0[${PYTHON_USEDEP}]
|
||||||
|
$(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_{6,7} pypy{,3})
|
||||||
|
>=dev-python/keyring-15.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/rfc3986-1.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/colorama-0.4.3[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# avoid a setuptools_scm dependency
|
||||||
|
sed -i "s:use_scm_version=True:version='${PV}',name='${PN//-/.}':" setup.py || die
|
||||||
|
sed -r -i "s:setuptools(_|-)scm[[:space:]]*([><=]{1,2}[[:space:]]*[0-9.a-zA-Z]+|)[[:space:]]*::" \
|
||||||
|
setup.cfg || die
|
||||||
|
|
||||||
|
# requires internet
|
||||||
|
sed -e 's:test_check_status_code_for_wrong_repo_url:_&:' \
|
||||||
|
-i tests/test_upload.py || die
|
||||||
|
rm -f tests/test_integration.py || die
|
||||||
|
# pytest-socket dep relevant only to test_integration, and upstream
|
||||||
|
# disables it anyway
|
||||||
|
sed -i -e '/--disable-socket/d' pytest.ini || die
|
||||||
|
|
||||||
|
sed -i -e '/--cov/d' pytest.ini || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
distutils_install_for_testing
|
||||||
|
pytest -vv || die "Tests fail with ${EPYTHON}"
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST xmlschema-1.2.5.tar.gz 290750 BLAKE2B b6fb6722f1f9468cbae6507522c4398a7d0aff11918479b8e89e24986df2ad1ae4fe8640c5fe532319c6e7dbdb958d81df8cf81f1ceb18db09c406fc6a137219 SHA512 f821f041b7be483039746d7c7771117d4cac6189dd02a0f95235ea6597300dead39813b1ede9b6871fad93e50aa55f01f7da4e485c7074f66d78a76f1b57e7cf
|
DIST xmlschema-1.2.5.tar.gz 290750 BLAKE2B b6fb6722f1f9468cbae6507522c4398a7d0aff11918479b8e89e24986df2ad1ae4fe8640c5fe532319c6e7dbdb958d81df8cf81f1ceb18db09c406fc6a137219 SHA512 f821f041b7be483039746d7c7771117d4cac6189dd02a0f95235ea6597300dead39813b1ede9b6871fad93e50aa55f01f7da4e485c7074f66d78a76f1b57e7cf
|
||||||
DIST xmlschema-1.3.1.tar.gz 318853 BLAKE2B 1f2f960c5dad0c82a7ca0345bca052560d39f07b3fff9f443ec5d206a2ec92743462be2209e69a9330f432dbeb7e5908dae4168f7815cf64c141047876844453 SHA512 3bd2ba3004c1a397aff1c81c1105a603dd219f9c2c4afd0742aea3d7263dd0c50adbc05f4ccf96ad0a0f8bd5c116002152eba8194619e6bb636ef46111e6a2a4
|
DIST xmlschema-1.3.1.tar.gz 318853 BLAKE2B 1f2f960c5dad0c82a7ca0345bca052560d39f07b3fff9f443ec5d206a2ec92743462be2209e69a9330f432dbeb7e5908dae4168f7815cf64c141047876844453 SHA512 3bd2ba3004c1a397aff1c81c1105a603dd219f9c2c4afd0742aea3d7263dd0c50adbc05f4ccf96ad0a0f8bd5c116002152eba8194619e6bb636ef46111e6a2a4
|
||||||
DIST xmlschema-1.4.0.tar.gz 329087 BLAKE2B d41d66ee2f572d382aeac45369774caeb216aed8fdd679efa3fdc45ae81d4858e9c63cd17355b46f7378d0754a0307cc66d0f256c689a322a76d561b8c5d42f1 SHA512 572d317f92e6b881f8b95ae3fd6f663c947ff7f48d21f34e356b7fab91b167fe7557cd06bae9907804be95cdeaa7916418e8a4ea184aeae761e60cfb6016c2d1
|
DIST xmlschema-1.4.0.tar.gz 329087 BLAKE2B d41d66ee2f572d382aeac45369774caeb216aed8fdd679efa3fdc45ae81d4858e9c63cd17355b46f7378d0754a0307cc66d0f256c689a322a76d561b8c5d42f1 SHA512 572d317f92e6b881f8b95ae3fd6f663c947ff7f48d21f34e356b7fab91b167fe7557cd06bae9907804be95cdeaa7916418e8a4ea184aeae761e60cfb6016c2d1
|
||||||
|
DIST xmlschema-1.4.1.tar.gz 329488 BLAKE2B 80125c6867facb8f94574f4aa210239057f6c8429ff52daac047457eaf6c836b051ccf8e0dec751c1bc57e4de7343781849fe88290117b8546ecd9b8ee99859a SHA512 935e4bffa5361e87fe0656c04b79fe50213098db86e18de38d82d9c04e45557b7ce9468379644c202ab25bdbd6f430bf85a639c3aa7636833d4bbe8533738e82
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
# Copyright 2019-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||||
|
PYTHON_COMPAT=( python3_{6..9} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="An XML Schema validator and decoder"
|
||||||
|
HOMEPAGE="https://github.com/sissaschool/xmlschema https://pypi.org/project/xmlschema/"
|
||||||
|
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/elementpath-2.0.2[${PYTHON_USEDEP}]"
|
||||||
|
BDEPEND="${RDEPEND}
|
||||||
|
test? (
|
||||||
|
dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
"${EPYTHON}" tests/test_all.py -v ||
|
||||||
|
die "Tests fail with ${EPYTHON}"
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
DIST ffi-compiler-1.0.1.gem 18432 BLAKE2B 9832d9836a0b55d3099085b53e0c8e15cc5ae79cfadadea942603ef8595b5fa4d781b5f031f0592b2688acb1416acffa9e525e3cbc004c2c51aaaea12a722706 SHA512 7a13625ab1c5748d05ec93d68708dd9435ec92dcd0c823109c44173fdaf8710aec5f5b4fb11966475f10ae91401c7ca3c620f9d36bb9ca665114e1ed70f4edd0
|
@ -0,0 +1,21 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
USE_RUBY="ruby25 ruby26 ruby27"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="none"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="Ruby FFI Rakefile generator"
|
||||||
|
HOMEPAGE="https://github.com/ffi/ffi/wiki"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
ruby_add_rdepend "dev-ruby/rake >=dev-ruby/ffi-1.0.0"
|
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>kde@gentoo.org</email>
|
<email>ruby@gentoo.org</email>
|
||||||
<name>Gentoo KDE Project</name>
|
<name>Gentoo Ruby Project</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
@ -0,0 +1 @@
|
|||||||
|
DIST http-parser-1.2.2.gem 32256 BLAKE2B bc1600497db7c0ae9ee9311a6eae6494090b190b49d37809671d0c2fbb3b56ab4709dd16b68c7bfe8fc75609fc6f01d31c21c92681b9adbb4c83e521991d9172 SHA512 cffc1561657b7cb50c446e54da20176870ffe5f1acfe5e9fadfeacbea421fcc89243dd8f4a04d7933e19c155662fcd47db950c3743968d7981c52aa6c0a43ab5
|
@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="A super fast http parser for ruby"
|
||||||
|
HOMEPAGE="https://github.com/cotag/http-parser"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="$(ver_cut 1)"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND+=" >=net-libs/http-parser-2.8.1"
|
||||||
|
RDEPEND+=" >=net-libs/http-parser-2.8.1"
|
||||||
|
|
||||||
|
ruby_add_bdepend "dev-ruby/ffi-compiler"
|
||||||
|
|
||||||
|
each_ruby_compile() {
|
||||||
|
${RUBY} -C ext -S rake || die
|
||||||
|
mv ext/x86_64-linux/libhttp-parser-ext.so lib/http-parser/ || die
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>ruby@gentoo.org</email>
|
||||||
|
<name>Gentoo Ruby Project</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">cotag/http-parser</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
|||||||
DIST http-3.3.0.gem 70656 BLAKE2B 5c52864168663640389a0f107e1bf8a202654a8b479c92bf5126354d360adcae45a9b4596da7cff2e412fee88ed3622870c4e2bb18eca97466b4ede28baa2a08 SHA512 fcb2549c22974712e129306b472c1a32466c50add85eee9a558582697c7ece26cb7a1db6da6aaceedb8bfd134d1213090c158db510fe53ddbe201bba6bd22c68
|
DIST http-3.3.0.gem 70656 BLAKE2B 5c52864168663640389a0f107e1bf8a202654a8b479c92bf5126354d360adcae45a9b4596da7cff2e412fee88ed3622870c4e2bb18eca97466b4ede28baa2a08 SHA512 fcb2549c22974712e129306b472c1a32466c50add85eee9a558582697c7ece26cb7a1db6da6aaceedb8bfd134d1213090c158db510fe53ddbe201bba6bd22c68
|
||||||
DIST http-4.1.1.gem 74240 BLAKE2B 350d4a2eb966f8dae05a206e20a92d8ce0601df36673cae8c969b8849d6715c5d0ab0e24c4b6cc4f117e4788e535296f86d5193198df4a8229572817c9cd3f75 SHA512 89e088521212293db692b66a7058327c215bba119b3f01d4120fd32f0754294d4cbada88ed9cffb6f182f6d712a0923dadfc645c1618e25a802fcc3d467356de
|
DIST http-4.1.1.gem 74240 BLAKE2B 350d4a2eb966f8dae05a206e20a92d8ce0601df36673cae8c969b8849d6715c5d0ab0e24c4b6cc4f117e4788e535296f86d5193198df4a8229572817c9cd3f75 SHA512 89e088521212293db692b66a7058327c215bba119b3f01d4120fd32f0754294d4cbada88ed9cffb6f182f6d712a0923dadfc645c1618e25a802fcc3d467356de
|
||||||
|
DIST http-4.4.1.gem 75776 BLAKE2B ab34a6a567842d52f9b7cbe3fc3fb8e4757f5cf1303deacdf2f2130a44e82fde64f0db561c3f8fc28100faea277a9c4a9352f95e6cb1359730b34e83a7b36d72 SHA512 6e43a8ae379d7c8a807a9a03c87bfb5ad1719f9838e26ac7a695220ee2bc50344accc2db268d30da175328fd5468b87ec8532d17ce42a5b74d6c2c4c281d1bc9
|
||||||
|
@ -0,0 +1,49 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
USE_RUBY="ruby25 ruby26 ruby27"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="An easy-to-use client library for making requests from Ruby"
|
||||||
|
HOMEPAGE="https://github.com/tarcieri/http"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
>=dev-ruby/addressable-2.3:0
|
||||||
|
>=dev-ruby/http-cookie-1.0:0
|
||||||
|
>=dev-ruby/http-form_data-2.2:2
|
||||||
|
=dev-ruby/http-parser-1.2*"
|
||||||
|
|
||||||
|
ruby_add_bdepend "
|
||||||
|
test? ( dev-ruby/certificate_authority dev-ruby/rspec-its )"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
sed -i -e '/simplecov/,/end/ s:^:#:' \
|
||||||
|
-e '1irequire "cgi"' spec/spec_helper.rb || die
|
||||||
|
|
||||||
|
# Avoid specs that require network access
|
||||||
|
sed -i -e '/.persistent/,/^ end/ s:^:#:' \
|
||||||
|
spec/lib/http_spec.rb || die
|
||||||
|
sed -i -e '/with non-ASCII URLs/,/^ end/ s:^:#:' \
|
||||||
|
spec/lib/http/client_spec.rb || die
|
||||||
|
|
||||||
|
# Avoid spec that may fail with a running web server
|
||||||
|
sed -i -e '/unifies socket errors into HTTP::ConnectionError/,/^ end/ s:^:#:' spec/lib/http_spec.rb || die
|
||||||
|
|
||||||
|
# Fix spec for production release
|
||||||
|
sed -i -e '/User-Agent:/ s/.dev//' spec/lib/http/features/logging_spec.rb || die
|
||||||
|
|
||||||
|
# Avoid specs also failing upstream due to some certificate issue
|
||||||
|
sed -i -e '/context "ssl"/,/^ end/ s:^:#:' spec/lib/http_spec.rb || die
|
||||||
|
sed -i -e '/describe "working with SSL"/,/^ end/ s:^:#:' spec/lib/http/client_spec.rb || die
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,13 @@
|
|||||||
|
--- a/configure.ac 2020-12-25 11:05:31.312433864 +0100
|
||||||
|
+++ b/configure.ac 2020-12-25 11:05:42.692248123 +0100
|
||||||
|
@@ -247,10 +247,8 @@
|
||||||
|
|
||||||
|
dnl Enable a stable ABI
|
||||||
|
DC_SETUP_STABLE_API([${srcdir}/tcltls.vers], tcltls.syms)
|
||||||
|
-if test "$tcltls_debug" = 'true'; then
|
||||||
|
WEAKENSYMS=':'
|
||||||
|
REMOVESYMS=':'
|
||||||
|
-fi
|
||||||
|
|
||||||
|
dnl Produce output
|
||||||
|
AC_OUTPUT(Makefile pkgIndex.tcl tcltls.syms)
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST BNFC-2.8.1.tar.gz 225015 BLAKE2B 973f7a5ebc5fb995bf0014621ba7bfebe0d6adbb35bd276b3f7ec56e3fe1ab08c3811d27a2d58a73ca52ac4bf9ba35fba3d172a82684b1ef999a2fdd6dc4ece9 SHA512 d5ea9b4129a4f71c2d66cda2f859a2c39be6d4400cddbd5a5303b5b408f4cf03ce7a92825224f4674c6cc48bec07429c447b9b39fc4e6d144c922bf1b0829561
|
|
||||||
DIST BNFC-2.8.3.tar.gz 286964 BLAKE2B 5c8a5d08b1b705e064ef0a7a685dab455e933d0fa84946b4526aebee8698e94ea2cdfa797eb63320e9632b3503da5c41ea2aa59d0bb1f0fa9bda3588a19552d9 SHA512 742937cb0674f5e890376f51aeeccaf2f4c986f6b27e77faaee1ac8baebec553e70c623844c7c63e1caf441592b53113ba4ba187d88a9e869885d40201c54bef
|
DIST BNFC-2.8.3.tar.gz 286964 BLAKE2B 5c8a5d08b1b705e064ef0a7a685dab455e933d0fa84946b4526aebee8698e94ea2cdfa797eb63320e9632b3503da5c41ea2aa59d0bb1f0fa9bda3588a19552d9 SHA512 742937cb0674f5e890376f51aeeccaf2f4c986f6b27e77faaee1ac8baebec553e70c623844c7c63e1caf441592b53113ba4ba187d88a9e869885d40201c54bef
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue