Skip to content

Commit

Permalink
app-text/papers: add 47_alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
nibon7 committed Jul 23, 2024
1 parent f6ddf1c commit df89eaa
Show file tree
Hide file tree
Showing 2 changed files with 292 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-text/papers/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ DIST objc-foundation-0.1.1.crate 9063 BLAKE2B 876dd217b612278a522f2d08434537d468
DIST objc_id-0.1.1.crate 3258 BLAKE2B 9a74fc17235ffdd7987c2735a7a9d136376fd13355f0561b4ecf234784aed077d1ab5aa11c1a82fcee7d47d4d36e471ca4ba3e5bb725a2ed0049a5565967326f SHA512 ec36fae6f5cefda00f3e44618b3c9fe6ec8f528f70d1a95def6421704bfa128a6e5b4a32e9dd686bf6ff60c4f87fe8094aa5e1c8070bcde58b17fdc06f49f9f5
DIST once_cell-1.19.0.crate 33046 BLAKE2B c14b374eaf4ac0f60acc2e02f7bba270a0e8e0a6978d749cd3cb0ab3eb26907e4fbea70dd5132982f90290381ed18ff8a87fd530f1415fabffac864f157ea380 SHA512 4154876afd34a699ee650d1a8a1c5ee5a25f0ebd9388b8bef2564e33629fae68f113d7507488c68abbe7ea1acf9bbc41813cbbf3ef3e464e3f3b9cc7a51d870c
DIST papers-46.2.tar.xz 5395676 BLAKE2B 90b764e7d7927fb44c324d3df425dfd649e130ffdedce054f3321cc1af407bdc7bd54337772d11454f4049f982c9688371924cecd69b0dcb6ffb1f697ee1da36 SHA512 ae0db74e13d9c1beff83a97f2b90e911da7d68c5761d7d6453ee4956097e34e5197e4ddfad99ab8c153c855e88d5838591f2dc944760efdca84fc9bb6358fbef
DIST papers-47.alpha.tar.xz 5403276 BLAKE2B 4a3bae61682f3bb6817653b3a5705d05b8512d60fa77d69d93377a59358c290b9fceba45d50ecc9e7406ed521beaafe223c4542c0534186801dbd30466a188ee SHA512 13869215f178137e948fc22b33c067af725c5e7f463c13c1fc96b1a2ebb4cdd119031d99e014cdf466d117a07866d07be268f373e4541352a9ec6b975727df62
DIST pin-project-lite-0.2.14.crate 28817 BLAKE2B 8e9875967059faff399fbffff82cf8835982c46ea8df942acf50b038e3f500e04d3d8cde39da5a71ebcc38b869553f8c49830e484d1109b353247a4cfdeda89e SHA512 f90a6b9f5ab8701718f72677a4f3597c1b9f32e5fa53198b47a94696227ea37815997599abaa6058b217c5b32a94602582c6b13fdb66e2d683bc98921de95293
DIST pin-utils-0.1.0.crate 7580 BLAKE2B 457e1287202f16d1873b24bf4f1de1828300128c4ba3131758e64f9784d36d47365f22d85493c3a85d854f0d8dbb4c6cef3a0f5b064014dc03943e58b7ba9178 SHA512 828422b8440cc82ac6b0743e0112fa7540d437aed457564999092b1462cd7672cd6b1f0201b67075431aeedd3d9c5127468a3dd028744109944f7f023c82fd70
DIST pkg-config-0.3.30.crate 20613 BLAKE2B e14dd544612f74b038bc7d279d629034237946c261e3e97621d6ac910a12f4fa4e75932dbd5d3339e62325d0ccf33002b07f04b0523f93d2bd3b1a919841ba66 SHA512 e4bce232e1e1cbb17d1c08c3de4dd12613f5a5238f831c2a765b6ede9b494e647d2416a7d9a0c926104e24066dd1b38df8df98a6c55d62f25060f80eb33d064d
Expand Down
291 changes: 291 additions & 0 deletions app-text/papers/papers-47_alpha.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES="
[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]
[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]+wasi-snapshot-preview1
[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 cargo gnome.org gnome2-utils meson xdg

DESCRIPTION="A document viewer for GNOME"
HOMEPAGE="https://apps.gnome.org/Papers"

# subslot = ppsd4.(suffix of libppsdocument-4.0)-ppsv4.(suffix of libppsview-4.0)
LICENSE="GPL-2+"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 GPL-2 MIT
Unicode-DFS-2016 Unlicense
"
SLOT="0/ppsd4.5-ppsv4.4"
KEYWORDS="~amd64 ~arm64 ~loong ~mips ~riscv ~x86 ~amd64-linux ~x86-linux"
IUSE="cups djvu gnome keyring gtk-doc +introspection nautilus postscript tiff xps"
REQUIRED_USE="gtk-doc? ( introspection )"

# atk used in libview
# bundles unarr
DEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
>=dev-libs/glib-2.75.0:2
>=gui-libs/libhandy-1.5.0:1
>=media-libs/exempi-2.0
sys-libs/zlib:=
>=x11-libs/gdk-pixbuf-2.40:2
>=gui-libs/gtk-4.15.1:4[cups?,introspection?]
>=gui-libs/libadwaita-1.5.0
>=x11-libs/cairo-1.14.0
>=app-text/poppler-22.05.0:=[cairo]
>=app-arch/libarchive-3.6.0:=
djvu? ( >=app-text/djvu-3.5.22:= )
gnome? ( gnome-base/gnome-desktop:3= )
keyring? ( >=app-crypt/libsecret-0.5 )
introspection? ( >=dev-libs/gobject-introspection-1:= )
nautilus? ( >=gnome-base/nautilus-43.0 )
postscript? ( >=app-text/libspectre-0.2:= )
tiff? ( >=media-libs/tiff-4.0:= )
xps? ( >=app-text/libgxps-0.2.1:= )
"
RDEPEND="${DEPEND}
gnome-base/gvfs
gnome-base/librsvg
"
BDEPEND="
gtk-doc? (
>=dev-util/gi-docgen-2023.1-r1
app-text/docbook-xml-dtd:4.3
)
dev-libs/appstream-glib
dev-util/gdbus-codegen
dev-util/glib-utils
dev-util/itstool
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
>=virtual/rust-1.70
"

src_prepare() {
default
xdg_environment_reset

sed "s#\('CARGO_HOME'\), .*#\1, '${CARGO_HOME}')#" -i shell-rs/src/meson.build || die
}

src_configure() {
local emesonargs=(
-Dprofile=default
-Dplatform=gnome

-Dviewer=true
-Dpreviewer=true
-Dthumbnailer=true
$(meson_use nautilus)

-Dcomics=enabled
$(meson_feature djvu)
-Dpdf=enabled
$(meson_feature postscript ps)
$(meson_feature tiff)
$(meson_feature xps)

$(meson_use gtk-doc gtk_doc)
-Duser_doc=true
$(meson_use introspection)
-Ddbus=true
$(meson_feature keyring)
$(meson_feature cups gtk_unix_print)
)
meson_src_configure
}

src_install() {
meson_src_install

if use gtk-doc; then
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
mv "${ED}"/usr/share/doc/{libppsdocument,libppsview} "${ED}"/usr/share/gtk-doc/html/ || die
fi
}

pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}

pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}

0 comments on commit df89eaa

Please sign in to comment.