commit:     d349701d52615d520bad260934d645801e0c91a3
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  5 19:11:40 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Sep  5 20:04:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d349701d

app-office/naps2: bump to 8.2.1

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-office/naps2/Manifest           |   3 +
 app-office/naps2/naps2-8.2.1.ebuild | 279 ++++++++++++++++++++++++++++++++++++
 2 files changed, 282 insertions(+)

diff --git a/app-office/naps2/Manifest b/app-office/naps2/Manifest
index 2a977abcff19..0c3758aefde7 100644
--- a/app-office/naps2/Manifest
+++ b/app-office/naps2/Manifest
@@ -39,11 +39,13 @@ DIST microsoft.win32.systemevents.8.0.0.nupkg 233719 
BLAKE2B 7d8cad3d5cad9646167
 DIST microsoft.win32.systemevents.9.0.3.nupkg 184464 BLAKE2B 
ec83c8f5834e6716f1e45279de108ecb5937af8b74537133e14d250d4f0fabfd4c4b97023f13c990151c567b8f68bcad2f9772e03998bc3943e876e4980dd1ed
 SHA512 
1dac0e903ae7aa73ea1ac46665f8bbddd7d82a1d79ca6d331ff34d13ecb3e9f546168472f5da96e5db028191e8bb40110d969117e81977bdd4d1bb4874633590
 DIST mimekitlite.4.7.1.nupkg 4782334 BLAKE2B 
dd066cde8b8f09a9aa0c44881a703d2e96b569d313cd6803be4ed568fc30360e7556c1e01baf61ab497880a46ba9304c3d9152787e3e460c273b2d92e801c23a
 SHA512 
cfc5608a058c98f5e5771554f6b46dba0a77265137cdd82549d733e2efc54ac0dfdb24d578243cc4024b3bf272d4cf2ed6b589df88786f7c68a38e73a7569ba0
 DIST naps2-8.2.0.tar.gz 43303013 BLAKE2B 
3d8a196f7f5cdcfa1fbe40452589b897a4801fa956f7816b3576e093e2c51d465f8ad19634c9a38f5a7f54ae911bac77cfb4e5aae8bd081c04746cbb096c4d54
 SHA512 
4c41fb442e3feb4bdb8f5663b241638031b8e9c248b0ac0732cd9f8c78267186f3a62f15b9c05f311daf2532f7b1b5f7c48a9feed691a9a8a80986b48a7f9aef
+DIST naps2-8.2.1.tar.gz 41427325 BLAKE2B 
e57be639ba5b3e423cb07479f02250b64c35b5ee762d1c2c3cda52404e6104a9510f3edc75a169859e3cc8726faed2bec52f0f91ca0984d5d0da8d398177aa85
 SHA512 
6cb72c57dc77a853dc26c77060f25b4101d0bfb690034d3d3dc2429545f362e1ccc81ac6ae6fc176b868b0070d93b1dbc8b9ad38b34964ab3c810b070e6c5b44
 DIST naps2.mdns.1.0.1.nupkg 86085 BLAKE2B 
85c41ed205c155ebf618b09ab09fa6c405a528dafa5f435e55a7a59a4d8831ab8efd68c2e08ab2eb61c79869ce6dab8a72b9d3851285a57488043c3876b97cd4
 SHA512 
0415de3d8758b301df93f89019ea096f554c7e4760658f387da5c2e25c895fcbb1d905ecdb89ee894cbac19580bb7948b0be57174f9823c338d57243d8fcf650
 DIST naps2.ntwain.1.0.1.nupkg 492160 BLAKE2B 
65270ec25c9aff3ade6bfacbe987fcf762eb41d3afc274520e36f0d3d0011a64b5fcc6ed5c454c6b8050cb90e8c8203f0bf6e32e1c0b94480b10771031671af5
 SHA512 
2de989daf1e9a4de1d71073825cc99a54388d4eb542afa793ce3387b8577722a91d1e0f3b30ba00ea328dd2056db2af387b84b437b239c3710327ce84d2cfb3f
 DIST naps2.pdfium.binaries.1.2.0.nupkg 19935199 BLAKE2B 
4fe8e065bb1a7e6d8477e02a0eae04736ee8e809b549f23e3cb99fa20571d927bdbf37f94ebb4f5d6dbd97b77899ead266ef73709e3a71f4fe100f6063895d48
 SHA512 
a6c107d65571ef5b6de69765aca2ff3d725a17761f70d0dd231b19579801fcbaccd49ec93ef76930edd89a23e904f1d5e42a1e6974751d504be8ed325fc96188
 DIST naps2.pdfsharp.1.0.1.nupkg 668676 BLAKE2B 
d060b00b9c4fb6be89bfc69b9be2a3b640c928c6e7e712a44b4a38a6fd6bd6c4ad990f737ad1f57ad8f6b96d7cecd5020e51fc52b8acb4b1400c88558bee4817
 SHA512 
30b5ad84214860c5260a483944c2d72dec40abd7620679e9143f747948f4b5d5247ad505b5025628eabc8420b375aa805e645091407fb09d3fd3a88ef4450f60
 DIST naps2.tesseract.binaries.1.3.2.nupkg 17971913 BLAKE2B 
4c0e60266de81b16ae7d0a0cd9761d3a53d22b08a7eedb14436767ef28502ff2f70bddc8e44f394451eb80cab2cb01e39e218dc64e0027820b567a692d35e734
 SHA512 
00a226bf9a42017091b22f34075acf1722eb356b8b905a22b474e16bf1918685b26406c7542e08ddec16d4be1df111c53dcc0a45dc8fe3eeed813b02b791cd72
+DIST naps2.tesseract.binaries.1.4.0.nupkg 22817911 BLAKE2B 
f465efb15d605cd17dfd4b060ecc9df614c8ce39ba1d2fa5d81659576df7da839a3eec1678e80309c945944068b62d620941ba8006fedfccb4504404f31dedfc
 SHA512 
5f6087463f31556f481ac8291ca11f20f42fbb186a32972a23b284e3deee1d3564237f0d2cb585a9856b60d4b47be69de9118e1f56ae3c8b55f41a6019d65a4a
 DIST naps2.wia.2.0.3.nupkg 81720 BLAKE2B 
19658f6ecfd47a21d88955c89968e111f06504246790f779078f47f9d4d947d692df19713e6422b7fcb75608d4ee999872f78729fd80ae58d9b9e612a8f2d0ae
 SHA512 
0eede4a6c57e76c87fd44aa56aca8181e39ea3f2bce782027ae6161781deb7b7c9b060966a31a6d22202fc75648f744e1fa0aefa27a8550fc13d04454a9b0743
 DIST netstandard.library.2.0.0.nupkg 3143842 BLAKE2B 
7e3fc865e7893fb531b21e2ca791b788af01481316e49a79c4676050c2b8ad413fd8a4ef9890557582ec8b9741c8aa01b080b8d2caa16e02bfff2a7b38777989
 SHA512 
e3d64072b9cd9f9e86209c06a22688ecda7070427c9a35327d2a9560824c0e1381ccf7bc1d21d2ef8b301761f4bfc7f38fba712df7188d2f4fe4f748aac4d0c7
 DIST netstandard.library.2.0.3.nupkg 3146139 BLAKE2B 
311e5367398f76c74e78930bc2cd39e450a86bd8626311ded8d58bd84c94a8a84db3c11b2bc10f3eeba20a9d081fe7827981f702ad746b49ae3108c949ba1022
 SHA512 
e78f0cea69c14895b1b089644077dbce8631a626055d96522f4d29e061d8bfc3e48aa1419e74faf265b998612c03f721f5f0cef4690f824150a5689764dee601
@@ -93,6 +95,7 @@ DIST sharpziplib.1.4.2.nupkg 741182 BLAKE2B 
3d22a281cf9afed622be8a4134f0ce143df1
 DIST simplebase.1.3.1.nupkg 29903 BLAKE2B 
e66b93aceea0d44b8b2c3f5b075eae1d30c5e94fd6ed5b75a7b36b3f95067b2f518996e946dd283845b2df6ccb50932c8277107eb39bf366090f635f5a59d854
 SHA512 
85eacd0622afa466273774d5190cc3bd22d24502918b4c617e16e5c3b57fcd2300c21cf43ac5a475b81a2b0c0e195558b21e11ff81813af0344dc3cd83ce10b8
 DIST sixlabors.fonts.1.0.0-beta17.nupkg 718474 BLAKE2B 
ed0e437db456a316c79792341a7bbf638031ac9fbd839906a5d0d38ea70a965302bbe36683c1367e07d7fd6f4170b54260d7e5900a9d796089b3ce469d54f4c1
 SHA512 
dd11e872a246b7110e774b8923bb2fafd917b506147769bfb09970c620d96e82e38293a6b072bbc0a683126f9ea3621badce7d661d0d84e67a8770ee345dd823
 DIST sixlabors.fonts.1.0.1.nupkg 1018229 BLAKE2B 
3d938c3d917e5081e818890d538c595ecfdfe5395023a562ad9a69e2a842b19e7926bce7b59f2fd847bbcd36328e49dc8cbf2ea18ec9b85f593c9a84e7dac8eb
 SHA512 
f6d5a2216cf2e728ff806fbf131e0aec32175cc90480ff15c792fe401d0f9e9728998f42f651a0583d1507ca7e94719463ba729dd0df89b982661c590257190f
+DIST sixlabors.imagesharp.3.1.11.nupkg 1046551 BLAKE2B 
95de192de2d1da6a9b27b8b5eeeb021354419ad687ee48af051a7429f6a7e916ad42c6c93f7c40f8aea05c531c8d813ad1ec8fd53f85a95b3f839c343339c7b1
 SHA512 
a3305e5784285de117b9498fcf578bf651bfc8d3d08c38f897e6b879bf41449a144b2b8863f56407646c2a332e62d45061456ea6eba153d2e950b52dd3540897
 DIST sixlabors.imagesharp.3.1.7.nupkg 1041468 BLAKE2B 
73eb6ce958d3cc42fe42edb079d1e0fdd36d7221299b699839fc8dbd1191a2380c257ca9cf78394253825e36066be79687dcf85f8a0dd8ec266b0a85d5d8f22d
 SHA512 
84b2d1b79657408cc3cfff4f8136f87d88a917461cd0d5c63d460e5e29e0ee668dee079a62db74bd96de3fb6fa5c0f630a4650e9262cdf31a1271e27a4f4bbca
 DIST standardsocketshttphandler.2.2.0.8.nupkg 496395 BLAKE2B 
aab8d3a9650776f9195ecc70de80b401731396237d85789fa6bac0d863e686f53d49b7cf5b2238b120d1e74a53a1f582376ac292e08afd478ee912aa1c435221
 SHA512 
6b7c907fc80fa4cecc2bd8758c54774dc4bcae66f388160c921c80d02ab1e0b0f6de389d919a5cc65dc1cfb5ae5ac842b0ba439b1665a9009d2829fa43ce6aab
 DIST system.buffers.4.3.0.nupkg 35171 BLAKE2B 
3b274a048ce14845ca957019b3670db00338972f6e11279e47f59ca6b4326aaecab1d11317694ed98e8a27f3de7ef6f90de94d4711ab224f805388d468728392
 SHA512 
3dcbf66f6edf7e9bb4f698cddcf81b9d059811d84e05c7ac618b2640efed642f089b0ef84c927c5f58feffe43bb96a6bcf4fec422529b82998b18d70e4648cbe

diff --git a/app-office/naps2/naps2-8.2.1.ebuild 
b/app-office/naps2/naps2-8.2.1.ebuild
new file mode 100644
index 000000000000..b7ea912861f4
--- /dev/null
+++ b/app-office/naps2/naps2-8.2.1.ebuild
@@ -0,0 +1,279 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOTNET_PKG_COMPAT="9.0"
+
+# Generated via "gdmt restore", but the *.Mac projects had to be removed from
+# the sln manually first. Later they are removed via "DOTNET_PKG_BAD_PROJECTS".
+NUGETS="
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.2
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple@4.3.0
+runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.2
+runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.2
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+"
+
+inherit dotnet-pkg desktop xdg
+
+DESCRIPTION="Document scanning application with a focus on simplicity and ease 
of use"
+HOMEPAGE="https://www.naps2.com/
+       https://github.com/cyanfish/naps2/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/cyanfish/${PN}.git";
+else
+       
SRC_URI="https://github.com/cyanfish/${PN}/archive/refs/tags/v${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="~amd64"
+fi
+
+SRC_URI+=" ${NUGET_URIS} "
+
+LICENSE="AGPL-3+ Apache-2.0 BSD BSD-2 GPL-2+ LGPL-3+ MIT"
+SLOT="0"
+RESTRICT="test"
+
+RDEPEND="
+       app-text/tesseract
+       media-fonts/liberation-fonts
+       media-fonts/noto
+       media-fonts/noto-cjk
+       media-gfx/sane-backends
+       x11-libs/gtk+:3
+"
+
+DOTNET_PKG_PROJECTS=( NAPS2.App.Gtk )
+DOTNET_PKG_BAD_PROJECTS=(
+       # For MacOS.
+       NAPS2.App.Mac
+       NAPS2.Images.Mac
+       NAPS2.Lib.Mac
+
+       # For Windows.
+       NAPS2.App.Console
+       NAPS2.App.WinForms
+       NAPS2.App.Worker
+       NAPS2.Images.Wpf
+       NAPS2.Lib.WinForms
+
+       # Failing tests:
+       NAPS2.App.Tests
+       NAPS2.Escl.Tests
+       NAPS2.Lib.Tests
+       NAPS2.Sdk.ScannerTests
+       NAPS2.Sdk.Tests
+)
+
+DOCS=( CHANGELOG.md README.md )
+
+src_unpack() {
+       dotnet-pkg_src_unpack
+
+       if [[ -n "${EGIT_REPO_URI}" ]] ; then
+               git-r3_src_unpack
+       fi
+}
+
+src_prepare() {
+       dotnet-pkg_src_prepare
+
+       # Having this package reference in a proj file will make dotnet copy
+       # the host's libhostpolicy.so and break the Gentoo's mechanism of 
handling
+       # dotnet executables.
+       sed -e "/.*NETCore.App.*/d" -i NAPS2.App.Gtk/NAPS2.App.Gtk.csproj || die
+}
+
+src_install() {
+       dotnet-pkg_src_install
+
+       local linux_dir=""
+       case "${ARCH}" in
+               arm* )
+                       linux_dir="/usr/share/${P}/_linuxarm"
+                       ;;
+               * )
+                       linux_dir="/usr/share/${P}/_linux"
+                       ;;
+       esac
+
+       # Use system tesseract.
+       rm -f "${ED}/${linux_dir}/tesseract" || die
+       dosym -r /usr/bin/tesseract "${linux_dir}/tesseract"
+
+       find "${ED}/${linux_dir}" -type f -exec chmod a+rx {} + || die
+
+       newicon --size 128 ./NAPS2.Lib/Icons/scanner-128.png com.naps2.Naps2.png
+       domenu ./NAPS2.Setup/config/linux/com.naps2.Naps2.desktop
+
+       insinto /usr/share/metainfo
+       doins ./NAPS2.Setup/config/linux/com.naps2.Naps2.metainfo.xml
+
+       einstalldocs
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+}
+
+pkg_postrm() {
+       xdg_pkg_postrm
+}

Reply via email to