commit:     46f971f17c5dbeedace81d78851219f95b589f93
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Wed May 24 01:35:48 2023 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Wed May 24 01:35:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=46f971f1

www-client/nyxt: add 3.0.0

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 www-client/nyxt/Manifest          |   1 +
 www-client/nyxt/nyxt-3.0.0.ebuild | 100 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 101 insertions(+)

diff --git a/www-client/nyxt/Manifest b/www-client/nyxt/Manifest
index ef88b6907..a61064836 100644
--- a/www-client/nyxt/Manifest
+++ b/www-client/nyxt/Manifest
@@ -1 +1,2 @@
+DIST nyxt-3.0.0.gh.tar.xz 16738792 BLAKE2B 
04fcaffa852c3035142a6b48c853083e9b9516d3e7682988806a19b2dab54d0ac288a8e4464da779f8facefca2eec63f31be7f0906567540c5e3754a91642f15
 SHA512 
1411f9b18eb65de8efdf46e850d4d78c67c2b5ee3ffbf7e9b1c67f6fda2ed7ad154414dc9d842a1fd4cf78a3619d9da560327e658bb0735a117be50aca87f4e8
 DIST nyxt-3_pre6.gh.tar.xz 16636300 BLAKE2B 
06d4b480b4b898d1e66b77f154913c212893c859b221a2e99c26c719bfe93ef8c502ad7341f6b7b73c5fb09dfbb204c64545d14dc081f01a87b4c56dd3f468ec
 SHA512 
1598c78eb61bc4af2a6145f16ae9d9b073d2dcecf3a0f300cdd98a3227cd49a887bdb270fb161f605c0d95aa59f2967b2462285a09841b8b0acbd34a3909f50a

diff --git a/www-client/nyxt/nyxt-3.0.0.ebuild 
b/www-client/nyxt/nyxt-3.0.0.ebuild
new file mode 100644
index 000000000..5ef18c896
--- /dev/null
+++ b/www-client/nyxt/nyxt-3.0.0.ebuild
@@ -0,0 +1,100 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop optfeature xdg-utils
+
+DESCRIPTION="Nyxt - the hacker's power-browser"
+HOMEPAGE="https://nyxt.atlas.engineer/";
+
+if [[ "${PV}" = *9999* ]]
+then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/atlas-engineer/${PN}.git";
+else
+       KEYWORDS="~amd64"
+       
SRC_URI="https://github.com/atlas-engineer/${PN}/releases/download/${PV}/nyxt-${PV}-source-with-submodules.tar.xz
 -> ${PF}.gh.tar.xz"
+fi
+
+# Portage replaces the nyxt binary with scbl when stripping
+RESTRICT="mirror strip"
+
+LICENSE="BSD CC-BY-SA-3.0"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND="
+       dev-libs/gobject-introspection
+       gnome-base/gsettings-desktop-schemas
+       media-libs/gst-plugins-bad
+       media-libs/gst-plugins-base
+       media-libs/gst-plugins-good
+       media-libs/gst-plugins-ugly
+       media-plugins/gst-plugins-libav
+       net-libs/glib-networking
+       net-libs/webkit-gtk:4.1
+       sys-libs/libfixposix
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+       >=dev-lisp/sbcl-2.0.0
+"
+
+src_unpack() {
+       default
+
+       # nyxt-3-source-with-submodules.tar.xz doesn't unpack in a subdirectory
+       # so we create it instead of working directly in ${WORKDIR}
+       if [[ "${PV}" != *9999* ]]
+       then
+               mkdir "${WORKDIR}/${P}" || die
+               mv "${WORKDIR}/assets" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/_build" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/build-scripts" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/documents" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/engineer.atlas.Nyxt.yaml" "${WORKDIR}/${P}/" || 
die
+               mv "${WORKDIR}/examples" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/INSTALL" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/libraries" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/licenses" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/makefile" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/nyxt.asd" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/README.org" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/source" "${WORKDIR}/${P}/" || die
+               mv "${WORKDIR}/tests" "${WORKDIR}/${P}/" || die
+       fi
+}
+
+src_compile() {
+       emake all
+       use doc && emake doc
+}
+
+src_install(){
+       dobin "${S}/nyxt"
+
+       if [ "$(use doc)" ]
+       then
+               docinto "/usr/share/doc/${P}"
+               dodoc "${S}/manual.html"
+       fi
+
+       newicon -s 512 "${S}/assets/nyxt_512x512.png" nyxt.png
+       domenu "${S}/assets/nyxt.desktop"
+}
+
+pkg_postinst() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+       optfeature "for X11 clipboard support" "x11-misc/xclip"
+       optfeature "for spellchecking" "app-text/enchant"
+}
+
+pkg_postrm() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}

Reply via email to