diff options
author | Julien Roy <julien@jroy.ca> | 2023-08-17 12:27:44 -0400 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2023-08-17 12:27:44 -0400 |
commit | 2054f998970f37a58100d432823d005103aed4db (patch) | |
tree | 5a2024507be57f649020a86e19f34a5572518d6e /www-client | |
parent | net-p2p/feather: drop 2.4.2 (diff) | |
download | guru-2054f998970f37a58100d432823d005103aed4db.tar.gz guru-2054f998970f37a58100d432823d005103aed4db.tar.bz2 guru-2054f998970f37a58100d432823d005103aed4db.zip |
www-client/nyxt: add 3.6.0
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/nyxt/Manifest | 1 | ||||
-rw-r--r-- | www-client/nyxt/nyxt-3.6.0.ebuild | 100 |
2 files changed, 101 insertions, 0 deletions
diff --git a/www-client/nyxt/Manifest b/www-client/nyxt/Manifest index 9296ff512..283b04dd4 100644 --- a/www-client/nyxt/Manifest +++ b/www-client/nyxt/Manifest @@ -1,2 +1,3 @@ DIST nyxt-3.3.0.gh.tar.xz 16742852 BLAKE2B 7c3b35cd8129dbe67da68595e31466965677235904dc9b924dcf5a8299b89b683b51b80abf1c52eac109837d5c299e3b27c74016965b04f0b5195566a6a937d4 SHA512 9dbd5808a4563f91920a4bdaaef24d5e9bd254979b8e962cae1508f7686fad8957aec7da0540b4abbcdfda7dd5c1e3f205dbf9b7141de5a4df4a9521c0af3815 DIST nyxt-3.4.0.gh.tar.xz 16745700 BLAKE2B 7a611f594d1267101a1e0083092da58db48e167045b94dc063c23bb95e837e568388154dfd78d7f52876a41b16863a6c14d2e6c654f5ee61a91eaf1acf863fd1 SHA512 e104219f6e7f69e8fd51a5a07280924d9ba1703a9c1661acf80f6158b0c4262f32b80d760cf08b269e2e18ae9727fed0d59451a53bb1f175042a68fd686807ed +DIST nyxt-3.6.0.gh.tar.xz 17424780 BLAKE2B 8a42263ddd0d000587f934a7dde6074d728bedf267bbf363ab5ab75e0e773fb9c6d506e7218dfa8219e140a0c757125323d4448c720a933952f65d5b6128714f SHA512 f8bd0437a8afa275f1c885b35c9c88f55a1f1fe6299e9ecdd9496c09ace7673b80b92511a22b2cb1eef738696847319309883bb3df18e91980b071a16e1b7893 diff --git a/www-client/nyxt/nyxt-3.6.0.ebuild b/www-client/nyxt/nyxt-3.6.0.ebuild new file mode 100644 index 000000000..5ef18c896 --- /dev/null +++ b/www-client/nyxt/nyxt-3.6.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 +} |