Removed redundant versions
This commit is contained in:
		| @@ -1,6 +1,3 @@ | ||||
| DIST ollama-bin-0.5.11.amd64.tgz 1533674176 BLAKE2B 0fcd8a831b2d2d92e33b00eba364c9e131d50dd7fef43d08dcff3f354ae4cf221c6fab73c923a482a417b5c8a884fb93c7b373b52fcdb6ceb2a7db24fee1eb69 SHA512 6439848bbca340cb9a2ecd2058524563284a3c3e6764463b3d411cc0d93644ecfa3d8ecff3e6c80f74593e2f9a8304446d4ca8fd202e9d29987fb0ed45815b3e | ||||
| DIST ollama-bin-0.5.11.arm64.tgz 1533703313 BLAKE2B 7a9da2b59a6b32d59a11ec84b2dc187f57b3b5d3463bfc91bff44cfc3b17f3235ca496dec62e38a3d12b4e224b50e443d583f76bda35efcfee063cfe523dda8b SHA512 119099c5c1ddef3130cc9790424cf794661a83ac7f85fab969d68aa6b0c368ae68a1849d063532f652530a5f5fe06b275bc9c0f26a318af4188a042734802d07 | ||||
| DIST ollama-bin-0.5.11.rocm.tgz 1342095462 BLAKE2B 9528f8c75f3f04ad820a9c43a66c2cc4556509ca632f177f0ebee98b4a369c769c4570da53d0a95dd92836c05b3e0a8d21a8142cf7bebc8d44302e4d9994c13a SHA512 ea5ff04d29e6425ec302561ec33ac1f1275953c8c10ee2cabbb9821e84195312a3f19dc765bf6ca36b96f0720fa68fb9f043a91d7acb4e3ceca153fa8880106a | ||||
| DIST ollama-bin-0.5.7.amd64.tgz 1682401421 BLAKE2B 3c1c1e883428d5ace28d848d59cc9dcadf3a1872cf2c000ba966e61ec89f0533ad097d319684a332d91a7fb8fe7f5aeba8eb75d68243ac10550809f0cf1c08ba SHA512 7e653a6cdc97792f509fe8fb9e3c995c8359150c706759b1e9f19b438647c5bafd1c771673809303fff7c572a3cdbf26100edea3058dd780ad3490c9c9239905 | ||||
| DIST ollama-bin-0.5.7.arm64.tgz 1540370409 BLAKE2B e42fd66d2caadea2e4b1de062ef9d4c76d42b92df6975a66c4c0a169578fbbc2ecc8cd2aca4fccc06711b98b7c62e99989f6c1367aed1a781a4cf7c6edef57bc SHA512 db2b729e880e6355a98513bcaeb58051f0f959966ed29c9f3966ed8390e96f43781416b92b82b821fccd1a4720fa488019c7f1c765a4df37075374a6623cc310 | ||||
| DIST ollama-bin-0.5.7.rocm.tgz 1214464647 BLAKE2B 94368dc0c0dbdcdaff0a5c340bf0794be371de7f4f3b59d11f1152459d3eda14e0703923135c603e8fd8016664ef7e01d2a414dd08eed931e9716eeb3f2f06f8 SHA512 90994d1863c3867eb4f86a777008d98a2f20d751d19e86577847ee3119a3588a1356fde1e2964a52ccebce15b48f9339ea935f477aac2c564375ec521c3f7fd7 | ||||
|   | ||||
| @@ -1,69 +0,0 @@ | ||||
| EAPI=8 | ||||
| DESCRIPTION='Get up and running with large language models.' | ||||
| HOMEPAGE='https://ollama.com https://github.com/ollama/ollama' | ||||
| SRC_MAIN_URI='https://github.com/ollama/ollama/releases/download/v' | ||||
| SRC_URI=" | ||||
| 	amd64? ( ${SRC_MAIN_URI}${PV}/ollama-linux-amd64.tgz      -> $P.amd64.tgz ) | ||||
| 	arm64? ( ${SRC_MAIN_URI}${PV}/ollama-linux-arm64.tgz      -> $P.arm64.tgz ) | ||||
| 	rocm?  ( ${SRC_MAIN_URI}${PV}/ollama-linux-amd64-rocm.tgz -> $P.rocm.tgz  ) | ||||
| " | ||||
| S="${WORKDIR}" | ||||
| LICENSE='MIT' | ||||
| SLOT='0' | ||||
| KEYWORDS='~amd64 ~arm64' | ||||
| IUSE='+systemd rocm' | ||||
| DEPEND='acct-user/ollama acct-group/ollama' | ||||
| RDEPEND='acct-user/ollama acct-group/ollama' | ||||
| RESTRICT='strip' | ||||
|  | ||||
| src_unpack() { | ||||
| 	if use rocm; then | ||||
| 		tar -xzvf "${DISTDIR}/${P}.rocm.tgz" -C "${WORKDIR}" || die "Can't extract rocm tgz" | ||||
| 	elif use amd64; then | ||||
| 		tar -xzvf "${DISTDIR}/${P}.amd64.tgz" -C "${WORKDIR}" || die 'Failed to extract binary' | ||||
| 	elif use arm64; then | ||||
| 		tar -xzvf "${DISTDIR}/${P}.arm64.tgz" -C "${WORKDIR}" || die 'Failed to extract binary' | ||||
| 	fi | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	exeinto /opt/Ollama/bin | ||||
| 	doexe "${WORKDIR}/bin/ollama" || die 'Failed to install binary' | ||||
| 	insinto /opt/Ollama/lib/ | ||||
| 	doins -r "${WORKDIR}/lib/ollama/" || die 'Failed to install libraries' | ||||
| 	dosym -r /opt/Ollama/bin/ollama /opt/bin/ollama | ||||
| } | ||||
|  | ||||
| src_prepare() { | ||||
| 	eapply_user | ||||
| } | ||||
|  | ||||
| pkg_postinst() { | ||||
| 	einfo 'Quick guide:' | ||||
| 	einfo 'ollama serve' | ||||
| 	einfo 'ollama run llama3:70b' | ||||
| 	einfo 'See available models at https://ollama.com/library' | ||||
| 	if use systemd; then | ||||
| 		einfo 'Creating systemd service file...' | ||||
| 		{ | ||||
| 			echo '[Unit]' | ||||
| 			echo 'Description=Ollama Service' | ||||
| 			echo 'After=network-online.target' | ||||
| 			echo '' | ||||
| 			echo '[Service]' | ||||
| 			echo 'ExecStart=/opt/Ollama/bin/ollama serve' | ||||
| 			echo 'User=ollama' | ||||
| 			echo 'Group=ollama' | ||||
| 			echo 'Restart=always' | ||||
| 			echo 'RestartSec=3' | ||||
| 			echo '' | ||||
| 			echo '[Install]' | ||||
| 			echo 'WantedBy=default.target' | ||||
| 		} > /usr/lib/systemd/system/ollama.service | ||||
| 		einfo 'Service file created at /etc/systemd/system/ollama.service' | ||||
| 		einfo 'Making service user-startable...' | ||||
| 		mkdir -p /etc/systemd/user | ||||
| 		ln -s /usr/lib/systemd/system/ollama.service /etc/systemd/user/ollama.service | ||||
| 		ln -s /usr/lib/systemd/system/ollama.service /etc/systemd/system/ollama.service | ||||
| 	fi | ||||
| } | ||||
| @@ -1,6 +1,2 @@ | ||||
| DIST notesnook-bin-3.0.24.amd64.AppImage 107747451 BLAKE2B ee91ba2bd78de574de7b1748d56850f8a8549807c4efc592985030deec5f56f80090aa223740d469f8a69189c22af4f07b6717387d8cb2596663d07694194240 SHA512 ddae02cc4b6d21e238d83626c45ec177c2c96a3cb27a882250db40b7b22fc35cd9a522786f167712106b8e1b916b2b019d63d7ab58af45fe84e8145937efe33d | ||||
| DIST notesnook-bin-3.0.24.arm64.AppImage 108015837 BLAKE2B 6edbcf3184cee8c2f174112e3a360db8bd5cd30debacce35401dfa017ed80325cd0aaa467d0b2d539aeb878aa7639fa0d69dfd6783f5c50c9e4a644e7b18acd9 SHA512 10dc89bb69d4f5bdeb8acbabbd0f454703da1f6df4374843365da4bae5a9830a480c296bcf0bc9c3ff68cb1154617d4a23b540f2b2ee416f90f43e37d52ade03 | ||||
| DIST notesnook-bin-3.0.25.amd64.AppImage 107751479 BLAKE2B 2d9a7dcbf5b24e3e03976a9d71e57a6c83037b36392f5832a1af79a7ca8a49798c6e0003b8b3a1ee5b7af09c5a068b801733568f3397885099b4194866b7d2eb SHA512 205203683a241f5b7a847e499fe1ee6e987cc952df58bfcdebe6ba8d03c11598fa499b1427eb052bc16ca412123b384c22c8438e73c80dac612e525776828e08 | ||||
| DIST notesnook-bin-3.0.25.arm64.AppImage 108019848 BLAKE2B 501ad27c37bfcc55972f48c6ffa4811ba518621c4211b2dcea743d1c94370e9efef974493bb07e5e1c72cd81d195a6c78a239d0564ad5d0342372e191f8d0b9c SHA512 6e3898cda4ff0b82574eca79c75c2ad09ef75810cabf125c386428501948823d50bad29819e3354627e7395235ebd8a97762fa94f8a726bb808ec78cecdc41f1 | ||||
| DIST notesnook-bin-3.0.26.amd64.AppImage 107812808 BLAKE2B 22acc037fe3cd63c1d00d3bc67da3609b90173a3065c02c5a4e8b4c746e5c697e31d162898856b4ec1ad96e86f91e3037f073238ea9489ad4f31c93be6477fef SHA512 c901d92abc9d9b8ee123e39b000a62f51e744511d4c8ce53d9160d21c0fd7fb30ca66a69a38782b84d070a6dd1e2c42bc1e911168e9c5cea62aabe345c5c1a7b | ||||
| DIST notesnook-bin-3.0.26.arm64.AppImage 108081211 BLAKE2B 146708819346224a81ec9040148ade3fd5661e00c21adb6b9fb3d506f73d09ce81bc15f69acb92a1e2621bd9c0a90bc286323667bf1a255e0b86559ba958fccf SHA512 b460b4de347bcb5d114d2051f66f95f34dc35dfd8a1334ecfb92cfd992843cde005f5753e66a1f922311ba4e2f05f0c60199278595a56e2cd737966331122461 | ||||
|   | ||||
| @@ -1,31 +0,0 @@ | ||||
| # Copyright 1999-2025 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| DESCRIPTION='End-to-end encrypted note taking alternative to Evernote' | ||||
| HOMEPAGE='https://notesnook.com/ https://github.com/streetwriters/notesnook' | ||||
| RELEASE_URI=https://github.com/streetwriters/notesnook/releases | ||||
| SRC_URI=" | ||||
| 	amd64? ( ${RELEASE_URI}/download/v${PV}/notesnook_linux_x86_64.AppImage -> ${P}.amd64.AppImage ) | ||||
| 	arm64? ( ${RELEASE_URI}/download/v${PV}/notesnook_linux_arm64.AppImage -> ${P}.arm64.AppImage ) | ||||
| " | ||||
| S="${WORKDIR}" | ||||
| LICENSE='GPL-3' | ||||
| SLOT='0' | ||||
| KEYWORDS='~amd64 ~arm64' | ||||
| RESTRICT='strip' | ||||
| RDEPEND='sys-fs/fuse:0' | ||||
| QA_PREBUILT='*' | ||||
|  | ||||
| inherit desktop | ||||
|  | ||||
| src_install() { | ||||
| 	if use amd64; then | ||||
| 		newbin "${DISTDIR}/${P}.amd64.AppImage" notesnook | ||||
| 	elif use arm64; then | ||||
| 		newbin "${DISTDIR}/${P}.arm64.AppImage" notesnook | ||||
| 	fi | ||||
| 	doicon "${FILESDIR}"/notesnook.png | ||||
| 	make_desktop_entry "${PN}" Notesnook notesnook 'Office;' | ||||
| } | ||||
| @@ -1,31 +0,0 @@ | ||||
| # Copyright 1999-2025 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| DESCRIPTION='End-to-end encrypted note taking alternative to Evernote' | ||||
| HOMEPAGE='https://notesnook.com/ https://github.com/streetwriters/notesnook' | ||||
| RELEASE_URI=https://github.com/streetwriters/notesnook/releases | ||||
| SRC_URI=" | ||||
| 	amd64? ( ${RELEASE_URI}/download/v${PV}/notesnook_linux_x86_64.AppImage -> ${P}.amd64.AppImage ) | ||||
| 	arm64? ( ${RELEASE_URI}/download/v${PV}/notesnook_linux_arm64.AppImage -> ${P}.arm64.AppImage ) | ||||
| " | ||||
| S="${WORKDIR}" | ||||
| LICENSE='GPL-3' | ||||
| SLOT='0' | ||||
| KEYWORDS='~amd64 ~arm64' | ||||
| RESTRICT='strip' | ||||
| RDEPEND='sys-fs/fuse:0' | ||||
| QA_PREBUILT='*' | ||||
|  | ||||
| inherit desktop | ||||
|  | ||||
| src_install() { | ||||
| 	if use amd64; then | ||||
| 		newbin "${DISTDIR}/${P}.amd64.AppImage" notesnook | ||||
| 	elif use arm64; then | ||||
| 		newbin "${DISTDIR}/${P}.arm64.AppImage" notesnook | ||||
| 	fi | ||||
| 	doicon "${FILESDIR}"/notesnook.png | ||||
| 	make_desktop_entry "${PN}" Notesnook notesnook 'Office;' | ||||
| } | ||||
| @@ -1,6 +1,2 @@ | ||||
| DIST calibre-7.24.0.tar.xz 42601188 BLAKE2B fd581dcea283e46ddacaa9fccfc4fda45cb96479c915b5216d6103c28a25d217366c128863715dd867daef151164edb4dcabfcd2442b96ba3feeb4827c00c7be SHA512 50e0b25bf0607eeb07d41f7038f48599a30d4a9cb44483fd2eb56c5c2d3bb7d1e70dc2644501519e26104ac984d3998f05394bd3470ef2765c6e524019974f2e | ||||
| DIST calibre-7.24.0.tar.xz.sig 566 BLAKE2B db9e15e3f4692f5786acce6becf26be00bb52e51acf676323fa15b9a3126441e5a2f83ec6e5d8264daf95be193948d48794b45d737acac8429d59daded92af80 SHA512 5d7ac771fef76d7eba89e05b78b3acc852dfa10603e7d1093d991f30d7ac7c498d65baebb4cdd7f60288829eded231d6a211adb9423aaa3b639141bd3ca7ca44 | ||||
| DIST calibre-7.25.0.tar.xz 43475456 BLAKE2B f1a6bab63188113db1af8003056978f94902bbe3c95aee6cb51d4f3d6167b113e3d789f6af6819c4a5ed502fc344661887410553a74f3973a581d27e05a9cbcf SHA512 7e275b34fc5396842db09b11a2bf8aa70075bad97d4c4bb134d23ca7cbbe29c569fb33aeb5613a9bcf43e4a7787d268bb2a7e00d0303a46d6562c0e288bc7880 | ||||
| DIST calibre-7.25.0.tar.xz.sig 566 BLAKE2B ce9b6c758c7efa349b7b9cb578e5d59d269e76fe4dd070d2153f8182ede555418f6e0bc567ae1fc84759b6f4c88b7462bd725af8ef87dea05a2bd6941dd18383 SHA512 081cbd4212d77a3de3656ecda71747feeb696a1cc0edda98e52e5f7f649901b2afd02d14cdc107d10a9f3744411c9b7cc886717164a4b4ddcd2fd25902b68657 | ||||
| DIST calibre-7.26.0.tar.xz 43633708 BLAKE2B d936ad859f5a64a11b26218a1a72d55e9b7fce82b6ae261376dc55009ac07852d2f8eea771bb401fcc660a9eade9fa89ce2b2dbde1bb9f7e2e0757f84a80aa9f SHA512 e477a2dcdd1c52074bd5c0df5d79b2b609d76bf9e1cb5e3d32f79a89d6e0e2798cb980e2cf74e126fb2856273a14b0e2e92b39ffca74461569233c0a87968bfe | ||||
| DIST calibre-7.26.0.tar.xz.sig 566 BLAKE2B 9ceb7db5cea446a173add6bb9abfcc186fe3b377bebfa7c42b5ed50336bf46d534e034312a1e38fa33bae685635e5533abb0667f3f536cfe30fd74e6c5023367 SHA512 06584ac459e5c5b03ad3e115ecbff867dc4f6666d80a37bd365b815ea9c1d6190bd17ed9787a2dbf79a1dd0a1c6676dd9e98753edde90f3866a3d5edbb26f930 | ||||
|   | ||||
| @@ -1,254 +0,0 @@ | ||||
| # Copyright 1999-2025 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| PYTHON_COMPAT=( python3_{10..13} ) | ||||
| PYTHON_REQ_USE='sqlite,ssl' | ||||
|  | ||||
| inherit edo toolchain-funcs python-single-r1 qmake-utils verify-sig xdg | ||||
|  | ||||
| DESCRIPTION='Ebook management application' | ||||
| HOMEPAGE='https://calibre-ebook.com/' | ||||
| SRC_URI=" | ||||
| 	https://download.calibre-ebook.com/${PV}/${P}.tar.xz | ||||
| 	verify-sig? ( https://calibre-ebook.com/signatures/${P}.tar.xz.sig ) | ||||
| " | ||||
| VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kovidgoyal.gpg | ||||
|  | ||||
| LICENSE=' | ||||
| 	GPL-3+ | ||||
| 	GPL-3 | ||||
| 	GPL-2+ | ||||
| 	GPL-2 | ||||
| 	GPL-1+ | ||||
| 	LGPL-3+ | ||||
| 	LGPL-2.1+ | ||||
| 	LGPL-2.1 | ||||
| 	BSD | ||||
| 	MIT | ||||
| 	Old-MIT | ||||
| 	Apache-2.0 | ||||
| 	public-domain | ||||
| 	|| ( Artistic GPL-1+ ) | ||||
| 	CC-BY-3.0 | ||||
| 	OFL-1.1 | ||||
| 	PSF-2 | ||||
| ' | ||||
| SLOT='0' | ||||
| KEYWORDS='amd64' | ||||
| IUSE='+font-subsetting ios speech +system-mathjax test +udisks unrar' | ||||
|  | ||||
| RESTRICT='!test? ( test )' | ||||
|  | ||||
| REQUIRED_USE="${PYTHON_REQUIRED_USE}" | ||||
|  | ||||
| # Qt slotted dependencies are used because the libheadless.so plugin links to | ||||
| # QT_*_PRIVATE_ABI. It only uses core/gui/dbus. | ||||
| COMMON_DEPEND="${PYTHON_DEPS} | ||||
| 	app-i18n/uchardet | ||||
| 	>=app-text/hunspell-1.7:= | ||||
| 	>=app-text/podofo-0.10.0:= | ||||
| 	app-text/poppler[utils] | ||||
| 	dev-libs/hyphen:= | ||||
| 	>=dev-libs/icu-57.1:= | ||||
| 	dev-libs/openssl:= | ||||
| 	dev-libs/snowball-stemmer:= | ||||
| 	$(python_gen_cond_dep ' | ||||
| 		>=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}] | ||||
| 		dev-python/beautifulsoup4[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}] | ||||
| 		dev-python/dnspython[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/html2text-2019.8.11[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/html5-parser-0.4.9[${PYTHON_USEDEP}] | ||||
| 		dev-python/jeepney[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/lxml-3.8.0[${PYTHON_USEDEP}] | ||||
| 		dev-python/lxml-html-clean[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/markdown-3.0.1[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/msgpack-0.6.2[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/pillow-3.2.0[jpeg,truetype,webp,zlib,${PYTHON_USEDEP}] | ||||
| 		>=dev-python/psutil-4.3.0[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/pychm-0.8.6[${PYTHON_USEDEP}] | ||||
| 		dev-python/pykakasi[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/pygments-2.3.1[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] | ||||
| 		dev-python/pyqt6[gui,network,opengl,printsupport,quick,svg,widgets,${PYTHON_USEDEP}] | ||||
| 		dev-python/pyqt6-webengine[widgets,${PYTHON_USEDEP}] | ||||
| 		dev-python/regex[${PYTHON_USEDEP}] | ||||
| 		dev-python/xxhash[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/zeroconf-0.75.0[${PYTHON_USEDEP}] | ||||
| 	') | ||||
| 	dev-qt/qtbase:6=[gui,widgets] | ||||
| 	dev-qt/qtimageformats:6 | ||||
| 	dev-util/desktop-file-utils | ||||
| 	dev-util/gtk-update-icon-cache | ||||
| 	media-fonts/liberation-fonts | ||||
| 	media-libs/fontconfig:= | ||||
| 	>=media-libs/freetype-2:= | ||||
| 	>=media-libs/libmtp-1.1.11:= | ||||
| 	>=media-gfx/optipng-0.7.6 | ||||
| 	>=media-video/ffmpeg-6:= | ||||
| 	virtual/libusb:1= | ||||
| 	x11-misc/shared-mime-info | ||||
| 	>=x11-misc/xdg-utils-1.0.2-r2 | ||||
| 	font-subsetting? ( $(python_gen_cond_dep 'dev-python/fonttools[${PYTHON_USEDEP}]') ) | ||||
| 	ios? ( | ||||
| 		>=app-pda/usbmuxd-1.0.8 | ||||
| 		>=app-pda/libimobiledevice-1.2.0 | ||||
| 	) | ||||
| 	speech? ( | ||||
| 		$(python_gen_cond_dep 'app-accessibility/speech-dispatcher[python,${PYTHON_USEDEP}]') | ||||
| 		dev-python/pyqt6[multimedia,speech] | ||||
| 	) | ||||
| 	system-mathjax? ( >=dev-libs/mathjax-3:= ) | ||||
| 	udisks? ( virtual/libudev ) | ||||
| 	unrar? ( dev-python/unrardll ) | ||||
| " | ||||
| RDEPEND="${COMMON_DEPEND} | ||||
| 	udisks? ( sys-fs/udisks:2 )" | ||||
| DEPEND="${COMMON_DEPEND} | ||||
| 	test? ( $(python_gen_cond_dep '>=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]') ) | ||||
| " | ||||
| BDEPEND="$(python_gen_cond_dep ' | ||||
| 		>=dev-python/pyqt-builder-1.10.3[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/sip-5[${PYTHON_USEDEP}] | ||||
| 	') | ||||
| 	virtual/pkgconfig | ||||
| 	system-mathjax? ( dev-lang/rapydscript-ng ) | ||||
| 	verify-sig? ( sec-keys/openpgp-keys-kovidgoyal ) | ||||
| " | ||||
|  | ||||
| PATCHES=( | ||||
| 	# Skip calling a binary (JxrDecApp) from libjxr which is used for tests | ||||
| 	# We don't (yet?) package libjxr and it seems to be dead upstream | ||||
| 	# (last commit in 2017) | ||||
| 	"${FILESDIR}/${PN}-7.0.0-jxr-test.patch" | ||||
| ) | ||||
|  | ||||
| src_prepare() { | ||||
| 	default | ||||
|  | ||||
| 	# Warning: | ||||
| 	# | ||||
| 	# While it might be rather tempting to add yet another sed here, | ||||
| 	# please don't. There have been several bugs in Gentoo's packaging | ||||
| 	# of calibre from seds-which-become-stale. Please consider | ||||
| 	# creating a patch instead, but in any case, run the test suite | ||||
| 	# and ensure it passes. | ||||
| 	# | ||||
| 	# If in doubt about a problem, checking Fedora's packaging is recommended. | ||||
|  | ||||
| 	# Disable unnecessary privilege dropping for bug #287067. | ||||
| 	sed -e 's:if os.geteuid() == 0:if False and os.geteuid() == 0:' \ | ||||
| 		-i setup/install.py || die 'sed failed to patch install.py' | ||||
|  | ||||
| 	# This is only ever used at build time. It contains a small embedded copy | ||||
| 	# of the rapydscript-ng compiler usable inside of qtwebengine, if you don't | ||||
| 	# have rapydscript-ng (a nodejs package) itself installed. Its only purpose | ||||
| 	# is to build some resources that come bundled in dist tarballs already... | ||||
| 	# and which we may also need to regenerate e.g. to use system-mathjax. | ||||
| 	# | ||||
| 	# However, running qtwebengine violates the portage sandbox (among other | ||||
| 	# things, it tries to create directories in /usr! amazing) so this is a | ||||
| 	# wash anyway. The only real solution here is to package rapydscript-ng. | ||||
| 	# | ||||
| 	# We do not need it at build time, and *no one* needs it at install time. | ||||
| 	# Delete the cruft. | ||||
| 	rm -r resources/rapydscript/ || die | ||||
| } | ||||
|  | ||||
| src_compile() { | ||||
| 	# TODO: get qmake called by setup.py to respect CC and CXX too | ||||
| 	tc-export CC CXX | ||||
|  | ||||
| 	# bug 821871 | ||||
| 	local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)" | ||||
| 	export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}" | ||||
| 	export QMAKE="$(qt6_get_bindir)/qmake" | ||||
|  | ||||
| 	edo ${EPYTHON} setup.py build | ||||
| 	edo ${EPYTHON} setup.py gui | ||||
|  | ||||
| 	# A few different resources are bundled in the distfile by default, because | ||||
| 	# not all systems necessarily have them. We un-vendor them, using the | ||||
| 	# upstream integrated approach if possible. See setup/revendor.py and | ||||
| 	# consider migrating other resources to this if they do not use it, in | ||||
| 	# *preference* over manual rm'ing. | ||||
| 	edo ${EPYTHON} setup.py liberation_fonts \ | ||||
| 		--path-to-liberation_fonts "${EPREFIX}"/usr/share/fonts/liberation-fonts \ | ||||
| 		--system-liberation_fonts | ||||
| 	if use system-mathjax; then | ||||
| 		edo ${EPYTHON} setup.py mathjax --path-to-mathjax "${EPREFIX}"/usr/share/mathjax --system-mathjax | ||||
| 		edo ${EPYTHON} setup.py rapydscript | ||||
| 	fi | ||||
| } | ||||
|  | ||||
| src_test() { | ||||
| 	# Skipped tests: | ||||
| 	local _test_excludes=( | ||||
| 		# unpackaged Python dependency: py7zr | ||||
| 		7z | ||||
| 		# unpackaged Python dependency: pyzstd | ||||
| 		test_zstd | ||||
| 		# unpackaged TTS backend (optional at runtime): https://github.com/rhasspy/piper | ||||
| 		piper | ||||
| 		# tests if a completely unused module is bundled | ||||
| 		pycryptodome | ||||
|  | ||||
| 		$(usev !speech speech_dispatcher) | ||||
| 		$(usev !unrar test_unrar) | ||||
|  | ||||
| 		# undocumented reasons | ||||
| 		test_mem_leaks | ||||
| 		test_searching | ||||
| 	) | ||||
|  | ||||
| 	# Some of these tests weren't practical to split out into distinct tests, so | ||||
| 	# have a different control mechanism | ||||
| 	use speech || export SKIP_SPEECH_TESTS=1 | ||||
|  | ||||
| 	edo ${PYTHON} setup.py test "${_test_excludes[@]/#/--exclude-test-name=}" | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	# Bug #352625 - Some LANGUAGE values can trigger the following ValueError: | ||||
| 	#	File '/usr/lib/python2.6/locale.py', line 486, in getdefaultlocale | ||||
| 	#		return _parse_localename(localename) | ||||
| 	#	File '/usr/lib/python2.6/locale.py', line 418, in _parse_localename | ||||
| 	#		raise ValueError, 'unknown locale: %s' % localename | ||||
| 	#ValueError: unknown locale: 46 | ||||
| 	export -n LANG LANGUAGE ${!LC_*} | ||||
| 	export LC_ALL=C.utf8 # bug #709682 | ||||
|  | ||||
| 	# Bug #295672 - Avoid sandbox violation in ~/.config by forcing | ||||
| 	# variables to point to our fake temporary $HOME. | ||||
| 	export HOME="${T}/fake_homedir" | ||||
| 	export CALIBRE_CONFIG_DIRECTORY="${HOME}/.config/calibre" | ||||
| 	mkdir -p "${CALIBRE_CONFIG_DIRECTORY}" || die | ||||
|  | ||||
| 	addpredict /dev/dri #665310 | ||||
|  | ||||
| 	# If this directory doesn't exist, zsh completion won't install | ||||
| 	dodir /usr/share/zsh/site-functions | ||||
|  | ||||
| 	edo "${PYTHON}" setup.py install \ | ||||
| 		--staging-root="${ED}/usr" \ | ||||
| 		--prefix="${EPREFIX}/usr" \ | ||||
| 		--libdir="${EPREFIX}/usr/$(get_libdir)" \ | ||||
| 		--staging-libdir="${ED}/usr/$(get_libdir)" \ | ||||
| 		--system-plugins-location="${EPREFIX}/usr/share/calibre/system-plugins" | ||||
|  | ||||
| 	cp -r man-pages/ "${ED}"/usr/share/man || die | ||||
|  | ||||
| 	find "${ED}"/usr/share -type d -empty -delete || die | ||||
|  | ||||
| 	python_fix_shebang "${ED}/usr/bin" | ||||
|  | ||||
| 	python_optimize "${ED}"/usr/"$(get_libdir)"/calibre "${D}/$(python_get_sitedir)" | ||||
|  | ||||
| 	newinitd "${FILESDIR}"/calibre-server-3.init calibre-server | ||||
| 	newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server | ||||
| } | ||||
| @@ -1,256 +0,0 @@ | ||||
| # Copyright 1999-2025 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| PYTHON_COMPAT=( python3_{10..13} ) | ||||
| PYTHON_REQ_USE='sqlite,ssl' | ||||
|  | ||||
| inherit edo toolchain-funcs python-single-r1 qmake-utils verify-sig xdg | ||||
|  | ||||
| DESCRIPTION='Ebook management application' | ||||
| HOMEPAGE='https://calibre-ebook.com/' | ||||
| SRC_URI=" | ||||
| 	https://download.calibre-ebook.com/${PV}/${P}.tar.xz | ||||
| 	verify-sig? ( https://calibre-ebook.com/signatures/${P}.tar.xz.sig ) | ||||
| " | ||||
| VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kovidgoyal.gpg | ||||
|  | ||||
| LICENSE=' | ||||
| 	GPL-3+ | ||||
| 	GPL-3 | ||||
| 	GPL-2+ | ||||
| 	GPL-2 | ||||
| 	GPL-1+ | ||||
| 	LGPL-3+ | ||||
| 	LGPL-2.1+ | ||||
| 	LGPL-2.1 | ||||
| 	BSD | ||||
| 	MIT | ||||
| 	Old-MIT | ||||
| 	Apache-2.0 | ||||
| 	public-domain | ||||
| 	|| ( Artistic GPL-1+ ) | ||||
| 	CC-BY-3.0 | ||||
| 	OFL-1.1 | ||||
| 	PSF-2 | ||||
| ' | ||||
| SLOT='0' | ||||
| KEYWORDS='~amd64' | ||||
| IUSE='+font-subsetting ios speech +system-mathjax test +udisks unrar' | ||||
|  | ||||
| RESTRICT='!test? ( test )' | ||||
|  | ||||
| REQUIRED_USE="${PYTHON_REQUIRED_USE}" | ||||
|  | ||||
| # Qt slotted dependencies are used because the libheadless.so plugin links to | ||||
| # QT_*_PRIVATE_ABI. It only uses core/gui/dbus. | ||||
| COMMON_DEPEND="${PYTHON_DEPS} | ||||
| 	app-i18n/uchardet | ||||
| 	>=app-text/hunspell-1.7:= | ||||
| 	>=app-text/podofo-0.10.0:= | ||||
| 	app-text/poppler[utils] | ||||
| 	dev-libs/hyphen:= | ||||
| 	>=dev-libs/icu-57.1:= | ||||
| 	dev-libs/openssl:= | ||||
| 	dev-libs/snowball-stemmer:= | ||||
| 	$(python_gen_cond_dep ' | ||||
| 		>=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}] | ||||
| 		dev-python/beautifulsoup4[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}] | ||||
| 		dev-python/dnspython[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/html2text-2019.8.11[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/html5-parser-0.4.9[${PYTHON_USEDEP}] | ||||
| 		dev-python/jeepney[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/lxml-3.8.0[${PYTHON_USEDEP}] | ||||
| 		dev-python/lxml-html-clean[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/markdown-3.0.1[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/msgpack-0.6.2[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/pillow-3.2.0[jpeg,truetype,webp,zlib,${PYTHON_USEDEP}] | ||||
| 		>=dev-python/psutil-4.3.0[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/pychm-0.8.6[${PYTHON_USEDEP}] | ||||
| 		dev-python/pykakasi[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/pygments-2.3.1[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] | ||||
| 		dev-python/pyqt6[gui,network,opengl,printsupport,quick,svg,widgets,${PYTHON_USEDEP}] | ||||
| 		dev-python/pyqt6-webengine[widgets,${PYTHON_USEDEP}] | ||||
| 		dev-python/regex[${PYTHON_USEDEP}] | ||||
| 		dev-python/xxhash[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/zeroconf-0.75.0[${PYTHON_USEDEP}] | ||||
| 	') | ||||
| 	dev-qt/qtbase:6=[gui,widgets] | ||||
| 	dev-qt/qtimageformats:6 | ||||
| 	dev-util/desktop-file-utils | ||||
| 	dev-util/gtk-update-icon-cache | ||||
| 	media-fonts/liberation-fonts | ||||
| 	media-libs/fontconfig:= | ||||
| 	>=media-libs/freetype-2:= | ||||
| 	>=media-libs/libmtp-1.1.11:= | ||||
| 	>=media-gfx/optipng-0.7.6 | ||||
| 	>=media-video/ffmpeg-6:= | ||||
| 	virtual/libusb:1= | ||||
| 	x11-misc/shared-mime-info | ||||
| 	>=x11-misc/xdg-utils-1.0.2-r2 | ||||
| 	font-subsetting? ( $(python_gen_cond_dep 'dev-python/fonttools[${PYTHON_USEDEP}]') ) | ||||
| 	ios? ( | ||||
| 		>=app-pda/usbmuxd-1.0.8 | ||||
| 		>=app-pda/libimobiledevice-1.2.0 | ||||
| 	) | ||||
| 	speech? ( | ||||
| 		$(python_gen_cond_dep 'app-accessibility/speech-dispatcher[python,${PYTHON_USEDEP}]') | ||||
| 		dev-python/pyqt6[multimedia,speech] | ||||
| 	) | ||||
| 	system-mathjax? ( >=dev-libs/mathjax-3:= ) | ||||
| 	udisks? ( virtual/libudev ) | ||||
| 	unrar? ( dev-python/unrardll ) | ||||
| " | ||||
| RDEPEND="${COMMON_DEPEND} | ||||
| 	udisks? ( sys-fs/udisks:2 )" | ||||
| DEPEND="${COMMON_DEPEND} | ||||
| 	test? ( $(python_gen_cond_dep '>=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]') ) | ||||
| " | ||||
| BDEPEND="$(python_gen_cond_dep ' | ||||
| 		>=dev-python/pyqt-builder-1.10.3[${PYTHON_USEDEP}] | ||||
| 		>=dev-python/sip-5[${PYTHON_USEDEP}] | ||||
| 	') | ||||
| 	virtual/pkgconfig | ||||
| 	system-mathjax? ( dev-lang/rapydscript-ng ) | ||||
| 	verify-sig? ( sec-keys/openpgp-keys-kovidgoyal ) | ||||
| " | ||||
|  | ||||
| PATCHES=( | ||||
| 	# Skip calling a binary (JxrDecApp) from libjxr which is used for tests | ||||
| 	# We don't (yet?) package libjxr and it seems to be dead upstream | ||||
| 	# (last commit in 2017) | ||||
| 	"${FILESDIR}/${PN}-7.0.0-jxr-test.patch" | ||||
| ) | ||||
|  | ||||
| src_prepare() { | ||||
| 	default | ||||
|  | ||||
| 	# Warning: | ||||
| 	# | ||||
| 	# While it might be rather tempting to add yet another sed here, | ||||
| 	# please don't. There have been several bugs in Gentoo's packaging | ||||
| 	# of calibre from seds-which-become-stale. Please consider | ||||
| 	# creating a patch instead, but in any case, run the test suite | ||||
| 	# and ensure it passes. | ||||
| 	# | ||||
| 	# If in doubt about a problem, checking Fedora's packaging is recommended. | ||||
|  | ||||
| 	# Disable unnecessary privilege dropping for bug #287067. | ||||
| 	sed -e 's:if os.geteuid() == 0:if False and os.geteuid() == 0:' \ | ||||
| 		-i setup/install.py || die 'sed failed to patch install.py' | ||||
|  | ||||
| 	# This is only ever used at build time. It contains a small embedded copy | ||||
| 	# of the rapydscript-ng compiler usable inside of qtwebengine, if you don't | ||||
| 	# have rapydscript-ng (a nodejs package) itself installed. Its only purpose | ||||
| 	# is to build some resources that come bundled in dist tarballs already... | ||||
| 	# and which we may also need to regenerate e.g. to use system-mathjax. | ||||
| 	# | ||||
| 	# However, running qtwebengine violates the portage sandbox (among other | ||||
| 	# things, it tries to create directories in /usr! amazing) so this is a | ||||
| 	# wash anyway. The only real solution here is to package rapydscript-ng. | ||||
| 	# | ||||
| 	# We do not need it at build time, and *no one* needs it at install time. | ||||
| 	# Delete the cruft. | ||||
| 	rm -r resources/rapydscript/ || die | ||||
| } | ||||
|  | ||||
| src_compile() { | ||||
| 	# TODO: get qmake called by setup.py to respect CC and CXX too | ||||
| 	tc-export CC CXX | ||||
|  | ||||
| 	# bug 821871 | ||||
| 	local MY_LIBDIR | ||||
| 	MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)" | ||||
| 	export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}" | ||||
| 	QMAKE="$(qt6_get_bindir)/qmake" | ||||
| 	export QMAKE | ||||
|  | ||||
| 	edo "${EPYTHON}" setup.py build | ||||
| 	edo "${EPYTHON}" setup.py gui | ||||
|  | ||||
| 	# A few different resources are bundled in the distfile by default, because | ||||
| 	# not all systems necessarily have them. We un-vendor them, using the | ||||
| 	# upstream integrated approach if possible. See setup/revendor.py and | ||||
| 	# consider migrating other resources to this if they do not use it, in | ||||
| 	# *preference* over manual rm'ing. | ||||
| 	edo "${EPYTHON}" setup.py liberation_fonts \ | ||||
| 		--path-to-liberation_fonts "${EPREFIX}"/usr/share/fonts/liberation-fonts \ | ||||
| 		--system-liberation_fonts | ||||
| 	if use system-mathjax; then | ||||
| 		edo "${EPYTHON}" setup.py mathjax --path-to-mathjax "${EPREFIX}"/usr/share/mathjax --system-mathjax | ||||
| 		edo "${EPYTHON}" setup.py rapydscript | ||||
| 	fi | ||||
| } | ||||
|  | ||||
| src_test() { | ||||
| 	# Skipped tests: | ||||
| 	local _test_excludes=( | ||||
| 		# unpackaged Python dependency: py7zr | ||||
| 		7z | ||||
| 		# unpackaged Python dependency: pyzstd | ||||
| 		test_zstd | ||||
| 		# unpackaged TTS backend (optional at runtime): https://github.com/rhasspy/piper | ||||
| 		piper | ||||
| 		# tests if a completely unused module is bundled | ||||
| 		pycryptodome | ||||
|  | ||||
| 		$(usev !speech speech_dispatcher) | ||||
| 		$(usev !unrar test_unrar) | ||||
|  | ||||
| 		# undocumented reasons | ||||
| 		test_mem_leaks | ||||
| 		test_searching | ||||
| 	) | ||||
|  | ||||
| 	# Some of these tests weren't practical to split out into distinct tests, so | ||||
| 	# have a different control mechanism | ||||
| 	use speech || export SKIP_SPEECH_TESTS=1 | ||||
|  | ||||
| 	edo "${PYTHON}" setup.py test "${_test_excludes[@]/#/--exclude-test-name=}" | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	# Bug #352625 - Some LANGUAGE values can trigger the following ValueError: | ||||
| 	#	File '/usr/lib/python2.6/locale.py', line 486, in getdefaultlocale | ||||
| 	#		return _parse_localename(localename) | ||||
| 	#	File '/usr/lib/python2.6/locale.py', line 418, in _parse_localename | ||||
| 	#		raise ValueError, 'unknown locale: %s' % localename | ||||
| 	#ValueError: unknown locale: 46 | ||||
| 	export -n LANG LANGUAGE "${!LC_*}" | ||||
| 	export LC_ALL=C.utf8 # bug #709682 | ||||
|  | ||||
| 	# Bug #295672 - Avoid sandbox violation in ~/.config by forcing | ||||
| 	# variables to point to our fake temporary $HOME. | ||||
| 	export HOME="${T}/fake_homedir" | ||||
| 	export CALIBRE_CONFIG_DIRECTORY="${HOME}/.config/calibre" | ||||
| 	mkdir -p "${CALIBRE_CONFIG_DIRECTORY}" || die | ||||
|  | ||||
| 	addpredict /dev/dri #665310 | ||||
|  | ||||
| 	# If this directory doesn't exist, zsh completion won't install | ||||
| 	dodir /usr/share/zsh/site-functions | ||||
|  | ||||
| 	edo "${PYTHON}" setup.py install \ | ||||
| 		--staging-root="${ED}/usr" \ | ||||
| 		--prefix="${EPREFIX}/usr" \ | ||||
| 		--libdir="${EPREFIX}/usr/$(get_libdir)" \ | ||||
| 		--staging-libdir="${ED}/usr/$(get_libdir)" \ | ||||
| 		--system-plugins-location="${EPREFIX}/usr/share/calibre/system-plugins" | ||||
|  | ||||
| 	cp -r man-pages/ "${ED}"/usr/share/man || die | ||||
|  | ||||
| 	find "${ED}"/usr/share -type d -empty -delete || die | ||||
|  | ||||
| 	python_fix_shebang "${ED}/usr/bin" | ||||
|  | ||||
| 	python_optimize "${ED}"/usr/"$(get_libdir)"/calibre "${D}/$(python_get_sitedir)" | ||||
|  | ||||
| 	newinitd "${FILESDIR}"/calibre-server-3.init calibre-server | ||||
| 	newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server | ||||
| } | ||||
| @@ -1,2 +1 @@ | ||||
| DIST cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz 662367552 BLAKE2B 2f4b99825bf57b07580daf6bbf6ea3abbec94ab9942a645f3eafe67ee24e6b9a1acb1b9ae725345a5dbf7a0634c247907394727670b604fa6199bb40cee61f00 SHA512 8e69603af614e12439883d0a5bd4927abc66e03739151ecaa485d340ab02e426a4cce568a556be445223cee8a6a926a8ed821708e9e61e79db5817ddcd3066d5 | ||||
| DIST cudnn-linux-x86_64-9.7.1.26_cuda12-archive.tar.xz 969539424 BLAKE2B 5192911cfbb6386d97326aeb05f7102376c80ad3a293b1e4f525d4da35524fb0173ac48ce4d13aa2591181acd559c90852c1620c13a041f6935452483d6687dc SHA512 1f20b07d95d9d1d823bad7266460203b20f2c4ccd95be9856506580072c18437436e105eb07d6ca0de529186145e0ced168a6982eedfe8874bf0856edaa4b9a6 | ||||
|   | ||||
| @@ -1,28 +0,0 @@ | ||||
| # Copyright 1999-2024 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| inherit unpacker | ||||
|  | ||||
| CUDA_V='12' | ||||
|  | ||||
| DESCRIPTION='NVIDIA Accelerated Deep Learning on GPU library' | ||||
| HOMEPAGE='https://developer.nvidia.com/cudnn' | ||||
| SRC_URI="https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-${PV}_cuda${CUDA_V}-archive.tar.xz" | ||||
| S="${WORKDIR}/cudnn-linux-x86_64-${PV%%_*}_cuda${CUDA_V}-archive" | ||||
|  | ||||
| LICENSE='NVIDIA-cuDNN' | ||||
| SLOT="0/$(ver_cut 1)" | ||||
| KEYWORDS='-* ~amd64 ~amd64-linux' | ||||
| RESTRICT='mirror' | ||||
|  | ||||
| RDEPEND="=dev-util/nvidia-cuda-toolkit-${CUDA_V}*" | ||||
|  | ||||
| QA_PREBUILT='/opt/cuda/targets/x86_64-linux/lib/*' | ||||
|  | ||||
| src_install() { | ||||
| 	insinto /opt/cuda/targets/x86_64-linux | ||||
|  | ||||
| 	doins -r include lib | ||||
| } | ||||
| @@ -1,2 +1 @@ | ||||
| DIST libportal-0.9.0.tar.xz 107488 BLAKE2B 8ec0b10511b0431e8b518b8ffbf3fc5c2d73d4f19c678aacd62042dc9082045eb0d438f4f476f61648673a947bf3054562f6de21c9dff7e6a03d00f96748d97e SHA512 b0c7a7f4b3f50b8bf9d5403b484b81127b6344907b409e87197fbc643111e03ef20532ce2012e285c25dedb8698a214b2decdf9fc48256a82ebe617bb3d05d79 | ||||
| DIST libportal-0.9.1.tar.xz 108572 BLAKE2B 3574d141a42802a38b6e276848bff86a557b77e3ab1f269cf9ccf59f0706ee68271c90c2e81ff8593fd271c5edb6d51dab86ff18a9ff5147f00b74e18f3b8e7d SHA512 445f0c9295220668123b9b3503bb5e75edef3ea939d6f28b159c0ded2f017b35b35e8a6013f550ac6a1f8a5fb9f04c93ce5ced39694bd14731da19172649c895 | ||||
|   | ||||
| @@ -1,113 +0,0 @@ | ||||
| # Copyright 2022-2025 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| PYTHON_COMPAT=( python3_{10..13} ) | ||||
| inherit flag-o-matic meson python-any-r1 vala virtualx | ||||
|  | ||||
| DESCRIPTION='Flatpak portal library' | ||||
| HOMEPAGE='https://github.com/flatpak/libportal' | ||||
| SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz" | ||||
|  | ||||
| LICENSE='LGPL-3' | ||||
| SLOT='0/1-1-1-1' # soname of libportal{,-gtk3,-gtk4,-qt5}.so | ||||
| KEYWORDS='~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86' | ||||
| IUSE='gtk gtk-doc +introspection qt5 test +vala wayland X' | ||||
| RESTRICT='!test? ( test )' | ||||
| REQUIRED_USE=' | ||||
| 	gtk-doc? ( introspection ) | ||||
| 	vala? ( introspection ) | ||||
| ' | ||||
|  | ||||
| RDEPEND=' | ||||
| 	>=dev-libs/glib-2.58:2 | ||||
| 	introspection? ( dev-libs/gobject-introspection:= ) | ||||
| 	gtk? ( | ||||
| 		>=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?] | ||||
| 		>=gui-libs/gtk-4.12.5-r2:4[X?,wayland?] | ||||
| 	) | ||||
| 	qt5? ( | ||||
| 		dev-qt/qtcore:= | ||||
| 		dev-qt/qtgui:= | ||||
| 		dev-qt/qtx11extras:= | ||||
| 		dev-qt/qtwidgets:= | ||||
| 	) | ||||
| ' | ||||
| DEPEND="${RDEPEND} | ||||
| 	qt5? ( | ||||
| 		test? ( dev-qt/qttest:= ) | ||||
| 	) | ||||
| " | ||||
| BDEPEND=" | ||||
| 	dev-util/glib-utils | ||||
| 	virtual/pkgconfig | ||||
| 	gtk-doc? ( dev-util/gi-docgen ) | ||||
| 	qt5? ( | ||||
| 		test? ( dev-qt/linguist-tools ) | ||||
| 	) | ||||
| 	test? ( | ||||
| 		${PYTHON_DEPS} | ||||
| 		$(python_gen_any_dep ' | ||||
| 			dev-python/pytest[${PYTHON_USEDEP}] | ||||
| 			dev-python/dbus-python[${PYTHON_USEDEP}] | ||||
| 			dev-python/python-dbusmock[${PYTHON_USEDEP}] | ||||
| 		') | ||||
| 	) | ||||
| 	vala? ( $(vala_depend) ) | ||||
| " | ||||
|  | ||||
| python_check_deps() { | ||||
| 	python_has_version \ | ||||
| 		"dev-python/pytest[${PYTHON_USEDEP}]" \ | ||||
| 		"dev-python/dbus-python[${PYTHON_USEDEP}]" \ | ||||
| 		"dev-python/python-dbusmock[${PYTHON_USEDEP}]" | ||||
| } | ||||
|  | ||||
| pkg_setup() { | ||||
| 	if use test; then | ||||
| 		python-any-r1_pkg_setup | ||||
| 	fi | ||||
| } | ||||
|  | ||||
| src_prepare() { | ||||
| 	default | ||||
| 	vala_setup | ||||
| } | ||||
|  | ||||
| src_configure() { | ||||
| 	# defang automagic dependencies | ||||
| 	use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND | ||||
| 	use X || append-cflags -DGENTOO_GTK_HIDE_X11 | ||||
|  | ||||
| 	local emesonargs=( | ||||
| 		$(meson_feature gtk backend-gtk3) | ||||
| 		$(meson_feature gtk backend-gtk4) | ||||
| 		$(meson_feature qt5 backend-qt5) | ||||
| 		-Dportal-tests=false | ||||
| 		$(meson_use introspection) | ||||
| 		$(meson_use vala vapi) | ||||
| 		$(meson_use gtk-doc docs) | ||||
| 		$(meson_use test tests) | ||||
| 	) | ||||
| 	meson_src_configure | ||||
| } | ||||
|  | ||||
| src_test() { | ||||
| 	# Tests only exist for Qt5 | ||||
| 	if use qt5; then | ||||
| 		virtx meson_src_test | ||||
| 	else | ||||
| 		# run meson_src_test to notice if tests are added | ||||
| 		meson_src_test | ||||
| 	fi | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	meson_src_install | ||||
|  | ||||
| 	if use gtk-doc; then | ||||
| 		mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die | ||||
| 		mv "${ED}"/usr/share/doc/${PN}-1 "${ED}"/usr/share/gtk-doc/html/ || die | ||||
| 	fi | ||||
| } | ||||
| @@ -1,2 +1 @@ | ||||
| DIST cuda_12.6.3_560.35.05_linux.run 4446722669 BLAKE2B 9ff67a3fca58af6fcb259a5b114b3babd842290d0ba5d7761ea30d8c7b33d293f86d32f19c252d12bb49e0ff10da9bf62f3c34cc87f0589bab0e134575852bba SHA512 a93d9d812d3a3f5823622e2274d1d6dbe17a298b33463fdf9f6d211d38766eab76608f9d545e312b2be2b86b3c59fcd92c37c54b38b0e8206191563d00546d62 | ||||
| DIST cuda_12.8.0_570.86.10_linux.run 5412604598 BLAKE2B 21ea184fd428ea638934788847e023213c38c1079d489d04bbd1ca277d1c285d57a7ac9c02020cbd73970e703daeec9e806831cf54a427cff90fc036c4da7705 SHA512 7939552d38c39b184946df455233eb9ffe91051656b3091b0414b2acc2939bc35dd92724b584e507976c3b4cd51f489abee2e2d0da27bfebaf8999c3f2c2bb2e | ||||
|   | ||||
| @@ -1,331 +0,0 @@ | ||||
| # Copyright 1999-2024 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| inherit check-reqs toolchain-funcs unpacker | ||||
|  | ||||
| DRIVER_PV='560.35.05' | ||||
|  | ||||
| DESCRIPTION='NVIDIA CUDA Toolkit (compiler and friends)' | ||||
| HOMEPAGE='https://developer.nvidia.com/cuda-zone' | ||||
| SRC_URI="https://developer.download.nvidia.com/compute/cuda/${PV}/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run" | ||||
| S="${WORKDIR}" | ||||
|  | ||||
| LICENSE='NVIDIA-CUDA' | ||||
| SLOT="0/${PV}" | ||||
| KEYWORDS='-* ~amd64 ~amd64-linux' | ||||
| IUSE='debugger examples nsight profiler rdma vis-profiler sanitizer' | ||||
| RESTRICT='bindist mirror' | ||||
|  | ||||
| # since CUDA 11, the bundled toolkit driver (== ${DRIVER_PV}) and the | ||||
| # actual required minimum driver version are different. | ||||
| RDEPEND=' | ||||
| 	<sys-devel/gcc-14_pre[cxx] | ||||
| 	virtual/libcrypt | ||||
| 	examples? ( | ||||
| 		media-libs/freeglut | ||||
| 		media-libs/glu | ||||
| 	) | ||||
| 	nsight? ( | ||||
| 		app-crypt/mit-krb5 | ||||
| 		dev-libs/libpfm | ||||
| 		dev-libs/wayland | ||||
| 		dev-qt/qtwayland:6 | ||||
| 		>=dev-libs/openssl-3 | ||||
| 		media-libs/tiff-compat:4 | ||||
| 		sys-libs/zlib | ||||
| 	) | ||||
| 	rdma? ( sys-cluster/rdma-core ) | ||||
| 	vis-profiler? ( | ||||
| 		>=virtual/jre-1.8:* | ||||
| 	)' | ||||
| BDEPEND='nsight? ( dev-util/patchelf )' | ||||
|  | ||||
| QA_PREBUILT='opt/cuda/*' | ||||
| CHECKREQS_DISK_BUILD='15000M' | ||||
|  | ||||
| pkg_setup() { | ||||
| 	check-reqs_pkg_setup | ||||
| } | ||||
|  | ||||
| src_prepare() { | ||||
| 	# ATTENTION: change requires revbump, see link below for supported GCC # versions | ||||
| 	# https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements | ||||
| 	local cuda_supported_gcc='8.5 9.5 10 11 12 13' | ||||
|  | ||||
| 	sed \ | ||||
| 		-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \ | ||||
| 		"${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die | ||||
|  | ||||
| 	default | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	local cudadir=/opt/cuda | ||||
| 	local ecudadir="${EPREFIX}${cudadir}" | ||||
| 	local pathextradirs ldpathextradirs | ||||
| 	dodir ${cudadir} | ||||
| 	into ${cudadir} | ||||
|  | ||||
| 	# Install standard sub packages | ||||
| 	local builddirs=( | ||||
| 		builds/cuda_{cccl,cudart,cuobjdump,cuxxfilt,demo_suite,nvcc,nvdisasm,nvml_dev,nvprune,nvrtc,nvtx,opencl} | ||||
| 		builds/lib{cublas,cufft,cufile,curand,cusolver,cusparse,npp,nvjitlink,nvjpeg} | ||||
| 		builds/nvidia_fs | ||||
| 		$(usex profiler 'builds/cuda_nvprof builds/cuda_cupti builds/cuda_profiler_api' '') | ||||
| 		$(usex vis-profiler 'builds/cuda_nvvp' '') | ||||
| 		$(usex debugger 'builds/cuda_gdb' '') | ||||
| 	) | ||||
|  | ||||
| 	local d f | ||||
| 	for d in "${builddirs[@]}"; do | ||||
| 		ebegin "Installing ${d}" | ||||
| 		[[ -d ${d} ]] || die "Directory does not exist: ${d}" | ||||
|  | ||||
| 		if [[ -d ${d}/bin ]]; then | ||||
| 			for f in "${d}"/bin/*; do | ||||
| 				if [[ -f ${f} ]]; then | ||||
| 					dobin "${f}" | ||||
| 				else | ||||
| 					insinto ${cudadir}/bin | ||||
| 					doins -r "${f}" | ||||
| 				fi | ||||
| 			done | ||||
| 		fi | ||||
|  | ||||
| 		insinto ${cudadir} | ||||
| 		if [[ -d ${d}/targets ]]; then | ||||
| 			doins -r "${d}"/targets | ||||
| 		fi | ||||
| 		if [[ -d ${d}/share ]]; then | ||||
| 			doins -r "${d}"/share | ||||
| 		fi | ||||
| 		if [[ -d ${d}/extras ]]; then | ||||
| 			doins -r "${d}"/extras | ||||
| 		fi | ||||
| 		eend $? | ||||
| 	done | ||||
| 	dobin "${T}"/cuda-config | ||||
|  | ||||
| 	doins builds/EULA.txt | ||||
| 	# nvml and nvvm need special handling | ||||
| 	ebegin 'Installing nvvm' | ||||
| 	doins -r builds/cuda_nvcc/nvvm | ||||
| 	fperms +x ${cudadir}/nvvm/bin/cicc | ||||
| 	eend $? | ||||
|  | ||||
| 	ebegin 'Installing nvml' | ||||
| 	doins -r builds/cuda_nvml_dev/nvml | ||||
| 	eend $? | ||||
|  | ||||
| 	if use sanitizer; then | ||||
| 		ebegin 'Installing sanitizer' | ||||
| 		dobin builds/integration/Sanitizer/compute-sanitizer | ||||
| 		doins -r builds/cuda_sanitizer_api/compute-sanitizer | ||||
| 		# special handling for the executable | ||||
| 		fperms +x ${cudadir}/compute-sanitizer/compute-sanitizer | ||||
| 		eend $? | ||||
| 	fi | ||||
|  | ||||
| 	use debugger && ldpathextradirs+=":${ecudadir}/extras/Debugger/lib64" | ||||
| 	use profiler && ldpathextradirs+=":${ecudadir}/extras/CUPTI/lib64" | ||||
|  | ||||
| 	if use vis-profiler; then | ||||
| 		ebegin 'Installing libnvvp' | ||||
| 		doins -r builds/cuda_nvvp/libnvvp | ||||
| 		# special handling for the executable | ||||
| 		fperms +x ${cudadir}/libnvvp/nvvp | ||||
| 		eend $? | ||||
| 		pathextradirs+=":${ecudadir}/libnvvp" | ||||
| 	fi | ||||
|  | ||||
| 	if use nsight; then | ||||
| 		local ncu_dir | ||||
| 		ncu_dir=$(grep -o 'nsight-compute-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml) | ||||
| 		ebegin "Installing ${ncu_dir}" | ||||
| 		mv builds/nsight_compute builds/"${ncu_dir}" || die | ||||
| 		doins -r builds/"${ncu_dir}" | ||||
|  | ||||
| 		# check this list on every bump | ||||
| 		local exes=( | ||||
| 			"${ncu_dir}"/ncu | ||||
| 			"${ncu_dir}"/ncu-ui | ||||
| 			"${ncu_dir}"/host/linux-desktop-glibc_2_11_3-x64/libexec/QtWebEngineProcess | ||||
| 			"${ncu_dir}"/host/linux-desktop-glibc_2_11_3-x64/CrashReporter | ||||
| 			"${ncu_dir}"/host/linux-desktop-glibc_2_11_3-x64/OpenGLVersionChecker | ||||
| 			"${ncu_dir}"/host/linux-desktop-glibc_2_11_3-x64/QdstrmImporter | ||||
| 			"${ncu_dir}"/host/linux-desktop-glibc_2_11_3-x64/ncu-ui | ||||
| 			"${ncu_dir}"/host/linux-desktop-glibc_2_11_3-x64/ncu-ui.bin | ||||
| 			"${ncu_dir}"/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherSubreaper | ||||
| 			"${ncu_dir}"/target/linux-desktop-glibc_2_11_3-x64/TreeLauncherTargetLdPreloadHelper | ||||
| 			"${ncu_dir}"/target/linux-desktop-glibc_2_11_3-x64/ncu | ||||
| 		) | ||||
|  | ||||
| 		dobin builds/integration/nsight-compute/{ncu,ncu-ui} | ||||
| 		eend $? | ||||
|  | ||||
| 		# remove rdma libs (unless USE=rdma) | ||||
| 		if ! use rdma; then | ||||
| 			rm -r "${ED}/${cudadir}/${ncu_dir}"/host/target-linux-x64/CollectX || die | ||||
| 		fi | ||||
|  | ||||
| 		local nsys_dir | ||||
| 		nsys_dir=$(grep -o 'nsight-systems-[0-9][0-9\.]*' -m1 manifests/cuda_x86_64.xml) | ||||
| 		ebegin "Installing ${nsys_dir}" | ||||
| 		mv builds/nsight_systems builds/"${nsys_dir}" || die | ||||
| 		doins -r builds/"${nsys_dir}" | ||||
|  | ||||
| 		# check this list on every bump | ||||
| 		exes+=( | ||||
| 			"${nsys_dir}"/host-linux-x64/nsys-ui | ||||
| 			"${nsys_dir}"/host-linux-x64/nsys-ui.bin | ||||
| 			"${nsys_dir}"/host-linux-x64/ResolveSymbols | ||||
| 			"${nsys_dir}"/host-linux-x64/ImportNvtxt | ||||
| 			"${nsys_dir}"/host-linux-x64/CrashReporter | ||||
| 			"${nsys_dir}"/host-linux-x64/QdstrmImporter | ||||
| 			"${nsys_dir}"/host-linux-x64/libexec/QtWebEngineProcess | ||||
| 			"${nsys_dir}"/target-linux-x64/nsys | ||||
| 			"${nsys_dir}"/target-linux-x64/launcher | ||||
| 			"${nsys_dir}"/target-linux-x64/nvgpucs | ||||
| 			"${nsys_dir}"/target-linux-x64/nsys-launcher | ||||
| 			"${nsys_dir}"/target-linux-x64/sqlite3 | ||||
| 			"${nsys_dir}"/target-linux-x64/python/bin/python | ||||
| 			"${nsys_dir}"/target-linux-x64/CudaGpuInfoDumper | ||||
| 		) | ||||
|  | ||||
| 		# remove rdma libs (unless USE=rdma) | ||||
| 		if ! use rdma; then | ||||
| 			rm -r "${ED}/${cudadir}/${nsys_dir}"/target-linux-x64/CollectX || die | ||||
| 		fi | ||||
|  | ||||
| 		dobin builds/integration/nsight-systems/{nsight-sys,nsys,nsys-ui} | ||||
| 		eend $? | ||||
|  | ||||
| 		# nsight scripts and binaries need to have their executable bit set, #691284 | ||||
| 		for f in "${exes[@]}"; do | ||||
| 			fperms +x "${cudadir}/${f}" | ||||
| 		done | ||||
|  | ||||
| 		# fix broken RPATHs | ||||
| 		patchelf --set-rpath '$ORIGIN' \ | ||||
| 		"${ED}/${cudadir}/${ncu_dir}"/host/{linux-desktop-glibc_2_11_3-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die | ||||
| 		patchelf --set-rpath '$ORIGIN' \ | ||||
| 		"${ED}/${cudadir}/${nsys_dir}"/{host-linux-x64,target-linux-x64}/{libarrow.so,libparquet.so.500.0.0} || die | ||||
|  | ||||
| 		# remove foreign archs (triggers SONAME warning, #749903) | ||||
| 		rm -r "${ED}/${cudadir}/${ncu_dir}"/target/linux-desktop-t210-a64 || die | ||||
|  | ||||
| 		# unbundle libstdc++ | ||||
| 		rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/libstdc++.so.6 || die | ||||
|  | ||||
| 		# unbundle openssl | ||||
| 		rm "${ED}/${cudadir}/${ncu_dir}"/host/linux-desktop-glibc_2_11_3-x64/lib{crypto,ssl}.so* || die | ||||
| 		rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/lib{crypto,ssl}.so* || die | ||||
|  | ||||
| 		# unbundle libpfm | ||||
| 		rm "${ED}/${cudadir}/${nsys_dir}"/host-linux-x64/libpfm.so* || die | ||||
|  | ||||
| 		# TODO: unbundle qt5 | ||||
| 		# TODO: unbundle boost | ||||
| 		# TODO: unbundle icu | ||||
| 		# TODO: unbundle mesa | ||||
| 		# TODO: unbundle libSshClient | ||||
| 		# TODO: unbundle sqlite | ||||
| 	fi | ||||
|  | ||||
| 	if use examples; then | ||||
| 		local exes=( | ||||
| 			extras/demo_suite/bandwidthTest | ||||
| 			extras/demo_suite/busGrind | ||||
| 			extras/demo_suite/deviceQuery | ||||
| 			extras/demo_suite/nbody | ||||
| 			extras/demo_suite/oceanFFT | ||||
| 			extras/demo_suite/randomFog | ||||
| 			extras/demo_suite/vectorAdd | ||||
| 		) | ||||
|  | ||||
| 		# set executable bit on demo_suite binaries | ||||
| 		for f in "${exes[@]}"; do | ||||
| 			fperms +x "${cudadir}/${f}" | ||||
| 		done | ||||
| 	else | ||||
| 		rm -r "${ED}"/${cudadir}/extras/demo_suite || die | ||||
| 	fi | ||||
|  | ||||
| 	# remove rdma libs (unless USE=rdma) | ||||
| 	if ! use rdma; then | ||||
| 		rm "${ED}"/${cudadir}/targets/x86_64-linux/lib/libcufile_rdma* || die | ||||
| 	fi | ||||
|  | ||||
| 	# Add include and lib symlinks | ||||
| 	dosym targets/x86_64-linux/include ${cudadir}/include | ||||
| 	dosym targets/x86_64-linux/lib ${cudadir}/lib64 | ||||
|  | ||||
| 	# Remove bad symlinks | ||||
| 	rm "${ED}"/${cudadir}/targets/x86_64-linux/include/include || die | ||||
| 	rm "${ED}"/${cudadir}/targets/x86_64-linux/lib/lib64 || die | ||||
|  | ||||
| 	# Remove dead gdb plugins | ||||
| 	if use debugger; then | ||||
| 		rm "${ED}"/${cudadir}/bin/cuda-gdb-python3.{8,9}-tui || die | ||||
| 	fi | ||||
|  | ||||
| 	newenvd - 99cuda <<-EOF | ||||
| 		PATH=${ecudadir}/bin${pathextradirs} | ||||
| 		ROOTPATH=${ecudadir}/bin | ||||
| 		LDPATH=${ecudadir}/lib64:${ecudadir}/nvvm/lib64${ldpathextradirs} | ||||
| 	EOF | ||||
|  | ||||
| 	# Cuda prepackages libraries, don't revdep-build on them | ||||
| 	insinto /etc/revdep-rebuild | ||||
| 	newins - "80${PN}" <<-EOF | ||||
| 		SEARCH_DIRS_MASK="${ecudadir}" | ||||
| 	EOF | ||||
|  | ||||
| 	# https://bugs.gentoo.org/926116 | ||||
| 	insinto /etc/sandbox.d | ||||
| 	newins - "80${PN}" <<-EOF | ||||
| 		SANDBOX_PREDICT='/proc/self/task' | ||||
| 	EOF | ||||
| } | ||||
|  | ||||
| pkg_postinst_check() { | ||||
| 	local a | ||||
| 	a="$("${EROOT}"/opt/cuda/bin/cuda-config -s)" | ||||
| 	local b='0.0' | ||||
| 	local v | ||||
| 	for v in ${a}; do | ||||
| 		ver_test "${v}" -gt "${b}" && b="${v}" | ||||
| 	done | ||||
|  | ||||
| 	# if gcc and if not gcc-version is at least greatest supported | ||||
| 	if tc-is-gcc && \ | ||||
| 		ver_test "$(gcc-version)" -gt "${b}"; then | ||||
| 			ewarn | ||||
| 			ewarn "gcc > ${b} will not work with CUDA" | ||||
| 			ewarn 'Make sure you set an earlier version of gcc with gcc-config' | ||||
| 			ewarn 'or append --compiler-bindir= pointing to a gcc bindir like' | ||||
| 			ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}" | ||||
| 			ewarn 'to the nvcc compiler flags' | ||||
| 			ewarn | ||||
| 	fi | ||||
| } | ||||
|  | ||||
| pkg_postinst() { | ||||
| 	if [[ ${MERGE_TYPE} != binary ]]; then | ||||
| 		pkg_postinst_check | ||||
| 	fi | ||||
|  | ||||
| 	if use profiler || use nsight; then | ||||
| 		einfo | ||||
| 		einfo 'nvidia-drivers restrict access to performance counters.' | ||||
| 		einfo "You'll need to either run profiling tools (nvprof, nsight) " | ||||
| 		einfo 'using sudo (needs cap SYS_ADMIN) or add the following line to ' | ||||
| 		einfo 'a modprobe configuration file ' | ||||
| 		einfo '(e.g. /etc/modprobe.d/nvidia-prof.conf): ' | ||||
| 		einfo | ||||
| 		einfo 'options nvidia NVreg_RestrictProfilingToAdminUsers=0' | ||||
| 		einfo | ||||
| 	fi | ||||
| } | ||||
| @@ -1,2 +1 @@ | ||||
| DIST lazygit-0.45.2.tar.gz 4770243 BLAKE2B b8373edfb5b39d4bacc3e8656bdfb3b02c237654562e223ffeb5d486ded943bd16c3cdc5cd07c134b831c376dd1fe67c37c6baf8d40aa1777e3c7a7a786c935e SHA512 129eeb99de46364361c916d545222b3bd376ac3ca5ec362ebc00c06d08dd450230aed0b797acf8270f20d5e00e9d6f9cb644b94f7fdfa27c617612639913865c | ||||
| DIST lazygit-0.46.0.tar.gz 4790974 BLAKE2B b493fb985645b19e82ba710740d29aeec5c4725adc780609bf4183cd0164c2d06c8b7ccc48f7216722ccc7e80f6392e035a0fa4afea5e001b44d2e30f9aaddfd SHA512 bdbe151922d396ef526acc049830c21bf0396623fc344d2aa989272275cb353b57bd7533f3700db234be7e84a665dbef5e401c3aa8ec249e4e355b3750a5dff0 | ||||
|   | ||||
| @@ -1,32 +0,0 @@ | ||||
| # Copyright 1999-2024 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=8 | ||||
|  | ||||
| inherit go-module | ||||
|  | ||||
| DESCRIPTION='Simple terminal UI for git commands' | ||||
| HOMEPAGE='https://github.com/jesseduffield/lazygit' | ||||
| SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||||
|  | ||||
| LICENSE='Apache-2.0 BSD ISC MIT Unlicense' | ||||
| SLOT='0' | ||||
| KEYWORDS='~amd64 ~arm64' | ||||
|  | ||||
| RDEPEND='dev-vcs/git' | ||||
|  | ||||
| DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs ) | ||||
|  | ||||
| src_compile() { | ||||
| 	ego build -o bin/lazygit \ | ||||
| 		-ldflags "-X main.version=${PV}" | ||||
| } | ||||
|  | ||||
| src_test() { | ||||
| 	ego test ./... -short | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	dobin bin/lazygit | ||||
| 	einstalldocs | ||||
| } | ||||
| @@ -11,4 +11,4 @@ RESTRICT=strip | ||||
| SLOT=0 | ||||
| SRC_URI=https://github.com/jesseduffield/lazydocker/archive/v0.24.1.tar.gz -> lazydocker-0.24.1.tar.gz | ||||
| _eclasses_=multiprocessing	1e32df7deee68372153dca65f4a7c21f	toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	flag-o-matic	357f1a896fbedcd06e5ce55419c49eb9	go-env	0e2babf96e7d0b045fc07ad199eb2399	go-module	df32d29550d40a92da723d3b8e17b467 | ||||
| _md5_=7d78e9fff9bb1045908fdcd3df9acbdb | ||||
| _md5_=a886cd47b2767673c481312f26806e63 | ||||
|   | ||||
| @@ -1,13 +0,0 @@ | ||||
| DEFINED_PHASES=install postinst prepare unpack | ||||
| DEPEND=acct-user/ollama acct-group/ollama | ||||
| DESCRIPTION=Get up and running with large language models. | ||||
| EAPI=8 | ||||
| HOMEPAGE=https://ollama.com https://github.com/ollama/ollama | ||||
| IUSE=+systemd rocm | ||||
| KEYWORDS=~amd64 ~arm64 | ||||
| LICENSE=MIT | ||||
| RDEPEND=acct-user/ollama acct-group/ollama | ||||
| RESTRICT=strip | ||||
| SLOT=0 | ||||
| SRC_URI=amd64? ( https://github.com/ollama/ollama/releases/download/v0.5.7/ollama-linux-amd64.tgz -> ollama-bin-0.5.7.amd64.tgz ) arm64? ( https://github.com/ollama/ollama/releases/download/v0.5.7/ollama-linux-arm64.tgz -> ollama-bin-0.5.7.arm64.tgz ) rocm? ( https://github.com/ollama/ollama/releases/download/v0.5.7/ollama-linux-amd64-rocm.tgz -> ollama-bin-0.5.7.rocm.tgz ) | ||||
| _md5_=ffde7cc385e393fe5c1947991988913d | ||||
| @@ -1,13 +0,0 @@ | ||||
| DEFINED_PHASES=install | ||||
| DESCRIPTION=End-to-end encrypted note taking alternative to Evernote | ||||
| EAPI=8 | ||||
| HOMEPAGE=https://notesnook.com/ https://github.com/streetwriters/notesnook | ||||
| INHERIT=desktop | ||||
| KEYWORDS=~amd64 ~arm64 | ||||
| LICENSE=GPL-3 | ||||
| RDEPEND=sys-fs/fuse:0 | ||||
| RESTRICT=strip | ||||
| SLOT=0 | ||||
| SRC_URI=amd64? ( https://github.com/streetwriters/notesnook/releases/download/v3.0.24/notesnook_linux_x86_64.AppImage -> notesnook-bin-3.0.24.amd64.AppImage ) arm64? ( https://github.com/streetwriters/notesnook/releases/download/v3.0.24/notesnook_linux_arm64.AppImage -> notesnook-bin-3.0.24.arm64.AppImage ) | ||||
| _eclasses_=desktop	3a72ffe0d8e1dd73af3a1c8c15a59fed | ||||
| _md5_=d6d19d36b02ef3cd40cc2fdd5bdfbde0 | ||||
| @@ -1,13 +0,0 @@ | ||||
| DEFINED_PHASES=install | ||||
| DESCRIPTION=End-to-end encrypted note taking alternative to Evernote | ||||
| EAPI=8 | ||||
| HOMEPAGE=https://notesnook.com/ https://github.com/streetwriters/notesnook | ||||
| INHERIT=desktop | ||||
| KEYWORDS=~amd64 ~arm64 | ||||
| LICENSE=GPL-3 | ||||
| RDEPEND=sys-fs/fuse:0 | ||||
| RESTRICT=strip | ||||
| SLOT=0 | ||||
| SRC_URI=amd64? ( https://github.com/streetwriters/notesnook/releases/download/v3.0.25/notesnook_linux_x86_64.AppImage -> notesnook-bin-3.0.25.amd64.AppImage ) arm64? ( https://github.com/streetwriters/notesnook/releases/download/v3.0.25/notesnook_linux_arm64.AppImage -> notesnook-bin-3.0.25.arm64.AppImage ) | ||||
| _eclasses_=desktop	3a72ffe0d8e1dd73af3a1c8c15a59fed | ||||
| _md5_=d6d19d36b02ef3cd40cc2fdd5bdfbde0 | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -14,5 +14,5 @@ REQUIRED_USE=^^ ( python_single_target_python3_10 python_single_target_python3_1 | ||||
| RESTRICT=!test? ( test ) | ||||
| SLOT=0 | ||||
| SRC_URI=https://download.calibre-ebook.com/7.26.0/calibre-7.26.0.tar.xz verify-sig? ( https://calibre-ebook.com/signatures/calibre-7.26.0.tar.xz.sig ) | ||||
| _eclasses_=edo	367e103a74bf77e6a8da7894d999fa3c	toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	multiprocessing	1e32df7deee68372153dca65f4a7c21f	python-utils-r1	42c5abe4a656a4993a06a4fc61dbdd12	python-single-r1	47d8ac9be330c9366112b78fd4f8ce57	qmake-utils	a8dd17b1d94586164f5e3fc12b1c6b81	eapi9-pipestatus	d2c134036ac31c3085aebc9147f572bd	verify-sig	7433426b6b28bf2737ba4b82c8aa8c53	xdg-utils	42869b3c8d86a70ef3cf75165a395e09	xdg	3ef49a87c52c8b77c476351195dfe575 | ||||
| _eclasses_=edo	367e103a74bf77e6a8da7894d999fa3c	toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	multiprocessing	1e32df7deee68372153dca65f4a7c21f	python-utils-r1	b7726144f5af59e186d66746d0f513e5	python-single-r1	47d8ac9be330c9366112b78fd4f8ce57	qmake-utils	a8dd17b1d94586164f5e3fc12b1c6b81	eapi9-pipestatus	d2c134036ac31c3085aebc9147f572bd	verify-sig	7433426b6b28bf2737ba4b82c8aa8c53	xdg-utils	42869b3c8d86a70ef3cf75165a395e09	xdg	3ef49a87c52c8b77c476351195dfe575 | ||||
| _md5_=2734373b917f6014aba5c3df3daf3628 | ||||
|   | ||||
| @@ -1,13 +0,0 @@ | ||||
| DEFINED_PHASES=install unpack | ||||
| DESCRIPTION=NVIDIA Accelerated Deep Learning on GPU library | ||||
| EAPI=8 | ||||
| HOMEPAGE=https://developer.nvidia.com/cudnn | ||||
| INHERIT=unpacker | ||||
| KEYWORDS=-* ~amd64 ~amd64-linux | ||||
| LICENSE=NVIDIA-cuDNN | ||||
| RDEPEND==dev-util/nvidia-cuda-toolkit-12* | ||||
| RESTRICT=mirror | ||||
| SLOT=0/9 | ||||
| SRC_URI=https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-9.6.0.74_cuda12-archive.tar.xz | ||||
| _eclasses_=multiprocessing	1e32df7deee68372153dca65f4a7c21f	toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	unpacker	fb4b84181244b3b9990fa0bf40232dd2 | ||||
| _md5_=fe7f28caf363fdfe01331bc8394319c3 | ||||
| @@ -1,17 +0,0 @@ | ||||
| BDEPEND=dev-util/glib-utils virtual/pkgconfig gtk-doc? ( dev-util/gi-docgen ) qt5? ( test? ( dev-qt/linguist-tools ) ) test? ( || ( dev-lang/python:3.13 dev-lang/python:3.12 dev-lang/python:3.11 dev-lang/python:3.10 ) || ( ( dev-lang/python:3.13 dev-python/pytest[python_targets_python3_13(-)] dev-python/dbus-python[python_targets_python3_13(-)] dev-python/python-dbusmock[python_targets_python3_13(-)] ) ( dev-lang/python:3.12 dev-python/pytest[python_targets_python3_12(-)] dev-python/dbus-python[python_targets_python3_12(-)] dev-python/python-dbusmock[python_targets_python3_12(-)] ) ( dev-lang/python:3.11 dev-python/pytest[python_targets_python3_11(-)] dev-python/dbus-python[python_targets_python3_11(-)] dev-python/python-dbusmock[python_targets_python3_11(-)] ) ( dev-lang/python:3.10 dev-python/pytest[python_targets_python3_10(-)] dev-python/dbus-python[python_targets_python3_10(-)] dev-python/python-dbusmock[python_targets_python3_10(-)] ) ) ) vala? ( || ( dev-lang/vala:0.56 ) ) >=dev-build/meson-1.2.3 app-alternatives/ninja dev-build/meson-format-array test? ( x11-base/xorg-server[xvfb] x11-apps/xhost ) | ||||
| DEFINED_PHASES=compile configure install prepare setup test | ||||
| DEPEND=>=dev-libs/glib-2.58:2 introspection? ( dev-libs/gobject-introspection:= ) gtk? ( >=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?] >=gui-libs/gtk-4.12.5-r2:4[X?,wayland?] ) qt5? ( dev-qt/qtcore:= dev-qt/qtgui:= dev-qt/qtx11extras:= dev-qt/qtwidgets:= ) qt5? ( test? ( dev-qt/qttest:= ) ) | ||||
| DESCRIPTION=Flatpak portal library | ||||
| EAPI=8 | ||||
| HOMEPAGE=https://github.com/flatpak/libportal | ||||
| INHERIT=flag-o-matic meson python-any-r1 vala virtualx | ||||
| IUSE=gtk gtk-doc +introspection qt5 test +vala wayland X test | ||||
| KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 | ||||
| LICENSE=LGPL-3 | ||||
| RDEPEND=>=dev-libs/glib-2.58:2 introspection? ( dev-libs/gobject-introspection:= ) gtk? ( >=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?] >=gui-libs/gtk-4.12.5-r2:4[X?,wayland?] ) qt5? ( dev-qt/qtcore:= dev-qt/qtgui:= dev-qt/qtx11extras:= dev-qt/qtwidgets:= ) | ||||
| REQUIRED_USE=gtk-doc? ( introspection ) vala? ( introspection ) | ||||
| RESTRICT=!test? ( test ) !test? ( test ) | ||||
| SLOT=0/1-1-1-1 | ||||
| SRC_URI=https://github.com/flatpak/libportal/releases/download/0.9.0/libportal-0.9.0.tar.xz | ||||
| _eclasses_=toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	flag-o-matic	357f1a896fbedcd06e5ce55419c49eb9	multiprocessing	1e32df7deee68372153dca65f4a7c21f	ninja-utils	2df4e452cea39a9ec8fb543ce059f8d6	python-utils-r1	42c5abe4a656a4993a06a4fc61dbdd12	meson	99466844dd8d4fcfb07578a76f5a9922	python-any-r1	6ddb5e75c10db046f89ebe39c85e1d82	vala	e477903dbe0105930c51f170a592dc16	virtualx	9741d451eb64ea8bb9faee90d68a9b68 | ||||
| _md5_=2f9059f6e8895d8a79711014c04233b3 | ||||
| @@ -13,5 +13,5 @@ REQUIRED_USE=gtk-doc? ( introspection ) vala? ( introspection ) | ||||
| RESTRICT=!test? ( test ) !test? ( test ) | ||||
| SLOT=0/1-1-1-1 | ||||
| SRC_URI=https://github.com/flatpak/libportal/releases/download/0.9.1/libportal-0.9.1.tar.xz | ||||
| _eclasses_=toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	flag-o-matic	357f1a896fbedcd06e5ce55419c49eb9	multiprocessing	1e32df7deee68372153dca65f4a7c21f	ninja-utils	2df4e452cea39a9ec8fb543ce059f8d6	python-utils-r1	42c5abe4a656a4993a06a4fc61dbdd12	meson	99466844dd8d4fcfb07578a76f5a9922	python-any-r1	6ddb5e75c10db046f89ebe39c85e1d82	vala	e477903dbe0105930c51f170a592dc16	virtualx	9741d451eb64ea8bb9faee90d68a9b68 | ||||
| _eclasses_=toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	flag-o-matic	357f1a896fbedcd06e5ce55419c49eb9	multiprocessing	1e32df7deee68372153dca65f4a7c21f	ninja-utils	2df4e452cea39a9ec8fb543ce059f8d6	python-utils-r1	b7726144f5af59e186d66746d0f513e5	meson	99466844dd8d4fcfb07578a76f5a9922	python-any-r1	891415dfe39ad9b41b461f2b86354af0	vala	e477903dbe0105930c51f170a592dc16	virtualx	9741d451eb64ea8bb9faee90d68a9b68 | ||||
| _md5_=2f9059f6e8895d8a79711014c04233b3 | ||||
|   | ||||
| @@ -1,15 +0,0 @@ | ||||
| BDEPEND=nsight? ( dev-util/patchelf ) | ||||
| DEFINED_PHASES=install postinst prepare pretend setup unpack | ||||
| DESCRIPTION=NVIDIA CUDA Toolkit (compiler and friends) | ||||
| EAPI=8 | ||||
| HOMEPAGE=https://developer.nvidia.com/cuda-zone | ||||
| INHERIT=check-reqs toolchain-funcs unpacker | ||||
| IUSE=debugger examples nsight profiler rdma vis-profiler sanitizer | ||||
| KEYWORDS=-* ~amd64 ~amd64-linux | ||||
| LICENSE=NVIDIA-CUDA | ||||
| RDEPEND=<sys-devel/gcc-14_pre[cxx] virtual/libcrypt examples? ( media-libs/freeglut media-libs/glu ) nsight? ( app-crypt/mit-krb5 dev-libs/libpfm dev-libs/wayland dev-qt/qtwayland:6 >=dev-libs/openssl-3 media-libs/tiff-compat:4 sys-libs/zlib ) rdma? ( sys-cluster/rdma-core ) vis-profiler? ( >=virtual/jre-1.8:* ) | ||||
| RESTRICT=bindist mirror | ||||
| SLOT=0/12.6.3 | ||||
| SRC_URI=https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run | ||||
| _eclasses_=check-reqs	2a9731073c152554078a9a8df8fc0f1b	toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	multiprocessing	1e32df7deee68372153dca65f4a7c21f	unpacker	fb4b84181244b3b9990fa0bf40232dd2 | ||||
| _md5_=ef90364e642596971be70bf0542a86db | ||||
| @@ -1,14 +0,0 @@ | ||||
| BDEPEND=>=dev-lang/go-1.20:= app-arch/unzip | ||||
| DEFINED_PHASES=compile install test unpack | ||||
| DESCRIPTION=Simple terminal UI for git commands | ||||
| EAPI=8 | ||||
| HOMEPAGE=https://github.com/jesseduffield/lazygit | ||||
| INHERIT=go-module | ||||
| KEYWORDS=~amd64 ~arm64 | ||||
| LICENSE=Apache-2.0 BSD ISC MIT Unlicense | ||||
| RDEPEND=dev-vcs/git | ||||
| RESTRICT=strip | ||||
| SLOT=0 | ||||
| SRC_URI=https://github.com/jesseduffield/lazygit/archive/v0.45.2.tar.gz -> lazygit-0.45.2.tar.gz | ||||
| _eclasses_=multiprocessing	1e32df7deee68372153dca65f4a7c21f	toolchain-funcs	14648d8795f7779e11e1bc7cf08b7536	multilib	b2a329026f2e404e9e371097dda47f96	flag-o-matic	357f1a896fbedcd06e5ce55419c49eb9	go-env	0e2babf96e7d0b045fc07ad199eb2399	go-module	df32d29550d40a92da723d3b8e17b467 | ||||
| _md5_=0678f425dd0655cde9f7c8ce8ca27515 | ||||
		Reference in New Issue
	
	Block a user