parent
037d3e2b89
commit
044beb6682
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for app-metrics/grok_exporter"
|
||||||
|
|
||||||
|
ACCT_USER_ID=104
|
||||||
|
ACCT_USER_GROUPS=( grok_exporter )
|
||||||
|
|
||||||
|
acct-user_add_deps
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>williamh@gentoo.org</email>
|
||||||
|
<name>William Hubbs</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST gummi-0.8.1.tar.gz 580887 BLAKE2B ce06df4e85e2dfd510e39aeab785d1289335802fd24fa0b25eb9a0b920849d7ab2b89d62509e91ddb41c8f4c601544f3da8819f69ff3e38fc59dbde0aa3e789d SHA512 dccef28f6ceb2743a5a44c5224cce7326e9bb9e6f1baccb51c23d801ce595914d1b960fe11d230dcad5f041d80fe57b46c0e5aa9c6abd881dd2e32db373d329a
|
|
||||||
DIST gummi-0.8.2.tar.gz 595733 BLAKE2B 9c7366df2b8fe40f7876f065a1156eb4992048b3eaec5dde332c50ccb98ef2a5d8d2cbe73ebb56eb3736bbce49f3168f165db82f562ee7265ce0859952801a2c SHA512 3882f1e2779b94348cc0cc243c3968a78165c16de41029f9fcb8ba2fa942d329c43f5ecc8ba8327590e14343556ca472a51d1e824ce0985a415ab92aa2cbbc42
|
DIST gummi-0.8.2.tar.gz 595733 BLAKE2B 9c7366df2b8fe40f7876f065a1156eb4992048b3eaec5dde332c50ccb98ef2a5d8d2cbe73ebb56eb3736bbce49f3168f165db82f562ee7265ce0859952801a2c SHA512 3882f1e2779b94348cc0cc243c3968a78165c16de41029f9fcb8ba2fa942d329c43f5ecc8ba8327590e14343556ca472a51d1e824ce0985a415ab92aa2cbbc42
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit xdg-utils
|
|
||||||
|
|
||||||
DESCRIPTION="Simple LaTeX editor for GTK+ users"
|
|
||||||
HOMEPAGE="https://github.com/alexandervdm/gummi"
|
|
||||||
SRC_URI="https://github.com/alexandervdm/${PN}/releases/download/${PV}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~arm64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
app-text/gtkspell:3
|
|
||||||
app-text/poppler[cairo]
|
|
||||||
dev-libs/glib:2
|
|
||||||
dev-texlive/texlive-latex
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
x11-libs/gtk+:3
|
|
||||||
x11-libs/gtksourceview:3.0
|
|
||||||
x11-libs/pango
|
|
||||||
"
|
|
||||||
DEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
dev-util/intltool
|
|
||||||
sys-devel/gettext
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
xdg_desktop_database_update
|
|
||||||
|
|
||||||
elog "Gummi supports spell-checking through gtkspell. Support for"
|
|
||||||
elog "additional languages can be added by installing myspell-**-"
|
|
||||||
elog "packages for your language of choice."
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
xdg_desktop_database_update
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST aflplusplus-3.12c.tar.gz 2065569 BLAKE2B ff7a87eb02f7731b5ce8e1a3016239c6fd1cd1bfeb0b9c0fb69f72bdbf079e7700cdb32abe64f64853e5ff82f1c0ecd86d2cadb892e7c40be6bb2a7b089f7387 SHA512 a814d61298b60d99388289e742dbedf2ed1ab454a5e1ea20d48bb2f18b36c01553ab1f097a06f733439d67e804d48cb823a82ff249c404fb0b83a281564f3040
|
DIST aflplusplus-3.12c.tar.gz 2065569 BLAKE2B ff7a87eb02f7731b5ce8e1a3016239c6fd1cd1bfeb0b9c0fb69f72bdbf079e7700cdb32abe64f64853e5ff82f1c0ecd86d2cadb892e7c40be6bb2a7b089f7387 SHA512 a814d61298b60d99388289e742dbedf2ed1ab454a5e1ea20d48bb2f18b36c01553ab1f097a06f733439d67e804d48cb823a82ff249c404fb0b83a281564f3040
|
||||||
DIST aflplusplus-3.13c.tar.gz 2128787 BLAKE2B 40fa65654468dc1de7f6e1b63d2266915a40d145b7cb91b8b95488bc975804f70887bc1c3718fbd12c76872a0126f3bcc36134eb55ef729060b5efcf93dad424 SHA512 916a714deaf67969c9ac6e90bd2d8015a1e5188c8a8122f4d5d64ce4b841822de65458e469a47d4244358fab5e31ef4e52b8ec1432dcbd60d29aedf15e4c36fe
|
DIST aflplusplus-3.13c.tar.gz 2128787 BLAKE2B 40fa65654468dc1de7f6e1b63d2266915a40d145b7cb91b8b95488bc975804f70887bc1c3718fbd12c76872a0126f3bcc36134eb55ef729060b5efcf93dad424 SHA512 916a714deaf67969c9ac6e90bd2d8015a1e5188c8a8122f4d5d64ce4b841822de65458e469a47d4244358fab5e31ef4e52b8ec1432dcbd60d29aedf15e4c36fe
|
||||||
|
DIST aflplusplus-3.14c.tar.gz 2162934 BLAKE2B 0830b320cea65b9bdd048a08a388c7145164f6b7f4dc140a2f4268a3aa22dc608a771169c830e2196e7a0d543e6f3da49f39736f3b2514c559b986ce929d43c4 SHA512 318607cff40b5f2fc94938747e2ac6b8f400767138eb39edf4daf320afbdab417d0d97a80a1c9db8bb557ad4b7b62f887ae6e692c376f5d5673a493bd23bb811
|
||||||
|
@ -0,0 +1,99 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8,9,10} )
|
||||||
|
LLVM_MAX_SLOT=13
|
||||||
|
inherit toolchain-funcs llvm optfeature python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A fork of AFL, the popular compile-time instrumentation fuzzer"
|
||||||
|
HOMEPAGE="https://github.com/AFLplusplus/AFLplusplus"
|
||||||
|
SRC_URI="https://github.com/AFLplusplus/AFLplusplus/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/AFLplusplus-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
|
# Tests involve heavy use of LD_PRELOAD in some cases
|
||||||
|
# This isn't compatible with sandbox
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
# It turns out we need Clang too
|
||||||
|
RDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
>=sys-devel/llvm-10:=
|
||||||
|
|| (
|
||||||
|
sys-devel/clang:10
|
||||||
|
sys-devel/clang:11
|
||||||
|
sys-devel/clang:12
|
||||||
|
sys-devel/clang:13
|
||||||
|
)
|
||||||
|
!app-forensics/afl
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
test? ( dev-util/cmocka )
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_PREBUILT="/usr/share/afl/testcases/others/elf/small_exec.elf"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-3.0c-LDFLAGS.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.13c-CFLAGS.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
llvm_check_deps() {
|
||||||
|
has_version -b "sys-devel/clang:${LLVM_SLOT}" && \
|
||||||
|
has_version -b "sys-devel/llvm:${LLVM_SLOT}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
llvm_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
sed -i -e 's/-O3 -fno-unroll-loops//' GNUmakefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
CXX="$(tc-getCXX)" \
|
||||||
|
CFLAGS_FLTO="" \
|
||||||
|
PREFIX="${EPREFIX}/usr" \
|
||||||
|
HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \
|
||||||
|
DOC_PATH="${EPREFIX}/usr/share/doc/${PF}" \
|
||||||
|
MAN_PATH="${EPREFIX}/usr/share/man/man8"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
CXX="$(tc-getCXX)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake \
|
||||||
|
CC="$(tc-getCC)" \
|
||||||
|
CXX="$(tc-getCXX)" \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
PREFIX="${EPREFIX}/usr" \
|
||||||
|
HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \
|
||||||
|
DOC_PATH="${EPREFIX}/usr/share/doc/${PF}" \
|
||||||
|
MAN_PATH="${EPREFIX}/usr/share/man/man8" \
|
||||||
|
install
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# TODO: Any others?
|
||||||
|
optfeature "fuzzing with AFL_USE_ASAN" sys-libs/compiler-rt-sanitizers[asan]
|
||||||
|
optfeature "fuzzing with AFL_USE_MSAN" sys-libs/compiler-rt-sanitizers[msan]
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
DIST TeXmacs-1.99.11-src.tar.gz 32798336 BLAKE2B 352e333b51fbf27589377f638dda4f4fa09ca6aee6d0016a103ef3b4ba71b766930b7202f6fc3d060f72e4ccbbf311f438975317844587461880f99c7dff596d SHA512 3f3481834baeeee93afc2c2de1666297b8c02d7dc5223b00ee93120e175503c91bdcc3d9ff4d8df498033064b2e67b12ffd47af9e8b95ad5eee12b47ec076855
|
DIST TeXmacs-2.1-src.tar.gz 35851289 BLAKE2B e29cf78d4c0f8b9d8bf89fd448775979efceaecd409c407bf66622cfa0e0aa166fe9a0abc146a282d71d989cdf03b21a8e17545a93196b868190ecb5fff3e993 SHA512 9e33bfb0a74ca6f6947cfa632adc162776083ae5e5ab46bc85fc8dac5e531457a2f888da5e552d6da39db16e543849a7b86f0fc6918b62e911d35ff725e47a2b
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
TeXmacs/misc/mime/texmacs.desktop | 7 +------
|
|
||||||
1 file changed, 1 insertion(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/TeXmacs/misc/mime/texmacs.desktop b/TeXmacs/misc/mime/texmacs.desktop
|
|
||||||
index 493103c..cfd66b3 100644
|
|
||||||
--- a/TeXmacs/misc/mime/texmacs.desktop
|
|
||||||
+++ b/TeXmacs/misc/mime/texmacs.desktop
|
|
||||||
@@ -1,14 +1,9 @@
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=GNU TeXmacs
|
|
||||||
Comment=A structured wysiwyg scientific text editor
|
|
||||||
-BinaryPattern=texmacs
|
|
||||||
-Protocols=
|
|
||||||
MimeType=text/x-texmacs;text/plain;text/x-tex;
|
|
||||||
Exec=texmacs %f
|
|
||||||
Icon=TeXmacs
|
|
||||||
-TerminalOptions=
|
|
||||||
-Path=
|
|
||||||
Type=Application
|
|
||||||
-Terminal=0
|
|
||||||
-MapNotify=false
|
|
||||||
+Terminal=false
|
|
||||||
Categories=Education;Science;Math;
|
|
@ -1,21 +0,0 @@
|
|||||||
C compiler compiles this code for bot int-based and size_t-based
|
|
||||||
guile. C++ compiler does not (and is what used by texmacs).
|
|
||||||
|
|
||||||
https://bugs.gentoo.org/652054
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index 37e9e87..5de2711 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -274,11 +274,11 @@ SET(CMAKE_REQUIRED_FLAGS "-Werror ${Guile_CFLAGS}")
|
|
||||||
SET(CMAKE_REQUIRED_INCLUDES ${Guile_INCLUDE_DIRS})
|
|
||||||
SET(CMAKE_REQUIRED_LIBRARIES ${Guile_LIBRARIES})
|
|
||||||
|
|
||||||
MESSAGE(STATUS "Checking the size_t of guile strings")
|
|
||||||
|
|
||||||
-CHECK_C_SOURCE_COMPILES( "#include <guile/gh.h>
|
|
||||||
+CHECK_CXX_SOURCE_COMPILES( "#include <guile/gh.h>
|
|
||||||
#include <libguile.h>
|
|
||||||
void print_string (SCM s) {
|
|
||||||
int len_r;
|
|
||||||
char* r= gh_scm2newstr (s, &len_r); } int main() { return 0; }
|
|
||||||
" _guile_str_size_test)
|
|
@ -1,15 +0,0 @@
|
|||||||
diff -r -U2 TeXmacs-1.99.6-src.orig/src/Graphics/Types/math_util.hpp TeXmacs-1.99.6-src/src/Graphics/Types/math_util.hpp
|
|
||||||
--- TeXmacs-1.99.6-src.orig/src/Graphics/Types/math_util.hpp 2017-12-22 03:27:43.000000000 +0700
|
|
||||||
+++ TeXmacs-1.99.6-src/src/Graphics/Types/math_util.hpp 2017-12-22 16:44:35.052378917 +0700
|
|
||||||
@@ -24,11 +24,4 @@
|
|
||||||
inline int sign (double x) { return x>0?1:x<0?-1:0; }
|
|
||||||
inline bool fnull (double x, double approx) { return norm(x) <= approx; }
|
|
||||||
-#ifndef __SUNPRO_CC
|
|
||||||
-inline double pow (double x, int n) {
|
|
||||||
- double r= 1.0;
|
|
||||||
- while (n > 0) { r *= x; n--; }
|
|
||||||
- return r; }
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
|
|
||||||
#endif // defined MATH_UTIL_H
|
|
@ -1,295 +0,0 @@
|
|||||||
diff -Naruw TeXmacs-1.99.9-src.orig/CMakeLists.txt TeXmacs-1.99.9-src/CMakeLists.txt
|
|
||||||
--- TeXmacs-1.99.9-src.orig/CMakeLists.txt 2019-02-01 04:33:32.000000000 -0500
|
|
||||||
+++ TeXmacs-1.99.9-src/CMakeLists.txt 2019-06-02 17:13:47.980498170 -0400
|
|
||||||
@@ -274,7 +274,6 @@
|
|
||||||
elseif(Guile_VERSION_STRING VERSION_LESS 3.0)
|
|
||||||
set(CONFIG_GUILE_SERIAL "D")
|
|
||||||
set(GUILE_D 1)
|
|
||||||
- set(SCM_SIZET size_t)
|
|
||||||
else(Guile_VERSION_STRING VERSION_LESS 1.6)
|
|
||||||
message(ERROR "Not Guile serial A,B,C or D???")
|
|
||||||
endif(Guile_VERSION_STRING VERSION_LESS 1.6)
|
|
||||||
@@ -286,7 +285,7 @@
|
|
||||||
|
|
||||||
MESSAGE(STATUS "Checking the size_t of guile strings")
|
|
||||||
|
|
||||||
-CHECK_C_SOURCE_COMPILES( "#include <guile/gh.h>
|
|
||||||
+CHECK_CXX_SOURCE_COMPILES( "#include <guile/gh.h>
|
|
||||||
#include <libguile.h>
|
|
||||||
void print_string (SCM s) {
|
|
||||||
int len_r;
|
|
||||||
diff -Naruw TeXmacs-1.99.9-src.orig/src/CMakeLists.txt.orig TeXmacs-1.99.9-src/src/CMakeLists.txt.orig
|
|
||||||
--- TeXmacs-1.99.9-src.orig/src/CMakeLists.txt.orig 1969-12-31 19:00:00.000000000 -0500
|
|
||||||
+++ TeXmacs-1.99.9-src/src/CMakeLists.txt.orig 2019-06-02 17:12:44.654011478 -0400
|
|
||||||
@@ -0,0 +1,32 @@
|
|
||||||
+
|
|
||||||
+add_library(texmacs_body STATIC ${TeXmacs_All_SRCS})
|
|
||||||
+
|
|
||||||
+add_executable (${TeXmacs_binary_name}
|
|
||||||
+ ./Texmacs/Texmacs/texmacs.cpp
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+target_link_libraries (${TeXmacs_binary_name}
|
|
||||||
+ texmacs_body
|
|
||||||
+ ${TeXmacs_Libraries}
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+if (APPLE)
|
|
||||||
+ set(MACOSX_BUNDLE_DISPLAY_NAME TeXmacs)
|
|
||||||
+ set_target_properties (${TeXmacs_binary_name}
|
|
||||||
+ PROPERTIES
|
|
||||||
+ MACOSX_BUNDLE TRUE
|
|
||||||
+ MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in
|
|
||||||
+ DEBUG_OUTPUT_NAME ${TeXmacs_binary_name}${EXE_DEBUG_EXTENSION}
|
|
||||||
+ RELEASE_OUTPUT_NAME ${TeXmacs_binary_name}
|
|
||||||
+ RUNTIME_OUTPUT_DIRECTORY ${TEXMACS_BINARY_DIR}
|
|
||||||
+ )
|
|
||||||
+else (APPLE)
|
|
||||||
+ set_target_properties (${TeXmacs_binary_name}
|
|
||||||
+ PROPERTIES
|
|
||||||
+ DEBUG_OUTPUT_NAME ${TeXmacs_binary_name}${EXE_DEBUG_EXTENSION}
|
|
||||||
+ RELEASE_OUTPUT_NAME ${TeXmacs_binary_name}
|
|
||||||
+ RUNTIME_OUTPUT_DIRECTORY ${TEXMACS_BINARY_DIR}
|
|
||||||
+ )
|
|
||||||
+ install (TARGETS ${TeXmacs_binary_name} DESTINATION lib/texmacs/TeXmacs/bin)
|
|
||||||
+endif (APPLE)
|
|
||||||
+
|
|
||||||
diff -Naruw TeXmacs-1.99.9-src.orig/src/CMakeLists.txt.rej TeXmacs-1.99.9-src/src/CMakeLists.txt.rej
|
|
||||||
--- TeXmacs-1.99.9-src.orig/src/CMakeLists.txt.rej 1969-12-31 19:00:00.000000000 -0500
|
|
||||||
+++ TeXmacs-1.99.9-src/src/CMakeLists.txt.rej 2019-06-02 17:12:44.654011478 -0400
|
|
||||||
@@ -0,0 +1,19 @@
|
|
||||||
+--- CMakeLists.txt (revision 11761)
|
|
||||||
++++ CMakeLists.txt (working copy)
|
|
||||||
+@@ -274,7 +274,6 @@
|
|
||||||
+ elseif (Guile_VERSION_STRING VERSION_LESS 3.0)
|
|
||||||
+ set (CONFIG_GUILE_SERIAL "D")
|
|
||||||
+ set (GUILE_D 1)
|
|
||||||
+- set (SCM_SIZET size_t)
|
|
||||||
+ else (Guile_VERSION_STRING VERSION_LESS 1.6)
|
|
||||||
+ message (ERROR "Not Guile serial A,B,C or D???")
|
|
||||||
+ endif (Guile_VERSION_STRING VERSION_LESS 1.6)
|
|
||||||
+@@ -286,7 +285,7 @@
|
|
||||||
+
|
|
||||||
+ message (STATUS "Checking the size_t of guile strings")
|
|
||||||
+
|
|
||||||
+-check_c_source_compiles ("
|
|
||||||
++check_cxx_source_compiles ("
|
|
||||||
+ #include <guile/gh.h>
|
|
||||||
+ #include <libguile.h>
|
|
||||||
+ void print_string (SCM s) {
|
|
||||||
diff -Naruw TeXmacs-1.99.9-src.orig/src/Scheme/Guile/guile_tm.cpp TeXmacs-1.99.9-src/src/Scheme/Guile/guile_tm.cpp
|
|
||||||
--- TeXmacs-1.99.9-src.orig/src/Scheme/Guile/guile_tm.cpp 2018-03-23 08:44:53.000000000 -0400
|
|
||||||
+++ TeXmacs-1.99.9-src/src/Scheme/Guile/guile_tm.cpp 2019-06-02 17:13:10.420604916 -0400
|
|
||||||
@@ -85,19 +85,34 @@
|
|
||||||
#ifndef DEBUG_ON
|
|
||||||
static SCM
|
|
||||||
TeXmacs_lazy_eval_file (char *file) {
|
|
||||||
+#if (defined(GUILE_A) || defined(GUILE_B))
|
|
||||||
return scm_internal_lazy_catch (SCM_BOOL_T,
|
|
||||||
(scm_t_catch_body) scm_c_primitive_load, file,
|
|
||||||
(scm_t_catch_handler) TeXmacs_lazy_catcher, file);
|
|
||||||
+#else
|
|
||||||
+ return scm_c_with_throw_handler (SCM_BOOL_T,
|
|
||||||
+ (scm_t_catch_body) scm_c_primitive_load, file,
|
|
||||||
+ (scm_t_catch_handler) TeXmacs_lazy_catcher,
|
|
||||||
+ file, 0);
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static SCM
|
|
||||||
TeXmacs_eval_file (char *file) {
|
|
||||||
#ifndef DEBUG_ON
|
|
||||||
+#if (defined(GUILE_A) || defined(GUILE_B))
|
|
||||||
return scm_internal_catch (SCM_BOOL_T,
|
|
||||||
(scm_t_catch_body) TeXmacs_lazy_eval_file, file,
|
|
||||||
(scm_t_catch_handler) TeXmacs_catcher, file);
|
|
||||||
#else
|
|
||||||
+ return scm_c_catch (SCM_BOOL_T,
|
|
||||||
+ (scm_t_catch_body) TeXmacs_lazy_eval_file, file,
|
|
||||||
+ (scm_t_catch_handler) TeXmacs_catcher, file, NULL, NULL);
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#else
|
|
||||||
return scm_c_primitive_load (file);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
@@ -121,19 +136,33 @@
|
|
||||||
#ifndef DEBUG_ON
|
|
||||||
static SCM
|
|
||||||
TeXmacs_lazy_eval_string (char *s) {
|
|
||||||
+#if (defined(GUILE_A) || defined(GUILE_B))
|
|
||||||
return scm_internal_lazy_catch (SCM_BOOL_T,
|
|
||||||
(scm_t_catch_body) scm_c_eval_string, s,
|
|
||||||
(scm_t_catch_handler) TeXmacs_lazy_catcher, s);
|
|
||||||
+#else
|
|
||||||
+ return scm_c_with_throw_handler (SCM_BOOL_T,
|
|
||||||
+ (scm_t_catch_body) scm_c_eval_string, s,
|
|
||||||
+ (scm_t_catch_handler) TeXmacs_lazy_catcher,
|
|
||||||
+ s, 0);
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static SCM
|
|
||||||
TeXmacs_eval_string (char *s) {
|
|
||||||
#ifndef DEBUG_ON
|
|
||||||
+#if (defined(GUILE_A) || defined(GUILE_B))
|
|
||||||
return scm_internal_catch (SCM_BOOL_T,
|
|
||||||
(scm_t_catch_body) TeXmacs_lazy_eval_string, s,
|
|
||||||
(scm_t_catch_handler) TeXmacs_catcher, s);
|
|
||||||
#else
|
|
||||||
+ return scm_c_catch (SCM_BOOL_T,
|
|
||||||
+ (scm_t_catch_body) TeXmacs_lazy_eval_string, s,
|
|
||||||
+ (scm_t_catch_handler) TeXmacs_catcher, s, NULL, NULL);
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
+#else
|
|
||||||
return scm_c_eval_string(s);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
@@ -180,19 +209,35 @@
|
|
||||||
#ifndef DEBUG_ON
|
|
||||||
static SCM
|
|
||||||
TeXmacs_lazy_call_scm (arg_list* args) {
|
|
||||||
+#if (defined(GUILE_A) || defined(GUILE_B))
|
|
||||||
return scm_internal_lazy_catch (SCM_BOOL_T,
|
|
||||||
(scm_t_catch_body) TeXmacs_call, (void*) args,
|
|
||||||
- (scm_t_catch_handler) TeXmacs_lazy_catcher, (void*) args);
|
|
||||||
+ (scm_t_catch_handler) TeXmacs_lazy_catcher,
|
|
||||||
+ (void*) args);
|
|
||||||
+#else
|
|
||||||
+ return scm_c_with_throw_handler (SCM_BOOL_T,
|
|
||||||
+ (scm_t_catch_body) TeXmacs_call, (void*) args,
|
|
||||||
+ (scm_t_catch_handler) TeXmacs_lazy_catcher,
|
|
||||||
+ (void*) args, 0);
|
|
||||||
+
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static SCM
|
|
||||||
TeXmacs_call_scm (arg_list *args) {
|
|
||||||
#ifndef DEBUG_ON
|
|
||||||
+#if (defined(GUILE_A) || defined(GUILE_B))
|
|
||||||
return scm_internal_catch (SCM_BOOL_T,
|
|
||||||
(scm_t_catch_body) TeXmacs_lazy_call_scm, (void*) args,
|
|
||||||
(scm_t_catch_handler) TeXmacs_catcher, (void*) args);
|
|
||||||
#else
|
|
||||||
+ return scm_c_catch (SCM_BOOL_T,
|
|
||||||
+ (scm_t_catch_body) TeXmacs_lazy_call_scm, (void*) args,
|
|
||||||
+ (scm_t_catch_handler) TeXmacs_catcher, (void*) args,
|
|
||||||
+ NULL, NULL);
|
|
||||||
+#endif
|
|
||||||
+#else
|
|
||||||
return TeXmacs_call(args);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
@@ -443,7 +488,11 @@
|
|
||||||
return SCM_BOOL_F;
|
|
||||||
}
|
|
||||||
|
|
||||||
+#ifdef GUILE_A
|
|
||||||
static scm_sizet
|
|
||||||
+#else
|
|
||||||
+static size_t
|
|
||||||
+#endif
|
|
||||||
free_blackbox (SCM blackbox_smob) {
|
|
||||||
blackbox *ptr = (blackbox *) SCM_CDR (blackbox_smob);
|
|
||||||
#ifdef DEBUG_ON
|
|
||||||
diff -Naruw TeXmacs-1.99.9-src.orig/src/Scheme/Guile/guile_tm.hpp TeXmacs-1.99.9-src/src/Scheme/Guile/guile_tm.hpp
|
|
||||||
--- TeXmacs-1.99.9-src.orig/src/Scheme/Guile/guile_tm.hpp 2018-06-28 04:13:37.000000000 -0400
|
|
||||||
+++ TeXmacs-1.99.9-src/src/Scheme/Guile/guile_tm.hpp 2019-06-02 17:13:22.220571381 -0400
|
|
||||||
@@ -83,8 +83,8 @@
|
|
||||||
#define scm_is_double scm_is_real
|
|
||||||
#define scm_new_procedure(name,r,a,b,c) scm_c_define_gsubr(name,a,b,c,(scm_t_subr)r)
|
|
||||||
#define scm_lookup_string(name) scm_variable_ref(scm_c_lookup(name))
|
|
||||||
-#define scm_long2scm scm_long2num
|
|
||||||
-#define scm_scm2long(x) scm_num2long(x,SCM_ARG1,"scm2long")
|
|
||||||
+#define scm_long2scm scm_from_long
|
|
||||||
+#define scm_scm2long(x) scm_to_long(x,SCM_ARG1,"scm2long")
|
|
||||||
#define scm_double2scm scm_from_double
|
|
||||||
#define scm_scm2double scm_to_double
|
|
||||||
#define scm_str2scm scm_from_locale_stringn
|
|
||||||
@@ -103,8 +103,8 @@
|
|
||||||
#define scm_is_double scm_is_real
|
|
||||||
#define scm_new_procedure(name,r,a,b,c) scm_c_define_gsubr(name,a,b,c,r)
|
|
||||||
#define scm_lookup_string(name) scm_variable_ref(scm_c_lookup(name))
|
|
||||||
-#define scm_long2scm scm_long2num
|
|
||||||
-#define scm_scm2long(x) scm_num2long(x,SCM_ARG1,"scm2long")
|
|
||||||
+#define scm_long2scm scm_from_long
|
|
||||||
+#define scm_scm2long(x) scm_to_long(x,SCM_ARG1,"scm2long")
|
|
||||||
#define scm_double2scm scm_from_double
|
|
||||||
#define scm_scm2double scm_to_double
|
|
||||||
#define scm_str2scm scm_from_locale_stringn
|
|
||||||
diff -Naruw TeXmacs-1.99.9-src.orig/src/Scheme/Tiny/tinyscheme_tm.cpp TeXmacs-1.99.9-src/src/Scheme/Tiny/tinyscheme_tm.cpp
|
|
||||||
--- TeXmacs-1.99.9-src.orig/src/Scheme/Tiny/tinyscheme_tm.cpp 2017-09-28 09:44:11.000000000 -0400
|
|
||||||
+++ TeXmacs-1.99.9-src/src/Scheme/Tiny/tinyscheme_tm.cpp 2019-06-02 17:13:27.543889585 -0400
|
|
||||||
@@ -139,22 +139,6 @@
|
|
||||||
/******************************************************************************
|
|
||||||
* Evaluation of files
|
|
||||||
******************************************************************************/
|
|
||||||
-#if 0
|
|
||||||
-static scm
|
|
||||||
-TeXmacs_lazy_eval_file (char *file) {
|
|
||||||
-
|
|
||||||
- return scm_internal_lazy_catch (scm_BOOL_T,
|
|
||||||
- (scm_t_catch_body) scm_c_primitive_load, file,
|
|
||||||
- (scm_t_catch_handler) TeXmacs_lazy_catcher, file);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-static scm
|
|
||||||
-TeXmacs_eval_file (char *file) {
|
|
||||||
- return scm_internal_catch (scm_BOOL_T,
|
|
||||||
- (scm_t_catch_body) TeXmacs_lazy_eval_file, file,
|
|
||||||
- (scm_t_catch_handler) TeXmacs_catcher, file);
|
|
||||||
-}
|
|
||||||
-#endif
|
|
||||||
scm
|
|
||||||
eval_scheme_file (string file) {
|
|
||||||
//static int cumul= 0;
|
|
||||||
@@ -172,21 +156,6 @@
|
|
||||||
/******************************************************************************
|
|
||||||
* Evaluation of strings
|
|
||||||
******************************************************************************/
|
|
||||||
-#if 0
|
|
||||||
-static scm
|
|
||||||
-TeXmacs_lazy_eval_string (char *s) {
|
|
||||||
- return scm_internal_lazy_catch (scm_BOOL_T,
|
|
||||||
- (scm_t_catch_body) scm_c_eval_string, s,
|
|
||||||
- (scm_t_catch_handler) TeXmacs_lazy_catcher, s);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-static scm
|
|
||||||
-TeXmacs_eval_string (char *s) {
|
|
||||||
- return scm_internal_catch (scm_BOOL_T,
|
|
||||||
- (scm_t_catch_body) TeXmacs_lazy_eval_string, s,
|
|
||||||
- (scm_t_catch_handler) TeXmacs_catcher, s);
|
|
||||||
-}
|
|
||||||
-#endif
|
|
||||||
scm
|
|
||||||
eval_scheme (string s) {
|
|
||||||
// cout << "Eval] " << s << "\n";
|
|
||||||
@@ -214,21 +183,7 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-#if 0
|
|
||||||
-static scm
|
|
||||||
-TeXmacs_lazy_call_scm (arg_list* args) {
|
|
||||||
- return scm_internal_lazy_catch (scm_BOOL_T,
|
|
||||||
- (scm_t_catch_body) TeXmacs_call, (void*) args,
|
|
||||||
- (scm_t_catch_handler) TeXmacs_lazy_catcher, (void*) args);
|
|
||||||
-}
|
|
||||||
|
|
||||||
-static scm
|
|
||||||
-TeXmacs_call_scm (arg_list *args) {
|
|
||||||
- return scm_internal_catch (scm_BOOL_T,
|
|
||||||
- (scm_t_catch_body) TeXmacs_lazy_call_scm, (void*) args,
|
|
||||||
- (scm_t_catch_handler) TeXmacs_catcher, (void*) args);
|
|
||||||
-}
|
|
||||||
-#endif
|
|
||||||
scm
|
|
||||||
call_scheme (scm fun) {
|
|
||||||
scm a[]= { fun }; arg_list args= { 0, a };
|
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,6 @@
|
|||||||
DIST redis-5.0.12.tar.gz 1995069 BLAKE2B 03bb5956fb1206ecfa7f621b22b3101d1ebad62c40ce52157fb802ecfa5c32ca493ff03a1cf909a1b0f1acdac83b3a939ab2042fbf092fea983cabe35d00f4c3 SHA512 f0ab161762006926064ba2176ea63bb2fa416fa386b44ca55a8edad9169627fcd1c4bd9c699fec585aefc68506deb0796f6a89844c21e74d2bdb19ca1638bbe7
|
DIST redis-5.0.12.tar.gz 1995069 BLAKE2B 03bb5956fb1206ecfa7f621b22b3101d1ebad62c40ce52157fb802ecfa5c32ca493ff03a1cf909a1b0f1acdac83b3a939ab2042fbf092fea983cabe35d00f4c3 SHA512 f0ab161762006926064ba2176ea63bb2fa416fa386b44ca55a8edad9169627fcd1c4bd9c699fec585aefc68506deb0796f6a89844c21e74d2bdb19ca1638bbe7
|
||||||
|
DIST redis-5.0.13.tar.gz 1995566 BLAKE2B 1020b26162d212f980fd07bfe1879120306c7e796cde7e48dfcc1c3aa555a0a25299c17ad65515cc54be3c354bff58cefe67bba5dfc26f6b24d56a46debfa267 SHA512 9784193a53b459a2e4937e8f0d18652a0677d29746e359e5f8ffddeea4cea305f10c8eeae9007e49c0ba9ebedb9b603aced61592ba3302e5b64be78020b3b4bf
|
||||||
DIST redis-6.0.14.tar.gz 2277029 BLAKE2B 1eeeae5243ca380e354dfe5c8ad5b869669dc94b9570c8151033f89a23025bf027267eea00549f411e019b3c79ffa5d2e29eacff660e9f4b614953b023824c04 SHA512 a1de2131420bc11f831ff48607be2cf4a7775702fcc4fc777e09ebdc36277f1b468b22a1d35758338c0b44f9b3ae7b119139a79eb2419d40acbbf49d8c4a7e77
|
DIST redis-6.0.14.tar.gz 2277029 BLAKE2B 1eeeae5243ca380e354dfe5c8ad5b869669dc94b9570c8151033f89a23025bf027267eea00549f411e019b3c79ffa5d2e29eacff660e9f4b614953b023824c04 SHA512 a1de2131420bc11f831ff48607be2cf4a7775702fcc4fc777e09ebdc36277f1b468b22a1d35758338c0b44f9b3ae7b119139a79eb2419d40acbbf49d8c4a7e77
|
||||||
|
DIST redis-6.0.15.tar.gz 2282471 BLAKE2B b7f37a76d2a16e0f84f51a737e2c23ebc27750ece790cf800a0f70bfd481db01d82dc68511f80e5935dc73d70f02716a4f9005d4d177ecf3f2a0c5290ecd41ff SHA512 e7ba123798a11e1c68dd6d3ebb0586bed4f2bb33755871f1577f7e0229f826b468c2130c31bcc85a64ce7ff54e280df0a7c60e0882f3ed2a11d43e7819fe8b9e
|
||||||
DIST redis-6.2.4.tar.gz 2457940 BLAKE2B 3e89e404a624db6f739fdab72b8b7f7f92b6e96b01e33c63b6f5fa2f80fc72d8b8eaca4ecb7c57cdaf127956ba1a580ec851012b57426ebe7bb4cba890e1dcae SHA512 22db5b64de20a4823fd219b559c05f329e37fc86ce32099c64655dc50e60228706c99bffeae8d7080d8689910879318ec6621388bde23bf1486aefb881f33cb0
|
DIST redis-6.2.4.tar.gz 2457940 BLAKE2B 3e89e404a624db6f739fdab72b8b7f7f92b6e96b01e33c63b6f5fa2f80fc72d8b8eaca4ecb7c57cdaf127956ba1a580ec851012b57426ebe7bb4cba890e1dcae SHA512 22db5b64de20a4823fd219b559c05f329e37fc86ce32099c64655dc50e60228706c99bffeae8d7080d8689910879318ec6621388bde23bf1486aefb881f33cb0
|
||||||
|
DIST redis-6.2.5.tar.gz 2465302 BLAKE2B 51cc672ab432bb87560151521289d04e8fefb8e4df820f58a9b742131a0f1960c0019dec42a601bad827ec2a172375b88b6cf32a19aef42964e18f5a7a911c40 SHA512 8c54451032cbb627ec2827251556cba2010e56544baca7ea117b5afd2c2add484acbedd3baf21bdb8fd10672602cf52294a4e26b135c1406d7a723c048275e3a
|
||||||
|
@ -0,0 +1,160 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit autotools flag-o-matic systemd toolchain-funcs tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||||
|
HOMEPAGE="https://redis.io"
|
||||||
|
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||||
|
IUSE="+jemalloc tcmalloc luajit test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
# Redis does NOT build with Lua 5.2 or newer at this time.
|
||||||
|
COMMON_DEPEND="
|
||||||
|
luajit? ( dev-lang/luajit:2 )
|
||||||
|
!luajit? ( dev-lang/lua:5.1 )
|
||||||
|
tcmalloc? ( dev-util/google-perftools )
|
||||||
|
jemalloc? ( >=dev-libs/jemalloc-5.1:= )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
acct-group/redis
|
||||||
|
acct-user/redis"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
# Tcl is only needed in the CHOST test env
|
||||||
|
DEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
test? ( dev-lang/tcl:0= )"
|
||||||
|
|
||||||
|
REQUIRED_USE="?? ( tcmalloc jemalloc )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-3.2.3-config.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0-shared.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0-sharedlua.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch
|
||||||
|
"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# don't call ar directly
|
||||||
|
sed -e '/^STLIB_MAKE_CMD/s/ar/$(AR)/g' \
|
||||||
|
-i deps/hiredis/Makefile || die
|
||||||
|
|
||||||
|
# Copy lua modules into build dir
|
||||||
|
cp deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c src/ || die
|
||||||
|
cp deps/lua/src/{fpconv,strbuf}.h src/ || die
|
||||||
|
# Append cflag for lua_cjson
|
||||||
|
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||||
|
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||||
|
|
||||||
|
# now we will rewrite present Makefiles
|
||||||
|
local makefiles="" MKF
|
||||||
|
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||||
|
mv "${MKF}" "${MKF}.in"
|
||||||
|
sed -i -e 's:$(CC):@CC@:g' \
|
||||||
|
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||||
|
-e 's: $(DEBUG)::g' \
|
||||||
|
-e 's:$(OBJARCH)::g' \
|
||||||
|
-e 's:ARCH:TARCH:g' \
|
||||||
|
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||||
|
"${MKF}.in" \
|
||||||
|
|| die "Sed failed for ${MKF}"
|
||||||
|
makefiles+=" ${MKF}"
|
||||||
|
done
|
||||||
|
# autodetection of compiler and settings; generates the modified Makefiles
|
||||||
|
cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die
|
||||||
|
|
||||||
|
# Use the correct pkgconfig name for Lua
|
||||||
|
if false && has_version 'dev-lang/lua:5.3'; then
|
||||||
|
# Lua5.3 gives:
|
||||||
|
#lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"
|
||||||
|
LUAPKGCONFIG=lua5.3
|
||||||
|
elif false && has_version 'dev-lang/lua:5.2'; then
|
||||||
|
# Lua5.2 fails with:
|
||||||
|
# scripting.c:(.text+0x1f9b): undefined reference to `lua_open'
|
||||||
|
# Because lua_open because lua_newstate in 5.2
|
||||||
|
LUAPKGCONFIG=lua5.2
|
||||||
|
elif has_version 'dev-lang/lua:5.1'; then
|
||||||
|
LUAPKGCONFIG=lua5.1
|
||||||
|
else
|
||||||
|
LUAPKGCONFIG=lua
|
||||||
|
fi
|
||||||
|
# The upstream configure script handles luajit specially, and is not
|
||||||
|
# effected by these changes.
|
||||||
|
einfo "Selected LUAPKGCONFIG=${LUAPKGCONFIG}"
|
||||||
|
sed -i \
|
||||||
|
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||||
|
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||||
|
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${LUAPKGCONFIG},g" \
|
||||||
|
configure.ac || die "Sed failed for configure.ac"
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf $(use_with luajit)
|
||||||
|
|
||||||
|
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||||
|
# also, don't define ANSI/c99 for lua twice
|
||||||
|
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
if use tcmalloc; then
|
||||||
|
myconf="${myconf} USE_TCMALLOC=yes"
|
||||||
|
elif use jemalloc; then
|
||||||
|
myconf="${myconf} JEMALLOC_SHARED=yes"
|
||||||
|
else
|
||||||
|
myconf="${myconf} MALLOC=yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
tc-export AR CC RANLIB
|
||||||
|
emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /etc/
|
||||||
|
doins redis.conf sentinel.conf
|
||||||
|
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
||||||
|
fperms 0644 /etc/{redis,sentinel}.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis.confd-r1" redis
|
||||||
|
newinitd "${FILESDIR}/redis.initd-5" redis
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/redis.service-3" redis.service
|
||||||
|
newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis-sentinel.confd" redis-sentinel
|
||||||
|
newinitd "${FILESDIR}/redis-sentinel.initd" redis-sentinel
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||||
|
|
||||||
|
dobin src/redis-cli
|
||||||
|
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||||
|
fperms 0750 /usr/sbin/redis-benchmark
|
||||||
|
dosym redis-server /usr/sbin/redis-sentinel
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
diropts -m0750
|
||||||
|
else
|
||||||
|
diropts -m0750 -o redis -g redis
|
||||||
|
fi
|
||||||
|
keepdir /var/{log,lib}/redis
|
||||||
|
}
|
@ -0,0 +1,187 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Redis does NOT build with Lua 5.2 or newer at this time:
|
||||||
|
# - 5.3 and 5.4 give:
|
||||||
|
# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"
|
||||||
|
# - 5.2 fails with:
|
||||||
|
# scripting.c:(.text+0x1f9b): undefined reference to `lua_open'
|
||||||
|
# because lua_open became lua_newstate in 5.2
|
||||||
|
LUA_COMPAT=( lua5-1 luajit )
|
||||||
|
|
||||||
|
inherit autotools flag-o-matic lua-single systemd toolchain-funcs tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||||
|
HOMEPAGE="https://redis.io"
|
||||||
|
SRC_URI="https://download.redis.io/releases/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||||
|
IUSE="+jemalloc ssl systemd tcmalloc test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
${LUA_DEPS}
|
||||||
|
jemalloc? ( >=dev-libs/jemalloc-5.1:= )
|
||||||
|
ssl? ( dev-libs/openssl:0= )
|
||||||
|
systemd? ( sys-apps/systemd:= )
|
||||||
|
tcmalloc? ( dev-util/google-perftools )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
acct-group/redis
|
||||||
|
acct-user/redis
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
# Tcl is only needed in the CHOST test env
|
||||||
|
DEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
test? (
|
||||||
|
dev-lang/tcl:0=
|
||||||
|
ssl? ( dev-tcltk/tls )
|
||||||
|
)"
|
||||||
|
|
||||||
|
REQUIRED_USE="?? ( jemalloc tcmalloc )
|
||||||
|
${LUA_REQUIRED_USE}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-3.2.3-config.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0-shared.patch
|
||||||
|
"${FILESDIR}"/${PN}-6.0.12-sharedlua.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch
|
||||||
|
"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# unstable on jemalloc
|
||||||
|
> tests/unit/memefficiency.tcl || die
|
||||||
|
|
||||||
|
# Copy lua modules into build dir
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||||
|
# Append cflag for lua_cjson
|
||||||
|
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||||
|
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||||
|
|
||||||
|
# now we will rewrite present Makefiles
|
||||||
|
local makefiles="" MKF
|
||||||
|
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||||
|
mv "${MKF}" "${MKF}.in"
|
||||||
|
sed -i -e 's:$(CC):@CC@:g' \
|
||||||
|
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||||
|
-e 's: $(DEBUG)::g' \
|
||||||
|
-e 's:$(OBJARCH)::g' \
|
||||||
|
-e 's:ARCH:TARCH:g' \
|
||||||
|
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||||
|
"${MKF}.in" \
|
||||||
|
|| die "Sed failed for ${MKF}"
|
||||||
|
makefiles+=" ${MKF}"
|
||||||
|
done
|
||||||
|
# autodetection of compiler and settings; generates the modified Makefiles
|
||||||
|
cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die
|
||||||
|
|
||||||
|
# Use the correct pkgconfig name for Lua.
|
||||||
|
# The upstream configure script handles luajit specially, and is not
|
||||||
|
# effected by these changes.
|
||||||
|
sed -i \
|
||||||
|
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||||
|
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||||
|
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \
|
||||||
|
configure.ac || die "Sed failed for configure.ac"
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf $(use_with lua_single_target_luajit luajit)
|
||||||
|
|
||||||
|
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||||
|
# also, don't define ANSI/c99 for lua twice
|
||||||
|
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
if use jemalloc; then
|
||||||
|
myconf+="MALLOC=jemalloc"
|
||||||
|
elif use tcmalloc; then
|
||||||
|
myconf+="MALLOC=tcmalloc"
|
||||||
|
else
|
||||||
|
myconf+="MALLOC=libc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
myconf+=" BUILD_TLS=yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export USE_SYSTEMD=$(usex systemd)
|
||||||
|
|
||||||
|
tc-export AR CC RANLIB
|
||||||
|
emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Known to fail with FEATURES=usersandbox
|
||||||
|
if has usersandbox ${FEATURES}; then
|
||||||
|
ewarn "You are emerging ${P} with 'usersandbox' enabled." \
|
||||||
|
"Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
./utils/gen-test-certs.sh
|
||||||
|
./runtest --tls
|
||||||
|
else
|
||||||
|
./runtest
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /etc/redis
|
||||||
|
doins redis.conf sentinel.conf
|
||||||
|
use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf
|
||||||
|
fperms 0750 /etc/redis
|
||||||
|
fperms 0644 /etc/redis/{redis,sentinel}.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis.confd-r2" redis
|
||||||
|
newinitd "${FILESDIR}/redis.initd-6" redis
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/redis.service-4" redis.service
|
||||||
|
newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel
|
||||||
|
newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||||
|
|
||||||
|
dobin src/redis-cli
|
||||||
|
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||||
|
fperms 0750 /usr/sbin/redis-benchmark
|
||||||
|
dosym redis-server /usr/sbin/redis-sentinel
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
diropts -m0750
|
||||||
|
else
|
||||||
|
diropts -m0750 -o redis -g redis
|
||||||
|
fi
|
||||||
|
keepdir /var/{log,lib}/redis
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
ewarn "The default redis configuration file location changed to:"
|
||||||
|
ewarn " /etc/redis/{redis,sentinel}.conf"
|
||||||
|
ewarn "Please apply your changes to the new configuration files."
|
||||||
|
}
|
@ -0,0 +1,187 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Redis does NOT build with Lua 5.2 or newer at this time:
|
||||||
|
# - 5.3 and 5.4 give:
|
||||||
|
# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"
|
||||||
|
# - 5.2 fails with:
|
||||||
|
# scripting.c:(.text+0x1f9b): undefined reference to `lua_open'
|
||||||
|
# because lua_open became lua_newstate in 5.2
|
||||||
|
LUA_COMPAT=( lua5-1 luajit )
|
||||||
|
|
||||||
|
inherit autotools flag-o-matic lua-single systemd toolchain-funcs tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
||||||
|
HOMEPAGE="https://redis.io"
|
||||||
|
SRC_URI="https://download.redis.io/releases/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||||
|
IUSE="+jemalloc ssl systemd tcmalloc test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
${LUA_DEPS}
|
||||||
|
jemalloc? ( >=dev-libs/jemalloc-5.1:= )
|
||||||
|
ssl? ( dev-libs/openssl:0= )
|
||||||
|
systemd? ( sys-apps/systemd:= )
|
||||||
|
tcmalloc? ( dev-util/google-perftools )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
acct-group/redis
|
||||||
|
acct-user/redis
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
# Tcl is only needed in the CHOST test env
|
||||||
|
DEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
test? (
|
||||||
|
dev-lang/tcl:0=
|
||||||
|
ssl? ( dev-tcltk/tls )
|
||||||
|
)"
|
||||||
|
|
||||||
|
REQUIRED_USE="?? ( jemalloc tcmalloc )
|
||||||
|
${LUA_REQUIRED_USE}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-6.2.1-config.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0-shared.patch
|
||||||
|
"${FILESDIR}"/${PN}-6.2.1-sharedlua.patch
|
||||||
|
"${FILESDIR}"/${PN}-6.2.3-ppc-atomic.patch
|
||||||
|
"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# unstable on jemalloc
|
||||||
|
> tests/unit/memefficiency.tcl || die
|
||||||
|
|
||||||
|
# Copy lua modules into build dir
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||||
|
cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||||
|
# Append cflag for lua_cjson
|
||||||
|
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||||
|
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||||
|
|
||||||
|
# now we will rewrite present Makefiles
|
||||||
|
local makefiles="" MKF
|
||||||
|
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||||
|
mv "${MKF}" "${MKF}.in"
|
||||||
|
sed -i -e 's:$(CC):@CC@:g' \
|
||||||
|
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||||
|
-e 's: $(DEBUG)::g' \
|
||||||
|
-e 's:$(OBJARCH)::g' \
|
||||||
|
-e 's:ARCH:TARCH:g' \
|
||||||
|
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||||
|
"${MKF}.in" \
|
||||||
|
|| die "Sed failed for ${MKF}"
|
||||||
|
makefiles+=" ${MKF}"
|
||||||
|
done
|
||||||
|
# autodetection of compiler and settings; generates the modified Makefiles
|
||||||
|
cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die
|
||||||
|
|
||||||
|
# Use the correct pkgconfig name for Lua.
|
||||||
|
# The upstream configure script handles luajit specially, and is not
|
||||||
|
# effected by these changes.
|
||||||
|
sed -i \
|
||||||
|
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||||
|
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||||
|
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \
|
||||||
|
configure.ac || die "Sed failed for configure.ac"
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf $(use_with lua_single_target_luajit luajit)
|
||||||
|
|
||||||
|
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||||
|
# also, don't define ANSI/c99 for lua twice
|
||||||
|
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
if use jemalloc; then
|
||||||
|
myconf+="MALLOC=jemalloc"
|
||||||
|
elif use tcmalloc; then
|
||||||
|
myconf+="MALLOC=tcmalloc"
|
||||||
|
else
|
||||||
|
myconf+="MALLOC=libc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
myconf+=" BUILD_TLS=yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export USE_SYSTEMD=$(usex systemd)
|
||||||
|
|
||||||
|
tc-export AR CC RANLIB
|
||||||
|
emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Known to fail with FEATURES=usersandbox
|
||||||
|
if has usersandbox ${FEATURES}; then
|
||||||
|
ewarn "You are emerging ${P} with 'usersandbox' enabled." \
|
||||||
|
"Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
./utils/gen-test-certs.sh
|
||||||
|
./runtest --tls
|
||||||
|
else
|
||||||
|
./runtest
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /etc/redis
|
||||||
|
doins redis.conf sentinel.conf
|
||||||
|
use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf
|
||||||
|
fperms 0750 /etc/redis
|
||||||
|
fperms 0644 /etc/redis/{redis,sentinel}.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis.confd-r2" redis
|
||||||
|
newinitd "${FILESDIR}/redis.initd-6" redis
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/redis.service-4" redis.service
|
||||||
|
newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel
|
||||||
|
newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||||
|
|
||||||
|
dobin src/redis-cli
|
||||||
|
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||||
|
fperms 0750 /usr/sbin/redis-benchmark
|
||||||
|
dosym redis-server /usr/sbin/redis-sentinel
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
diropts -m0750
|
||||||
|
else
|
||||||
|
diropts -m0750 -o redis -g redis
|
||||||
|
fi
|
||||||
|
keepdir /var/{log,lib}/redis
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
ewarn "The default redis configuration file location changed to:"
|
||||||
|
ewarn " /etc/redis/{redis,sentinel}.conf"
|
||||||
|
ewarn "Please apply your changes to the new configuration files."
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,4 @@
|
|||||||
|
DIST cfortran_20110621-1.debian.tar.xz 13352 BLAKE2B 0039dd4b5973e5cd13a136c51e8719ffa8e104db0d716cbd247fe440643dfce5308767d182abbcbafbd1de791e8cb4384c479660fe8b592477968d40c54078e8 SHA512 51387a17e4f69e5f5e53e188b5397a08d578aba42fdc446d4901e59be32bb0e5f07d871daa809e9de6051b4d9213b4312e25f70970db9173e4f33a0e66b4b44b
|
||||||
|
DIST cfortran_20110621.orig.tar.gz 129061 BLAKE2B 16c0cae1675923c1f6f13fe5a2a65ff86a2a80e4b3c3956c04cbc2df562dad8426b90c8a3a34919c28a7bee29f7430ffe8b415e28a484421aa8f58430456b934 SHA512 59b4285bb5392916880503bdd1cead5602944ebbf615d3c40bb7232770d6a74d3138a0b2abbab4fed9ea9bd2a56b2d3097d9609833c07d773dc43b8be0a3258a
|
||||||
DIST cfortran_4.4-14.diff.gz 23084 BLAKE2B 8e760b3697869c12e94925c4781318fbe7640f0563a2464bf5d9f51a4afcb4bf9c281bab189542f2342d6dbc6f5524b4a48d9f844459d190e9182a96ebefbf9b SHA512 1e0b267efc17c2ba30ca1108d59ef87d1a401e6b88bea2c7045458f8cfad6ec9a05f6bf4a08c1d6cb314c790a4969a1f0fdf0c7b6abc28bae544928aad5b0218
|
DIST cfortran_4.4-14.diff.gz 23084 BLAKE2B 8e760b3697869c12e94925c4781318fbe7640f0563a2464bf5d9f51a4afcb4bf9c281bab189542f2342d6dbc6f5524b4a48d9f844459d190e9182a96ebefbf9b SHA512 1e0b267efc17c2ba30ca1108d59ef87d1a401e6b88bea2c7045458f8cfad6ec9a05f6bf4a08c1d6cb314c790a4969a1f0fdf0c7b6abc28bae544928aad5b0218
|
||||||
DIST cfortran_4.4.orig.tar.gz 120119 BLAKE2B df4e0650e2718ed0c2009fb1b85330266308b0b584fcdc85e08cad0913bf063ab38824724b43a005a63a6e6bd5152b35115a68659487a992b96d0d38792e6d0a SHA512 969d0db566ecd7ed7945cac7f8ceea1cbd94ab427734ba83882acf97022c83b1417e32515d847fee89144137f58f7041cf5164fc397f3d7526f3aa958f8b038c
|
DIST cfortran_4.4.orig.tar.gz 120119 BLAKE2B df4e0650e2718ed0c2009fb1b85330266308b0b584fcdc85e08cad0913bf063ab38824724b43a005a63a6e6bd5152b35115a68659487a992b96d0d38792e6d0a SHA512 969d0db566ecd7ed7945cac7f8ceea1cbd94ab427734ba83882acf97022c83b1417e32515d847fee89144137f58f7041cf5164fc397f3d7526f3aa958f8b038c
|
||||||
|
@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
FORTRAN_NEEDED=test
|
||||||
|
|
||||||
|
inherit autotools fortran-2
|
||||||
|
|
||||||
|
DEB_PR="1"
|
||||||
|
|
||||||
|
DESCRIPTION="Header file allowing to call Fortran routines from C and C++"
|
||||||
|
HOMEPAGE="https://www-zeus.desy.de/~burow/cfortran/"
|
||||||
|
SRC_URI="
|
||||||
|
mirror://debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.gz
|
||||||
|
mirror://debian/pool/main/c/${PN}/${PN}_${PV}-${DEB_PR}.debian.tar.xz"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="LGPL-2"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="examples test"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
DOCS=( cfortran.doc )
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
eapply "${WORKDIR}"/debian/patches/*.patch
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
|
||||||
|
if use examples; then
|
||||||
|
# The examples are also used as tests and it's tricky to clean up
|
||||||
|
# afterwards, just save a clean copy (sans Makefiles, as they only
|
||||||
|
# cover the test phase) before the tests are run.
|
||||||
|
cp -ar eg eg_src || die "Failed to preserve a clean copy of examples"
|
||||||
|
rm -f eg_src/Makefile{,.am,.in}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# For compatibility with older versions
|
||||||
|
dodir /usr/include/cfortran
|
||||||
|
dosym -r /usr/include/cfortran.h /usr/include/cfortran/cfortran.h
|
||||||
|
|
||||||
|
docinto debian
|
||||||
|
dodoc "${WORKDIR}"/debian/{NEWS,changelog,copyright}
|
||||||
|
docinto html
|
||||||
|
dodoc cfortran.html index.htm
|
||||||
|
|
||||||
|
if use examples; then
|
||||||
|
docinto examples
|
||||||
|
dodoc -r cfortest.c cfortex.f eg_src/*
|
||||||
|
fi
|
||||||
|
}
|
@ -1,2 +1,6 @@
|
|||||||
|
DIST Full-Maude-3.1.zip 161211 BLAKE2B 2aad284e1f2bc6e701154bd72c6eff1433fd040fd0f97252485c954b5e1fb33f71555c5587ceec2f3f3e44c8d7b760c9f62f40f53577f19c4cc51a2159b01674 SHA512 fb0c0e30d3df830b60ece67c2fc5655c5e3f1377a269ce8acfc45fdfa0d42f3fe3fbf4038758b35598d82e7f47af5f24507b3ebe2a30dcb8722e61e6315248c3
|
||||||
DIST Maude-2.7.tar.gz 1663708 BLAKE2B 5fd87cbd7ef2f86f4a7095334fd996109c72caaed44a894138803b76220325400920654924cb8645ed846b4d997dd2cf827d489ef7c4eef73ee22cb4e6e5a5dc SHA512 eb5225a7ec75df5f79d1e9c0d78c33427c0cf07bea83dae9e559d6d4cfc85fb03985596daf0c9c8794b34859510482f93b855254c1a3c650ee7520a3530a2070
|
DIST Maude-2.7.tar.gz 1663708 BLAKE2B 5fd87cbd7ef2f86f4a7095334fd996109c72caaed44a894138803b76220325400920654924cb8645ed846b4d997dd2cf827d489ef7c4eef73ee22cb4e6e5a5dc SHA512 eb5225a7ec75df5f79d1e9c0d78c33427c0cf07bea83dae9e559d6d4cfc85fb03985596daf0c9c8794b34859510482f93b855254c1a3c650ee7520a3530a2070
|
||||||
|
DIST Maude-3.1-manual-book-examples.zip 267629 BLAKE2B cb4c5d067b8b6787a575ec1e00bfdbfb846c787f4c48b207d9609db57c968acdd97f431110103aa16d764e8e1b59f0eb1f66df53d3b78562cf430f3a57b5541c SHA512 69980145a41afd49e4a2c77a596d7fa91ed8e5acca049d799cdb0f265d95f1c3215776edb3a3ae94d84309c94735c7a187f681c2a2d3aa2fe0a7563634d34efa
|
||||||
|
DIST Maude-3.1-manual.pdf 2916925 BLAKE2B da7f0d5bef8bff2e1f1afecd4bc7d062992d6a27e5437f488a50d35bce144a3ddb029bed3271d9696a36e6ab13b5a4f815e1a257a81005eb65d2927526630a29 SHA512 8b4b9bff8d266fad7b42b37c79cd72e4b642483298631f35a52b8bd669f318654382232b0da62485dc198789215fd5a364b583320789754eac9159d4cc2689ca
|
||||||
|
DIST Maude-3.1.tar.gz 2335693 BLAKE2B 3bc9744d95448e4dfc2f818944ab66dad84b026ad18a4324b25eafc82f6c2c637b81fa73d03da61ee7f3753bb3c650e1838b56c502c85c91e2507a697bcfbbc0 SHA512 34dba3c3b7eed48d0c82c6d5e4dade08bd11dc57b436f04e94842000809b9b6086f8077bccbfac0313e4a4f361b03c3ef3d56e6df6242ae42427dd674566a3bc
|
||||||
DIST maude-2.6-extras.tar.xz 3157004 BLAKE2B d735366071194eb7fd22c11628672aba38cc8c7f4460e4ec8806e27c2e1416e1a2a5fa93efd01c305bf36e0ce799578688c5ac87b5459e979323df6f60305902 SHA512 0533f0f226057d2668052f360245f296d36129ec242ff0bfa91fada9db5bc347d276d3468c86fbac92f019f3a2f152c7cb4e58a7f1265c1fb5a8b1b496fac5cd
|
DIST maude-2.6-extras.tar.xz 3157004 BLAKE2B d735366071194eb7fd22c11628672aba38cc8c7f4460e4ec8806e27c2e1416e1a2a5fa93efd01c305bf36e0ce799578688c5ac87b5459e979323df6f60305902 SHA512 0533f0f226057d2668052f360245f296d36129ec242ff0bfa91fada9db5bc347d276d3468c86fbac92f019f3a2f152c7cb4e58a7f1265c1fb5a8b1b496fac5cd
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
--- a/src/Mixfix/Makefile.am
|
||||||
|
+++ b/src/Mixfix/Makefile.am
|
||||||
|
@@ -82,7 +82,7 @@
|
||||||
|
EXTRA_libmixfix_a_SOURCES = \
|
||||||
|
compiler.cc
|
||||||
|
|
||||||
|
-BUILT_SOURCES = surface.yy surface.cc surface.h lexer.cc tokenizer.cc
|
||||||
|
+BUILT_SOURCES = surface.cc lexer.cc tokenizer.cc
|
||||||
|
CLEANFILES = surface.yy surface.cc surface.h lexer.cc tokenizer.cc
|
||||||
|
|
||||||
|
surface.yy: \
|
||||||
|
@@ -97,7 +97,9 @@
|
||||||
|
$(srcdir)/bottom.yy \
|
||||||
|
> surface.yy
|
||||||
|
|
||||||
|
-surface.cc surface.h: surface.yy
|
||||||
|
+surface.h: surface.yy
|
||||||
|
+
|
||||||
|
+surface.cc: surface.h
|
||||||
|
$(BISON) -dv surface.yy -o surface.c
|
||||||
|
mv surface.c surface.cc
|
||||||
|
|
@ -0,0 +1,65 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
MY_P="${P^}"
|
||||||
|
|
||||||
|
DESCRIPTION="High-level specification language for equational and logic programming"
|
||||||
|
HOMEPAGE="https://maude.cs.uiuc.edu/"
|
||||||
|
SRC_URI="
|
||||||
|
https://maude.cs.illinois.edu/w/images/d/d3/${MY_P}.tar.gz
|
||||||
|
https://maude.cs.illinois.edu/w/images/0/0a/Full-${MY_P}.zip
|
||||||
|
doc? ( https://maude.cs.illinois.edu/w/images/6/62/${MY_P}-manual.pdf )
|
||||||
|
examples? ( https://maude.cs.illinois.edu/w/images/4/4f/${MY_P}-manual-book-examples.zip )"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="doc examples"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/gmp:0=[cxx(+)]
|
||||||
|
dev-libs/libsigsegv
|
||||||
|
dev-libs/libtecla
|
||||||
|
sci-libs/buddy"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="app-arch/unzip
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-2.6-search-datadir.patch"
|
||||||
|
"${FILESDIR}/${PN}-2.7-AR.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.1-prll.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=(
|
||||||
|
--datadir="${EPREFIX}/usr/share/${PN}"
|
||||||
|
--without-yices2
|
||||||
|
)
|
||||||
|
econf "${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# install full maude
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
newins "${WORKDIR}"/full-maude${PV//./}.maude full-maude.maude
|
||||||
|
|
||||||
|
# install docs and examples
|
||||||
|
use doc && dodoc "${DISTDIR}"/${MY_P}-manual.pdf
|
||||||
|
if use examples; then
|
||||||
|
dodoc -r "${WORKDIR}"/examples
|
||||||
|
docompress -x /usr/share/doc/${PF}/examples
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1 +1 @@
|
|||||||
DIST imath-3.0.1.tar.gz 527715 BLAKE2B 45d8f6524fd2505bdb3318f571c44228c9baf6df869d194d4b90a9c045f1dbb8f905253aeaf6b6a9254e4b0c0c19d753b7e4ae068732f0367fc936d4a111520d SHA512 40cdae81d624636b3dd7eb456e6e205e5b7adf7aed17f6e9168374f8830f1b5755dcd32ac790f94e768513d06ab96d94a2bc57ec80a079e4ac94a3857e5e3988
|
DIST imath-3.0.5.tar.gz 528503 BLAKE2B c1fcb199a81aff25f1ad26ccfcef2802861401f3fee5dc24035216aa16fd9a5344ec6c37139a0850f1a4bc580dc1fdd068eca9473a19e4aaf329cfc5f53a4cd6 SHA512 df206315d822266cf32a5a4399abff7ad1dd0bd1f0372d61f61516e2acdefd13e3cfd9cf54373a3fb49bb28c9f80915ca5ecaec2a068a1d6ea231d71a5316da2
|
||||||
|
@ -0,0 +1,161 @@
|
|||||||
|
From: Bernd Waibel <waebbl-gentoo@posteo.net>
|
||||||
|
Date: Tue, 20 Jul 2021 19:18:20 +0200
|
||||||
|
Subject: [PATCH] changes needed for proper slotting
|
||||||
|
|
||||||
|
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
|
||||||
|
---
|
||||||
|
config/CMakeLists.txt | 6 +++---
|
||||||
|
config/Imath.pc.in | 4 ++--
|
||||||
|
config/LibraryDefine.cmake | 8 ++++----
|
||||||
|
src/python/PyImath.pc.in | 4 ++--
|
||||||
|
src/python/PyImathNumpy/CMakeLists.txt | 2 +-
|
||||||
|
src/python/config/CMakeLists.txt | 4 ++--
|
||||||
|
src/python/config/ModuleDefine.cmake | 6 +++---
|
||||||
|
7 files changed, 17 insertions(+), 17 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
|
||||||
|
index d51c25b..63cc98d 100644
|
||||||
|
--- a/config/CMakeLists.txt
|
||||||
|
+++ b/config/CMakeLists.txt
|
||||||
|
@@ -60,7 +60,7 @@ include(CMakePackageConfigHelpers)
|
||||||
|
|
||||||
|
configure_package_config_file(ImathConfig.cmake.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
|
||||||
|
- INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
||||||
|
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake"
|
||||||
|
@@ -70,11 +70,11 @@ write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake"
|
||||||
|
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
||||||
|
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(EXPORT ${PROJECT_NAME}
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
||||||
|
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
FILE ${PROJECT_NAME}Targets.cmake
|
||||||
|
NAMESPACE ${PROJECT_NAME}::
|
||||||
|
EXPORT_LINK_INTERFACE_LIBRARIES
|
||||||
|
diff --git a/config/Imath.pc.in b/config/Imath.pc.in
|
||||||
|
index df11cfd..6eb4f40 100644
|
||||||
|
--- a/config/Imath.pc.in
|
||||||
|
+++ b/config/Imath.pc.in
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
-libdir=@libdir@
|
||||||
|
+libdir=@libdir@/@IMATH_OUTPUT_SUBDIR@
|
||||||
|
includedir=@includedir@
|
||||||
|
libsuffix=@LIB_SUFFIX_DASH@
|
||||||
|
Name: Imath
|
||||||
|
@@ -14,4 +14,4 @@ Version: @IMATH_VERSION@
|
||||||
|
Requires:
|
||||||
|
Conflicts:
|
||||||
|
Libs: -L${libdir} -lImath${libsuffix}
|
||||||
|
-Cflags: -I${includedir} -I${includedir}/Imath
|
||||||
|
+Cflags: -I${includedir} -I${includedir}/@IMATH_OUTPUT_SUBDIR@
|
||||||
|
diff --git a/config/LibraryDefine.cmake b/config/LibraryDefine.cmake
|
||||||
|
index e9ff904..00e5176 100644
|
||||||
|
--- a/config/LibraryDefine.cmake
|
||||||
|
+++ b/config/LibraryDefine.cmake
|
||||||
|
@@ -74,8 +74,8 @@ function(IMATH_DEFINE_LIBRARY libname)
|
||||||
|
install(TARGETS ${libname}
|
||||||
|
EXPORT ${PROJECT_NAME}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
PUBLIC_HEADER
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
@@ -88,8 +88,8 @@ function(IMATH_DEFINE_LIBRARY libname)
|
||||||
|
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_BINDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})")
|
||||||
|
install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_BINDIR} ${baselibname} -> ${verlibname}\")")
|
||||||
|
else()
|
||||||
|
- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})")
|
||||||
|
- install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_LIBDIR} ${baselibname} -> ${verlibname}\")")
|
||||||
|
+ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir \"\$ENV\{DESTDIR\}${CMAKE_INSTALL_FULL_LIBDIR}/${IMATH_OUTPUT_SUBDIR}\" ${CMAKE_COMMAND} -E create_symlink ${verlibname} ${baselibname})")
|
||||||
|
+ install(CODE "message(\"-- Creating symlink in ${CMAKE_INSTALL_FULL_LIBDIR}/${IMATH_OUTPUT_SUBDIR} ${baselibname} -> ${verlibname}\")")
|
||||||
|
endif()
|
||||||
|
set(verlibname)
|
||||||
|
set(baselibname)
|
||||||
|
diff --git a/src/python/PyImath.pc.in b/src/python/PyImath.pc.in
|
||||||
|
index 8e8de6f..1902660 100644
|
||||||
|
--- a/src/python/PyImath.pc.in
|
||||||
|
+++ b/src/python/PyImath.pc.in
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
-libdir=@libdir@
|
||||||
|
+libdir=@libdir@/@IMATH_OUTPUT_SUBDIR@
|
||||||
|
includedir=@includedir@
|
||||||
|
libsuffix=@LIB_SUFFIX_DASH@
|
||||||
|
|
||||||
|
@@ -13,4 +13,4 @@ Name: PyImath
|
||||||
|
Description: Python bindings for the Imath libraries
|
||||||
|
Version: @IMATH_VERSION@
|
||||||
|
Libs: -L${libdir} -lImath${libsuffix} -lPyImath@PYIMATH_LIB_PYTHONVER_ROOT@@Python_VERSION_MAJOR@_@Python_VERSION_MINOR@${libsuffix}
|
||||||
|
-Cflags: -I${includedir} -I${includedir}/Imath
|
||||||
|
+Cflags: -I${includedir} -I${includedir}/@IMATH_OUTPUT_SUBDIR@
|
||||||
|
diff --git a/src/python/PyImathNumpy/CMakeLists.txt b/src/python/PyImathNumpy/CMakeLists.txt
|
||||||
|
index 7b4f6b2..8f7fd70 100644
|
||||||
|
--- a/src/python/PyImathNumpy/CMakeLists.txt
|
||||||
|
+++ b/src/python/PyImathNumpy/CMakeLists.txt
|
||||||
|
@@ -48,5 +48,5 @@ if(TARGET Python3::Python AND
|
||||||
|
LIBRARY_OUTPUT_NAME "imathnumpy"
|
||||||
|
DEBUG_POSTFIX ""
|
||||||
|
)
|
||||||
|
- install(TARGETS imathnumpy_python3 DESTINATION ${PyImath_Python3_SITEARCH_REL})
|
||||||
|
+ install(TARGETS imathnumpy_python3 DESTINATION ${PyImath_Python3_SITEARCH_REL}/${IMATH_OUTPUT_SUBDIR})
|
||||||
|
endif()
|
||||||
|
diff --git a/src/python/config/CMakeLists.txt b/src/python/config/CMakeLists.txt
|
||||||
|
index 4f796df..15d7026 100644
|
||||||
|
--- a/src/python/config/CMakeLists.txt
|
||||||
|
+++ b/src/python/config/CMakeLists.txt
|
||||||
|
@@ -41,10 +41,10 @@ write_basic_package_version_file("${PROJECT_NAME}ConfigVersion.cmake"
|
||||||
|
COMPATIBILITY SameMajorVersion
|
||||||
|
)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
||||||
|
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
)
|
||||||
|
install(EXPORT ${PROJECT_NAME}
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
||||||
|
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
FILE ${PROJECT_NAME}Config.cmake
|
||||||
|
NAMESPACE ${PROJECT_NAME}::
|
||||||
|
EXPORT_LINK_INTERFACE_LIBRARIES
|
||||||
|
diff --git a/src/python/config/ModuleDefine.cmake b/src/python/config/ModuleDefine.cmake
|
||||||
|
index d9a8907..ebe1a95 100644
|
||||||
|
--- a/src/python/config/ModuleDefine.cmake
|
||||||
|
+++ b/src/python/config/ModuleDefine.cmake
|
||||||
|
@@ -54,8 +54,8 @@ function(PYIMATH_ADD_LIBRARY_PRIV libname)
|
||||||
|
install(TARGETS ${libname}
|
||||||
|
EXPORT ${PROJECT_NAME}
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/${IMATH_OUTPUT_SUBDIR}
|
||||||
|
)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
@@ -154,7 +154,7 @@ function(PYIMATH_DEFINE_MODULE modname)
|
||||||
|
LIBRARY_OUTPUT_NAME "${modname}"
|
||||||
|
DEBUG_POSTFIX ""
|
||||||
|
)
|
||||||
|
- install(TARGETS ${modname}_python3 DESTINATION ${PyImath_Python3_SITEARCH_REL})
|
||||||
|
+ install(TARGETS ${modname}_python3 DESTINATION ${PyImath_Python3_SITEARCH_REL}/${IMATH_OUTPUT_SUBDIR})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
--
|
||||||
|
2.32.0
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -114,6 +114,7 @@
|
||||||
|
endif()
|
||||||
|
|
||||||
|
include(CMakePackageConfigHelpers)
|
||||||
|
+include(GNUInstallDirs)
|
||||||
|
|
||||||
|
write_basic_package_version_file(
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/cmakeexports/${PROJECT_NAME}ConfigVersion.cmake"
|
||||||
|
@@ -123,10 +124,10 @@
|
||||||
|
|
||||||
|
install(TARGETS libnest2d libnest2d_headeronly ${LIBNAME}
|
||||||
|
EXPORT ${PROJECT_NAME}Targets
|
||||||
|
- RUNTIME DESTINATION bin
|
||||||
|
- ARCHIVE DESTINATION lib
|
||||||
|
- LIBRARY DESTINATION lib
|
||||||
|
- INCLUDES DESTINATION include)
|
||||||
|
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
+ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
||||||
|
export(EXPORT ${PROJECT_NAME}Targets
|
||||||
|
FILE "${CMAKE_CURRENT_BINARY_DIR}/cmakeexports/${PROJECT_NAME}Targets.cmake"
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST dune-2.8.2.tar.gz 1369417 BLAKE2B d846d35675a18abc3ccc57a52574d81a8fb4f082d9935912f035061c1107b47be8752daeb9c49bb2af4877e419a6c8bc30f846db6d773cf5267d3d761272a872 SHA512 fcbe45ea59492517e0868bf1f801c2bd2f3b1b30234e36d789c33e7ee48bd724726beb211697f3820609bbc27923c8c37d7be89dcbd059558014743360f2d0b7
|
DIST dune-2.8.2.tar.gz 1369417 BLAKE2B d846d35675a18abc3ccc57a52574d81a8fb4f082d9935912f035061c1107b47be8752daeb9c49bb2af4877e419a6c8bc30f846db6d773cf5267d3d761272a872 SHA512 fcbe45ea59492517e0868bf1f801c2bd2f3b1b30234e36d789c33e7ee48bd724726beb211697f3820609bbc27923c8c37d7be89dcbd059558014743360f2d0b7
|
||||||
DIST dune-2.8.4.tar.gz 1372925 BLAKE2B 5b6d6738a0dc701d852e6cc59a1998f64c006d233f43a804b0b9b677a6eadda25aa20f52799c90910d361e4bc565636a50d218ad5d0a9927239adc5be36b3889 SHA512 13b36eb6a943f9513987a23dab467b2e449cc3a4de35227f8323c3c724b27f19daac500602141ab22a04579243333c8484ce27a7f73e46a72e796d30fb1c3253
|
DIST dune-2.8.4.tar.gz 1372925 BLAKE2B 5b6d6738a0dc701d852e6cc59a1998f64c006d233f43a804b0b9b677a6eadda25aa20f52799c90910d361e4bc565636a50d218ad5d0a9927239adc5be36b3889 SHA512 13b36eb6a943f9513987a23dab467b2e449cc3a4de35227f8323c3c724b27f19daac500602141ab22a04579243333c8484ce27a7f73e46a72e796d30fb1c3253
|
||||||
|
DIST dune-2.9.0.tar.gz 1385143 BLAKE2B c973e4b2c5780a3e4902c31c030b2560fe5be313338a5188edc9b7ff97b63968baba267966d095076bed4f1527a8b8b5a0f980e74f53476d70ec53f20dc661a6 SHA512 1c3b64746b00215cd97b36c0f1c6e2416c9d15c795265634240e9da37e2c2fce02ab3c309a0cb967f9f20a5c6df14e943c3c2942c1a8f4743c3a19c699f4eb24
|
||||||
|
@ -0,0 +1,117 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit dune
|
||||||
|
|
||||||
|
DESCRIPTION="A composable build system for OCaml"
|
||||||
|
HOMEPAGE="https://github.com/ocaml/dune"
|
||||||
|
SRC_URI="https://github.com/ocaml/dune/archive/${PV}.tar.gz -> dune-${PV}.tar.gz"
|
||||||
|
S="${WORKDIR}/dune-${PV}"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+ocamlopt test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
~dev-ml/dune-private-libs-${PV}:=[ocamlopt=]
|
||||||
|
dev-ml/csexp:=[ocamlopt=]
|
||||||
|
dev-ml/result:=[ocamlopt=]
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
DEPEND="${DEPEND}
|
||||||
|
test? (
|
||||||
|
dev-ml/core_bench
|
||||||
|
dev-ml/menhir
|
||||||
|
dev-ml/opam
|
||||||
|
dev-ml/ppx_expect
|
||||||
|
)
|
||||||
|
"
|
||||||
|
# TODO for test deps:
|
||||||
|
# Add cram?
|
||||||
|
# Add dev-ml/js_of_ocaml once dev-ml/ocaml-base64 is ported to Dune
|
||||||
|
# Add coq?
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Keep this list in sync with dev-ml/dune-private-libs
|
||||||
|
local bad_tests=(
|
||||||
|
# List of tests calling git, mercurial, etc
|
||||||
|
test/blackbox-tests/test-cases/dune-project-meta/main.t
|
||||||
|
test/blackbox-tests/test-cases/meta-template-version-bug.t
|
||||||
|
test/blackbox-tests/test-cases/subst/project-name-restriction.t
|
||||||
|
test/blackbox-tests/test-cases/subst/with-opam-file.t
|
||||||
|
test/blackbox-tests/test-cases/subst.t
|
||||||
|
test/blackbox-tests/test-cases/subst/unicode.t
|
||||||
|
test/blackbox-tests/test-cases/subst/from-project-file.t
|
||||||
|
test/blackbox-tests/test-cases/trace-file.t
|
||||||
|
otherlibs/build-info/test/run.t
|
||||||
|
test/expect-tests/vcs_tests.ml
|
||||||
|
|
||||||
|
# Strange failures, seemingly from newer versions of deps
|
||||||
|
test/blackbox-tests/test-cases/merlin/allow_approximate_merlin_warn.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/merlin-tests.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/github4125.t
|
||||||
|
test/blackbox-tests/test-cases/install-dry-run.t
|
||||||
|
test/blackbox-tests/test-cases/c-flags.t
|
||||||
|
test/blackbox-tests/test-cases/install-libdir.t
|
||||||
|
test/blackbox-tests/test-cases/dune-cache/trim.t
|
||||||
|
|
||||||
|
# Strange failures about opam not being initialised
|
||||||
|
test/blackbox-tests/test-cases/merlin/merlin-from-subdir.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/symlinks.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/src-dirs-of-deps.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/per-module-pp.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/server.t
|
||||||
|
test/blackbox-tests/test-cases/github1946.t
|
||||||
|
test/blackbox-tests/test-cases/github759.t
|
||||||
|
|
||||||
|
# Wants nodejs!
|
||||||
|
test/blackbox-tests/test-cases/jsoo/simple.t
|
||||||
|
test/blackbox-tests/test-cases/jsoo/inline-tests.t
|
||||||
|
test/blackbox-tests/test-cases/jsoo/github3622.t
|
||||||
|
# Wants js_of_ocaml (can't include yet b/c of ocaml-base64 porting)
|
||||||
|
test/blackbox-tests/test-cases/jsoo/explicit-js-mode-specified.t
|
||||||
|
|
||||||
|
# Wants coq which doesn't build for me right now
|
||||||
|
test/blackbox-tests/test-cases/coq/rec-module.t
|
||||||
|
test/blackbox-tests/test-cases/coq/compose-sub-theory.t
|
||||||
|
test/blackbox-tests/test-cases/coq/native-compose.t
|
||||||
|
test/blackbox-tests/test-cases/coq/base-unsound.t
|
||||||
|
test/blackbox-tests/test-cases/coq/base.t
|
||||||
|
test/blackbox-tests/test-cases/coq/native-single.t
|
||||||
|
test/blackbox-tests/test-cases/coq/compose-simple.t
|
||||||
|
test/blackbox-tests/test-cases/coq/ml-lib.t
|
||||||
|
test/blackbox-tests/test-cases/coq/extract.t
|
||||||
|
test/blackbox-tests/test-cases/coq/compose-plugin.t
|
||||||
|
|
||||||
|
# Unpackaged dependencies (a rabbit hole for now)
|
||||||
|
# utop -> lambda-term, zed
|
||||||
|
test/blackbox-tests/test-cases/utop/github3188.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-simple.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-default.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-default-implementation.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-ppx-rewriters.t
|
||||||
|
# ocamlformat
|
||||||
|
test/blackbox-tests/test-cases/formatting.t
|
||||||
|
# mdx
|
||||||
|
test/blackbox-tests/test-cases/mdx-stanza.t
|
||||||
|
# odoc
|
||||||
|
test/blackbox-tests/test-cases/odoc/odoc-simple.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/odoc-package-mld-link.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/multiple-private-libs.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/odoc-unique-mlds.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/github717-odoc-index.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/warnings.t
|
||||||
|
)
|
||||||
|
|
||||||
|
rm -r ${bad_tests[@]} || die "Failed to remove broken/inappropriate tests"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
:
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST dune-2.8.2.tar.gz 1369417 BLAKE2B d846d35675a18abc3ccc57a52574d81a8fb4f082d9935912f035061c1107b47be8752daeb9c49bb2af4877e419a6c8bc30f846db6d773cf5267d3d761272a872 SHA512 fcbe45ea59492517e0868bf1f801c2bd2f3b1b30234e36d789c33e7ee48bd724726beb211697f3820609bbc27923c8c37d7be89dcbd059558014743360f2d0b7
|
DIST dune-2.8.2.tar.gz 1369417 BLAKE2B d846d35675a18abc3ccc57a52574d81a8fb4f082d9935912f035061c1107b47be8752daeb9c49bb2af4877e419a6c8bc30f846db6d773cf5267d3d761272a872 SHA512 fcbe45ea59492517e0868bf1f801c2bd2f3b1b30234e36d789c33e7ee48bd724726beb211697f3820609bbc27923c8c37d7be89dcbd059558014743360f2d0b7
|
||||||
DIST dune-2.8.4.tar.gz 1372925 BLAKE2B 5b6d6738a0dc701d852e6cc59a1998f64c006d233f43a804b0b9b677a6eadda25aa20f52799c90910d361e4bc565636a50d218ad5d0a9927239adc5be36b3889 SHA512 13b36eb6a943f9513987a23dab467b2e449cc3a4de35227f8323c3c724b27f19daac500602141ab22a04579243333c8484ce27a7f73e46a72e796d30fb1c3253
|
DIST dune-2.8.4.tar.gz 1372925 BLAKE2B 5b6d6738a0dc701d852e6cc59a1998f64c006d233f43a804b0b9b677a6eadda25aa20f52799c90910d361e4bc565636a50d218ad5d0a9927239adc5be36b3889 SHA512 13b36eb6a943f9513987a23dab467b2e449cc3a4de35227f8323c3c724b27f19daac500602141ab22a04579243333c8484ce27a7f73e46a72e796d30fb1c3253
|
||||||
|
DIST dune-2.9.0.tar.gz 1385143 BLAKE2B c973e4b2c5780a3e4902c31c030b2560fe5be313338a5188edc9b7ff97b63968baba267966d095076bed4f1527a8b8b5a0f980e74f53476d70ec53f20dc661a6 SHA512 1c3b64746b00215cd97b36c0f1c6e2416c9d15c795265634240e9da37e2c2fce02ab3c309a0cb967f9f20a5c6df14e943c3c2942c1a8f4743c3a19c699f4eb24
|
||||||
|
@ -0,0 +1,119 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit dune
|
||||||
|
|
||||||
|
DESCRIPTION="A composable build system for OCaml"
|
||||||
|
HOMEPAGE="https://github.com/ocaml/dune"
|
||||||
|
SRC_URI="https://github.com/ocaml/dune/archive/${PV}.tar.gz -> dune-${PV}.tar.gz"
|
||||||
|
S="${WORKDIR}/dune-${PV}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="+ocamlopt test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
~dev-ml/dune-${PV}
|
||||||
|
test? (
|
||||||
|
dev-ml/core_bench
|
||||||
|
dev-ml/menhir
|
||||||
|
dev-ml/opam
|
||||||
|
dev-ml/ppx_expect
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
dev-ml/csexp:=[ocamlopt=]
|
||||||
|
dev-ml/findlib:=[ocamlopt=]
|
||||||
|
>=dev-lang/ocaml-4.09:=
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
# TODO for test deps:
|
||||||
|
# Add cram?
|
||||||
|
# Add dev-ml/js_of_ocaml once dev-ml/ocaml-base64 is ported to Dune
|
||||||
|
# Add coq?
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Keep this list in sync with dev-ml/dune-configurator
|
||||||
|
local bad_tests=(
|
||||||
|
# List of tests calling git, mercurial, etc
|
||||||
|
test/blackbox-tests/test-cases/dune-project-meta/main.t
|
||||||
|
test/blackbox-tests/test-cases/meta-template-version-bug.t
|
||||||
|
test/blackbox-tests/test-cases/subst/project-name-restriction.t
|
||||||
|
test/blackbox-tests/test-cases/subst/with-opam-file.t
|
||||||
|
test/blackbox-tests/test-cases/subst.t
|
||||||
|
test/blackbox-tests/test-cases/subst/unicode.t
|
||||||
|
test/blackbox-tests/test-cases/subst/from-project-file.t
|
||||||
|
test/blackbox-tests/test-cases/trace-file.t
|
||||||
|
otherlibs/build-info/test/run.t
|
||||||
|
test/expect-tests/vcs_tests.ml
|
||||||
|
|
||||||
|
# Strange failures, seemingly from newer versions of deps
|
||||||
|
test/blackbox-tests/test-cases/merlin/allow_approximate_merlin_warn.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/merlin-tests.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/github4125.t
|
||||||
|
test/blackbox-tests/test-cases/install-dry-run.t
|
||||||
|
test/blackbox-tests/test-cases/c-flags.t
|
||||||
|
test/blackbox-tests/test-cases/install-libdir.t
|
||||||
|
test/blackbox-tests/test-cases/dune-cache/trim.t
|
||||||
|
|
||||||
|
# Strange failures about opam not being initialised
|
||||||
|
test/blackbox-tests/test-cases/merlin/merlin-from-subdir.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/symlinks.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/src-dirs-of-deps.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/per-module-pp.t
|
||||||
|
test/blackbox-tests/test-cases/merlin/server.t
|
||||||
|
test/blackbox-tests/test-cases/github1946.t
|
||||||
|
test/blackbox-tests/test-cases/github759.t
|
||||||
|
|
||||||
|
# Wants nodejs!
|
||||||
|
test/blackbox-tests/test-cases/jsoo/simple.t
|
||||||
|
test/blackbox-tests/test-cases/jsoo/inline-tests.t
|
||||||
|
test/blackbox-tests/test-cases/jsoo/github3622.t
|
||||||
|
# Wants js_of_ocaml (can't include yet b/c of ocaml-base64 porting)
|
||||||
|
test/blackbox-tests/test-cases/jsoo/explicit-js-mode-specified.t
|
||||||
|
|
||||||
|
# Wants coq which doesn't build for me right now
|
||||||
|
test/blackbox-tests/test-cases/coq/rec-module.t
|
||||||
|
test/blackbox-tests/test-cases/coq/compose-sub-theory.t
|
||||||
|
test/blackbox-tests/test-cases/coq/native-compose.t
|
||||||
|
test/blackbox-tests/test-cases/coq/base-unsound.t
|
||||||
|
test/blackbox-tests/test-cases/coq/base.t
|
||||||
|
test/blackbox-tests/test-cases/coq/native-single.t
|
||||||
|
test/blackbox-tests/test-cases/coq/compose-simple.t
|
||||||
|
test/blackbox-tests/test-cases/coq/ml-lib.t
|
||||||
|
test/blackbox-tests/test-cases/coq/extract.t
|
||||||
|
test/blackbox-tests/test-cases/coq/compose-plugin.t
|
||||||
|
|
||||||
|
# Unpackaged dependencies (a rabbit hole for now)
|
||||||
|
# utop -> lambda-term, zed
|
||||||
|
test/blackbox-tests/test-cases/utop/github3188.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-simple.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-default.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-default-implementation.t
|
||||||
|
test/blackbox-tests/test-cases/utop/utop-ppx-rewriters.t
|
||||||
|
# ocamlformat
|
||||||
|
test/blackbox-tests/test-cases/formatting.t
|
||||||
|
# mdx
|
||||||
|
test/blackbox-tests/test-cases/mdx-stanza.t
|
||||||
|
# odoc
|
||||||
|
test/blackbox-tests/test-cases/odoc/odoc-simple.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/odoc-package-mld-link.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/multiple-private-libs.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/odoc-unique-mlds.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/github717-odoc-index.t
|
||||||
|
test/blackbox-tests/test-cases/odoc/warnings.t
|
||||||
|
)
|
||||||
|
|
||||||
|
rm -r ${bad_tests[@]} || die "Failed to remove broken/inappropriate tests"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
:
|
||||||
|
}
|
@ -0,0 +1,47 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="A composable build system for OCaml"
|
||||||
|
HOMEPAGE="https://github.com/ocaml/dune"
|
||||||
|
SRC_URI="https://github.com/ocaml/dune/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-lang/ocaml-4.08:=
|
||||||
|
!dev-ml/jbuilder
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
dev-ml/findlib
|
||||||
|
test? (
|
||||||
|
dev-ml/core_bench
|
||||||
|
dev-ml/ppx_bench
|
||||||
|
dev-ml/ppx_expect
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
QA_FLAGS_IGNORED=/usr/bin/dune
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
ocaml bootstrap.ml || die
|
||||||
|
./dune.exe build -p "${PN}" --profile dune-bootstrap -j $(makeopts_jobs) || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
mv "${ED}"/usr/doc "${ED}"/usr/share/doc/${PF} || die
|
||||||
|
mv "${ED}"/usr/man "${ED}"/usr/share/man || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
DIST pooch-1.4.0.tar.gz 199360 BLAKE2B 6d56a974f84eeeedaa4d9eaae28a9ee22856869232fc4c2f7ff17b667d6830d5252bf65fc8fb8a03cd8f7435e2671767827664765e0ee3120bfbb54ae3b7445b SHA512 31c05e13fd101efbb03671ed551055ac0f8a24e450fe9d7a2f3bb245c2222935c80999b165b59265cfaeb020ca44503972d98763d8e777372004bd6fd9aaadca
|
DIST pooch-1.4.0.tar.gz 57097 BLAKE2B c891387011c99edbb78d84a8301e18fbfce36ecf6e87372ab384921d7e608abc2db2d3b3b37229ba193f3dcebb03f8df546c266075a0a35f18856ff38b3f94e2 SHA512 f883ecbb8831a179338ad497376ced25afa812ba3fdce7db4eb85aca00368aaf7c9c9f4dd58348b24f182b59e5de52bf490f03b6d4b6a807c4dcc182ac89627b
|
||||||
|
Binary file not shown.
@ -1,4 +1,3 @@
|
|||||||
DIST rbs-1.0.6.tar.gz 519090 BLAKE2B 1614320b8f77fcf4880cec6b7e4dc5fcb6b73f59410aa4dc51fb61b2868313acb242dc5a572c6cb96d9a819bade4b1d3aee2196189ea3fcc84d718ebbe9ff1d7 SHA512 a63c5781e6f73e998ea10c1a821d4f33388387caf6cd8e1ea607a9cd009d3f793e59c93b140e2539291a6b1d50b6ac40be7b484a8de0594f0ccff8a2db1e8425
|
|
||||||
DIST rbs-1.1.1.tar.gz 547506 BLAKE2B 5bfb64214d4fe0d19ec1c633b3f42567d2615fb0ed34ec78dd3defa3d185adbeab71ad523285d2877babcac4bb61ed2ec60eba80871cd4c631a2017f49768488 SHA512 f31894c1a52679241ef04f03d1aff545f9cc53a460d8933b7064b8403bbd6ef46fbfcdbda00189b158770389bba38b3978ad7d5dd0e7e0594540841e237adfc2
|
DIST rbs-1.1.1.tar.gz 547506 BLAKE2B 5bfb64214d4fe0d19ec1c633b3f42567d2615fb0ed34ec78dd3defa3d185adbeab71ad523285d2877babcac4bb61ed2ec60eba80871cd4c631a2017f49768488 SHA512 f31894c1a52679241ef04f03d1aff545f9cc53a460d8933b7064b8403bbd6ef46fbfcdbda00189b158770389bba38b3978ad7d5dd0e7e0594540841e237adfc2
|
||||||
DIST rbs-1.2.0.tar.gz 560408 BLAKE2B f1f1491018897ca445bb1e49d6d8965af7bc8f19657130fd1f6233bb2d63cac9ecdffba8e41232d2152a6db3007f597a62b7a1cce6c1cf9b2b794b8550b45de9 SHA512 877341ecbe9764431de95c431aa757533c21ba3b51b625a5b1d74d9b76be4c32829f64859befe252162e5dc40ddb1d30ea569e0d7a1e739777f7c8143389dfe9
|
|
||||||
DIST rbs-1.2.1.tar.gz 560668 BLAKE2B 25cd2c232a26527e7693d8fe80f0aea08c1d261bbff0d1cd9d20d5d6e06423d3b06e86bdd0ebfdfaf3224307dab683588959f23306fc48953ea2a96fd93b0176 SHA512 8c2e791cf751581720238a6fce347dd03378c42e5d7eb1495c191677bd443ec6294d082e22f589d28ad63ab2f4c98575f1619bad7e31e72af98914695eab2d86
|
DIST rbs-1.2.1.tar.gz 560668 BLAKE2B 25cd2c232a26527e7693d8fe80f0aea08c1d261bbff0d1cd9d20d5d6e06423d3b06e86bdd0ebfdfaf3224307dab683588959f23306fc48953ea2a96fd93b0176 SHA512 8c2e791cf751581720238a6fce347dd03378c42e5d7eb1495c191677bd443ec6294d082e22f589d28ad63ab2f4c98575f1619bad7e31e72af98914695eab2d86
|
||||||
|
DIST rbs-1.3.1.tar.gz 632463 BLAKE2B c222430bfa14fa7380cab393448b54e4596fe3984a1d31caf5a41bcd75cfd0a795813b4278ab89d5453cb5f4d090122ebb217cd336c03b31063acf4f4e303b7b SHA512 691ee6466172189e52ec949d361ccf66b82e8343efed5ec36673a4588b8de78e11f03b98c93c90a3c655819a29d56bb502f20fedd40a0515da3acc1aae126f27
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
USE_RUBY="ruby26 ruby27 ruby30"
|
|
||||||
|
|
||||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
|
||||||
|
|
||||||
RUBY_FAKEGEM_BINDIR="exe"
|
|
||||||
|
|
||||||
RUBY_FAKEGEM_EXTRAINSTALL="core schema sig stdlib"
|
|
||||||
|
|
||||||
RUBY_FAKEGEM_GEMSPEC="rbs.gemspec"
|
|
||||||
|
|
||||||
inherit ruby-fakegem
|
|
||||||
|
|
||||||
DESCRIPTION="The language for type signatures for Ruby and standard library definitions"
|
|
||||||
HOMEPAGE="https://github.com/ruby/rbs"
|
|
||||||
SRC_URI="https://github.com/ruby/rbs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/test-unit )"
|
|
||||||
|
|
||||||
all_ruby_prepare() {
|
|
||||||
sed -i -e 's/git ls-files -z/find -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
|
|
||||||
|
|
||||||
# Avoid JSON schema validation tests due to a large dependency stack
|
|
||||||
# that would be needed.
|
|
||||||
rm -f test/rbs/schema_test.rb || die
|
|
||||||
|
|
||||||
sed -i -e '/def test_paths/aomit "Different paths in Gentoo test environment"' test/rbs/cli_test.rb || die
|
|
||||||
}
|
|
@ -0,0 +1,32 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
USE_RUBY="ruby27 ruby30"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_DOC="none"
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_BINDIR="exe"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_GEMSPEC="typeprof.gemspec"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="Performs a type analysis of non-annotated Ruby code"
|
||||||
|
HOMEPAGE="https://github.com/ruby/typeprof"
|
||||||
|
SRC_URI="https://github.com/ruby/typeprof/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
ruby_add_rdepend ">=dev-ruby/rbs-1.3.1"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
# Avoid tests that download live code using git
|
||||||
|
rm -r test/typeprof/{goodcheck,diff-lcs}_test.rb || die
|
||||||
|
|
||||||
|
sed -i -e "s:_relative ': './:" -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST cucumber-create-meta-4.0.0.gem 8192 BLAKE2B 4809b0f9ec7f922af374ac46bd9d0cb9797f48738596f00c08bf3d861a19141160032421715d4d141b1b1854e77f3798d09308f626188c3ef6b30a491fadcd29 SHA512 0103b8277741d4eb2e590e1d7f9231187482d32f9a2c19c837baab759b3c48c11a39ac7af686d56fefb7b79120110e930c9af25fb895294529a3b5b0612a5b63
|
DIST cucumber-create-meta-4.0.0.gem 8192 BLAKE2B 4809b0f9ec7f922af374ac46bd9d0cb9797f48738596f00c08bf3d861a19141160032421715d4d141b1b1854e77f3798d09308f626188c3ef6b30a491fadcd29 SHA512 0103b8277741d4eb2e590e1d7f9231187482d32f9a2c19c837baab759b3c48c11a39ac7af686d56fefb7b79120110e930c9af25fb895294529a3b5b0612a5b63
|
||||||
|
DIST cucumber-create-meta-6.0.1.gem 8704 BLAKE2B 6e438871ffea3723d5466d24a0ccf1d672b05222de5063a6d9587b951357e631a938eac3b93dfc5f01155ace5dafafbf9d4a08f828b972c7f8b3e35f74ece26e SHA512 6e61bf4163a3575a2988c5a8fc351ad360d3b55e5bd615ee915f0f66064675514777868311d53f40d1fbfcdf7ffae2795c0d84c4f90c710f7d27a56009463b1c
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
USE_RUBY="ruby26 ruby27 ruby30"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="HTML formatter for Cucumber"
|
||||||
|
HOMEPAGE="https://cucumber.io/"
|
||||||
|
LICENSE="Ruby"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
SLOT="$(ver_cut 1)"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
>=dev-util/cucumber-messages-17.0.1:17
|
||||||
|
>=dev-ruby/sys-uname-1.2.2:1
|
||||||
|
"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
sed -i -e '1igem "cucumber-messages", "~>17.0"' spec/cucumber/create_meta_spec.rb || die
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST cucumber-html-formatter-13.0.0.gem 436224 BLAKE2B ce3f58995560f6d78e855e95af83128e426817c749f64de8c8b2c475893a0da02ee72ea00ccf2d5d5745d94f93924ef52e9a1c01bebaca9cde889cba49f32270 SHA512 687ccb9245213ff9e59b85cf729fad05de385c94a31ae70cb770ba515c57309107fea16756853d93b1af39c68c3f936f7975540070b4b45bbdd79baf94513dc4
|
DIST cucumber-html-formatter-13.0.0.gem 436224 BLAKE2B ce3f58995560f6d78e855e95af83128e426817c749f64de8c8b2c475893a0da02ee72ea00ccf2d5d5745d94f93924ef52e9a1c01bebaca9cde889cba49f32270 SHA512 687ccb9245213ff9e59b85cf729fad05de385c94a31ae70cb770ba515c57309107fea16756853d93b1af39c68c3f936f7975540070b4b45bbdd79baf94513dc4
|
||||||
|
DIST cucumber-html-formatter-16.0.1.gem 432128 BLAKE2B b1b53566d15573f6f4fa87a9a87ce5c1844d9bd6f43715aee1a08ab45d66baa211631a612aedd59f97c24364ce9b6b607697763744906ec78f96adf0c5ca260d SHA512 2bcdd55e0d3dfebc60c25e2a64a0d2b132e561fdb0f77ca0a491464c9b338cffad5a436123d3ed5e85816d509caa60badda958d7b435a42d89ed27a17f97edbc
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
USE_RUBY="ruby26 ruby27 ruby30"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRAINSTALL="assets"
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="HTML formatter for Cucumber"
|
||||||
|
HOMEPAGE="https://cucumber.io/"
|
||||||
|
LICENSE="Ruby"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
SLOT="$(ver_cut 1)"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
>=dev-util/cucumber-messages-17.0.1:17
|
||||||
|
"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
sed -i -e '1igem "cucumber-messages", "~>17.0"' spec/html_formatter_spec.rb || die
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST cucumber-rails-1.8.0.gem 43008 BLAKE2B ac2fbc89ea952add031429b281986de37b3a8511e398b34d49435c70221b3c454589c51acd5b1fcecdf0285a8e446d4c2c0e0a77216eb78f8fa222086fb6db36 SHA512 757f50719309418353cf1e6b42902ce6166806d2e2a9cd1a27842ffde3d8ce61af97de12f4ffa9e31a50693cc8c40ece9a74e5ec91973096e77860b56034d439
|
DIST cucumber-rails-1.8.0.gem 43008 BLAKE2B ac2fbc89ea952add031429b281986de37b3a8511e398b34d49435c70221b3c454589c51acd5b1fcecdf0285a8e446d4c2c0e0a77216eb78f8fa222086fb6db36 SHA512 757f50719309418353cf1e6b42902ce6166806d2e2a9cd1a27842ffde3d8ce61af97de12f4ffa9e31a50693cc8c40ece9a74e5ec91973096e77860b56034d439
|
||||||
DIST cucumber-rails-2.2.0.gem 136704 BLAKE2B 660037bb5938ad01aa0b1188e5e48522f9932662d6578f1c0a107cdacbd5cf8527e48b6ddb2c91d975577a71db0259a7250d762004ef0a49ebc063f45103aab0 SHA512 ca8a0ce9c9cdb1306b6a5f8e3d9ba68a2beb3d0a35a58fd6c51ba3ce76e2104045b2768054d27bb4bfcd437534aeb6d39fa2be87396f3a4084c0044201e96252
|
DIST cucumber-rails-2.2.0.gem 136704 BLAKE2B 660037bb5938ad01aa0b1188e5e48522f9932662d6578f1c0a107cdacbd5cf8527e48b6ddb2c91d975577a71db0259a7250d762004ef0a49ebc063f45103aab0 SHA512 ca8a0ce9c9cdb1306b6a5f8e3d9ba68a2beb3d0a35a58fd6c51ba3ce76e2104045b2768054d27bb4bfcd437534aeb6d39fa2be87396f3a4084c0044201e96252
|
||||||
DIST cucumber-rails-2.3.0.tar.gz 39492 BLAKE2B 73c45db7b3b445804b29814fa7add1ee5d66ea75bf3bd7b19456cef38340adc37f6129911a49d7e9996bf20299e31511e51758e18d9f8ffdb53fa9ea320aad42 SHA512 fee78784bd21084271c611073bce8b399783a2ce1900bf12a27cd8b70edbedc525b501d5d71856ad42f19174664d95d97bd4adf75b1791af60bc237a9f16e00d
|
DIST cucumber-rails-2.3.0.tar.gz 39492 BLAKE2B 73c45db7b3b445804b29814fa7add1ee5d66ea75bf3bd7b19456cef38340adc37f6129911a49d7e9996bf20299e31511e51758e18d9f8ffdb53fa9ea320aad42 SHA512 fee78784bd21084271c611073bce8b399783a2ce1900bf12a27cd8b70edbedc525b501d5d71856ad42f19174664d95d97bd4adf75b1791af60bc237a9f16e00d
|
||||||
|
DIST cucumber-rails-2.4.0.tar.gz 41130 BLAKE2B abe10f72aad684691f863a7aeb952a7e45c945d22e1998dbd860ff47808c253607d6502fdb9dbcb1d573a0e3d615859ab56b9e34eabc5de33ff3c47483f8314d SHA512 b57134227e807da4f64d5d8d1435e597f28adab27f2f4d7148b8e997cedf721916dfa73de5a226953827053db2dbc3f3300a88f71d72327514585ae9fada9e0c
|
||||||
|
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
USE_RUBY="ruby26 ruby27"
|
||||||
|
|
||||||
|
# There are also cucumber features. They require a Rails project with
|
||||||
|
# factory girl which we don't have packaged yet.
|
||||||
|
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_GEMSPEC="cucumber-rails.gemspec"
|
||||||
|
|
||||||
|
RUBY_FAKEGEM_BINWRAP=""
|
||||||
|
|
||||||
|
inherit ruby-fakegem
|
||||||
|
|
||||||
|
DESCRIPTION="Executable feature scenarios for Rails"
|
||||||
|
HOMEPAGE="https://github.com/cucumber/cucumber/wikis"
|
||||||
|
SRC_URI="https://github.com/cucumber/cucumber-rails/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
LICENSE="Ruby"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
SLOT="$(ver_cut 1)"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
# Restrict tests since Appraisal is now mandatory to manage different
|
||||||
|
# rails versions, even for the specs.
|
||||||
|
RESTRICT="test"
|
||||||
|
#ruby_add_bdepend "
|
||||||
|
# test? (
|
||||||
|
# >=dev-ruby/ammeter-0.2.2
|
||||||
|
# >=dev-ruby/rspec-rails-2.7.0:2
|
||||||
|
# )"
|
||||||
|
|
||||||
|
ruby_add_rdepend "
|
||||||
|
>=dev-ruby/capybara-2.18:* <dev-ruby/capybara-4:*
|
||||||
|
>=dev-util/cucumber-3.0.2 <dev-util/cucumber-8
|
||||||
|
>=dev-ruby/mime-types-3.3:3
|
||||||
|
>=dev-ruby/nokogiri-1.10
|
||||||
|
>=dev-ruby/rails-5.0:* <dev-ruby/rails-7:*
|
||||||
|
dev-ruby/rexml:3
|
||||||
|
>=dev-ruby/webrick-1.7:0
|
||||||
|
"
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
rm Gemfile || die
|
||||||
|
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||||
|
sed -i -e '/files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue