parent
2976fb3cdf
commit
2aa5f483d1
Binary file not shown.
Binary file not shown.
@ -0,0 +1,80 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{10..11} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
MY_P=aws-cli-${PV}
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/aws/aws-cli/
|
||||||
|
https://pypi.org/project/awscli/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||||
|
-> ${MY_P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+2).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
dev-python/colorama[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
!app-admin/awscli-bin
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
# strip overzealous upper bounds on requirements
|
||||||
|
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# TODO
|
||||||
|
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
||||||
|
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
||||||
|
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
||||||
|
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
||||||
|
)
|
||||||
|
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
|
DIST isoimagewriter-0.9.1.tar.xz 460048 BLAKE2B 0fa8b1251524dc023f370b540873ea68312025487a4ed09fe4d214bab2cd8f7b16a1c5b2a5eb8603a7019797b66538c902edd9c1fb2be5d8131229bbaa84f180 SHA512 f989c4bd164e2a34d5b2305eac67f34e2a47056993e30c9d9041679b49eb004b40cdae956d49a0b11a12feff280915f5bcd45e12c8a1f8975d95eb99f36c4b2d
|
||||||
DIST isoimagewriter-0.9.tar.xz 446764 BLAKE2B db3628c702b845591c5895662aad17a4c691352b97ad29f0569db6472cd39c6446ff220c932e970aaf8e56be30c8549358fb6d2e318f01c12830e55fbeadd499 SHA512 94a05da44b22ae932a79f6bb91c6806047f94e9b0fb4fe5530eb6094664877c47a0581f0858ff4458daca8924a7803a979e74d6538ec8da642403c4ede58688d
|
DIST isoimagewriter-0.9.tar.xz 446764 BLAKE2B db3628c702b845591c5895662aad17a4c691352b97ad29f0569db6472cd39c6446ff220c932e970aaf8e56be30c8549358fb6d2e318f01c12830e55fbeadd499 SHA512 94a05da44b22ae932a79f6bb91c6806047f94e9b0fb4fe5530eb6094664877c47a0581f0858ff4458daca8924a7803a979e74d6538ec8da642403c4ede58688d
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
KFMIN=5.102.0
|
||||||
|
QTMIN=5.15.5
|
||||||
|
inherit ecm kde.org
|
||||||
|
|
||||||
|
DESCRIPTION="Write hybrid ISO files onto a USB disk"
|
||||||
|
HOMEPAGE="https://community.kde.org/ISOImageWriter"
|
||||||
|
|
||||||
|
if [[ ${KDE_BUILD_TYPE} == release ]]; then
|
||||||
|
SRC_URI="mirror://kde/unstable/${PN}/${PV}/${P}.tar.xz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="5"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
app-crypt/gpgme:=[cxx(+),qt5]
|
||||||
|
>=dev-qt/qtdbus-${QTMIN}:5
|
||||||
|
>=dev-qt/qtgui-${QTMIN}:5
|
||||||
|
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||||
|
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||||
|
>=kde-frameworks/karchive-${KFMIN}:5
|
||||||
|
>=kde-frameworks/kcrash-${KFMIN}:5
|
||||||
|
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||||
|
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||||
|
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||||
|
>=kde-frameworks/solid-${KFMIN}:5
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
sys-fs/udisks:2
|
||||||
|
"
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,26 @@
|
|||||||
|
# https://github.com/neovim/neovim/commit/46c4cbced567f5f05f2c95b91cd90084ea8b5528
|
||||||
|
# Closes: https://bugs.gentoo.org/903629
|
||||||
|
# Contributed by Olivier Huber <oli.huber@gmail.com>
|
||||||
|
--- a/cmake/FindMsgpack.cmake
|
||||||
|
+++ b/cmake/FindMsgpack.cmake
|
||||||
|
@@ -26,18 +26,8 @@
|
||||||
|
set(MSGPACK_VERSION_STRING)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-if(MSVC)
|
||||||
|
- # The import library for the msgpack DLL has a different name
|
||||||
|
- list(APPEND MSGPACK_NAMES msgpackc_import)
|
||||||
|
-else()
|
||||||
|
- list(APPEND MSGPACK_NAMES msgpackc msgpack)
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
-find_library(MSGPACK_LIBRARY NAMES ${MSGPACK_NAMES}
|
||||||
|
- # Check each directory for all names to avoid using headers/libraries from
|
||||||
|
- # different places.
|
||||||
|
- NAMES_PER_DIR
|
||||||
|
- HINTS ${PC_MSGPACK_LIBDIR} ${PC_MSGPACK_LIBRARY_DIRS})
|
||||||
|
+find_library(MSGPACK_LIBRARY NAMES msgpackc msgpack msgpackc_import msgpack-c
|
||||||
|
+ NAMES_PER_DIR)
|
||||||
|
|
||||||
|
mark_as_advanced(MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY)
|
||||||
|
|
Binary file not shown.
Binary file not shown.
@ -1,10 +1,8 @@
|
|||||||
DIST wine-8.0.tar.xz 29054044 BLAKE2B baf8f96b665119c9f38a148a2472dbe8f6ca8d4641d9d09d48cb72cb4de2585c274b8b7981c2fa622ead6da2f087c57652e9b48edc8a17c0cfd6be9a36732f02 SHA512 53ba813b260a65a271ec575822725b97631f60038fb026dcc0fe66862711eedcc29a8feb29ff54ae4f64458f85c290d8f3838eff5e4c77a5420a7d2b951fef77
|
DIST wine-8.0.tar.xz 29054044 BLAKE2B baf8f96b665119c9f38a148a2472dbe8f6ca8d4641d9d09d48cb72cb4de2585c274b8b7981c2fa622ead6da2f087c57652e9b48edc8a17c0cfd6be9a36732f02 SHA512 53ba813b260a65a271ec575822725b97631f60038fb026dcc0fe66862711eedcc29a8feb29ff54ae4f64458f85c290d8f3838eff5e4c77a5420a7d2b951fef77
|
||||||
DIST wine-8.1.tar.xz 29083080 BLAKE2B 6eed2128627f15159ad80588ebe839de76cb9a536797d7da136b61f56033ece60c60208702b7928cdb297c1d8730baae0d6bb0ac7a0473c34ed44b5c5edaaec5 SHA512 3f0477c26f293cf928acbdae2ffb98740ac227a605ec90f3ab3d35c0dbca2037529ff4e4de0b69cc975579ad14dc2fb8b52e050cfd99cffcc627418cf8cb4346
|
|
||||||
DIST wine-8.2.tar.xz 29129032 BLAKE2B 831a5d1c8228050db9257ed60dc77ed0a391f16ee16d2e5563eabbf8f7d988655477327e1081baf947b173e8eb716b15fb72d1daa70d5ade52508c7f1cc2c231 SHA512 d0b8bb8c6d75034519bdf48d52b89f9d44ba4f7306a0b8f860cbb2c4c39d8fae3c2d9c12be37427b9a9cbdb7dd8701844d0a74c245dd7a9e8a423cb56962b254
|
|
||||||
DIST wine-8.3.tar.xz 28983532 BLAKE2B b811a13aaa87f186c744254059d40fdf0740da42cf788acb2375c04cf3ecc281c92afc7bb7830d5797624d96f803edcb2d2778c5da378d89938fe0b68e72a287 SHA512 9c0c86f1d523cc65fe6bcb2f98e73f8909282eda1c04516ff35a32833e469421e099fe1351c3078ac96aa7884fc194a77fcf2ba8863e2a227316fd84562f1f5a
|
DIST wine-8.3.tar.xz 28983532 BLAKE2B b811a13aaa87f186c744254059d40fdf0740da42cf788acb2375c04cf3ecc281c92afc7bb7830d5797624d96f803edcb2d2778c5da378d89938fe0b68e72a287 SHA512 9c0c86f1d523cc65fe6bcb2f98e73f8909282eda1c04516ff35a32833e469421e099fe1351c3078ac96aa7884fc194a77fcf2ba8863e2a227316fd84562f1f5a
|
||||||
DIST wine-8.4.tar.xz 29031312 BLAKE2B 0b91267a68e4e332544d273646bb1e9389c3af3f48069ab7942096af5512e86a61d39788d91c221b4ae96e81858cfdff1e43a658ba407ff1450b6d752b8a3235 SHA512 8de144a65c0a3a2984fabc1294b647b8581da5fa8bd28a9ff756ab59256ee2b453d898453fc902bbc372a4e017a8e29b1eeef917f137ec1134ac08b671eccc7d
|
DIST wine-8.4.tar.xz 29031312 BLAKE2B 0b91267a68e4e332544d273646bb1e9389c3af3f48069ab7942096af5512e86a61d39788d91c221b4ae96e81858cfdff1e43a658ba407ff1450b6d752b8a3235 SHA512 8de144a65c0a3a2984fabc1294b647b8581da5fa8bd28a9ff756ab59256ee2b453d898453fc902bbc372a4e017a8e29b1eeef917f137ec1134ac08b671eccc7d
|
||||||
|
DIST wine-8.5.tar.xz 29064032 BLAKE2B 35fa6d7ec88ff67d9acf13466b3618eb45d664bed0a9ee581e46cb6e7692395837c8c8e86dead1dbcad582ef29c674a0df4b7180addee837b466eba7fdcd350a SHA512 f6aaab8a32eb7bce7f48d21d99417c9e6e8fe41b3d36320762775ef954db7ddd4fcff01d56475f35038d814557834a41a9e3ae85e5cae8a1b820c5044b42a327
|
||||||
DIST wine-staging-8.0.tar.gz 9529620 BLAKE2B c9540195ea885d9f1e980232b0af471e92c61eb079cae35fdb3af5c13d4660b3466f751772440e38f15874082db296d16d1f1d68827a505b2dd949617eda0203 SHA512 76a729d7ced1ff634ddb455ddfaa66ca103b652f43cd152b57ada7431bb5fbb74f5e92bf2f4f329b6df6f5908130afad84e609cbce6df645d6cf8131e9b949f9
|
DIST wine-staging-8.0.tar.gz 9529620 BLAKE2B c9540195ea885d9f1e980232b0af471e92c61eb079cae35fdb3af5c13d4660b3466f751772440e38f15874082db296d16d1f1d68827a505b2dd949617eda0203 SHA512 76a729d7ced1ff634ddb455ddfaa66ca103b652f43cd152b57ada7431bb5fbb74f5e92bf2f4f329b6df6f5908130afad84e609cbce6df645d6cf8131e9b949f9
|
||||||
DIST wine-staging-8.1.tar.gz 9527176 BLAKE2B 363243a4a04bc767099b74f3b7613463d99da82996c176e68b9233cbf51c87ecd143840f7729a3edc31ac004b771b89ec3d57a0276b26e30d475feb273d09257 SHA512 c5c3111b27de7d3bf1d7a3a53f33e8d78c5006f22ff0361f77392455fa69b0afd7c58406515ace04b2df7e1dfb20e3adf9d874e5e8be09c9032c1c1aa31fe696
|
|
||||||
DIST wine-staging-8.2.tar.gz 9528476 BLAKE2B e6fb4d15e9b94c9196c1f472ac50fbd3eabe34ef4a54493ca11b702448c4039c5a4f13fb1119a88477924e204c6e1972b1b25efe742118beec01f71a9d879aa2 SHA512 24bbfb6d03ca8282de058019cbbee57b36f8fdcf3e485f2ca94dbcf50614cf6c80e31103196d11fe48c77953d59a741ae2baf6987e56a88bea038ed16b692ad9
|
|
||||||
DIST wine-staging-8.3.tar.gz 9523336 BLAKE2B 3fdb6343ab3735e9235ea3d99e3da4d392de9620d93e85e2bd3b13ae2e0eca2654b2b48230a3bfd7c66ead1fb751ddb092b361943f7a95eb3df5a240c2b9e32b SHA512 e2b1dc107088f716f1c7e80bc25b152ff5c2c4c4a6f29a60e42eabdea0e8b5df84eaeaf8b978f5aefc3f9ad5962eb74784d5a98b95fa3694485d00f3fa628ce6
|
DIST wine-staging-8.3.tar.gz 9523336 BLAKE2B 3fdb6343ab3735e9235ea3d99e3da4d392de9620d93e85e2bd3b13ae2e0eca2654b2b48230a3bfd7c66ead1fb751ddb092b361943f7a95eb3df5a240c2b9e32b SHA512 e2b1dc107088f716f1c7e80bc25b152ff5c2c4c4a6f29a60e42eabdea0e8b5df84eaeaf8b978f5aefc3f9ad5962eb74784d5a98b95fa3694485d00f3fa628ce6
|
||||||
DIST wine-staging-8.4.tar.gz 9522340 BLAKE2B b9fb08f529c9c24d9d6b09adbb359b265e246b8f4651eef0983d10b9c84afbdc9c58e04180e802cd3a7d0951f12ff46495b1ec0508e02f5b76ae7d0d987dc22c SHA512 96a6a870020e59f8437c65604536fec4b80d7d9e5a937e5d0a6cb0b2b4e544e6153fa0cdf2a8fd2c32d090001334e68124c2855c6a2a1454fdcdb6ea23d75fd7
|
DIST wine-staging-8.4.tar.gz 9522340 BLAKE2B b9fb08f529c9c24d9d6b09adbb359b265e246b8f4651eef0983d10b9c84afbdc9c58e04180e802cd3a7d0951f12ff46495b1ec0508e02f5b76ae7d0d987dc22c SHA512 96a6a870020e59f8437c65604536fec4b80d7d9e5a937e5d0a6cb0b2b4e544e6153fa0cdf2a8fd2c32d090001334e68124c2855c6a2a1454fdcdb6ea23d75fd7
|
||||||
|
DIST wine-staging-8.5.tar.gz 9530306 BLAKE2B 9457fb44aea427c2c09d6329f2f585ae7e14ca32950204019136616d73ad1b83b629297499197b91fb542784b8e5b6edd8743ee6a72794ce58ef5c6b1d27f308 SHA512 9d347c55a62f661bdcc102d373e05d162217b7b1348bdb6f2b114d20e35146862379d2cf03a96916bd1d52166a538af55d48e25a169cd6ee23818673bd35909a
|
||||||
|
@ -1,359 +0,0 @@
|
|||||||
# Copyright 2022-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
|
||||||
inherit autotools flag-o-matic multilib multilib-build toolchain-funcs wrapper
|
|
||||||
|
|
||||||
WINE_GECKO=2.47.3
|
|
||||||
WINE_MONO=7.4.0
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/wine-staging/wine-staging.git"
|
|
||||||
WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
|
||||||
else
|
|
||||||
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
|
||||||
SRC_URI="
|
|
||||||
https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz
|
|
||||||
https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86"
|
|
||||||
fi
|
|
||||||
S="${WORKDIR}/wine-${PV}"
|
|
||||||
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
|
|
||||||
HOMEPAGE="https://wiki.winehq.org/Wine-Staging"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
|
||||||
SLOT="${PV}"
|
|
||||||
IUSE="
|
|
||||||
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
|
||||||
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
|
||||||
+gstreamer kerberos +mingw +mono netapi nls odbc opencl +opengl
|
|
||||||
osmesa pcap perl pulseaudio samba scanner +sdl selinux +ssl
|
|
||||||
+truetype udev udisks +unwind usb v4l +vulkan +xcomposite xinerama"
|
|
||||||
REQUIRED_USE="
|
|
||||||
X? ( truetype )
|
|
||||||
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
|
||||||
|
|
||||||
# tests are non-trivial to run, can hang easily, don't play well with
|
|
||||||
# sandbox, and several need real opengl/vulkan or network access
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
|
||||||
WINE_DLOPEN_DEPEND="
|
|
||||||
X? (
|
|
||||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
|
||||||
opengl? (
|
|
||||||
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
|
||||||
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
|
||||||
)
|
|
||||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
|
||||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
|
||||||
)
|
|
||||||
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
|
||||||
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
|
||||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
|
||||||
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
|
||||||
odbc? ( dev-db/unixODBC[${MULTILIB_USEDEP}] )
|
|
||||||
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
|
||||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
|
||||||
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
|
||||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
|
||||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
|
||||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
|
||||||
WINE_COMMON_DEPEND="
|
|
||||||
${WINE_DLOPEN_DEPEND}
|
|
||||||
X? (
|
|
||||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
|
||||||
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
|
||||||
gstreamer? (
|
|
||||||
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
|
||||||
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
|
||||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
|
||||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
|
||||||
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
|
||||||
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
|
||||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
|
||||||
unwind? (
|
|
||||||
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
|
||||||
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
|
||||||
)
|
|
||||||
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )"
|
|
||||||
RDEPEND="
|
|
||||||
${WINE_COMMON_DEPEND}
|
|
||||||
app-emulation/wine-desktop-common
|
|
||||||
dos? ( games-emulation/dosbox )
|
|
||||||
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
|
||||||
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
|
||||||
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
|
||||||
perl? (
|
|
||||||
dev-lang/perl
|
|
||||||
dev-perl/XML-LibXML
|
|
||||||
)
|
|
||||||
samba? ( net-fs/samba[winbind] )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
udisks? ( sys-fs/udisks:2 )"
|
|
||||||
DEPEND="
|
|
||||||
${WINE_COMMON_DEPEND}
|
|
||||||
sys-kernel/linux-headers
|
|
||||||
X? ( x11-base/xorg-proto )"
|
|
||||||
BDEPEND="
|
|
||||||
dev-lang/perl
|
|
||||||
sys-devel/binutils
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/flex
|
|
||||||
virtual/pkgconfig
|
|
||||||
mingw? ( !crossdev-mingw? (
|
|
||||||
>=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}]
|
|
||||||
) )
|
|
||||||
nls? ( sys-devel/gettext )"
|
|
||||||
IDEPEND=">=app-eselect/eselect-wine-2"
|
|
||||||
|
|
||||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
|
||||||
__clear_cache # unused on amd64+x86 (bug #900334)
|
|
||||||
res_getservers # false positive
|
|
||||||
)
|
|
||||||
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-7.17-noexecstack.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.20-unwind.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ ${MERGE_TYPE} == binary ]] && return
|
|
||||||
|
|
||||||
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
|
||||||
local mingw=-w64-mingw32
|
|
||||||
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
|
||||||
if ! type -P ${mingw}-gcc >/dev/null; then
|
|
||||||
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
|
||||||
eerror "yourself by installing sys-devel/crossdev then running:"
|
|
||||||
eerror
|
|
||||||
eerror " crossdev --target ${mingw}"
|
|
||||||
eerror
|
|
||||||
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
|
||||||
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == *9999 ]]; then
|
|
||||||
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}
|
|
||||||
git-r3_src_unpack
|
|
||||||
|
|
||||||
EGIT_COMMIT=$(<"${EGIT_CHECKOUT_DIR}"/staging/upstream-commit) || die
|
|
||||||
EGIT_REPO_URI=${WINE_EGIT_REPO_URI}
|
|
||||||
EGIT_CHECKOUT_DIR=${S}
|
|
||||||
einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})"
|
|
||||||
git-r3_src_unpack
|
|
||||||
else
|
|
||||||
default
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local staging=(
|
|
||||||
./patchinstall.sh DESTDIR="${S}"
|
|
||||||
--all
|
|
||||||
--backend=eapply
|
|
||||||
--no-autoconf
|
|
||||||
-W winemenubuilder-Desktop_Icon_Path #652176
|
|
||||||
${MY_WINE_STAGING_CONF}
|
|
||||||
)
|
|
||||||
|
|
||||||
# source patcher in a subshell so can use eapply as a backend
|
|
||||||
ebegin "Running ${staging[*]}"
|
|
||||||
( cd ../${P}/patches && . "${staging[@]}" )
|
|
||||||
eend ${?} || die "Failed to apply the patchset"
|
|
||||||
|
|
||||||
# sanity check, bumping these has a history of oversights
|
|
||||||
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
|
||||||
dlls/appwiz.cpl/addons.c || die)
|
|
||||||
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
|
||||||
local gmfatal=
|
|
||||||
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
|
||||||
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
# ensure .desktop calls this variant + slot
|
|
||||||
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
|
||||||
|
|
||||||
# always update for patches (including user's wrt #432348)
|
|
||||||
eautoreconf
|
|
||||||
tools/make_requests || die # perl
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
WINE_PREFIX=/usr/lib/${P}
|
|
||||||
WINE_DATADIR=/usr/share/${P}
|
|
||||||
|
|
||||||
local conf=(
|
|
||||||
--prefix="${EPREFIX}"${WINE_PREFIX}
|
|
||||||
--datadir="${EPREFIX}"${WINE_DATADIR}
|
|
||||||
--includedir="${EPREFIX}"/usr/include/${P}
|
|
||||||
--libdir="${EPREFIX}"${WINE_PREFIX}
|
|
||||||
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
|
||||||
$(use_enable gecko mshtml)
|
|
||||||
$(use_enable mono mscoree)
|
|
||||||
--disable-tests
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
$(use_with kerberos gssapi)
|
|
||||||
$(use_with kerberos krb5)
|
|
||||||
$(use_with mingw)
|
|
||||||
$(use_with netapi)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
--without-oss # media-sound/oss is not packaged (OSSv4)
|
|
||||||
$(use_with pcap)
|
|
||||||
$(use_with pulseaudio pulse)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_with sdl)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with udev)
|
|
||||||
$(use_with udisks dbus) # dbus is only used for udisks
|
|
||||||
$(use_with unwind)
|
|
||||||
$(use_with usb)
|
|
||||||
$(use_with v4l v4l2)
|
|
||||||
$(use_with vulkan)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(usev !odbc ac_cv_lib_soname_odbc=)
|
|
||||||
)
|
|
||||||
|
|
||||||
tc-ld-force-bfd # builds with non-bfd but broken at runtime (bug #867097)
|
|
||||||
filter-lto # build failure
|
|
||||||
use mingw || filter-flags -fno-plt # build failure
|
|
||||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
|
||||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
|
||||||
|
|
||||||
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
|
||||||
# https://github.com/gentoo/gentoo/pull/28355
|
|
||||||
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
|
||||||
append-ldflags -fuse-ld=bfd
|
|
||||||
|
|
||||||
# build using upstream's way (--with-wine64)
|
|
||||||
# order matters: configure+compile 64->32, install 32->64
|
|
||||||
local -i bits
|
|
||||||
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
|
||||||
(
|
|
||||||
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
|
||||||
|
|
||||||
mkdir ../build${bits} || die
|
|
||||||
cd ../build${bits} || die
|
|
||||||
|
|
||||||
pe_arch=i386
|
|
||||||
if (( bits == 64 )); then
|
|
||||||
pe_arch=x86_64
|
|
||||||
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
|
||||||
conf+=( --enable-win64 )
|
|
||||||
elif use amd64; then
|
|
||||||
conf+=(
|
|
||||||
$(usev abi_x86_64 --with-wine64=../build64)
|
|
||||||
TARGETFLAGS=-m32 # for widl
|
|
||||||
)
|
|
||||||
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
fi
|
|
||||||
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
|
||||||
|
|
||||||
if use mingw; then
|
|
||||||
# CROSSCC is no longer recognized by Wine, but still use for now
|
|
||||||
# (future handling for CROSS* variables is subject to changes)
|
|
||||||
conf+=( ac_cv_prog_${pe_arch}_CC="${CROSSCC}" )
|
|
||||||
|
|
||||||
# use *FLAGS for mingw, but strip unsupported
|
|
||||||
: "${CROSSCFLAGS:=$(
|
|
||||||
# >=wine-7.21 configure.ac no longer adds -fno-strict by mistake
|
|
||||||
append-cflags '-fno-strict-aliasing'
|
|
||||||
filter-flags '-fstack-clash-protection' #758914
|
|
||||||
filter-flags '-fstack-protector*' #870136
|
|
||||||
filter-flags '-mfunction-return=thunk*' #878849
|
|
||||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
|
||||||
: "${CROSSLDFLAGS:=$(
|
|
||||||
filter-flags '-fuse-ld=*'
|
|
||||||
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
|
||||||
export CROSS{C,LD}FLAGS
|
|
||||||
fi
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} econf "${conf[@]}"
|
|
||||||
)
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
use abi_x86_64 && emake -C ../build64 # do first
|
|
||||||
use abi_x86_32 && emake -C ../build32
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
|
||||||
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
|
||||||
|
|
||||||
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
|
||||||
if use abi_x86_64 && use !abi_x86_32; then
|
|
||||||
dosym wine64 ${WINE_PREFIX}/bin/wine
|
|
||||||
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
|
||||||
local man
|
|
||||||
for man in ../build64/loader/wine.*man; do
|
|
||||||
: "${man##*/wine}"
|
|
||||||
: "${_%.*}"
|
|
||||||
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
|
||||||
newins ${man} wine.1
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
|
||||||
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
|
||||||
|
|
||||||
# create variant wrappers for eselect-wine
|
|
||||||
local bin
|
|
||||||
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
|
||||||
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# don't let portage try to strip PE files with the wrong
|
|
||||||
# strip executable and instead handle it here (saves ~120MB)
|
|
||||||
if use mingw; then
|
|
||||||
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
|
||||||
use debug ||
|
|
||||||
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
|
||||||
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
eselect wine update --if-unset || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
eselect wine update --if-unset || die
|
|
||||||
}
|
|
@ -1,7 +1,6 @@
|
|||||||
DIST wine-7.0.1.tar.xz 27167768 BLAKE2B 9bf74e7077fe4b77611f8195feeb53fc6475bdaeac97dab5221942115d6108d8786f93d4a96745bad72afb074b15129fec9b0b2f10261d91c9a9b57bd2240ded SHA512 5a5258132fe30bfb5313454598b85e7d97a74d1e0c7ca7af16aa8c486e316ad34ab74a25fd9a403c98ad1f3280385232f7d159bb824f713e920a4a0dae62c944
|
DIST wine-7.0.1.tar.xz 27167768 BLAKE2B 9bf74e7077fe4b77611f8195feeb53fc6475bdaeac97dab5221942115d6108d8786f93d4a96745bad72afb074b15129fec9b0b2f10261d91c9a9b57bd2240ded SHA512 5a5258132fe30bfb5313454598b85e7d97a74d1e0c7ca7af16aa8c486e316ad34ab74a25fd9a403c98ad1f3280385232f7d159bb824f713e920a4a0dae62c944
|
||||||
DIST wine-7.0.2.tar.xz 27179980 BLAKE2B 721ab574092638b32d3a483b6ae3def0c9d706cc888662ca461ab8c7060b10077e83cede69663ea2a8b97729f3801209fbba5f8e8828ce20454700ffbbd76cb5 SHA512 330c71005a6a8054b5068ac4484e9015e9f8bf55d5a451aaf5f79b7f78a025732b454251c31473abf21504cce3b78e50cf7e3e0d0116bb755dc8396bd790289a
|
DIST wine-7.0.2.tar.xz 27179980 BLAKE2B 721ab574092638b32d3a483b6ae3def0c9d706cc888662ca461ab8c7060b10077e83cede69663ea2a8b97729f3801209fbba5f8e8828ce20454700ffbbd76cb5 SHA512 330c71005a6a8054b5068ac4484e9015e9f8bf55d5a451aaf5f79b7f78a025732b454251c31473abf21504cce3b78e50cf7e3e0d0116bb755dc8396bd790289a
|
||||||
DIST wine-8.0.tar.xz 29054044 BLAKE2B baf8f96b665119c9f38a148a2472dbe8f6ca8d4641d9d09d48cb72cb4de2585c274b8b7981c2fa622ead6da2f087c57652e9b48edc8a17c0cfd6be9a36732f02 SHA512 53ba813b260a65a271ec575822725b97631f60038fb026dcc0fe66862711eedcc29a8feb29ff54ae4f64458f85c290d8f3838eff5e4c77a5420a7d2b951fef77
|
DIST wine-8.0.tar.xz 29054044 BLAKE2B baf8f96b665119c9f38a148a2472dbe8f6ca8d4641d9d09d48cb72cb4de2585c274b8b7981c2fa622ead6da2f087c57652e9b48edc8a17c0cfd6be9a36732f02 SHA512 53ba813b260a65a271ec575822725b97631f60038fb026dcc0fe66862711eedcc29a8feb29ff54ae4f64458f85c290d8f3838eff5e4c77a5420a7d2b951fef77
|
||||||
DIST wine-8.1.tar.xz 29083080 BLAKE2B 6eed2128627f15159ad80588ebe839de76cb9a536797d7da136b61f56033ece60c60208702b7928cdb297c1d8730baae0d6bb0ac7a0473c34ed44b5c5edaaec5 SHA512 3f0477c26f293cf928acbdae2ffb98740ac227a605ec90f3ab3d35c0dbca2037529ff4e4de0b69cc975579ad14dc2fb8b52e050cfd99cffcc627418cf8cb4346
|
|
||||||
DIST wine-8.2.tar.xz 29129032 BLAKE2B 831a5d1c8228050db9257ed60dc77ed0a391f16ee16d2e5563eabbf8f7d988655477327e1081baf947b173e8eb716b15fb72d1daa70d5ade52508c7f1cc2c231 SHA512 d0b8bb8c6d75034519bdf48d52b89f9d44ba4f7306a0b8f860cbb2c4c39d8fae3c2d9c12be37427b9a9cbdb7dd8701844d0a74c245dd7a9e8a423cb56962b254
|
|
||||||
DIST wine-8.3.tar.xz 28983532 BLAKE2B b811a13aaa87f186c744254059d40fdf0740da42cf788acb2375c04cf3ecc281c92afc7bb7830d5797624d96f803edcb2d2778c5da378d89938fe0b68e72a287 SHA512 9c0c86f1d523cc65fe6bcb2f98e73f8909282eda1c04516ff35a32833e469421e099fe1351c3078ac96aa7884fc194a77fcf2ba8863e2a227316fd84562f1f5a
|
DIST wine-8.3.tar.xz 28983532 BLAKE2B b811a13aaa87f186c744254059d40fdf0740da42cf788acb2375c04cf3ecc281c92afc7bb7830d5797624d96f803edcb2d2778c5da378d89938fe0b68e72a287 SHA512 9c0c86f1d523cc65fe6bcb2f98e73f8909282eda1c04516ff35a32833e469421e099fe1351c3078ac96aa7884fc194a77fcf2ba8863e2a227316fd84562f1f5a
|
||||||
DIST wine-8.4.tar.xz 29031312 BLAKE2B 0b91267a68e4e332544d273646bb1e9389c3af3f48069ab7942096af5512e86a61d39788d91c221b4ae96e81858cfdff1e43a658ba407ff1450b6d752b8a3235 SHA512 8de144a65c0a3a2984fabc1294b647b8581da5fa8bd28a9ff756ab59256ee2b453d898453fc902bbc372a4e017a8e29b1eeef917f137ec1134ac08b671eccc7d
|
DIST wine-8.4.tar.xz 29031312 BLAKE2B 0b91267a68e4e332544d273646bb1e9389c3af3f48069ab7942096af5512e86a61d39788d91c221b4ae96e81858cfdff1e43a658ba407ff1450b6d752b8a3235 SHA512 8de144a65c0a3a2984fabc1294b647b8581da5fa8bd28a9ff756ab59256ee2b453d898453fc902bbc372a4e017a8e29b1eeef917f137ec1134ac08b671eccc7d
|
||||||
|
DIST wine-8.5.tar.xz 29064032 BLAKE2B 35fa6d7ec88ff67d9acf13466b3618eb45d664bed0a9ee581e46cb6e7692395837c8c8e86dead1dbcad582ef29c674a0df4b7180addee837b466eba7fdcd350a SHA512 f6aaab8a32eb7bce7f48d21d99417c9e6e8fe41b3d36320762775ef954db7ddd4fcff01d56475f35038d814557834a41a9e3ae85e5cae8a1b820c5044b42a327
|
||||||
|
@ -1,329 +0,0 @@
|
|||||||
# Copyright 2022-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
|
||||||
inherit autotools flag-o-matic multilib multilib-build toolchain-funcs wrapper
|
|
||||||
|
|
||||||
WINE_GECKO=2.47.3
|
|
||||||
WINE_MONO=7.4.0
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999 ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
|
||||||
else
|
|
||||||
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
|
||||||
SRC_URI="https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz"
|
|
||||||
S="${WORKDIR}/wine-${PV}"
|
|
||||||
KEYWORDS="-* ~amd64 ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://www.winehq.org/
|
|
||||||
https://gitlab.winehq.org/wine/wine/"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
|
||||||
SLOT="${PV}"
|
|
||||||
IUSE="
|
|
||||||
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
|
||||||
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
|
||||||
+gstreamer kerberos +mingw +mono netapi nls odbc opencl +opengl
|
|
||||||
osmesa pcap perl pulseaudio samba scanner +sdl selinux +ssl
|
|
||||||
+truetype udev udisks +unwind usb v4l +vulkan +xcomposite xinerama"
|
|
||||||
REQUIRED_USE="
|
|
||||||
X? ( truetype )
|
|
||||||
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
|
||||||
|
|
||||||
# tests are non-trivial to run, can hang easily, don't play well with
|
|
||||||
# sandbox, and several need real opengl/vulkan or network access
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
|
||||||
WINE_DLOPEN_DEPEND="
|
|
||||||
X? (
|
|
||||||
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXi[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
|
||||||
opengl? (
|
|
||||||
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
|
||||||
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
|
||||||
)
|
|
||||||
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
|
||||||
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
|
||||||
)
|
|
||||||
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
|
||||||
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
|
||||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
|
||||||
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
|
||||||
odbc? ( dev-db/unixODBC[${MULTILIB_USEDEP}] )
|
|
||||||
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
|
||||||
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
|
||||||
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
|
||||||
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
|
||||||
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
|
||||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
|
||||||
WINE_COMMON_DEPEND="
|
|
||||||
${WINE_DLOPEN_DEPEND}
|
|
||||||
X? (
|
|
||||||
x11-libs/libX11[${MULTILIB_USEDEP}]
|
|
||||||
x11-libs/libXext[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
|
||||||
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
|
||||||
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
|
||||||
gstreamer? (
|
|
||||||
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
|
||||||
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
|
||||||
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
|
||||||
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
|
||||||
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
|
||||||
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
|
||||||
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
|
||||||
unwind? (
|
|
||||||
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
|
||||||
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
|
||||||
)
|
|
||||||
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )"
|
|
||||||
RDEPEND="
|
|
||||||
${WINE_COMMON_DEPEND}
|
|
||||||
app-emulation/wine-desktop-common
|
|
||||||
dos? ( games-emulation/dosbox )
|
|
||||||
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
|
||||||
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
|
||||||
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
|
||||||
perl? (
|
|
||||||
dev-lang/perl
|
|
||||||
dev-perl/XML-LibXML
|
|
||||||
)
|
|
||||||
samba? ( net-fs/samba[winbind] )
|
|
||||||
selinux? ( sec-policy/selinux-wine )
|
|
||||||
udisks? ( sys-fs/udisks:2 )"
|
|
||||||
DEPEND="
|
|
||||||
${WINE_COMMON_DEPEND}
|
|
||||||
sys-kernel/linux-headers
|
|
||||||
X? ( x11-base/xorg-proto )"
|
|
||||||
BDEPEND="
|
|
||||||
dev-lang/perl
|
|
||||||
sys-devel/binutils
|
|
||||||
sys-devel/bison
|
|
||||||
sys-devel/flex
|
|
||||||
virtual/pkgconfig
|
|
||||||
mingw? ( !crossdev-mingw? (
|
|
||||||
>=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}]
|
|
||||||
) )
|
|
||||||
nls? ( sys-devel/gettext )"
|
|
||||||
IDEPEND=">=app-eselect/eselect-wine-2"
|
|
||||||
|
|
||||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
|
||||||
__clear_cache # unused on amd64+x86 (bug #900338)
|
|
||||||
res_getservers # false positive
|
|
||||||
)
|
|
||||||
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-7.0-noexecstack.patch
|
|
||||||
"${FILESDIR}"/${PN}-7.20-unwind.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
[[ ${MERGE_TYPE} == binary ]] && return
|
|
||||||
|
|
||||||
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
|
||||||
local mingw=-w64-mingw32
|
|
||||||
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
|
||||||
if ! type -P ${mingw}-gcc >/dev/null; then
|
|
||||||
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
|
||||||
eerror "yourself by installing sys-devel/crossdev then running:"
|
|
||||||
eerror
|
|
||||||
eerror " crossdev --target ${mingw}"
|
|
||||||
eerror
|
|
||||||
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
|
||||||
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# sanity check, bumping these has a history of oversights
|
|
||||||
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
|
||||||
dlls/appwiz.cpl/addons.c || die)
|
|
||||||
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
|
||||||
local gmfatal=
|
|
||||||
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
|
||||||
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
# ensure .desktop calls this variant + slot
|
|
||||||
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
|
||||||
|
|
||||||
# always update for patches (including user's wrt #432348)
|
|
||||||
eautoreconf
|
|
||||||
tools/make_requests || die # perl
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
WINE_PREFIX=/usr/lib/${P}
|
|
||||||
WINE_DATADIR=/usr/share/${P}
|
|
||||||
|
|
||||||
local conf=(
|
|
||||||
--prefix="${EPREFIX}"${WINE_PREFIX}
|
|
||||||
--datadir="${EPREFIX}"${WINE_DATADIR}
|
|
||||||
--includedir="${EPREFIX}"/usr/include/${P}
|
|
||||||
--libdir="${EPREFIX}"${WINE_PREFIX}
|
|
||||||
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
|
||||||
$(use_enable gecko mshtml)
|
|
||||||
$(use_enable mono mscoree)
|
|
||||||
--disable-tests
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with alsa)
|
|
||||||
$(use_with capi)
|
|
||||||
$(use_with cups)
|
|
||||||
$(use_with fontconfig)
|
|
||||||
$(use_with gphoto2 gphoto)
|
|
||||||
$(use_with gstreamer)
|
|
||||||
$(use_with kerberos gssapi)
|
|
||||||
$(use_with kerberos krb5)
|
|
||||||
$(use_with mingw)
|
|
||||||
$(use_with netapi)
|
|
||||||
$(use_with nls gettext)
|
|
||||||
$(use_with opencl)
|
|
||||||
$(use_with opengl)
|
|
||||||
$(use_with osmesa)
|
|
||||||
--without-oss # media-sound/oss is not packaged (OSSv4)
|
|
||||||
$(use_with pcap)
|
|
||||||
$(use_with pulseaudio pulse)
|
|
||||||
$(use_with scanner sane)
|
|
||||||
$(use_with sdl)
|
|
||||||
$(use_with ssl gnutls)
|
|
||||||
$(use_with truetype freetype)
|
|
||||||
$(use_with udev)
|
|
||||||
$(use_with udisks dbus) # dbus is only used for udisks
|
|
||||||
$(use_with unwind)
|
|
||||||
$(use_with usb)
|
|
||||||
$(use_with v4l v4l2)
|
|
||||||
$(use_with vulkan)
|
|
||||||
$(use_with xcomposite)
|
|
||||||
$(use_with xinerama)
|
|
||||||
$(usev !odbc ac_cv_lib_soname_odbc=)
|
|
||||||
)
|
|
||||||
|
|
||||||
tc-ld-force-bfd # builds with non-bfd but broken at runtime (bug #867097)
|
|
||||||
filter-lto # build failure
|
|
||||||
use mingw || filter-flags -fno-plt # build failure
|
|
||||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
|
||||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
|
||||||
|
|
||||||
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
|
||||||
# https://github.com/gentoo/gentoo/pull/28355
|
|
||||||
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
|
||||||
append-ldflags -fuse-ld=bfd
|
|
||||||
|
|
||||||
# build using upstream's way (--with-wine64)
|
|
||||||
# order matters: configure+compile 64->32, install 32->64
|
|
||||||
local -i bits
|
|
||||||
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
|
||||||
(
|
|
||||||
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
|
||||||
|
|
||||||
mkdir ../build${bits} || die
|
|
||||||
cd ../build${bits} || die
|
|
||||||
|
|
||||||
pe_arch=i386
|
|
||||||
if (( bits == 64 )); then
|
|
||||||
pe_arch=x86_64
|
|
||||||
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
|
||||||
conf+=( --enable-win64 )
|
|
||||||
elif use amd64; then
|
|
||||||
conf+=(
|
|
||||||
$(usev abi_x86_64 --with-wine64=../build64)
|
|
||||||
TARGETFLAGS=-m32 # for widl
|
|
||||||
)
|
|
||||||
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
|
||||||
multilib_toolchain_setup x86
|
|
||||||
fi
|
|
||||||
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
|
||||||
|
|
||||||
if use mingw; then
|
|
||||||
# CROSSCC is no longer recognized by Wine, but still use for now
|
|
||||||
# (future handling for CROSS* variables is subject to changes)
|
|
||||||
conf+=( ac_cv_prog_${pe_arch}_CC="${CROSSCC}" )
|
|
||||||
|
|
||||||
# use *FLAGS for mingw, but strip unsupported
|
|
||||||
: "${CROSSCFLAGS:=$(
|
|
||||||
# >=wine-7.21 configure.ac no longer adds -fno-strict by mistake
|
|
||||||
append-cflags '-fno-strict-aliasing'
|
|
||||||
filter-flags '-fstack-clash-protection' #758914
|
|
||||||
filter-flags '-fstack-protector*' #870136
|
|
||||||
filter-flags '-mfunction-return=thunk*' #878849
|
|
||||||
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
|
||||||
: "${CROSSLDFLAGS:=$(
|
|
||||||
filter-flags '-fuse-ld=*'
|
|
||||||
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
|
||||||
export CROSS{C,LD}FLAGS
|
|
||||||
fi
|
|
||||||
|
|
||||||
ECONF_SOURCE=${S} econf "${conf[@]}"
|
|
||||||
)
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
use abi_x86_64 && emake -C ../build64 # do first
|
|
||||||
use abi_x86_32 && emake -C ../build32
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
|
||||||
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
|
||||||
|
|
||||||
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
|
||||||
if use abi_x86_64 && use !abi_x86_32; then
|
|
||||||
dosym wine64 ${WINE_PREFIX}/bin/wine
|
|
||||||
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
|
||||||
local man
|
|
||||||
for man in ../build64/loader/wine.*man; do
|
|
||||||
: "${man##*/wine}"
|
|
||||||
: "${_%.*}"
|
|
||||||
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
|
||||||
newins ${man} wine.1
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
|
||||||
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
|
||||||
|
|
||||||
# create variant wrappers for eselect-wine
|
|
||||||
local bin
|
|
||||||
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
|
||||||
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# don't let portage try to strip PE files with the wrong
|
|
||||||
# strip executable and instead handle it here (saves ~120MB)
|
|
||||||
if use mingw; then
|
|
||||||
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
|
||||||
use debug ||
|
|
||||||
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
|
||||||
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
eselect wine update --if-unset || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
eselect wine update --if-unset || die
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,94 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
inherit go-module
|
||||||
|
# uncomment the first setting of MY_PV for a normal release
|
||||||
|
# MY_PV="v${PV/_rc/-rc.}"
|
||||||
|
# set MY_PV to the full commit hash for a snapshot release
|
||||||
|
MY_PV_HASH=fad2c0ccd8c0df8fed91a81463e930e4485fdfee
|
||||||
|
: ${MY_PV_HASH_FOR_VENDOR:=${MY_PV_HASH}}
|
||||||
|
if [[ -n "${MY_PV_HASH}" ]]; then
|
||||||
|
MY_PV=${MY_PV_HASH}
|
||||||
|
MYSQLD_EXPORTER_COMMIT=${MY_PV_HASH:0:8}
|
||||||
|
SRC_URI_UPSTREAM="https://github.com/prometheus/mysqld_exporter/archive/${MY_PV}.tar.gz"
|
||||||
|
else
|
||||||
|
MY_PV=$PV
|
||||||
|
MYSQLD_EXPORTER_COMMIT=
|
||||||
|
SRC_URI_UPSTREAM="https://github.com/prometheus/mysqld_exporter/archive/refs/tags/v${PV}.tar.gz"
|
||||||
|
fi
|
||||||
|
MY_P=${PN}-${MY_PV}
|
||||||
|
SRC_URI_VENDOR="https://dev.gentoo.org/~robbat2/distfiles/${MY_P}-vendor.tar.xz"
|
||||||
|
|
||||||
|
DESCRIPTION="Prometheus exporter for MySQL server metrics"
|
||||||
|
HOMEPAGE="https://github.com/prometheus/mysqld_exporter"
|
||||||
|
SRC_URI="
|
||||||
|
${SRC_URI_UPSTREAM} -> ${P}.tar.gz
|
||||||
|
${SRC_URI_VENDOR}
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
BDEPEND="dev-util/promu"
|
||||||
|
|
||||||
|
DEPEND="acct-group/mysqld_exporter
|
||||||
|
acct-user/mysqld_exporter"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
# Comment this for a normal release.
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}"/${PN}-0.12.1-skip-tests.patch )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if [[ -n $MYSQLD_EXPORTER_COMMIT ]]; then
|
||||||
|
sed -i -e "s/{{.Revision}}/${MYSQLD_EXPORTER_COMMIT}/" .promu.yml || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
mkdir -p bin || die
|
||||||
|
|
||||||
|
promu build --prefix bin || die
|
||||||
|
|
||||||
|
# comment this for a normal release.
|
||||||
|
mv bin/${PN}-${MY_PV} bin/${PN} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/*
|
||||||
|
dodoc {README,CHANGELOG,CONTRIBUTING}.md
|
||||||
|
|
||||||
|
keepdir /var/lib/mysqld_exporter /var/log/mysqld_exporter
|
||||||
|
fowners ${PN}:${PN} /var/lib/mysqld_exporter /var/log/mysqld_exporter
|
||||||
|
fperms 0770 /var/lib/mysqld_exporter
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/${PN}-r1.initd ${PN}
|
||||||
|
newconfd "${FILESDIR}"/${PN}-r1.confd ${PN}
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}"/${PN}.logrotate ${PN}
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||||
|
# This is a new installation
|
||||||
|
elog "Create \"${EROOT}/var/lib/mysqld_exporter/.my.cnf\" to read MySQL credentials from file."
|
||||||
|
else
|
||||||
|
local _replacing_version=
|
||||||
|
for _replacing_version in ${REPLACING_VERSIONS}; do
|
||||||
|
if ! ver_test "${_replacing_version}" -ge "0.11.0"; then
|
||||||
|
elog "Starting with ${PN}-0.11.0, command-line flags will require double dashes (--)."
|
||||||
|
elog "You must update your configuration or ${PN} won't start."
|
||||||
|
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST binwalk-2.3.3.tar.gz 39723775 BLAKE2B d29b709dae0ae406e0ef6142e878a2bbbf0ddb3bd8f49d3335dd1e7ab385c331c021489b3d96b3c2364038b870c1aae53c8d82e7a3d9ab1983ff4520e20f6e73 SHA512 d7e8d576cfc92b1488ceda7d4577aeaaefb2a251a5aca0b4a497da0dff7c6e6e862e0a77346593c77fb4e54b7de3d3a0c1c8c9421ecec8f06aabbc4b336920c5
|
DIST binwalk-2.3.3.tar.gz 39723775 BLAKE2B d29b709dae0ae406e0ef6142e878a2bbbf0ddb3bd8f49d3335dd1e7ab385c331c021489b3d96b3c2364038b870c1aae53c8d82e7a3d9ab1983ff4520e20f6e73 SHA512 d7e8d576cfc92b1488ceda7d4577aeaaefb2a251a5aca0b4a497da0dff7c6e6e862e0a77346593c77fb4e54b7de3d3a0c1c8c9421ecec8f06aabbc4b336920c5
|
||||||
|
DIST binwalk-2.3.4.tar.gz 39723471 BLAKE2B a5eac4242402c5034c293432131950bed9aff762c5db86b200a1f555bdfeeb1c6fda225393149f7beca2923141f2ae7930738038f2d039513cb06dfae9601b81 SHA512 5a5e16035dfc05b94ae4ee3969a337336c550606b71e20fcb1f150c4b38ef2084b6a823ce2a8050f4b41616b7d7c31cfb04bf43e7f2c977ab1a634aba9d67fec
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]] ; then
|
||||||
|
EGIT_REPO_URI="https://github.com/ReFirmLabs/binwalk.git"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/ReFirmLabs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="A tool for identifying files embedded inside firmware images"
|
||||||
|
HOMEPAGE="https://github.com/ReFirmLabs/binwalk"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-2.2.0-disable-test-coverage.patch
|
||||||
|
"${FILESDIR}"/2.3.3-tests.patch
|
||||||
|
"${FILESDIR}"/${PN}-2.3.3-syntax-fix.patch
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests nose
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
local DOCS=( API.md INSTALL.md README.md )
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||||
|
elog "binwalk has many optional dependencies to automatically"
|
||||||
|
elog "extract/decompress data, see INSTALL.md for more details."
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -28,13 +28,13 @@
|
||||||
|
fi
|
||||||
|
|
||||||
|
OS=`uname`
|
||||||
|
-INSTALL=`which install`
|
||||||
|
+INSTALL=`command -v install`
|
||||||
|
|
||||||
|
if [ -z "$PREFIX" ]; then
|
||||||
|
PREFIX=/usr/local
|
||||||
|
fi
|
||||||
|
|
||||||
|
-which xgettext
|
||||||
|
+command -v xgettext
|
||||||
|
XGETTEXT_MISSING=$?
|
||||||
|
|
||||||
|
if [ $XGETTEXT_MISSING -eq 0 ]; then
|
||||||
|
--- a/libsysinfo-0.3.0/configure
|
||||||
|
+++ b/libsysinfo-0.3.0/configure
|
||||||
|
@@ -13,7 +13,7 @@
|
||||||
|
|
||||||
|
OS=`uname`
|
||||||
|
PREFIX=/usr/local
|
||||||
|
-INSTALL=`which install`
|
||||||
|
+INSTALL=`command -v install`
|
||||||
|
|
||||||
|
LIBSYSINFO_INCLUDE="-I.."
|
||||||
|
LFLAGS=""
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,89 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
inherit cmake python-single-r1
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="git://developer.intra2net.com/${PN}"
|
||||||
|
else
|
||||||
|
SRC_URI="https://www.intra2net.com/en/developer/${PN}/download/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Userspace access to FTDI USB interface chips"
|
||||||
|
HOMEPAGE="https://www.intra2net.com/en/developer/libftdi/"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="cxx doc examples python static-libs"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
virtual/libusb:0
|
||||||
|
cxx? ( dev-libs/boost )
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
python? ( dev-lang/swig )
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-cmake-include.patch
|
||||||
|
"${FILESDIR}"/${P}-cmake-version.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if use python; then
|
||||||
|
sed -i \
|
||||||
|
-e "s:[$]{PYTHON_LIB_INSTALL}/../site-packages:$(python_get_sitedir):" \
|
||||||
|
bindings/CMakeLists.txt || die
|
||||||
|
fi
|
||||||
|
sed -i \
|
||||||
|
-e '/SET(LIB_SUFFIX /d' \
|
||||||
|
CMakeLists.txt || die
|
||||||
|
|
||||||
|
cmake_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DFTDIPP=$(usex cxx)
|
||||||
|
-DDOCUMENTATION=$(usex doc)
|
||||||
|
-DEXAMPLES=$(usex examples)
|
||||||
|
-DPYTHON_BINDINGS=$(usex python)
|
||||||
|
-DCMAKE_SKIP_BUILD_RPATH=ON
|
||||||
|
)
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
use python && python_optimize
|
||||||
|
dodoc ChangeLog README
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
# Clean up man pages with too generic names. #356369
|
||||||
|
rm -vf "${BUILD_DIR}"/doc/man/man3/{_,usb_,deprecated}* || die
|
||||||
|
|
||||||
|
doman "${BUILD_DIR}"/doc/man/man3/*
|
||||||
|
dodoc -r "${BUILD_DIR}"/doc/html
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use examples ; then
|
||||||
|
docinto examples
|
||||||
|
dodoc examples/*.c
|
||||||
|
fi
|
||||||
|
|
||||||
|
use static-libs || rm "${ED}"/usr/$(get_libdir)/${PN}.a || die
|
||||||
|
}
|
@ -0,0 +1,89 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
inherit cmake python-single-r1
|
||||||
|
|
||||||
|
MY_P="${PN}1-${PV}"
|
||||||
|
if [[ ${PV} == 9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="git://developer.intra2net.com/${PN}"
|
||||||
|
else
|
||||||
|
SRC_URI="https://www.intra2net.com/en/developer/${PN}/download/${MY_P}.tar.bz2"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-tests-no-cxx.patch
|
||||||
|
"${FILESDIR}"/${P}-cmake-cxx.patch
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Userspace access to FTDI USB interface chips"
|
||||||
|
HOMEPAGE="https://www.intra2net.com/en/developer/libftdi/"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2"
|
||||||
|
SLOT="1"
|
||||||
|
IUSE="cxx doc examples python test tools"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
virtual/libusb:1
|
||||||
|
cxx? ( dev-libs/boost )
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
tools? ( dev-libs/confuse:= )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( dev-libs/boost )
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
python? ( dev-lang/swig )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DFTDIPP=$(usex cxx)
|
||||||
|
-DDOCUMENTATION=$(usex doc)
|
||||||
|
-DEXAMPLES=$(usex examples)
|
||||||
|
-DPYTHON_BINDINGS=$(usex python)
|
||||||
|
-DBUILD_TESTS=$(usex test)
|
||||||
|
-DFTDI_EEPROM=$(usex tools)
|
||||||
|
-DCMAKE_SKIP_BUILD_RPATH=ON
|
||||||
|
-DSTATICLIBS=OFF
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd "${BUILD_DIR}/test" || die
|
||||||
|
LD_LIBRARY_PATH="${BUILD_DIR}/src" ./test_libftdi1 -l all || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake_src_install
|
||||||
|
|
||||||
|
use python && python_optimize
|
||||||
|
dodoc AUTHORS ChangeLog README TODO
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
# Clean up man pages with too generic names. #356369
|
||||||
|
rm -vf "${BUILD_DIR}"/doc/man/man3/_* || die
|
||||||
|
|
||||||
|
doman "${BUILD_DIR}"/doc/man/man3/*
|
||||||
|
dodoc -r "${BUILD_DIR}"/doc/html
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use examples ; then
|
||||||
|
docinto examples
|
||||||
|
dodoc examples/*.c
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST fop-2.7-jars.tar.xz 7348 BLAKE2B 79a5b4f1948bbc9628e571a9873494e2d2088d7a90296e81e03cafa6ecd8f9d1c8dd6779d15c47a0e110304aa07e706c56412e3766a84e0a66c8224fdd92f61c SHA512 71c39cbb20416dc29beb8628ae8bac2a663c0b0d1f0418a241f3795a2d5e01159572c210b5a2d2eff8274247dc3631980de50fea4f94182ddde095d0e5e605c6
|
DIST fop-2.7-jars.tar.xz 7348 BLAKE2B 79a5b4f1948bbc9628e571a9873494e2d2088d7a90296e81e03cafa6ecd8f9d1c8dd6779d15c47a0e110304aa07e706c56412e3766a84e0a66c8224fdd92f61c SHA512 71c39cbb20416dc29beb8628ae8bac2a663c0b0d1f0418a241f3795a2d5e01159572c210b5a2d2eff8274247dc3631980de50fea4f94182ddde095d0e5e605c6
|
||||||
DIST fop-2.7-src.tar.gz 26799877 BLAKE2B 00bcbd4cc915aad67c0dac54e85b7c5d10576115a0a8a16517846af249137c73b10c8b0ff161c9957f7c49686eefbf9777dc452b038573c996e29cbad951176a SHA512 bffbc0a97db8bbc826cf9af89fbf4a7e6f705585ea4915c0954df57c6d7af50d323387bb4bb9e2d13047826352d9eb7cbf4f23d5146ce246965b4c531e015633
|
DIST fop-2.7-src.tar.gz 26799877 BLAKE2B 00bcbd4cc915aad67c0dac54e85b7c5d10576115a0a8a16517846af249137c73b10c8b0ff161c9957f7c49686eefbf9777dc452b038573c996e29cbad951176a SHA512 bffbc0a97db8bbc826cf9af89fbf4a7e6f705585ea4915c0954df57c6d7af50d323387bb4bb9e2d13047826352d9eb7cbf4f23d5146ce246965b4c531e015633
|
||||||
|
DIST fop-2.8-src.tar.gz 22855369 BLAKE2B 183649f531068b8f7513613c89f9f66a48894ab97a659e110b91853d5dffc1664d3830a8ced9ba221e22ca02fc51aed991ddee0e927cab59b9160a504f6dab02 SHA512 22e1737b5cd87dc5e014838e2ad867ccf46bdc564fb5c231cc6b4c1f8a9862864679ea7ddf143126058553ed90045941fb07aa2657db9e3ed35660ce11169357
|
||||||
|
@ -0,0 +1,166 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
JAVA_PKG_IUSE="doc source test"
|
||||||
|
MAVEN_ID="org.apache.xmlgraphics:fop:${PV}"
|
||||||
|
JAVA_TESTING_FRAMEWORKS="junit-4"
|
||||||
|
|
||||||
|
inherit java-pkg-2 java-pkg-simple
|
||||||
|
|
||||||
|
DESCRIPTION="XML Graphics Format Object Processor All-In-One"
|
||||||
|
HOMEPAGE="https://xmlgraphics.apache.org/fop/"
|
||||||
|
SRC_URI="
|
||||||
|
mirror://apache/xmlgraphics/fop/source/${P}-src.tar.gz
|
||||||
|
https://dev.gentoo.org/~flow/distfiles/fop/fop-2.7-jars.tar.xz
|
||||||
|
"
|
||||||
|
S="${WORKDIR}/fop-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="2.8"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||||
|
|
||||||
|
CP_DEPEND="
|
||||||
|
dev-java/batik:1.16
|
||||||
|
dev-java/commons-io:1
|
||||||
|
dev-java/commons-logging:0
|
||||||
|
dev-java/fontbox:0
|
||||||
|
dev-java/qdox:1.12
|
||||||
|
dev-java/xmlgraphics-commons:2
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${CP_DEPEND}
|
||||||
|
>=virtual/jdk-1.8:*
|
||||||
|
dev-java/ant-core:0
|
||||||
|
dev-java/javax-servlet-api:2.2
|
||||||
|
dev-java/sun-jai-bin:0
|
||||||
|
test? (
|
||||||
|
dev-java/mockito:4
|
||||||
|
dev-java/pdfbox:0
|
||||||
|
dev-java/xmlunit:1
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${CP_DEPEND}
|
||||||
|
>=virtual/jre-1.8:*"
|
||||||
|
|
||||||
|
BDEPEND="dev-java/xalan:0"
|
||||||
|
|
||||||
|
DOCS=( NOTICE README )
|
||||||
|
|
||||||
|
JAVA_CLASSPATH_EXTRA="
|
||||||
|
ant-core
|
||||||
|
javax-servlet-api-2.2
|
||||||
|
sun-jai-bin
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
java-pkg_clean
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
JAVA_SRC_DIR="fop-util/src/main/java"
|
||||||
|
JAVA_JAR_FILENAME="fop-util.jar"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
JAVA_GENTOO_CLASSPATH_EXTRA+=":fop-util.jar"
|
||||||
|
rm -r target || die
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="fop-events/src/main/java"
|
||||||
|
JAVA_RESOURCE_DIRS="fop-events/src/main/resources"
|
||||||
|
JAVA_JAR_FILENAME="fop-events.jar"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
JAVA_GENTOO_CLASSPATH_EXTRA+=":fop-events.jar"
|
||||||
|
rm -r target || die
|
||||||
|
|
||||||
|
JAVA_SRC_DIR="fop-core/src/main/java"
|
||||||
|
JAVA_RESOURCE_DIRS="fop-core/src/main/resources"
|
||||||
|
JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' fop-core/pom.xml )
|
||||||
|
JAVA_JAR_FILENAME="fop-core.jar"
|
||||||
|
# Code generation according to
|
||||||
|
# https://github.com/apache/xmlgraphics-fop/blob/fop-2_8/fop-core/pom.xml#L156-L225
|
||||||
|
pushd fop-core/src/main/codegen/fonts > /dev/null || die
|
||||||
|
local fonts=$(find . -name "Courier*.xml" \
|
||||||
|
-o -name "Helvetica*.xml" \
|
||||||
|
-o -name "Times*.xml" \
|
||||||
|
-o -name "Symbol.xml" \
|
||||||
|
-o -name "ZapfDingbats.xml"
|
||||||
|
)
|
||||||
|
for font in ${fonts}; do \
|
||||||
|
xalan -XSLTC \
|
||||||
|
-IN $font \
|
||||||
|
-XSL font-file.xsl \
|
||||||
|
-OUT ../../java/org/apache/fop/fonts/base14/${font//.xml}.java || die
|
||||||
|
done
|
||||||
|
xalan -XSLTC \
|
||||||
|
-IN encodings.xml \
|
||||||
|
-XSL code-point-mapping.xsl \
|
||||||
|
-OUT ../../java/org/apache/fop/fonts/base14/CodePointMapping.java || die
|
||||||
|
popd > /dev/null || die
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
rm -r target || die
|
||||||
|
|
||||||
|
JAVA_GENTOO_CLASSPATH_EXTRA+=":fop-core.jar"
|
||||||
|
|
||||||
|
# Update "fop-core.jar" with "event-mode.xml" files produced manually
|
||||||
|
# by running "mvn package".
|
||||||
|
mkdir event-model && pushd $_ > /dev/null || die
|
||||||
|
jar -xf "${WORKDIR}/fop-2.7-core-event-models.jar"
|
||||||
|
popd > /dev/null || die
|
||||||
|
jar -uf "fop-core.jar" -C event-model . || die
|
||||||
|
# Upstream does this with maven-antrun-plugin:
|
||||||
|
# https://github.com/apache/xmlgraphics-fop/blob/fop-2_8/fop-core/pom.xml#L269-L290
|
||||||
|
|
||||||
|
# public class EventProducerCollectorTask extends Task {
|
||||||
|
#
|
||||||
|
# private List<FileSet> filesets = new java.util.ArrayList<FileSet>();
|
||||||
|
# private File destDir;
|
||||||
|
# private File translationFile;
|
||||||
|
|
||||||
|
if use doc; then \
|
||||||
|
JAVA_SRC_DIR=(
|
||||||
|
"fop-util/src/main/java"
|
||||||
|
"fop-events/src/main/java"
|
||||||
|
"fop-core/src/main/java"
|
||||||
|
)
|
||||||
|
JAVA_JAR_FILENAME="ignoreme.jar"
|
||||||
|
java-pkg-simple_src_compile
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4,pdfbox,xmlunit-1"
|
||||||
|
|
||||||
|
JAVA_TEST_SRC_DIR="fop-events/src/test/java"
|
||||||
|
JAVA_TEST_RUN_ONLY="org.apache.fop.events.BasicEventTestCase"
|
||||||
|
|
||||||
|
# This jar file was created manually from the output of "mvn test".
|
||||||
|
# Upstream does this with maven-antrun-plugin
|
||||||
|
jar -xf "${WORKDIR}/fop-2.7-test-event-model.jar" || die
|
||||||
|
|
||||||
|
java-pkg-simple_src_test
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e 's:verifyZeroInteractions:verifyNoInteractions:' \
|
||||||
|
-i fop-core/src/test/java/org/apache/fop/render/intermediate/BorderPainterTestCase.java || die
|
||||||
|
|
||||||
|
JAVA_TEST_SRC_DIR="fop-core/src/test/java"
|
||||||
|
JAVA_TEST_RESOURCE_DIRS="fop-core/src/test/resources"
|
||||||
|
|
||||||
|
java-pkg-simple_src_test
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
for module in fop-util fop-events fop-core ; do
|
||||||
|
java-pkg_dojar "${module}.jar"
|
||||||
|
if use source; then
|
||||||
|
java-pkg_dosrc "${module}/src/main/java/*"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if use doc; then
|
||||||
|
java-pkg_dojavadoc target/api
|
||||||
|
fi
|
||||||
|
java-pkg_dolauncher "fop-${SLOT}" --main "org.apache.fop.cli.Main"
|
||||||
|
einstalldocs
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,174 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
WX_GTK_VER="3.0-gtk3"
|
||||||
|
|
||||||
|
inherit elisp-common flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets
|
||||||
|
|
||||||
|
# NOTE: If you need symlinks for binaries please tell maintainers or
|
||||||
|
# open up a bug to let it be created.
|
||||||
|
|
||||||
|
UPSTREAM_V="$(ver_cut 1-2)"
|
||||||
|
|
||||||
|
DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
|
||||||
|
HOMEPAGE="https://www.erlang.org/"
|
||||||
|
SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
|
||||||
|
doc? ( https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
# We use this subslot because Compiled HiPE Code can be loaded on the exact
|
||||||
|
# same build of ERTS that was used when compiling the code. See
|
||||||
|
# http://erlang.org/doc/system_principles/misc.html for more information.
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
IUSE="doc emacs java +kpoll odbc sctp ssl systemd tk wxwidgets"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
acct-group/epmd
|
||||||
|
acct-user/epmd
|
||||||
|
sys-libs/ncurses:0
|
||||||
|
sys-libs/zlib
|
||||||
|
emacs? ( >=app-editors/emacs-23.1:* )
|
||||||
|
java? ( >=virtual/jdk-1.8:* )
|
||||||
|
odbc? ( dev-db/unixODBC )
|
||||||
|
sctp? ( net-misc/lksctp-tools )
|
||||||
|
ssl? ( >=dev-libs/openssl-0.9.7d:0= )
|
||||||
|
systemd? ( sys-apps/systemd )
|
||||||
|
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-lang/perl
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/otp-OTP-${PV}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch
|
||||||
|
"${FILESDIR}"/${PN}-24.0.2-serial-configure.patch
|
||||||
|
"${FILESDIR}"/${PN}-25.1.2-c99.patch # Bug #882887
|
||||||
|
)
|
||||||
|
|
||||||
|
SITEFILE=50"${PN}"-gentoo.el
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
tc-export AR CPP CXX LD
|
||||||
|
|
||||||
|
# bug #797886: erlang's VM does unsafe casts for ints
|
||||||
|
# to pointers and back. This breaks on gcc-11 -flto.
|
||||||
|
append-flags -fno-strict-aliasing
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use wxwidgets && setup-wxwidgets
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--disable-builtin-zlib
|
||||||
|
|
||||||
|
# don't search for static zlib
|
||||||
|
--with-ssl-zlib=no
|
||||||
|
|
||||||
|
$(use_enable kpoll kernel-poll)
|
||||||
|
$(use_with java javac)
|
||||||
|
$(use_enable sctp)
|
||||||
|
$(use_with ssl ssl)
|
||||||
|
$(use_enable ssl dynamic-ssl-lib)
|
||||||
|
$(use_enable systemd)
|
||||||
|
$(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
|
||||||
|
)
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
emake docs DOC_TARGETS=chunks
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use emacs ; then
|
||||||
|
pushd lib/tools/emacs &>/dev/null || die
|
||||||
|
elisp-compile *.el
|
||||||
|
popd &>/dev/null || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
extract_version() {
|
||||||
|
local path="$1"
|
||||||
|
local var_name="$2"
|
||||||
|
sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local erl_libdir_rel="$(get_libdir)/erlang"
|
||||||
|
local erl_libdir="/usr/${erl_libdir_rel}"
|
||||||
|
local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
|
||||||
|
local erl_erts_ver="$(extract_version erts VSN)"
|
||||||
|
local my_manpath="/usr/share/${PN}/man"
|
||||||
|
|
||||||
|
[[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
|
||||||
|
[[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
|
||||||
|
|
||||||
|
emake INSTALL_PREFIX="${D}" install
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
emake INSTALL_PREFIX="${D}" install-docs DOC_TARGETS=chunks
|
||||||
|
|
||||||
|
# Note: we explicitly install docs into:
|
||||||
|
# /usr/share/doc/${PF}/{doc,lib,erts-*}
|
||||||
|
# To maintain that layout we gather everything in 'html-docs'.
|
||||||
|
# See bug #684376.
|
||||||
|
mkdir html-docs || die
|
||||||
|
mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die
|
||||||
|
local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. )
|
||||||
|
docompress -x /usr/share/doc/${PF}
|
||||||
|
else
|
||||||
|
local DOCS=("README.md")
|
||||||
|
fi
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
|
||||||
|
dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
|
||||||
|
dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
|
||||||
|
dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
|
||||||
|
dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
|
||||||
|
|
||||||
|
## Clean up the no longer needed files
|
||||||
|
rm "${ED}/${erl_libdir}/Install" || die
|
||||||
|
|
||||||
|
insinto "${my_manpath}"
|
||||||
|
doins -r "${WORKDIR}"/man/*
|
||||||
|
# extend MANPATH, so the normal man command can find it
|
||||||
|
# see bug 189639
|
||||||
|
newenvd - "90erlang" <<-_EOF_
|
||||||
|
MANPATH="${my_manpath}"
|
||||||
|
_EOF_
|
||||||
|
|
||||||
|
if use emacs ; then
|
||||||
|
elisp-install erlang lib/tools/emacs/*.{el,elc}
|
||||||
|
sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
|
||||||
|
"${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/epmd.init-r3 epmd
|
||||||
|
use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Only run a subset of tests to test that everything was built
|
||||||
|
# successfully, otherwise we will be here for a long time.
|
||||||
|
emake kernel_test ARGS="-suite os_SUITE"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
@ -0,0 +1,174 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
WX_GTK_VER="3.0-gtk3"
|
||||||
|
|
||||||
|
inherit elisp-common flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets
|
||||||
|
|
||||||
|
# NOTE: If you need symlinks for binaries please tell maintainers or
|
||||||
|
# open up a bug to let it be created.
|
||||||
|
|
||||||
|
UPSTREAM_V="$(ver_cut 1-2)"
|
||||||
|
|
||||||
|
DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)"
|
||||||
|
HOMEPAGE="https://www.erlang.org/"
|
||||||
|
SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz
|
||||||
|
doc? ( https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
# We use this subslot because Compiled HiPE Code can be loaded on the exact
|
||||||
|
# same build of ERTS that was used when compiling the code. See
|
||||||
|
# http://erlang.org/doc/system_principles/misc.html for more information.
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
IUSE="doc emacs java +kpoll odbc sctp ssl systemd tk wxwidgets"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
acct-group/epmd
|
||||||
|
acct-user/epmd
|
||||||
|
sys-libs/ncurses:0
|
||||||
|
sys-libs/zlib
|
||||||
|
emacs? ( >=app-editors/emacs-23.1:* )
|
||||||
|
java? ( >=virtual/jdk-1.8:* )
|
||||||
|
odbc? ( dev-db/unixODBC )
|
||||||
|
sctp? ( net-misc/lksctp-tools )
|
||||||
|
ssl? ( >=dev-libs/openssl-0.9.7d:0= )
|
||||||
|
systemd? ( sys-apps/systemd )
|
||||||
|
wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-lang/perl
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/otp-OTP-${PV}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch
|
||||||
|
"${FILESDIR}"/${PN}-24.0.2-serial-configure.patch
|
||||||
|
"${FILESDIR}"/${PN}-25.1.2-c99.patch # Bug #882887
|
||||||
|
)
|
||||||
|
|
||||||
|
SITEFILE=50"${PN}"-gentoo.el
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
tc-export AR CPP CXX LD
|
||||||
|
|
||||||
|
# bug #797886: erlang's VM does unsafe casts for ints
|
||||||
|
# to pointers and back. This breaks on gcc-11 -flto.
|
||||||
|
append-flags -fno-strict-aliasing
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
use wxwidgets && setup-wxwidgets
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--disable-builtin-zlib
|
||||||
|
|
||||||
|
# don't search for static zlib
|
||||||
|
--with-ssl-zlib=no
|
||||||
|
|
||||||
|
$(use_enable kpoll kernel-poll)
|
||||||
|
$(use_with java javac)
|
||||||
|
$(use_enable sctp)
|
||||||
|
$(use_with ssl ssl)
|
||||||
|
$(use_enable ssl dynamic-ssl-lib)
|
||||||
|
$(use_enable systemd)
|
||||||
|
$(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null")
|
||||||
|
)
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
emake docs DOC_TARGETS=chunks
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use emacs ; then
|
||||||
|
pushd lib/tools/emacs &>/dev/null || die
|
||||||
|
elisp-compile *.el
|
||||||
|
popd &>/dev/null || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
extract_version() {
|
||||||
|
local path="$1"
|
||||||
|
local var_name="$2"
|
||||||
|
sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local erl_libdir_rel="$(get_libdir)/erlang"
|
||||||
|
local erl_libdir="/usr/${erl_libdir_rel}"
|
||||||
|
local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)"
|
||||||
|
local erl_erts_ver="$(extract_version erts VSN)"
|
||||||
|
local my_manpath="/usr/share/${PN}/man"
|
||||||
|
|
||||||
|
[[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version"
|
||||||
|
[[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version"
|
||||||
|
|
||||||
|
emake INSTALL_PREFIX="${D}" install
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
emake INSTALL_PREFIX="${D}" install-docs DOC_TARGETS=chunks
|
||||||
|
|
||||||
|
# Note: we explicitly install docs into:
|
||||||
|
# /usr/share/doc/${PF}/{doc,lib,erts-*}
|
||||||
|
# To maintain that layout we gather everything in 'html-docs'.
|
||||||
|
# See bug #684376.
|
||||||
|
mkdir html-docs || die
|
||||||
|
mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die
|
||||||
|
local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. )
|
||||||
|
docompress -x /usr/share/doc/${PF}
|
||||||
|
else
|
||||||
|
local DOCS=("README.md")
|
||||||
|
fi
|
||||||
|
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl
|
||||||
|
dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc
|
||||||
|
dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript
|
||||||
|
dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call
|
||||||
|
dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp
|
||||||
|
|
||||||
|
## Clean up the no longer needed files
|
||||||
|
rm "${ED}/${erl_libdir}/Install" || die
|
||||||
|
|
||||||
|
insinto "${my_manpath}"
|
||||||
|
doins -r "${WORKDIR}"/man/*
|
||||||
|
# extend MANPATH, so the normal man command can find it
|
||||||
|
# see bug 189639
|
||||||
|
newenvd - "90erlang" <<-_EOF_
|
||||||
|
MANPATH="${my_manpath}"
|
||||||
|
_EOF_
|
||||||
|
|
||||||
|
if use emacs ; then
|
||||||
|
elisp-install erlang lib/tools/emacs/*.{el,elc}
|
||||||
|
sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \
|
||||||
|
"${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die
|
||||||
|
elisp-site-file-install "${T}/${SITEFILE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}"/epmd.init-r3 epmd
|
||||||
|
use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Only run a subset of tests to test that everything was built
|
||||||
|
# successfully, otherwise we will be here for a long time.
|
||||||
|
emake kernel_test ARGS="-suite os_SUITE"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
use emacs && elisp-site-regen
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST apr-1.7.2.tar.bz2 890218 BLAKE2B a17ee4311a33acee0bdeb9e5225a198f9dec1b2e0267a742080c77d5342e5052392a5a2100a0ba85f5a192b8679838a7002d4c9a12aa5bdd7921eff025b75d15 SHA512 0a3a27ccc97bbe4865c1bc0b803012e3da6d5b1f17d4fb0da6f5f58eec01f6d2ae1f25e52896ea5f9c5ac04c5fddcfd1ac606b301c322cf40d5c4d4ce0a1b76e
|
DIST apr-1.7.2.tar.bz2 890218 BLAKE2B a17ee4311a33acee0bdeb9e5225a198f9dec1b2e0267a742080c77d5342e5052392a5a2100a0ba85f5a192b8679838a7002d4c9a12aa5bdd7921eff025b75d15 SHA512 0a3a27ccc97bbe4865c1bc0b803012e3da6d5b1f17d4fb0da6f5f58eec01f6d2ae1f25e52896ea5f9c5ac04c5fddcfd1ac606b301c322cf40d5c4d4ce0a1b76e
|
||||||
|
DIST apr-1.7.3.tar.bz2 901048 BLAKE2B effd809ff2d43c5340874456c6440c94c3c1dc728964d6b65050e0e11692961ccbedba63fd02009c79fa05bb8effde7cc46d2b22c560745d49d54f0a793e4b6d SHA512 d8f62868d8e3ec92cede1f0d93b5d48e49441f575c98e165ff84343746a6abd265290ab16a57f741896ae7a6b3e534a334325a99a61c96c2485e085f7761c124
|
||||||
|
@ -0,0 +1,170 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Apache Portable Runtime Library"
|
||||||
|
HOMEPAGE="https://apr.apache.org/"
|
||||||
|
SRC_URI="mirror://apache/apr/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="1/${PV%.*}"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="doc old-kernel selinux static-libs +urandom"
|
||||||
|
|
||||||
|
# See bug #815265 for libcrypt dependency
|
||||||
|
DEPEND="
|
||||||
|
virtual/libcrypt:=
|
||||||
|
elibc_glibc? ( >=sys-apps/util-linux-2.16 )
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
selinux? ( sec-policy/selinux-base-policy )
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
>=sys-devel/libtool-2.4.2
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
"
|
||||||
|
|
||||||
|
DOCS=( CHANGES NOTICE README )
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-1.5.0-mint.patch
|
||||||
|
"${FILESDIR}"/${PN}-1.6.3-skip-known-failing-tests.patch
|
||||||
|
"${FILESDIR}"/${PN}-1.7.2-libtool.patch
|
||||||
|
"${FILESDIR}"/${PN}-1.7.2-sysroot.patch # bug #385775
|
||||||
|
"${FILESDIR}"/${PN}-1.7.2-fix-pkgconfig-libs.patch
|
||||||
|
"${FILESDIR}"/${PN}-1.7.2-respect-flags.patch
|
||||||
|
"${FILESDIR}"/${PN}-1.7.2-autoconf-2.72.patch
|
||||||
|
"${FILESDIR}"/config.layout.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
mv configure.in configure.ac || die
|
||||||
|
AT_M4DIR="build" eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
tc-export AS CC CPP
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--enable-layout=gentoo
|
||||||
|
--enable-nonportable-atomics
|
||||||
|
--enable-posix-shm
|
||||||
|
--enable-threads
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
--with-installbuilddir="${EPREFIX}"/usr/share/${PN}/build
|
||||||
|
)
|
||||||
|
|
||||||
|
tc-is-static-only && myconf+=( --disable-dso )
|
||||||
|
|
||||||
|
if use old-kernel; then
|
||||||
|
local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
|
||||||
|
export apr_cv_accept4="no"
|
||||||
|
export apr_cv_dup3="no"
|
||||||
|
export apr_cv_epoll_create1="no"
|
||||||
|
export apr_cv_sock_cloexec="no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
# The apache project relies heavily on AC_TRY_RUN and doesn't
|
||||||
|
# have any sane cross-compiling fallback logic.
|
||||||
|
export \
|
||||||
|
ac_cv_file__dev_zero="yes" \
|
||||||
|
ac_cv_func_sem_open="yes" \
|
||||||
|
ac_cv_mmap__dev_zero="yes" \
|
||||||
|
ac_cv_negative_eai="yes" \
|
||||||
|
ac_cv_o_nonblock_inherited="no" \
|
||||||
|
ac_cv_struct_rlimit="yes" \
|
||||||
|
ap_cv_atomic_builtins="yes" \
|
||||||
|
apr_cv_accept4="yes" \
|
||||||
|
apr_cv_dup3="yes" \
|
||||||
|
apr_cv_epoll="yes" \
|
||||||
|
apr_cv_epoll_create1="yes" \
|
||||||
|
apr_cv_gai_addrconfig="yes" \
|
||||||
|
apr_cv_mutex_recursive="yes" \
|
||||||
|
apr_cv_mutex_robust_shared="yes" \
|
||||||
|
apr_cv_process_shared_works="yes" \
|
||||||
|
apr_cv_pthreads_lib="-pthread" \
|
||||||
|
apr_cv_sock_cloexec="yes" \
|
||||||
|
apr_cv_tcp_nodelay_with_cork="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use urandom; then
|
||||||
|
myconf+=( --with-devrandom=/dev/urandom )
|
||||||
|
elif (( ${CHOST#*-hpux11.} <= 11 )); then
|
||||||
|
: # no /dev/*random on hpux11.11 and before, apr detects this.
|
||||||
|
else
|
||||||
|
myconf+=( --with-devrandom=/dev/random )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# shl_load does not search runpath, but hpux11 supports dlopen
|
||||||
|
if [[ ${CHOST} == *-hpux11* ]]; then
|
||||||
|
myconf+=( --enable-dso=dlfcn )
|
||||||
|
elif [[ ${CHOST} == *-solaris2.10 ]]; then
|
||||||
|
local atomic_contents=$(<$([[ ${CHOST} != ${CBUILD} ]] && echo "${EPREFIX}/usr/${CHOST}")/usr/include/atomic.h)
|
||||||
|
|
||||||
|
case "${atomic_contents}" in
|
||||||
|
*atomic_cas_ptr*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
local patch_id=$([[ ${CHOST} == sparc* ]] && echo 118884 || echo 118885)
|
||||||
|
|
||||||
|
elog "You do not have Solaris Patch ID ${patch_id} (Problem 4954703) installed on your host ($(hostname)),"
|
||||||
|
elog "using generic atomic operations instead."
|
||||||
|
|
||||||
|
myconf+=( --disable-nonportable-atomics )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
if use ppc || use sparc || use mips; then
|
||||||
|
# Avoid libapr containing undefined references (underlinked)
|
||||||
|
# undefined reference to `__sync_val_compare_and_swap_8'
|
||||||
|
# (May be possible to fix via libatomic linkage in future?)
|
||||||
|
# bug #740464
|
||||||
|
myconf+=( --disable-nonportable-atomics )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
# This header is the same across targets, so use the build compiler.
|
||||||
|
emake tools/gen_test_char
|
||||||
|
|
||||||
|
tc-export_build_env BUILD_CC
|
||||||
|
${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \
|
||||||
|
tools/gen_test_char.c -o tools/gen_test_char || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake all $(usev doc dox)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Building tests in parallel is broken
|
||||||
|
emake -j1 check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if ! use static-libs; then
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
docinto html
|
||||||
|
dodoc -r docs/dox/html/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This file is only used on AIX systems, which Gentoo is not,
|
||||||
|
# and causes collisions between the SLOTs, so remove it.
|
||||||
|
# Even in Prefix, we don't need this on AIX.
|
||||||
|
rm "${ED}/usr/$(get_libdir)/apr.exp" || die
|
||||||
|
}
|
@ -1,3 +1 @@
|
|||||||
DIST ell-0.54.tar.xz 562496 BLAKE2B d5aa705d0a72068c18b4f7f2b40c80069fc4d8a746a4c8585140da5387e06a529019b4e8eb37d4caeb9fbb948100e86f78d678ca3a3c0964d03ec368f7a4be64 SHA512 dff507ced951a4919f6fe82b276446ee6a9bfb0b3b9fe7abb2c76a3c22cdccf92f97ebcb0a476946adef5b031fd0d86f5af934b052383bdd87b5a7962b021bac
|
|
||||||
DIST ell-0.55.tar.xz 562716 BLAKE2B b49acda837e22dec8469423dd47b397471975acdb0df034f0d85163daf0eb393b9bb75b1dd81c6e8a395e271bb0b8da01939df3497983aae5b6d270a70dcd5fc SHA512 f71b7d20a37009842ae54b72463e4c34509d00f0c344ae3b39acabe784fee83027d04b3f272f51dbc519f82ab794837b9a24ca90da55b97c757725d030c1874e
|
|
||||||
DIST ell-0.56.tar.xz 563096 BLAKE2B 3be874ddddab558911d5ea4e4fb0b32c1557b8577435f39ee88d7302bbb0efbd24671f6c426bbeaba2704ba45b865320e6f2e31f6a9c4d86e82dc8ed38ebae9f SHA512 7255470331927f67ebd1297e6c524c9c244234cf00923016c77d90bad5e4e381605c70373a7be4ecf9c1e72ec85fbc1671960dd31fb6eec279f2299e81c66ac1
|
DIST ell-0.56.tar.xz 563096 BLAKE2B 3be874ddddab558911d5ea4e4fb0b32c1557b8577435f39ee88d7302bbb0efbd24671f6c426bbeaba2704ba45b865320e6f2e31f6a9c4d86e82dc8ed38ebae9f SHA512 7255470331927f67ebd1297e6c524c9c244234cf00923016c77d90bad5e4e381605c70373a7be4ecf9c1e72ec85fbc1671960dd31fb6eec279f2299e81c66ac1
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit flag-o-matic linux-info
|
|
||||||
|
|
||||||
DESCRIPTION="Embedded Linux Library provides core, low-level functionality for system daemons"
|
|
||||||
HOMEPAGE="https://01.org/ell"
|
|
||||||
if [[ "${PV}" == *9999 ]] ; then
|
|
||||||
inherit autotools git-r3
|
|
||||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
|
|
||||||
fi
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
IUSE="pie test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
DEPEND="test? ( sys-apps/dbus )"
|
|
||||||
|
|
||||||
CONFIG_CHECK="
|
|
||||||
~TIMERFD
|
|
||||||
~EVENTFD
|
|
||||||
~CRYPTO_USER_API
|
|
||||||
~CRYPTO_USER_API_HASH
|
|
||||||
~CRYPTO_MD5
|
|
||||||
~CRYPTO_SHA1
|
|
||||||
~KEY_DH_OPERATIONS
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s#/tmp/ell-test-bus#/tmp/ell-test-bus-$(uuidgen)#" \
|
|
||||||
unit/test-dbus*.c unit/dbus.conf || die
|
|
||||||
[[ "${PV}" == *9999 ]] && eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cflags "-fsigned-char" #662694
|
|
||||||
local myeconfargs=(
|
|
||||||
$(use_enable pie)
|
|
||||||
)
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
find "${ED}" -name "*.la" -delete || die
|
|
||||||
}
|
|
@ -1,54 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit flag-o-matic linux-info
|
|
||||||
|
|
||||||
DESCRIPTION="Embedded Linux Library provides core, low-level functionality for system daemons"
|
|
||||||
HOMEPAGE="https://01.org/ell"
|
|
||||||
if [[ "${PV}" == *9999 ]] ; then
|
|
||||||
inherit autotools git-r3
|
|
||||||
EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc x86"
|
|
||||||
fi
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
IUSE="pie test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
DEPEND="test? ( sys-apps/dbus )"
|
|
||||||
|
|
||||||
CONFIG_CHECK="
|
|
||||||
~TIMERFD
|
|
||||||
~EVENTFD
|
|
||||||
~CRYPTO_USER_API
|
|
||||||
~CRYPTO_USER_API_HASH
|
|
||||||
~CRYPTO_MD5
|
|
||||||
~CRYPTO_SHA1
|
|
||||||
~KEY_DH_OPERATIONS
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
sed -i -e "s#/tmp/ell-test-bus#/tmp/ell-test-bus-$(uuidgen)#" \
|
|
||||||
unit/test-dbus*.c unit/dbus.conf || die
|
|
||||||
[[ "${PV}" == *9999 ]] && eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
append-cflags "-fsigned-char" #662694
|
|
||||||
local myeconfargs=(
|
|
||||||
$(use_enable pie)
|
|
||||||
)
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
find "${ED}" -name "*.la" -delete || die
|
|
||||||
}
|
|
@ -1,3 +1,2 @@
|
|||||||
DIST mimalloc-2.0.6.tar.gz 1127052 BLAKE2B bd8a38cc0eab6ad950a63f494f24e6a91c50d2104335e9ce70963a7baadd26c7a2b7440b2fcabe502d9961549222873d017cb525bf5b32da967cf51aa167603c SHA512 f2fc0fbfb6384e85959897f129e5d5d9acc51bda536d5cabcd7d4177dbda9fb735b8a8c239b961f8bea31d37c9ae10f66da23aa91d497f95393253d4ac792bb3
|
|
||||||
DIST mimalloc-2.0.7.tar.gz 1137057 BLAKE2B dc7ca7443507b14967168e4899464d137da425bdbc3863d44faef7adfe62e983cec0a7950937f010d003ff4df3c4368ff2f9753c3fda19641ab12f91fc73055c SHA512 120f89eef50ba83130e8ceb974a6148c84a7f3d975d1efaa094142518afb4ff6d9e24f8e75e9aa0bb02dc80bf497eced4b8ae1f2f5914fdabd773317e1341ea1
|
|
||||||
DIST mimalloc-2.0.9.tar.gz 1143452 BLAKE2B 55e91d8fc89ef5344078caa5e72efce8c0745e3aab7bfb682587abf806bda1903c1afeaa57660a4dbcf7c19c04c759caf69af9fb62d15ecbdf2ce5bcf6574625 SHA512 bf6945bfb600ade35dab34c7f570ee4f69a77612547ad874bbbd989a4e594a6a219c222a22c90c5e36f205aae4d5cd1a5e4651caed5433db275d414c6769bf49
|
DIST mimalloc-2.0.9.tar.gz 1143452 BLAKE2B 55e91d8fc89ef5344078caa5e72efce8c0745e3aab7bfb682587abf806bda1903c1afeaa57660a4dbcf7c19c04c759caf69af9fb62d15ecbdf2ce5bcf6574625 SHA512 bf6945bfb600ade35dab34c7f570ee4f69a77612547ad874bbbd989a4e594a6a219c222a22c90c5e36f205aae4d5cd1a5e4651caed5433db275d414c6769bf49
|
||||||
|
DIST mimalloc-2.1.0.tar.gz 1163080 BLAKE2B c452fc6b6f16ba8f207855bc560f11ebb6b7431b17331123ede59a49ebe2591bb81e91481a776a6cd24ab5c7f3ceabd59cf6ae41b05b558e883cf045b71628d6 SHA512 f766d6d9ad961cc129a561ed4824eb30e0857c2da4662e0c6fd095c7e193760a2c3238943efa7601099d3b44480b34f1755454d6172a91b6dd1e3fa3a19d4a9e
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit cmake-multilib
|
|
||||||
|
|
||||||
DESCRIPTION="A compact general purpose allocator with excellent performance"
|
|
||||||
HOMEPAGE="https://github.com/microsoft/mimalloc"
|
|
||||||
SRC_URI="https://github.com/microsoft/mimalloc/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0/2"
|
|
||||||
KEYWORDS="amd64 ~loong ~riscv ~x86"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
# TODO: build hardened variant?
|
|
||||||
#-DMI_SECURE=$(usex hardened)
|
|
||||||
|
|
||||||
-DMI_INSTALL_TOPLEVEL=ON
|
|
||||||
-DMI_BUILD_TESTS=$(usex test)
|
|
||||||
|
|
||||||
-DMI_BUILD_OBJECT=OFF
|
|
||||||
-DMI_BUILD_STATIC=OFF
|
|
||||||
)
|
|
||||||
|
|
||||||
cmake-multilib_src_configure
|
|
||||||
}
|
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue