Gentoo Archives: gentoo-commits

From: Viorel Munteanu <ceamac@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: www-client/nyxt/
Date: Mon, 30 Jan 2023 10:29:38
Message-Id: 1675034907.ba0666b962ededc7b65dcfdf0aebf5b72b55efd8.ceamac@gentoo
1 commit: ba0666b962ededc7b65dcfdf0aebf5b72b55efd8
2 Author: Julien Roy <julien <AT> jroy <DOT> ca>
3 AuthorDate: Sun Jan 29 23:28:27 2023 +0000
4 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 23:28:27 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ba0666b9
7
8 www-client/nyxt: add 9999
9
10 Signed-off-by: Julien Roy <julien <AT> jroy.ca>
11
12 www-client/nyxt/nyxt-9999.ebuild | 94 ++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 94 insertions(+)
14
15 diff --git a/www-client/nyxt/nyxt-9999.ebuild b/www-client/nyxt/nyxt-9999.ebuild
16 new file mode 100644
17 index 000000000..57939d4ba
18 --- /dev/null
19 +++ b/www-client/nyxt/nyxt-9999.ebuild
20 @@ -0,0 +1,94 @@
21 +# Copyright 2023 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit desktop optfeature xdg-utils
27 +
28 +DESCRIPTION="Nyxt - the hacker's power-browser"
29 +HOMEPAGE="https://nyxt.atlas.engineer/"
30 +
31 +if [[ "${PV}" = *9999* ]]
32 +then
33 + inherit git-r3
34 + EGIT_REPO_URI="https://github.com/atlas-engineer/${PN}.git"
35 +else
36 + KEYWORDS="~amd64"
37 + NYXTCOMMIT="27612fee394f80dee6480c045ec7da5cd1f82196"
38 + S="${WORKDIR}/${PN}-${NYXTCOMMIT}"
39 +
40 + # Specify commits for each submodules
41 + # Some regex substitutions allows to automate this process...
42 + # Commit hashes are obtained from -9999 version on ${NYXTCOMMIT}
43 + # Full list can be found here: https://github.com/atlas-engineer/nyxt/tree/master/_build
44 + # Removed the commits to reduce useless lines in -9999 version
45 +
46 + SRC_URI="https://github.com/atlas-engineer/${PN}/archive/${NYXTCOMMIT}.tar.gz -> ${P}.gh.tar.gz"
47 + # Removed the submodules SRC_URIs to reduce useless lines in -9999 version
48 +fi
49 +
50 +# Portage replaces the nyxt binary with scbl when stripping
51 +RESTRICT="mirror strip"
52 +
53 +LICENSE="BSD CC-BY-SA-3.0"
54 +SLOT="0"
55 +IUSE="doc"
56 +
57 +RDEPEND="
58 + dev-libs/gobject-introspection
59 + gnome-base/gsettings-desktop-schemas
60 + net-libs/glib-networking
61 + net-libs/webkit-gtk:4.1
62 + sys-libs/libfixposix
63 +"
64 +
65 +DEPEND="${RDEPEND}"
66 +BDEPEND="
67 + >=dev-lisp/sbcl-2.0.0
68 + !!net-libs/webkit-gtk:5
69 +"
70 +# If webkit-gtk:5 is installed, nyxt won't compile
71 +# https://github.com/atlas-engineer/nyxt/issues/2743
72 +
73 +src_unpack() {
74 + default
75 +
76 + # Unpack the submodules in the _build directory
77 + if [[ "${PV}" != *9999* ]]
78 + then
79 + # Removed src_unpack to reduce useless lines in -9999
80 + true
81 + fi
82 +}
83 +
84 +src_compile() {
85 + emake all
86 + use doc && emake doc
87 +}
88 +
89 +src_install(){
90 + dobin "${S}/nyxt"
91 +
92 + if [ "$(use doc)" ]
93 + then
94 + docinto "/usr/share/doc/${P}"
95 + dodoc "${S}/manual.html"
96 + fi
97 +
98 + doicon "${S}/assets/icon_512x512.png.ico"
99 + domenu "${S}/assets/nyxt.desktop"
100 +}
101 +
102 +pkg_postinst() {
103 + xdg_mimeinfo_database_update
104 + xdg_desktop_database_update
105 + xdg_icon_cache_update
106 + optfeature "for X11 clipboard support" "x11-misc/xclip"
107 + optfeature "for spellchecking" "app-text/enchant"
108 +}
109 +
110 +pkg_postrm() {
111 + xdg_mimeinfo_database_update
112 + xdg_desktop_database_update
113 + xdg_icon_cache_update
114 +}