parent
6ce40a1de7
commit
fb46886265
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,4 @@
|
||||
DIST prog-express-3.8.8-1.amd64.deb 37892996 BLAKE2B bc1a7cb59d1e5b2f2dc83598a00c0714127f20a35ff7acc768c2a305459e7a362da2f86c283dbc049e5a9200b2aedd2b019444106ae387e2f4b8ed5fdeeebfa3 SHA512 60d5f7592df20b0fe3119cc4e8e8c9aa6168838c6636b90cda6b9068d4dccf7c025593ee977a370cfbf7ab1fc3bf8373e46bdd0cdb27337874142c9e9d0603a6
|
||||
DIST prog-express-3.8.8-1.i386.deb 37892672 BLAKE2B 0735385044db036185c1005622645182fc354d799d1c869cf6e52e4269ab44eecf7c8211eb794ae885332ae8a4ac4a43d7ccdf58548cf50fa82ee65c71138ed4 SHA512 fd91692b7da9992224a657bfc1c48dd07ef0b7813efb7ca640ba57c23ece04a5791e43c246820739ce045dae89aa2b02b0404a419b296f14cb5f703ea59c8ed4
|
||||
DIST prog-express-3.8.9-1.amd64.deb 38052856 BLAKE2B e06b743593f2fe1a17fb0b0961c88fa920ed511635b922a106809000fda25805f9d57a2b605b7087d3758eb25739e1e951f95d639568b4ad04cddc3c79cb4998 SHA512 9a14ad7c689674d288d9f0e3ce6ebfabc1eb8ffd6fa0e7df8f9348f58eff83c43497f9799a6035fec6e98feda24d3c24c7d78a1e838a85916d6b02016fa503e6
|
||||
DIST prog-express-3.8.9-1.i386.deb 38052912 BLAKE2B 88d9b5ba7abd45c8f89a7a75aeec32ed9cfc2d4800a5b19e47299d6afbdce9d4c0f56a9ee9df8dc141d7a550f0e5d8acd9ba81c2bb1c6a1ae71eda76c6a78aaa SHA512 41179dd974bdf331838339ee16a905165ca23955bdd321f15f03bdb794fe0a289ca0bc513925e4c5edccb5675211c1a5371b3b85fb5cc155086746794aa6d908
|
||||
|
@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop udev unpacker xdg-utils
|
||||
|
||||
DESCRIPTION="A modern and intuitive control software for the Batronix USB programming devices"
|
||||
HOMEPAGE="https://www.batronix.com"
|
||||
SRC_URI="
|
||||
amd64? ( https://www.batronix.com/exe/Batronix/Prog-Express/deb/${P}-1.amd64.deb )
|
||||
x86? ( https://www.batronix.com/exe/Batronix/Prog-Express/deb/${P}-1.i386.deb )
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
LICENSE="prog-express"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-db/sqlite:3
|
||||
dev-dotnet/libgdiplus
|
||||
dev-lang/mono
|
||||
dev-lang/mono-basic
|
||||
virtual/libusb:1
|
||||
virtual/udev
|
||||
"
|
||||
|
||||
DOCS=(
|
||||
"usr/share/doc/prog-express/changelog"
|
||||
"usr/share/doc/prog-express/manuals"
|
||||
)
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/bin/bxusb
|
||||
usr/bin/bxusb-gui
|
||||
usr/bin/prog-express
|
||||
usr/sbin/bxfxload
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
unpack_deb ${A}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
gunzip usr/share/doc/prog-express/changelog.gz usr/share/man/man1/*.gz || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin usr/bin/{bxusb,bxusb-gui,prog-express}
|
||||
dosbin usr/sbin/bxfxload
|
||||
|
||||
insinto /usr/lib
|
||||
doins -r usr/lib/bxusb usr/lib/prog-express
|
||||
|
||||
insinto /usr/lib/prog-express
|
||||
doins "${FILESDIR}"/pe.exe.config
|
||||
|
||||
udev_dorules lib/udev/rules.d/85-batronix-devices.rules
|
||||
|
||||
doicon usr/share/pixmaps/prog-express.png
|
||||
|
||||
domenu usr/share/applications/prog-express.desktop
|
||||
|
||||
doman usr/share/man/man1/{bxfxload,bxusb,bxusb-gui,prog-express}.1
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST trash-cli-0.20.12.26.tar.gz 74542 BLAKE2B 558e3cc043cdaef44bf68317e666c6f757daf9feeb6b731a57aba91ec983e1adb1e404f7e8428a7bd1225d83df6e94e8b9b793942bbb233f09a44127af0a42fa SHA512 d0b0a97014c888ddda95759dc82837385a2809cae04bdf6a84dcf0233dc2cf9370253110bc5fdbc5c4452ebb65c5e7836fe1cfaa9aaabe38d34269724456cd1c
|
||||
DIST trash-cli-0.21.5.25.tar.gz 77067 BLAKE2B 5db46b21ba33b9076ea7f024b93e62f30b3671f44a024b30013369607bd580f0ef9831debd9fdc6c64575ab6edde14aa921229bbd16a6a77657b7ed20b58c318 SHA512 75ef338b356048768febc4afd42933d8aa44cde5156e386968dad7b33033b84becaef3d39ccf15c02216394735f37d1c7c8cd499000068d51247710e87590507
|
||||
DIST trash-cli-0.21.10.24.tar.gz 78085 BLAKE2B 6d8f82695a94e45efd4316eb9f1a8c8f5d348774fc10cd4e5323d8dad15897f827acf343e2c1a15e1cef4eecb2ed76ab456345e359319c82bfde9b95f68f7b77 SHA512 1bf258cea7658a3968beec939d09ae088eac8898a9812e8a3aca587df7f2ad20c66f766995f8c893e4d84d0ea7db94ebb4ca7eb24982af81fa4179cc9e239fd1
|
||||
|
@ -0,0 +1,99 @@
|
||||
From e467ae01869e853f83ebad4ef5514c5831283866 Mon Sep 17 00:00:00 2001
|
||||
From: Zoltan Puskas <zoltan@sinustrom.info>
|
||||
Date: Sat, 4 Dec 2021 13:16:48 -0800
|
||||
Subject: [PATCH 1/2] Fix lint in tests
|
||||
|
||||
Running pyflakes on the code has shown several lint errors. This diff
|
||||
fixes them for the unit test files.
|
||||
|
||||
Additionally myStringIO.py has been removed in favour of using six's
|
||||
StringIO for consistency with other tests.
|
||||
---
|
||||
tests/empty/test_empty_end_to_end_interactive.py | 2 +-
|
||||
tests/myStringIO.py | 4 ----
|
||||
tests/put/test_file_trasher.py | 2 +-
|
||||
tests/put/test_home_fallback.py | 2 +-
|
||||
tests/test_restore_cmd.py | 2 +-
|
||||
tests/test_trash_rm.py | 4 +---
|
||||
6 files changed, 5 insertions(+), 11 deletions(-)
|
||||
delete mode 100644 tests/myStringIO.py
|
||||
|
||||
diff --git a/tests/empty/test_empty_end_to_end_interactive.py b/tests/empty/test_empty_end_to_end_interactive.py
|
||||
index 80b8f81..64f20d6 100644
|
||||
--- a/tests/empty/test_empty_end_to_end_interactive.py
|
||||
+++ b/tests/empty/test_empty_end_to_end_interactive.py
|
||||
@@ -4,7 +4,7 @@ import unittest
|
||||
import pytest
|
||||
|
||||
from ..fake_trash_dir import FakeTrashDir
|
||||
-from ..support import MyPath, list_trash_dir
|
||||
+from ..support import MyPath
|
||||
from .. import run_command
|
||||
|
||||
|
||||
diff --git a/tests/myStringIO.py b/tests/myStringIO.py
|
||||
deleted file mode 100644
|
||||
index 40a6c72..0000000
|
||||
--- a/tests/myStringIO.py
|
||||
+++ /dev/null
|
||||
@@ -1,4 +0,0 @@
|
||||
-try:
|
||||
- from StringIO import StringIO
|
||||
-except ImportError:
|
||||
- from io import StringIO
|
||||
diff --git a/tests/put/test_file_trasher.py b/tests/put/test_file_trasher.py
|
||||
index 32e8019..37fb9db 100644
|
||||
--- a/tests/put/test_file_trasher.py
|
||||
+++ b/tests/put/test_file_trasher.py
|
||||
@@ -3,7 +3,7 @@ import unittest
|
||||
from mock import Mock
|
||||
from datetime import datetime
|
||||
|
||||
-from trashcli.put import TrashResult, Trasher, FileTrasher
|
||||
+from trashcli.put import TrashResult, FileTrasher
|
||||
import os
|
||||
|
||||
|
||||
diff --git a/tests/put/test_home_fallback.py b/tests/put/test_home_fallback.py
|
||||
index 07d40a2..38b7fb4 100644
|
||||
--- a/tests/put/test_home_fallback.py
|
||||
+++ b/tests/put/test_home_fallback.py
|
||||
@@ -3,7 +3,7 @@ import unittest
|
||||
from mock import Mock, call, ANY
|
||||
|
||||
from trashcli.fstab import create_fake_volume_of
|
||||
-from trashcli.put import TrashResult, Trasher, TrashDirectoriesFinder, FileTrasher
|
||||
+from trashcli.put import TrashResult, TrashDirectoriesFinder, FileTrasher
|
||||
from datetime import datetime
|
||||
import os
|
||||
|
||||
diff --git a/tests/test_restore_cmd.py b/tests/test_restore_cmd.py
|
||||
index b1cda13..63c017d 100644
|
||||
--- a/tests/test_restore_cmd.py
|
||||
+++ b/tests/test_restore_cmd.py
|
||||
@@ -3,7 +3,7 @@ import unittest
|
||||
from trashcli.list_mount_points import os_mount_points
|
||||
from trashcli.restore import RestoreCmd, make_trash_directories, \
|
||||
TrashDirectory, TrashedFiles, Command
|
||||
-from .myStringIO import StringIO
|
||||
+from six import StringIO
|
||||
from mock import call
|
||||
from trashcli import restore
|
||||
import datetime
|
||||
diff --git a/tests/test_trash_rm.py b/tests/test_trash_rm.py
|
||||
index e11935e..ec7e7e6 100644
|
||||
--- a/tests/test_trash_rm.py
|
||||
+++ b/tests/test_trash_rm.py
|
||||
@@ -1,8 +1,6 @@
|
||||
import unittest
|
||||
|
||||
-import six
|
||||
-
|
||||
-from mock import Mock, call
|
||||
+from mock import Mock
|
||||
|
||||
from trashcli.rm import Filter
|
||||
from six import StringIO
|
||||
--
|
||||
2.33.1
|
||||
|
@ -0,0 +1,26 @@
|
||||
From 00d10cff555c79a0ac11f7a298a892176830c353 Mon Sep 17 00:00:00 2001
|
||||
From: Zoltan Puskas <zoltan@sinustrom.info>
|
||||
Date: Sat, 4 Dec 2021 13:27:23 -0800
|
||||
Subject: [PATCH 2/2] Fix lint in trash-cli
|
||||
|
||||
Fix the import redefinition issue in list.py detected by pyflakes
|
||||
---
|
||||
trashcli/list.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/trashcli/list.py b/trashcli/list.py
|
||||
index 09f30de..725b5ce 100644
|
||||
--- a/trashcli/list.py
|
||||
+++ b/trashcli/list.py
|
||||
@@ -4,7 +4,7 @@ import os
|
||||
|
||||
from . import fstab
|
||||
from .fs import FileSystemReader, file_size
|
||||
-from .fstab import volume_of, VolumesListing
|
||||
+from .fstab import VolumesListing
|
||||
from .trash import (version, TrashDirReader, path_of_backup_copy, print_version,
|
||||
maybe_parse_deletion_date, trash_dir_found,
|
||||
trash_dir_skipped_because_parent_is_symlink,
|
||||
--
|
||||
2.33.1
|
||||
|
@ -0,0 +1,66 @@
|
||||
From 566dbd8bdde01514c5cf0802d03a9dca918b6e82 Mon Sep 17 00:00:00 2001
|
||||
From: Zoltan Puskas <zoltan@sinustrom.info>
|
||||
Date: Sat, 4 Dec 2021 12:59:37 -0800
|
||||
Subject: [PATCH] Fix unit test test_trash_empty_will_skip_unreadable_dir
|
||||
|
||||
This patch fixes two issues with the current test:
|
||||
- it prevents the test from breaking out of the test environment and
|
||||
does not try to clean trash directories for all mount points
|
||||
- it does actually test the "unreadable" directory
|
||||
|
||||
Bug: GH-217
|
||||
---
|
||||
tests/test_trash_empty.py | 25 +++++++++++++++++--------
|
||||
1 file changed, 17 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/tests/test_trash_empty.py b/tests/test_trash_empty.py
|
||||
index c7a987d..a2f87e6 100644
|
||||
--- a/tests/test_trash_empty.py
|
||||
+++ b/tests/test_trash_empty.py
|
||||
@@ -15,26 +15,35 @@ from .support import MyPath
|
||||
from trashcli.fs import FileSystemReader
|
||||
from trashcli.fs import FileRemover
|
||||
|
||||
-from trashcli.empty import main as empty
|
||||
-
|
||||
|
||||
@pytest.mark.slow
|
||||
class TestTrashEmptyCmd(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.tmp_dir = MyPath.make_temp_dir()
|
||||
self.unreadable_dir = self.tmp_dir / 'data/Trash/files/unreadable'
|
||||
+ self.volumes_listing = Mock(spec=VolumesListing)
|
||||
+ self.volumes_listing.list_volumes.return_value = [self.unreadable_dir]
|
||||
+ self.err=StringIO()
|
||||
+ self.empty = EmptyCmd(
|
||||
+ out=StringIO(),
|
||||
+ err=self.err,
|
||||
+ environ={'XDG_DATA_HOME':self.tmp_dir / 'data'},
|
||||
+ volumes_listing=self.volumes_listing,
|
||||
+ now=None,
|
||||
+ file_reader=FileSystemReader(),
|
||||
+ getuid=lambda: 123,
|
||||
+ file_remover=FileRemover(),
|
||||
+ version=None,
|
||||
+ volume_of=lambda x: "volume_of %s" % x
|
||||
+ )
|
||||
|
||||
def test_trash_empty_will_skip_unreadable_dir(self):
|
||||
- out = StringIO()
|
||||
- err = StringIO()
|
||||
-
|
||||
make_unreadable_dir(self.unreadable_dir)
|
||||
|
||||
- empty(['trash-empty'], stdout = out, stderr = err,
|
||||
- environ={'XDG_DATA_HOME':self.tmp_dir / 'data'})
|
||||
+ self.empty.run('trash-empty')
|
||||
|
||||
assert ("trash-empty: cannot remove %s\n" % self.unreadable_dir ==
|
||||
- err.getvalue())
|
||||
+ self.err.getvalue())
|
||||
|
||||
def tearDown(self):
|
||||
make_readable(self.unreadable_dir)
|
||||
--
|
||||
2.33.1
|
||||
|
@ -0,0 +1,117 @@
|
||||
From 196144f90aaeb9d062019db4937dc4a1ec5991aa Mon Sep 17 00:00:00 2001
|
||||
From: Zoltan Puskas <zoltan@sinustrom.info>
|
||||
Date: Sat, 4 Dec 2021 11:12:16 -0800
|
||||
Subject: [PATCH] Fix unit tests not deleting temp directories
|
||||
|
||||
Some tests were not deleting temporary directories polluting /tmp. This
|
||||
patch fixes all locations in the code where this was forgotten.
|
||||
|
||||
Additionally we apply a suffix on top of the randomly generated name for
|
||||
the temp directories (new name example: tmpwl2fvrn9_trash_cli_test)
|
||||
becasue:
|
||||
- it has no cost to us or the users
|
||||
- helps identify temporary directories as belonging to trash-cli tests
|
||||
- will make similar issues obvious in the future
|
||||
|
||||
Bug: GH-218
|
||||
---
|
||||
tests/empty/test_empty_end_to_end_interactive.py | 3 +++
|
||||
tests/empty/test_empty_end_to_end_with_argument.py | 3 +++
|
||||
tests/put/test_end_to_end_put.py | 3 +++
|
||||
tests/restore/test_trash_directory.py | 3 ++-
|
||||
tests/support.py | 2 +-
|
||||
tests/test_files.py | 1 +
|
||||
tests/test_filesystem.py | 2 ++
|
||||
tests/test_trash_put_slow.py | 3 +++
|
||||
8 files changed, 18 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/empty/test_empty_end_to_end_interactive.py b/tests/empty/test_empty_end_to_end_interactive.py
|
||||
index 80b8f81..14b2867 100644
|
||||
--- a/tests/empty/test_empty_end_to_end_interactive.py
|
||||
+++ b/tests/empty/test_empty_end_to_end_interactive.py
|
||||
@@ -40,3 +40,6 @@ class TestEmptyEndToEndInteractive(unittest.TestCase):
|
||||
'Would empty the following trash directories:\n'
|
||||
' - %s\n'
|
||||
'Proceed? (y/n) ' % self.trash_dir, '', 0]
|
||||
+
|
||||
+ def tearDown(self):
|
||||
+ self.tmp_dir.clean_up()
|
||||
diff --git a/tests/empty/test_empty_end_to_end_with_argument.py b/tests/empty/test_empty_end_to_end_with_argument.py
|
||||
index bfa660b..aad10de 100644
|
||||
--- a/tests/empty/test_empty_end_to_end_with_argument.py
|
||||
+++ b/tests/empty/test_empty_end_to_end_with_argument.py
|
||||
@@ -54,3 +54,6 @@ class TestEmptyEndToEndWithArgument(unittest.TestCase):
|
||||
self.user_run_trash_empty(['2'])
|
||||
|
||||
assert list_trash_dir(self.trash_dir) == ['info/foo.trashinfo']
|
||||
+
|
||||
+ def tearDown(self):
|
||||
+ self.tmp_dir.clean_up()
|
||||
diff --git a/tests/put/test_end_to_end_put.py b/tests/put/test_end_to_end_put.py
|
||||
index 5b95b57..8af89b8 100644
|
||||
--- a/tests/put/test_end_to_end_put.py
|
||||
+++ b/tests/put/test_end_to_end_put.py
|
||||
@@ -89,3 +89,6 @@ class TestEndToEndPut(unittest.TestCase):
|
||||
['-f', 'this_file_does_not_exist', 'nor_does_this_file'])
|
||||
|
||||
assert [result.stdout, result.stderr, result.exit_code] == ['', '', 0]
|
||||
+
|
||||
+ def tearDown(self):
|
||||
+ self.tmp_dir.clean_up()
|
||||
diff --git a/tests/restore/test_trash_directory.py b/tests/restore/test_trash_directory.py
|
||||
index d961f45..5328f98 100644
|
||||
--- a/tests/restore/test_trash_directory.py
|
||||
+++ b/tests/restore/test_trash_directory.py
|
||||
@@ -53,4 +53,5 @@ class TestTrashDirectory(unittest.TestCase):
|
||||
def list_trashinfos(self):
|
||||
return list(self.trash_dir.all_info_files(self.temp_dir / 'trash-dir'))
|
||||
|
||||
-
|
||||
+ def tearDown(self):
|
||||
+ self.temp_dir.clean_up()
|
||||
diff --git a/tests/support.py b/tests/support.py
|
||||
index afbb402..d5966d3 100644
|
||||
--- a/tests/support.py
|
||||
+++ b/tests/support.py
|
||||
@@ -34,4 +34,4 @@ class MyPath(str):
|
||||
|
||||
@classmethod
|
||||
def make_temp_dir(cls):
|
||||
- return cls(os.path.realpath(tempfile.mkdtemp()))
|
||||
+ return cls(os.path.realpath(tempfile.mkdtemp(suffix="_trash_cli_test")))
|
||||
diff --git a/tests/test_files.py b/tests/test_files.py
|
||||
index abe4ae0..487ffd3 100644
|
||||
--- a/tests/test_files.py
|
||||
+++ b/tests/test_files.py
|
||||
@@ -45,3 +45,4 @@ class Test_make_unreadable_dir(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
make_readable(self.unreadable_dir)
|
||||
shutil.rmtree(self.unreadable_dir)
|
||||
+ self.tmp_dir.clean_up()
|
||||
diff --git a/tests/test_filesystem.py b/tests/test_filesystem.py
|
||||
index 2df08b1..b1e9aa6 100644
|
||||
--- a/tests/test_filesystem.py
|
||||
+++ b/tests/test_filesystem.py
|
||||
@@ -64,3 +64,5 @@ class Test_is_sticky_dir(unittest.TestCase):
|
||||
|
||||
assert not is_sticky_dir(self.temp_dir / 'dir')
|
||||
|
||||
+ def tearDown(self):
|
||||
+ self.temp_dir.clean_up()
|
||||
diff --git a/tests/test_trash_put_slow.py b/tests/test_trash_put_slow.py
|
||||
index e85f699..078c371 100644
|
||||
--- a/tests/test_trash_put_slow.py
|
||||
+++ b/tests/test_trash_put_slow.py
|
||||
@@ -29,6 +29,9 @@ class TrashPutFixture:
|
||||
self.stderr = result.stderr
|
||||
self.exit_code = result.exit_code
|
||||
|
||||
+ def __del__(self):
|
||||
+ self.temp_dir.clean_up()
|
||||
+
|
||||
|
||||
@pytest.mark.slow
|
||||
class TestDeletingExistingFile(unittest.TestCase):
|
||||
--
|
||||
2.33.1
|
||||
|
Binary file not shown.
@ -1,2 +1,3 @@
|
||||
DIST ksh-2020.0.0.tar.gz 2022880 BLAKE2B cb952c4febe88a3ccf8fd48f511a30a73bfc812ebf0b7a5fe799470b29ee13ca61004fd34e367d836940a88214da2aa05b7cb96f173a1b8d57c8e644c8c3a2a6 SHA512 7d6da3af341a62718d691ddc52e10bdf3b7290d74f1cd01610093c587af47b6d6d04b74b210eb31f93a3559855a5bc5155f9b188d2f8bb4444042c26bfaf1792
|
||||
DIST ksh-v1.0.0-beta.1.tar.gz 2376823 BLAKE2B 0c985bd17bd0a6301205cffa703536c99322b99953e86b8e8266616f70c7d8cab01801f55c5ba2964628cef8c05878f4e721be39987c418b35859952d3a07719 SHA512 968d7c1aef38f0a29f3a32d0aba7bd5138b70d96486443d5b13c4830907aa7344fb7599ca153a55116758413640ba84ec9e6be19a6f0941814f2515a3961b312
|
||||
DIST ksh-v1.0.0-beta.2.tar.gz 2238224 BLAKE2B b4eb8e116d0dd8fda498fb8d2805613a73291be628ce87ebc1c47c9bc8c49b236b285accaf35b4c9e411df23b99c6a949b672edeea1f1f317fc85a2b4db48779 SHA512 c2cd5a4b442bcff1dd2c1c054ee79c4cb131dce28d811dcd3476164d6cb7e88e6b317a094b16f227564a1266708ef0cfeca2af0929c00a19497cf1b67c647cf2
|
||||
|
@ -0,0 +1,71 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="The Original ATT Korn Shell"
|
||||
HOMEPAGE="http://www.kornshell.com/"
|
||||
|
||||
MY_PV=$(ver_rs 3 - 4 .)
|
||||
SRC_URI="https://github.com/ksh93/${PN}/archive/v${MY_PV}/ksh-v${MY_PV}.tar.gz"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# disable register for debugging
|
||||
sed -i 1i"#define register" src/lib/libast/include/ast.h || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local extraflags=(
|
||||
"-Wno-unknown-pragmas"
|
||||
"-Wno-missing-braces"
|
||||
"-Wno-unused-result"
|
||||
"-Wno-return-type"
|
||||
"-Wno-int-to-pointer-cast"
|
||||
"-Wno-parentheses"
|
||||
"-Wno-unused"
|
||||
"-Wno-unused-but-set-variable"
|
||||
"-Wno-cpp"
|
||||
"-Wno-maybe-uninitialized"
|
||||
"-Wno-lto-type-mismatch"
|
||||
"-P"
|
||||
)
|
||||
append-cflags $(test-flags-CC ${extraflags[@]})
|
||||
filter-flags '-fdiagnostics-color=always' # https://github.com/ksh93/ksh/issues/379
|
||||
export CCFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
|
||||
tc-export AR CC LD NM
|
||||
|
||||
sh bin/package make SHELL="${BROOT}"/bin/sh || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# test tries to catch IO error
|
||||
addwrite /proc/self/mem
|
||||
|
||||
# arith.sh uses A for tests
|
||||
unset A
|
||||
|
||||
sh bin/shtests --compile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myhost="$(sh bin/package host)"
|
||||
cd "arch/${myhost}" || die
|
||||
|
||||
into /
|
||||
dobin bin/ksh
|
||||
dosym ksh /bin/rksh
|
||||
|
||||
newman man/man1/sh.1 ksh.1
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit gnome.org meson-multilib python-any-r1
|
||||
|
||||
DESCRIPTION="C++ interface for glib2"
|
||||
HOMEPAGE="https://www.gtkmm.org"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="2.68"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc debug test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.69.1:2[${MULTILIB_USEDEP}]
|
||||
dev-libs/libsigc++:3[doc?,${MULTILIB_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-doc/doxygen[dot]
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# giomm_tls_client requires FEATURES=-network-sandbox and glib-networking rdep
|
||||
sed -i -e '/giomm_tls_client/d' tests/meson.build || die
|
||||
|
||||
if ! use test; then
|
||||
sed -i -e "/^subdir('tests')/d" meson.build || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Dwarnings=min
|
||||
-Dbuild-deprecated-api=true
|
||||
$(meson_native_use_bool doc build-documentation)
|
||||
$(meson_use debug debug-refcounting)
|
||||
-Dbuild-examples=false
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST gtkmm-2.24.5.tar.xz 12022024 BLAKE2B 6b2bca9fe6ad81cd956e1f3cc3140bc503b78386cf3931c8eeac08c8b2a08c73450bdbb703d1febaee67cdf834093ff5e89790f866357190822613a68a596ad3 SHA512 c50e52830977c37181439f4b82a30ac8bead0cf9022d2bec8225f8dc33e08414f863bf67056e1938fae8f888c09a5a6d757acc011fa9331a78caa6bb626dd51e
|
||||
DIST gtkmm-3.24.5.tar.xz 13540488 BLAKE2B b55c55e4bb56bc835be9c09dae59ee103fb0ae80ee99bb54c36c366686f4f1a0309435e91c2e323d7ebfabf7922b76ac85de6a1132c53ab708ba17be661d834b SHA512 8cc5aed26cc631123a5b38bc19643cf9e900beb38681b29ead9049f6b8f930f0b8ace317b8290279ab89cad85075dcb66863174082f77a2b67e4d8bd3c29de49
|
||||
DIST gtkmm-4.2.0.tar.xz 13850496 BLAKE2B 0e39824085fde11ebe3ecd65e3fbdb1778f307292a51b98955f4fa1418e7d1a349838126093b0a2b6d628b66d39bffffba76f66d2928999f777a4abb7961dc77 SHA512 c4532c427da0a37e4f8ba6f0e6d3975c3f84db461bc08263a4a81e6ee9e750112a2b4b0c5000ba22f8fd4fc5f833ef320f2c1f56580157f7ae41667ff15ccc72
|
||||
DIST gtkmm-4.4.0.tar.xz 13829052 BLAKE2B 1572f4fcbd15526b980a511b10eb0663964ea1fdc5b5f728399415bf053f913646c4c5fc7bf6f93feae9749693260e2d09fd04ed93a7150993f36ac17645d7be SHA512 d6f20213e9ea7a13e2b9822f220a5cdeaef9a9406abee813e0eebdb540839f25f4c19cc7669c24184bef471f5529a7897cd16ee679266148f3181dd2cfa39eb4
|
||||
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit gnome.org meson python-any-r1 virtualx
|
||||
|
||||
DESCRIPTION="C++ interface for GTK+"
|
||||
HOMEPAGE="https://www.gtkmm.org"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="4.0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
IUSE="doc test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-cpp/glibmm-2.68.0:2.68[doc?]
|
||||
>=gui-libs/gtk-4.4.0:4
|
||||
>=dev-cpp/cairomm-1.15.4:1.16[doc?]
|
||||
>=dev-cpp/pangomm-2.48.0:2.48[doc?]
|
||||
>=x11-libs/gdk-pixbuf-2.35.5:2
|
||||
>=media-libs/libepoxy-1.2
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
doc? ( dev-libs/libsigc++:3 )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-doc/doxygen[dot]
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt
|
||||
)
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dbuild-demos=false
|
||||
$(meson_use doc build-documentation)
|
||||
$(meson_use test build-tests)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
virtx meson_src_test
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST pangomm-2.42.2.tar.xz 656760 BLAKE2B 8fae779aa78b2337b83759adc7aadec1f61c08c54d892e3cdd05180e2ab032a61faa72c39281fab649bcd08591c5d7ace9ea65b25f76ce17d6f4d96f38900b6a SHA512 5e4826d64c0178527b4df73e901d2fdf5661d41777e189f5e2d4b26577e42689efaccf5a28502246c6b3926571ccd5876cb23d33267b44ace7ee164322c14667
|
||||
DIST pangomm-2.48.1.tar.xz 675452 BLAKE2B bb012fc5cb66d5cb98f522e3706fdd35bcc5692fcd942f86ee1e20116590ceca26874c5a58bd3f8fac4f154700dfb37ea060747a6c3069e67adf83ba551e7abc SHA512 c204a1cb7a404f055d62880a760716c5567a835ca495cc5e01589ed59fabb332490e529de716c3438cefbc4428c025d6d01c71e4412b2843e3ab3a3175ccc2f4
|
||||
DIST pangomm-2.50.0.tar.xz 753592 BLAKE2B 0db7d43fe2d23e4cfc2b083a4d832c7875c63a261c6b10c62898bf428351ea7d8d05136a46f9498cdb78c51a0223ca988cbc3481041b997dc5d6a9f16f02ec91 SHA512 844850db93b8c4dab19dd364e674ee3d61b2fcb8e020ab3d314f240065ee17aeceea21e9ddc438a7d09d56410e3f82147a57425f76bb01e26d82872934269477
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit gnome.org meson-multilib python-any-r1
|
||||
|
||||
DESCRIPTION="C++ interface for pango"
|
||||
HOMEPAGE="https://www.gtkmm.org"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="2.48"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="
|
||||
>=dev-cpp/cairomm-1.16.0:1.16[doc?,${MULTILIB_USEDEP}]
|
||||
>=dev-cpp/glibmm-2.68.0:2.68[doc?,${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libsigc++-3:3[doc?,${MULTILIB_USEDEP}]
|
||||
>=x11-libs/pango-1.49.4[${MULTILIB_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
app-doc/doxygen[dot]
|
||||
dev-lang/perl
|
||||
dev-libs/libxslt
|
||||
)
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_native_use_bool doc build-documentation)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,12 +1,9 @@
|
||||
DIST apache-tomcat-10.0.12-src.tar.gz 6066701 BLAKE2B 24acb9e10de923c9d6443c956cd6e6c5b5463f4f6af72d89445c7d635731449afc9b7050c95af3cbd3653168c073840f02472dd01bde65c1bcbdfcba41814117 SHA512 753d36edb5ce873e346856305d6a7f40d762ae8fb9ecd20406ed9ff400e9e1261f66d4549fc98f20a05b01136ff4beaacb462147e84a306858e2acc7fcd98d5b
|
||||
DIST apache-tomcat-10.0.13-src.tar.gz 6070494 BLAKE2B f588dc6fac49b07dcdd70958ed477cc9e5e4f5c76f56d41e4baf654b8b7e4be80432b3a4510fdb030855940d3e93045c0f54adde277bec2fe1152b43a96c6f85 SHA512 91993c9236af381cc7ae6f96126d0fba30c2d082ad88b816b151fb847373d93d527de5784dd1e2295adb6cfbb5fd591e8a9cab0c1b1ef96ba54b8b3ec0f91e9e
|
||||
DIST apache-tomcat-10.0.14-src.tar.gz 6074341 BLAKE2B e6607773aebb5b5279720cbcf667e9f82d752833a323dd611d411bcb48d6b0f42a98b9120d2bf29bb53e563f7f421194e92a41c89dadff76db2f6aaa171af64b SHA512 13614a410ecb7d5d1e4e6cc0e5dab9fe21809a8a70b3f42d5b0f75a2006d098857395858cdfacbe84349f73c1ce7eecca59c1bdeac809f434df8ae3f4cff46c1
|
||||
DIST apache-tomcat-4.1.40-src.tar.gz 3709719 BLAKE2B f7ca82052c1148a5c384fcbc3871beeddccdb4cfed05ba176581ebb50f52ba867bed8dbc500e97b7348a3a87b9693fb73eb81209df4f31e8c1ced7e30a6af30b SHA512 c455fa3da9da8fcbf1d54ae5dce808f8a4520ccafd627a6b2d1b003c37e8395d8b2a55d5471bf6c196549d082715862b3b8958aef88613293a07fc0160aa5c6e
|
||||
DIST apache-tomcat-5.5.36-src.tar.gz 3743113 BLAKE2B dbfcfd123a23b0ceb9f1fdd936e42324ea8b10cf327a1d0abf1703006535859c7122690a08b5ec27b86b526cc7709a7199b4f35f123538ff11f23f3b489358f3 SHA512 845636b5b992fbbb7d657d192afbab1e6a924bfd0c71b025cf22776eb4527d92d63f9b3f33475d4349a0df4cebd984ba3776eedd7482b820abdea909e90a97b7
|
||||
DIST apache-tomcat-6.0.53-src.tar.gz 3522914 BLAKE2B 054b097c16861abaa8bdbeba713b49bc1dfcff573bb3f4bd0ff5807c33a2a0fb991af618f6e11e5b3ce3fa55c589fc6569342cab5d5a00349c79bc7061d81e40 SHA512 915a0a18f5c2883625c9441eed6465973eff4f6bf41e08e925c7edaea89ef8f6ee9476d3e06fa38228d4bcb4decaf53e3a7bdb7ec7e899e6250db3e12a9f5f2c
|
||||
DIST apache-tomcat-7.0.109-src.tar.gz 5314401 BLAKE2B 56583caea6879bf8ca5cc02a886de3d7af413032f88d367653e709dc1c8f590e78620c788317bbff4b6e65dd3e242cc26863164ac8e7c87334a22636f3ed0703 SHA512 ecf9c0bee0e3e1aa24f299fe633705c5a2f6aa264d9e4968cfc96aa5d0a425c2b0ff07765a8b6c67221766733bdfaed6e6c6377a8d0870d889e7063ce90a46ce
|
||||
DIST apache-tomcat-8.5.72-src.tar.gz 5954383 BLAKE2B ddf342e3bb604ffd5d70e9b822a110654434aac0da0bd28e8649a0ce312706c202f48077ee18f43398d91bc000ea5287d87e0fd2bda9d2c8493e1b6b012945fc SHA512 69c27076d193a874416c83a1dcb80f71af78cb201b0990795d389f0a389e0537749b62256408c6249031abd2e62f268c8b451328284dbbff50a457937cfa6f6d
|
||||
DIST apache-tomcat-8.5.73-src.tar.gz 5973026 BLAKE2B d3d275b7462a3bd2ce9ce03869e09e42ec0da064eb764cf8168b8d003431d075952f15c083b5486e006629ec1f9dade154b0fceb20f2584168b36599c3c5485b SHA512 6190d78e2dd5d478131443807e464821a337c5c6c24ee91953fece377ad1c758339ce1588a7a5e90443ababac239b45e4aaa0422d68cba988d7c3da5fe95d1c6
|
||||
DIST apache-tomcat-9.0.54-src.tar.gz 6132613 BLAKE2B 5d37359ac9cac2a1387675a095aa0bea3e2bc74740d761a13fb2313aaca8ddb14f10922a8edc0932c9139c04b4df7f5735b067a71ac75ebbfe16ff6066311993 SHA512 e9d532a966aa8e7c2fcf28e4ecb0a618a8be4dacf8dc579a407483de86ef969383e3662fba07be629bfb8fbd85c041a5a2f1dd8875cc309b69a147b37c58974b
|
||||
DIST apache-tomcat-9.0.55-src.tar.gz 6136319 BLAKE2B ac49abc3198bcc2fed1310839d0c9a30b5aefb7c0a679c3bb69f7aadd82b32b7d523cc24bdd55ba9edc363e181fc93c323944ebd5801ed2b9d38e8d1b3486d4f SHA512 abfb1824387045fc6b5a5077179149e6c348c0deae933e8766c60cbf92466f5e8883ebe4cc260c23ece6d3975ab2e25f7cdde58f9dd83dfdd22cab33c967b28c
|
||||
DIST apache-tomcat-9.0.56-src.tar.gz 6138381 BLAKE2B 5e49287531fcb9bcb80ba124ed83fc3acbf3406b53424c3be5c2b3fb04da86785ba9e3ef89283c3ebb88bc8aadf8211328608edf068f0d7733c2f0ec0401d7ce SHA512 43332241fda149f9da107496cc6b812e38544c9043c567e3fe11ee01b5abfbd02b6a377c3f6090902048bd9dc67746cdc65d59f03bd0de68c05e0955bfe018c5
|
||||
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_A="apache-${PN}-${PV}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 5.0/JSP API 3.0/EL API 4.0 implementation"
|
||||
HOMEPAGE="https://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-10/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="5.0"
|
||||
KEYWORDS="amd64 ~arm arm64 x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
JAVA_TEST_SRC_DIR="src/test"
|
||||
|
||||
SERVLET_API_JAR="servlet-api.jar"
|
||||
SERVLET_API_SRC="src/main/servlet-api"
|
||||
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||
EL_API_JAR="el-api.jar"
|
||||
EL_API_SRC="src/main/el-api"
|
||||
EL_API_RESOURCES="src/resources/el-api"
|
||||
JSP_API_JAR="jsp-api.jar"
|
||||
JSP_API_SRC="src/main/jsp-api"
|
||||
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# The sources and also resources are mixed together so we first give it a structure to make it easier to compile and package
|
||||
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||
${JSP_API_SRC}/jakarta/servlet ${JSP_API_RESOURCES} \
|
||||
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||
|
||||
pushd java || die "Failed to cd to java dir"
|
||||
|
||||
cp --parents -R jakarta/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||
mv "${S}/${SERVLET_API_SRC}/jakarta/servlet/jsp" "${S}/${JSP_API_SRC}/jakarta/servlet" || die "Failed to copy jsp-api sources"
|
||||
cp --parents -R jakarta/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||
|
||||
popd
|
||||
|
||||
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||
mv $file ${target_dir} || die "Failed to move resource file"
|
||||
done
|
||||
|
||||
mv test/jakarta ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_A="apache-${P}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation"
|
||||
HOMEPAGE="https://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.1"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
JAVA_TEST_SRC_DIR="src/test"
|
||||
|
||||
SERVLET_API_JAR="servlet-api.jar"
|
||||
SERVLET_API_SRC="src/main/servlet-api"
|
||||
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||
EL_API_JAR="el-api.jar"
|
||||
EL_API_SRC="src/main/el-api"
|
||||
EL_API_RESOURCES="src/resources/el-api"
|
||||
JSP_API_JAR="jsp-api.jar"
|
||||
JSP_API_SRC="src/main/jsp-api"
|
||||
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# The sources and also resources are mixed together so we first give it a structure to make it easier to compila and package
|
||||
|
||||
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||
${JSP_API_SRC}/javax/servlet ${JSP_API_RESOURCES} \
|
||||
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||
|
||||
pushd java || die "Failed to cd to java dir"
|
||||
|
||||
cp --parents -R javax/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||
mv "${S}/${SERVLET_API_SRC}/javax/servlet/jsp" "${S}/${JSP_API_SRC}/javax/servlet" || die "Failed to copy jsp-api sources"
|
||||
cp --parents -R javax/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||
|
||||
popd
|
||||
|
||||
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||
mv $file ${target_dir} || die "Failed to move resource file"
|
||||
done
|
||||
|
||||
mv test/javax ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple
|
||||
|
||||
MY_A="apache-${PN}-${PV}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 4.0/JSP API 2.3/EL API 3.0 implementation"
|
||||
HOMEPAGE="https://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-9/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="4.0"
|
||||
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.8:*"
|
||||
RDEPEND=">=virtual/jre-1.8:*"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
JAVA_TEST_SRC_DIR="src/test"
|
||||
|
||||
SERVLET_API_JAR="servlet-api.jar"
|
||||
SERVLET_API_SRC="src/main/servlet-api"
|
||||
SERVLET_API_RESOURCES="src/resources/servlet-api"
|
||||
EL_API_JAR="el-api.jar"
|
||||
EL_API_SRC="src/main/el-api"
|
||||
EL_API_RESOURCES="src/resources/el-api"
|
||||
JSP_API_JAR="jsp-api.jar"
|
||||
JSP_API_SRC="src/main/jsp-api"
|
||||
JSP_API_RESOURCES="src/resources/jsp-api"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# The sources and also resources are mixed together so we first give it a structure to make it easier to compila and package
|
||||
|
||||
mkdir -p ${SERVLET_API_SRC} ${SERVLET_API_RESOURCES} \
|
||||
${EL_API_SRC} ${EL_API_RESOURCES} \
|
||||
${JSP_API_SRC}/javax/servlet ${JSP_API_RESOURCES} \
|
||||
${JAVA_TEST_SRC_DIR} || die "Failed to create source directory"
|
||||
|
||||
pushd java || die "Failed to cd to java dir"
|
||||
|
||||
cp --parents -R javax/servlet "${S}/${SERVLET_API_SRC}/" || die "Failed to copy servlet-api sources"
|
||||
mv "${S}/${SERVLET_API_SRC}/javax/servlet/jsp" "${S}/${JSP_API_SRC}/javax/servlet" || die "Failed to copy jsp-api sources"
|
||||
cp --parents -R javax/el "${S}/${EL_API_SRC}/" || die "Failed to copy el-api sources"
|
||||
|
||||
popd
|
||||
|
||||
for file in $(find src -type f | grep -vE "\.java$"); do
|
||||
target_dir=$(dirname $file | sed "s%src/main/%src/resources/%g")
|
||||
mkdir -p ${target_dir} || die "Failed to create resource directory"
|
||||
mv $file ${target_dir} || die "Failed to move resource file"
|
||||
done
|
||||
|
||||
mv test/javax ${JAVA_TEST_SRC_DIR} || die "Failed to copy test sources"
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${SERVLET_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${EL_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_compile
|
||||
rm -fr target || die "Failed to remove compiled files"
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_RESOURCE_DIRS="${JSP_API_RESOURCES}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA="servlet-api.jar:el-api.jar"
|
||||
java-pkg-simple_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
JAVA_SRC_DIR="${SERVLET_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${SERVLET_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${EL_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${EL_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
|
||||
JAVA_SRC_DIR="${JSP_API_SRC}"
|
||||
JAVA_JAR_FILENAME="${JSP_API_JAR}"
|
||||
java-pkg-simple_src_install
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST isa-l-2.30.0.tar.gz 649389 BLAKE2B 3364733d61ce16c91891b6da63d2b4fb2bc004761c91f2076a9a6441adaea24af43b6d32caec011c06206e3811e8c9639f8ceaac89fe97800144c7f78c80c350 SHA512 d3ecfb7326097534b06a74b584100336509525ae7cadc6112d0c27e3d8704f3810e18f583d3cc33fa266bfec96db023607622b22ddbf17988ec4bf1bb3b3b9b2
|
@ -0,0 +1,16 @@
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -142,11 +142,11 @@
|
||||
EXTRA_DIST += tools/yasm-filter.sh tools/nasm-filter.sh
|
||||
EXTRA_DIST += tools/yasm-cet-filter.sh tools/nasm-cet-filter.sh
|
||||
|
||||
-AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${D}
|
||||
+AM_CFLAGS = ${my_CFLAGS} ${INCLUDE} $(src_include) ${DIST_D}
|
||||
if CPU_AARCH64
|
||||
AM_CCASFLAGS = ${AM_CFLAGS}
|
||||
else
|
||||
-AM_CCASFLAGS = ${yasm_args} ${INCLUDE} ${src_include} ${DEFS} ${D}
|
||||
+AM_CCASFLAGS = ${yasm_args} ${INCLUDE} ${src_include} ${DEFS} ${DIST_D}
|
||||
endif
|
||||
|
||||
.asm.s:
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Intelligent Storage Acceleration Library"
|
||||
HOMEPAGE="https://github.com/intel/isa-l"
|
||||
SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~riscv"
|
||||
IUSE="cpu_flags_x86_avx512f"
|
||||
|
||||
# AVX512 support in yasm is still work in progress
|
||||
BDEPEND="amd64? (
|
||||
cpu_flags_x86_avx512f? ( >=dev-lang/nasm-2.13 )
|
||||
!cpu_flags_x86_avx512f? ( || (
|
||||
>=dev-lang/nasm-2.11.01
|
||||
>=dev-lang/yasm-1.2.0
|
||||
) )
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.30.0_makefile-no-D.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# isa-l does not support arbitrary assemblers on amd64 (and presumably x86),
|
||||
# it must be either nasm or yasm.
|
||||
use amd64 && unset AS
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>marecki@gentoo.org</email>
|
||||
<name>Marek Szuba</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
ISA-L is a collection of optimized low-level functions targeting storage applications. ISA-L includes:
|
||||
* Erasure codes - Fast block Reed-Solomon type erasure codes for any encode/decode matrix in GF(2^8).
|
||||
* CRC - Fast implementations of cyclic redundancy check. Six different polynomials supported.
|
||||
* iscsi32, ieee32, t10dif, ecma64, iso64, jones64.
|
||||
* Raid - calculate and operate on XOR and P+Q parity found in common RAID implementations.
|
||||
* Compression - Fast deflate-compatible data compression.
|
||||
* De-compression - Fast inflate-compatible data compression.
|
||||
* igzip - A command line application like gzip, accelerated with ISA-L.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">intel/isa-l</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +1,2 @@
|
||||
DIST libgusb-0.3.7.tar.xz 41844 BLAKE2B e0829430a7c4c9372ebc061ca8245ecd6b30f0922e4e37ae41f7f65055e7339b5a3a882c5526ea5e5663be3b7c1ad71fee7da5cffb501d63bd1cda2b618fd40d SHA512 65a35be62bff689621f418abf045f62f946c67488dd021d363ab252b9b3a2380898ec763b374f7da50901945eda666fdcae7cbfda7e143544175d7ade3ebc20d
|
||||
DIST libgusb-0.3.9.tar.xz 42708 BLAKE2B 6d73f3dba891dc7594c2df02198bb1632c8e7ccea2b60f5071c87ae1111b6e2cfed4f9b912f58f788f199c5ee075db156a4d7326aa9b5e6448581c2acd1af469 SHA512 4a4545d9e8ccadf2c66ef891936a30b2b73b7b471a9b0e945da21fd2b55efc3a8d12cfd5127dfcbca0ba24f565b25f8edd7a276b70a6615eb4b2201791745c6c
|
||||
|
@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit meson-multilib python-any-r1 vala
|
||||
|
||||
DESCRIPTION="GObject wrapper for libusb"
|
||||
HOMEPAGE="https://github.com/hughsie/libgusb"
|
||||
SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
IUSE="gtk-doc +introspection static-libs test +vala"
|
||||
REQUIRED_USE="vala? ( introspection )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.44.0:2[${MULTILIB_USEDEP}]
|
||||
virtual/libusb:1[udev,${MULTILIB_USEDEP}]
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
||||
sys-apps/hwdata
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
$(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
|
||||
gtk-doc? (
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
app-text/docbook-xml-dtd:4.4
|
||||
dev-util/gtk-doc
|
||||
)
|
||||
vala? ( $(vala_depend) )
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
python_check_deps() {
|
||||
has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
default
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Ddefault_library=$(usex static-libs both shared)
|
||||
$(meson_use test tests)
|
||||
$(meson_native_use_bool vala vapi)
|
||||
-Dusb_ids="${EPREFIX}"/usr/share/hwdata/usb.ids
|
||||
$(meson_native_use_bool gtk-doc docs)
|
||||
$(meson_native_use_bool introspection)
|
||||
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST fido2-0.9.1.tar.gz 206395 BLAKE2B 9a9b5d0dd808de896c91aa605540a1968aab7ae543336521d4a206f27bcf836c57e88aa6cdd0bacf71db8d16a0f94c2f9c16b16ca415363fd0b5e145a448ec18 SHA512 cde8c247fe0875129a890866ab76d40b2bd6feee86ff1ccb4b9ec5e6dc037e569fc8d969b51a456b5e66c6f7c67e18d14c3917375d5de85bbe7da5af3254f797
|
||||
DIST fido2-0.9.3.tar.gz 217894 BLAKE2B ccc3a9b59045216037664b5bf4b969a79b86b300f67fc4253b563acbbee98912ea076996772f17b88141d2a36a933b4926de96f05c53e204d0bb4eaaa2daad6b SHA512 f105c347784cdfab88ab08852227d24f4bca623145f7f76bd066dadab6ada1eae751934fd4dc7436a5c5fb3a0ed2fc4d5c59bb2a93888d470028f0713ca7e09e
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python based FIDO 2.0 library"
|
||||
HOMEPAGE="https://github.com/Yubico/python-fido2"
|
||||
SRC_URI="https://github.com/Yubico/python-fido2/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD-2 MIT MPL-2.0"
|
||||
SLOT="0/0.9" # Bumped every time a backwards-incompatible version is released
|
||||
KEYWORDS="amd64 ~riscv x86"
|
||||
IUSE="examples"
|
||||
RESTRICT="test" # Tests require <dev-python/mock-4
|
||||
|
||||
RDEPEND="
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/pyscard[${PYTHON_USEDEP}]
|
||||
examples? (
|
||||
dev-python/flask[${PYTHON_USEDEP}]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
# Disable tests, <dev-python/mock-4 doesn't exist
|
||||
# DEPEND="${DEPEND}
|
||||
# test? (
|
||||
# ${RDEPEND}
|
||||
# <dev-python/mock-4[${PYTHON_USEDEP}]
|
||||
# >=dev-python/pyfakefs-3.4[${PYTHON_USEDEP}]
|
||||
# )
|
||||
# "
|
||||
#
|
||||
# When tests are available again, remember to add a custom
|
||||
# test phase that runs 'python -m unittest discover -v'
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc -r "${S}"/examples/.
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST notebook-6.4.5.tar.gz 14339237 BLAKE2B 932e9c90804e6f759a9cd03c45e5093b26d1477908570726ae4782fec6c1127559f129ba8b9d1b4b4ff8e5bcb7fb32fea4cfafbc4c64b55859dbf6ed08960828 SHA512 8e0f6db6f232b7234e65ac41105cbc81b4d2d38d9f8cbd629ca3722b2fc876d8bd64beb7417e0bd99e3ae0c047be8328f4a0a433c2282defa5f026b20953608f
|
||||
DIST notebook-6.4.6.tar.gz 14342345 BLAKE2B cc9d5968d05d9f75f60f02adfb5ef35f39e4a5de027356af73c6dfb1f3aebc271e5b3bc639eb8605748abd30d43bfaab662d41b3b764c91cc545c2d1848881f4 SHA512 92b10bdc041bc0f3af1b42ad219abda37402e0fa4ea16ddcfd2ffc450cc7f49ce1d770cb477160c3fa58c387f85d22ca3f4e4c6507a5cbf7a92bc5268baf661e
|
||||
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="Jupyter Interactive Notebook"
|
||||
HOMEPAGE="https://jupyter.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 hppa ~ia64 ppc ~ppc64 ~riscv ~s390 ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/mathjax-2.4
|
||||
dev-python/argon2-cffi[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/terminado-0.8.3[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-6.0[${PYTHON_USEDEP}]
|
||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
||||
>=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jupyter_core-4.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyzmq-17[${PYTHON_USEDEP}]
|
||||
>=dev-python/jupyter_client-5.3.4[${PYTHON_USEDEP}]
|
||||
dev-python/nbformat[${PYTHON_USEDEP}]
|
||||
>=dev-python/nbconvert-4.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/ipykernel[${PYTHON_USEDEP}]
|
||||
dev-python/send2trash[${PYTHON_USEDEP}]
|
||||
dev-python/prometheus_client[${PYTHON_USEDEP}]"
|
||||
|
||||
# sphinx 2+ seems to have a problem with its github plugin. temporarily adding
|
||||
# a version constraint.
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/requests-unixsocket[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}"-5.7.0-no-mathjax.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests --install pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# disable bundled mathjax
|
||||
sed -i 's/^.*MathJax.*$//' bower.json || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local deselect=(
|
||||
# trash doesn't seem to work for us
|
||||
notebook/services/contents/tests/test_contents_api.py::APITest::test_checkpoints_follow_file
|
||||
notebook/services/contents/tests/test_contents_api.py::APITest::test_delete
|
||||
notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_checkpoints_follow_file
|
||||
notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete
|
||||
notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_dirs
|
||||
notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_non_empty_dir
|
||||
notebook/services/contents/tests/test_manager.py::TestContentsManager::test_delete
|
||||
notebook/services/contents/tests/test_manager.py::TestContentsManagerNoAtomic::test_delete
|
||||
# TODO
|
||||
notebook/services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections
|
||||
notebook/services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections
|
||||
notebook/services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling
|
||||
)
|
||||
|
||||
# selenium tests require geckodriver
|
||||
epytest --ignore notebook/tests/selenium ${deselect[@]/#/--deselect }
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
ln -sf \
|
||||
"${EPREFIX}/usr/share/mathjax" \
|
||||
"${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# remove old mathjax folder if present
|
||||
rm -rf "${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST pyopencl-2021.2.6.tar.gz 450194 BLAKE2B be9d0bf653f77d33a4337deab9189a5a9031ff50526444283c6fb9f8625d0451cb211ff703b5eb86c18beebb973f8f7a7cc93da3efc6bb4e95cd533d633fde93 SHA512 b7bea4903a34104c538545c611554c1651ae7a94ee56d8c7129a88a9e547911fac085617b4238fac33534c9b981bcfdb9fabd716456a86fa428cfd42d9cb128c
|
||||
DIST pyopencl-2021.2.9.tar.gz 451109 BLAKE2B a4b9b1ee1bd4f42742aa2de3acb3f5fe54771905f15dc002327a6669bf460c825c81729403df0b98537deb91ca9d0fa8dd30dd8d7e718fcc23a256b6a797484b SHA512 557bdf20df97090557f441f47b31d5b2878341fe670a4e64a563d8a464fdd5915ece651103ed17396248ab174b1895f4841e5b7ac803b8bf6286266e2c4366d6
|
||||
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python wrapper for OpenCL"
|
||||
HOMEPAGE="https://mathema.tician.de/software/pyopencl/
|
||||
https://pypi.org/project/pyopencl/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="examples opengl"
|
||||
|
||||
COMMON="dev-python/numpy[${PYTHON_USEDEP}]
|
||||
>=virtual/opencl-2"
|
||||
RDEPEND="${COMMON}
|
||||
>=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytools-2021.2.7[${PYTHON_USEDEP}]"
|
||||
DEPEND="${COMMON}
|
||||
dev-python/pybind11[${PYTHON_USEDEP}]
|
||||
opengl? ( media-libs/libglvnd )"
|
||||
|
||||
# The test suite fails if there are no OpenCL platforms available, and
|
||||
# even if there is one (which requires the presence of both an OpenCL
|
||||
# runtime *and* hardware supported by it - simply emerging any runtime
|
||||
# is not enough) the vast majority of tests end up skipped because by
|
||||
# default the portage user hasn't got sufficient privileges to talk
|
||||
# to the GPU.
|
||||
RESTRICT="test"
|
||||
|
||||
python_configure_all() {
|
||||
local myconf=()
|
||||
if use opengl; then
|
||||
myconf+=(--cl-enable-gl)
|
||||
fi
|
||||
|
||||
"${EPYTHON}" configure.py \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
From c71bbac357f0ac722e1bcb2edfa925b68cca23c9 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
||||
Date: Thu, 12 Nov 2020 16:55:56 +0100
|
||||
Subject: [PATCH] reader: make PY_SSIZE_T_CLEAN
|
||||
|
||||
---
|
||||
systemd/_reader.c | 15 +++++++++++++--
|
||||
1 file changed, 13 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/systemd/_reader.c b/systemd/_reader.c
|
||||
index 8de7f6a..3b6a4d0 100644
|
||||
--- a/systemd/_reader.c
|
||||
+++ b/systemd/_reader.c
|
||||
@@ -18,7 +18,12 @@
|
||||
along with python-systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
+#define PY_SSIZE_T_CLEAN
|
||||
+#pragma GCC diagnostic push
|
||||
+#pragma GCC diagnostic ignored "-Wredundant-decls"
|
||||
#include <Python.h>
|
||||
+#pragma GCC diagnostic pop
|
||||
+
|
||||
#include <structmember.h>
|
||||
#include <datetime.h>
|
||||
#include <time.h>
|
||||
@@ -710,11 +715,17 @@ PyDoc_STRVAR(Reader_add_match__doc__,
|
||||
"Match is a string of the form \"FIELD=value\".");
|
||||
static PyObject* Reader_add_match(Reader *self, PyObject *args, PyObject *keywds) {
|
||||
char *match;
|
||||
- int match_len, r;
|
||||
+ Py_ssize_t match_len;
|
||||
+ int r;
|
||||
if (!PyArg_ParseTuple(args, "s#:add_match", &match, &match_len))
|
||||
return NULL;
|
||||
|
||||
- r = sd_journal_add_match(self->j, match, match_len);
|
||||
+ if (match_len > INT_MAX) {
|
||||
+ set_error(-ENOBUFS, NULL, NULL);
|
||||
+ return NULL;
|
||||
+ }
|
||||
+
|
||||
+ r = sd_journal_add_match(self->j, match, (int) match_len);
|
||||
if (set_error(r, NULL, "Invalid match") < 0)
|
||||
return NULL;
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 2015-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
DISTUTILS_USE_SETUPTOOLS="no"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python module for native access to the systemd facilities"
|
||||
HOMEPAGE="https://github.com/systemd/python-systemd"
|
||||
SRC_URI="https://github.com/systemd/python-systemd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
DEPEND="sys-apps/systemd:0="
|
||||
RDEPEND="${DEPEND}
|
||||
!sys-apps/systemd[python(-)]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-py3.10.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_compile() {
|
||||
# https://bugs.gentoo.org/690316
|
||||
distutils-r1_python_compile -j1
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pushd "${BUILD_DIR}/lib" > /dev/null || die
|
||||
epytest -o cache_dir="${T}"
|
||||
popd > /dev/null || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST snowballstemmer-2.1.0.tar.gz 85674 BLAKE2B 3301e3f799fa61a679b88efc87b3d019231ae7172172f136eb7e1bdfb40d054489aaa29ca1b8b2a04d8260a82ef7f4a8da75a9784f69942aac57ccfcc4983e5b SHA512 e0550d3389074d7686d26397ff2289519cd8b26cf7090fe781d6407d1c2b95f912347d70cd25e02d6016c454ad6c5cf6d648e54ef87161328ac57bc1ceaf7826
|
||||
DIST snowballstemmer-2.2.0.tar.gz 86699 BLAKE2B b106fac1587143c9e88f54cc982c573b227f9e2d0125d36391a95050b41e9c97e47c7c8dff890ebfcf4bdf7c97559908d3bd380c6659b0d1fef4bed111fbae4b SHA512 f1dee83e06fc79ffb250892fe62c75e3393b9af07fbf7cde413e6391870aa74934302771239dea5c9bc89806684f95059b00c9ffbcf7340375c9dd8f1216cd37
|
||||
|
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Stemmer algorithms generated from Snowball algorithms"
|
||||
HOMEPAGE="https://snowballstem.org/
|
||||
https://github.com/snowballstem/snowball
|
||||
https://pypi.org/project/snowballstemmer/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos ~x64-solaris"
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Extension to link to external Doxygen API documentation"
|
||||
HOMEPAGE="https://pypi.org/project/sphinxcontrib-doxylink/ https://pythonhosted.org/sphinxcontrib-doxylink/ https://github.com/sphinx-contrib/doxylink"
|
||||
SRC_URI="https://github.com/sphinx-contrib/doxylink/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/doxylink-${PV}"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/sphinx-1.0[${PYTHON_USEDEP}]
|
||||
dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
app-doc/doxygen
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/testfixtures[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx doc
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
find "${ED}" -name '*.pth' -delete || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST spyder-terminal-1.1.0.tar.gz 10097302 BLAKE2B efcdec7614534b8d3b5cf8b5aad0d6bd2d8358fdc0b0095be02dbac1c68fef63d1a325dc1005be18b4a679861e256aacad20f847c4c12eec603e605705b0982b SHA512 05d1850b01a6c3ae8607450f965dbebf4589026f318dbe599fe3c74d585fc093f4fc6cdd35ed26a9a052c11353d511d0602933fddc52f4cc94983d8a7cd75f32
|
||||
DIST spyder-terminal-1.2.0.tar.gz 9482212 BLAKE2B 1da89ebae0ca8514bb745ca1a629795239857ef78c5cbfd79f814eb4b18ab34ad633b4a4eeaff6fa7489eece76b53c23d1a9ba33e102b5eab63a6f919886f2af SHA512 a5f0262ec1f9558fbc5cb51d47c34e44ea254cee46dac9a60bf7b6497f6bc3e105096a3323218c462dbff23acc345a404656b6df80d9360102ea80da7188307f
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Run system terminals inside Spyder"
|
||||
HOMEPAGE="https://github.com/spyder-ide/spyder-terminal"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT BSD Apache-2.0 BSD-2 ISC CC-BY-4.0 ZLIB WTFPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/coloredlogs[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
>=dev-python/spyder-5.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/terminado-0.10.0[${PYTHON_USEDEP}]
|
||||
www-servers/tornado[${PYTHON_USEDEP}]
|
||||
"
|
@ -1,2 +1 @@
|
||||
DIST stripe-2.62.0.tar.gz 233447 BLAKE2B c4cdddcb5397ed45606600183dccba9395e098f236dd592e0a0326832642c79d112bdcb52ade736a0a1137e29b7368157e76a8a84895efa9a2debf2a60ffe886 SHA512 5c2f49e0639082a75ee97b8ad6e50926bb1d894b395f5363b2300825e497527518b682c3380ef458b4dc9ab832dc71afae5f85ff4ecc2e188aab4ad29df4a60f
|
||||
DIST stripe-2.63.0.tar.gz 233693 BLAKE2B 18de5e0a74b241759a7c84203e675159958a77e3ee225ebdfd5ed2d2d633a3b91f5165ac14a164b09e4df81176aafe1727685c4156b5055dc4ea2a44b0af9134 SHA512 fedef25d95e1fe3f9b4fdab37fb4ababc3c0243218da590076942491884b284b07e6bb15e9c85a6871dabffc34c260ec9d9fb80634ab0a368cf312c2324c2bdd
|
||||
|
@ -1,62 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Stripe python bindings"
|
||||
HOMEPAGE="https://github.com/stripe/stripe-python"
|
||||
SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/requests-2.20[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-util/stripe-mock-0.114.0
|
||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||
net-misc/curl
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
DOCS=(LONG_DESCRIPTION.rst CHANGELOG.md README.md)
|
||||
|
||||
src_test() {
|
||||
local stripe_mock_port=12111
|
||||
local stripe_mock_max_port=12121
|
||||
local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log"
|
||||
# Try to start stripe-mock until we find a free port
|
||||
while [[ "${stripe_mock_port}" -le "${stripe_mock_max_port}" ]]; do
|
||||
ebegin "Trying to start stripe-mock on port ${stripe_mock_port}"
|
||||
stripe-mock --http-port ${stripe_mock_port} &> "${stripe_mock_logfile}" &
|
||||
local stripe_mock_pid=$!
|
||||
sleep 2
|
||||
# Did stripe-mock start?
|
||||
curl --fail -u "sk_test_123:" \
|
||||
http://127.0.0.1:${stripe_mock_port}/v1/customers &> /dev/null
|
||||
eend $? "Port ${stripe_mock_port} unavailable"
|
||||
if [[ $? -eq 0 ]]; then
|
||||
einfo "stripe-mock running on port ${stripe_mock_port}"
|
||||
break
|
||||
fi
|
||||
(( stripe_mock_port++ ))
|
||||
done
|
||||
if [[ "${stripe_mock_port}" -gt "${stripe_mock_max_port}" ]]; then
|
||||
eerror "Unable to start stripe-mock for tests"
|
||||
die "Please see the logfile located at: ${stripe_mock_logfile}"
|
||||
fi
|
||||
|
||||
local -x STRIPE_MOCK_PORT=${stripe_mock_port}
|
||||
distutils-r1_src_test
|
||||
|
||||
# Tear down stripe-mock
|
||||
kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock"
|
||||
}
|
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