-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
890 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST guava-3.17.tar.gz 2624632 BLAKE2B bab8e5719fb0513aadd09ebc4e9a3c83d9ddfaf4a9f124c036053d452fee6455fff2696b868667f4c0abb9962e749919491c892b907afbc542e1593a11bfb0f5 SHA512 785bd0fd65b6717aefb22caca35ee77e21ee48a7fcf3f401cc0a3839ebe187fd700a9053d3f581c6865f4cd0cfc4b83792530e7be18fe40a1d694f571990b457 | ||
DIST guava-3.18.tar.gz 2635260 BLAKE2B f2b81d6418204564afeede7901f9d9a54e93a165913ffd6152a641590452455d07607e511ecde220a0d9f44182d793ce25bde51c5103324033f9b0470b2bb234 SHA512 350240ffff584877fa3981e4acdda94419bdeb982de26a308af056dd3130b38eeccaf6157afef7ffbdab359b0fddf5a213ccb6d27d2f4e8955ae45e0607d6b97 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit gap-pkg toolchain-funcs | ||
|
||
DESCRIPTION="GAP package for computing with error-correcting codes" | ||
HOMEPAGE="https://www.gap-system.org/Packages/guava.html" | ||
SLOT="0" | ||
SRC_URI="https://github.com/gap-packages/${PN}/releases/download/v${PV}/${P}.tar.gz" | ||
|
||
LICENSE="|| ( GPL-2 GPL-3 )" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
DEPEND=">=sci-mathematics/gap-4.12.2" | ||
RDEPEND="${DEPEND}" | ||
|
||
DOCS=( README.md CHANGES HISTORY ) | ||
|
||
PATCHES=( | ||
"${FILESDIR}"/${PN}-3.15-makefile.patch | ||
) | ||
|
||
GAP_PKG_OBJS="doc lib tbl" | ||
|
||
src_prepare() { | ||
default | ||
# Remove temporary files in src/leon/. | ||
rm src/leon/src/stamp-h1 || die | ||
} | ||
|
||
src_configure() { | ||
# Not a real autoconf configure script | ||
# The argument is the folder containing sysinfo.gap | ||
./configure $(gap_sysinfo_loc) | ||
|
||
cd src/leon/ || die | ||
# real autoconf configure script | ||
econf | ||
} | ||
|
||
src_compile() { | ||
# COMPILE, COMPOPT, LINKOPT are needed to compile the code in src/leon/. | ||
emake \ | ||
CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \ | ||
COMPILE="$(tc-getCC)" COMPOPT="${CFLAGS} -c" LINKOPT="${LDFLAGS}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sage-10.1 | ||
sage-10.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST sage-conf-10.1.tar.gz 2913104 BLAKE2B 919c66239fe967807940ed9602e76d9ec9789f77e9e821ff84b1897c163b18fd283814d9394110448eb6520b1f129503f8c08df41f6a8fbea21e331a068cc6a1 SHA512 cd703f0e616f055c1202c024d9fa06735933ddc8ee3ec7df65f2cd6846ee4a8b53ceb5908c6c427afd9c3ae410654498f8954c2615e60b4b920bd377ddfd47f3 | ||
DIST sage-conf-10.2.tar.gz 2998959 BLAKE2B ca16168f905c9b42f4f5de3b13e102166db9d4969e67da3dbe26bcfdf100afb8a3e01414947e0eb1e47a2a3ec03b9579e398f2f6d8aa934648adc901e19ba9b4 SHA512 c73c01b24e9a1ed31dd72e0fbb35887d4aa63a86ee9279350762062d353e5e721857daa862ae4a8d67d2efd5af1ed0f2fbe17c83ce3800d20596016aa45308e4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/pyproject.toml b/pyproject.toml | ||
index d882f39..4d038c7 100644 | ||
--- a/pyproject.toml | ||
+++ b/pyproject.toml | ||
@@ -11,13 +11,9 @@ authors = [{name = "The Sage Developers", email = "[email protected] | ||
urls = {Homepage = "https://www.sagemath.org"} | ||
dynamic = ["version"] | ||
|
||
-[project.scripts] | ||
-sage-config = "sage_conf:_main" | ||
- | ||
[tool.setuptools] | ||
packages = ["_sage_conf"] | ||
py-modules = ["sage_conf"] | ||
-script-files = ["bin/sage-env-config"] | ||
include-package-data = false | ||
|
||
[tool.setuptools.dynamic] | ||
diff --git a/setup.py b/setup.py | ||
index 16686a8..bfb1cbd 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -108,7 +108,6 @@ class build_py(setuptools_build_py): | ||
class build_scripts(distutils_build_scripts): | ||
|
||
def run(self): | ||
- self.distribution.scripts.append(os.path.join('bin', 'sage-env-config')) | ||
if not self.distribution.entry_points: | ||
self.entry_points = self.distribution.entry_points = dict() | ||
distutils_build_scripts.run(self) | ||
@@ -123,7 +122,6 @@ class editable_wheel(setuptools_editable_wheel): | ||
|
||
|
||
setup( | ||
- cmdclass=dict(build_py=build_py, | ||
- build_scripts=build_scripts, | ||
+ cmdclass=dict(build_scripts=build_scripts, | ||
editable_wheel=editable_wheel) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
PYTHON_COMPAT=( python3_{10..12} ) | ||
PYTHON_REQ_USE="readline,sqlite" | ||
DISTUTILS_USE_PEP517=setuptools | ||
|
||
inherit distutils-r1 prefix | ||
|
||
if [[ ${PV} == 9999 ]]; then | ||
inherit git-r3 sage-git | ||
EGIT_REPO_URI="https://github.com/sagemath/sage.git" | ||
else | ||
PYPI_NO_NORMALIZE=1 | ||
inherit pypi | ||
KEYWORDS="~amd64 ~amd64-linux ~ppc-macos ~x64-macos" | ||
fi | ||
|
||
DESCRIPTION="Math software for abstract and numerical computations" | ||
HOMEPAGE="https://www.sagemath.org" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
# No real tests here in spite of QA warnings. | ||
RESTRICT="test mirror" | ||
|
||
# pplpy needs to be installed to get documentation folder right :( | ||
DEPEND="" | ||
RDEPEND="" | ||
BDEPEND="dev-python/pplpy[doc,${PYTHON_USEDEP}]" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${PN}-10.2.patch" | ||
) | ||
|
||
python_prepare_all() { | ||
if [[ ${PV} == 9999 ]]; then | ||
sage-git_src_prepare "${PN}_pypi" | ||
fi | ||
|
||
distutils-r1_python_prepare_all | ||
|
||
# sage on gentoo environment variables | ||
cp -f "${FILESDIR}"/${PN}.py-10.2 _sage_conf/_conf.py | ||
eprefixify _sage_conf/_conf.py | ||
# set the documentation location to the externally provided sage-doc package | ||
sed -i "s:@GENTOO_PORTAGE_PF@:sage-doc-${PV}:" _sage_conf/_conf.py | ||
# set lib/lib64 - only useful for GAP_LIB_DIR for now | ||
sed -i "s:@libdir@:$(get_libdir):g" _sage_conf/_conf.py | ||
# Fix finding pplpy documentation with intersphinx | ||
local pplpyver=$(best_version dev-python/pplpy) | ||
# using pplpyver from character 11 to remove "dev-python/" | ||
sed -i "s:@PPLY_DOC_VERS@:${pplpyver:11}:" _sage_conf/_conf.py | ||
# Set sage version as stated in VERSION.txt | ||
local sage_version=$(cat VERSION.txt) | ||
sed -i "s:@SAGE_VERSION@:${sage_version}:" _sage_conf/_conf.py | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST sage-doc-10.1.tar.gz 29253433 BLAKE2B 9dd0e9d41dc03e1344d1edb41bbb8f4845fa5166e784e1606b30da3085f146766eb10433afc4305d17f86713127cdcb00c04ee0903d1c898a0377e9d7fb9577e SHA512 f62633cd3fc4441191abfaf01c7966d789cd995a2b9002abf5063bfc9a307cd267af6c4d048426b190020dee355e4e5d0a26d9b3b0ddcb067c26abf8e73d7995 | ||
DIST sage-doc-10.2.tar.gz 29368872 BLAKE2B 2e8dbde8438b6e801c3b78bc680e95bfdef9cdf63a4468117fe6b71e05e33e1044c60daf11d66559ad7d77f02a7589a66c5513b7bd5d268399b5060ae33a9ff9 SHA512 b9eec42aaab22dc28585472ecec16306d10219654930867baf1a15ca490037f9bc87c640bdfbb7a269c48d361e57f80d25d3ed132588612ade02786f527ca06d |
Oops, something went wrong.