mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-15 01:53:25 -04:00
Merge updates from master
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
DIST clifm-1.10.tar.gz 1355974 BLAKE2B d5c3ad1b8617471156f8759ebda4e2d62bb7b9db57f61287eb6b1a99f72cac04cea9a9f02bc82d8188a62b18b72e207d017b9bb2c910aa44560691506d50a0aa SHA512 9d59f0258fd44b02eefc0f0eb1ef9f18c90395e440b6ac775211345c64d97dbecef32f746f081a0ab602ab0a58a314be9e873baa538e42939c52eb57d2464d75
|
||||
DIST clifm-1.11.tar.gz 1378500 BLAKE2B ea1cb37bb61538c1b64bbafdce5adee977bf14fb2deb7b4b54ae1a4e39824543dbd23e9c63563228e30ae35ce9d22d7c11b0b18e370310a5e5c9a60f1b425275 SHA512 5075dab38000f0eb026cacc1d31b8f3e20157d4ec19e84f5f271ffae9a4f99aa03411d6d47470eb37879bbe497c7747db90a7f4ac7760439f67f1a3537cb77e2
|
||||
DIST clifm-1.12.tar.gz 1448233 BLAKE2B 82c2a7502cd2955a6c89adc273129f88e660ab263f7718605f8bb0f533c79a1aa1ea2c4c0b203362f4a368bad9adcead02e6eb2f0f1bb9a8d09d9f1e9a8cf9c2 SHA512 4593a934bf07c186caad160d2a77b458177b9c38f58d720600ebfa4b7ad95238b1e58616b9b4d94435b736e7b55fc5f1981abce83ea4d6c5350e5f035823f9dd
|
||||
DIST clifm-1.13.tar.gz 1467612 BLAKE2B 06e6a986c1504ae2cbaa6e38daaf26c44d477102bdb0e67d529b35a066dbf6695841eb6fa69ed0379aca2028dfa327f98a8060c80f57c5f2653285ff4ed4a116 SHA512 3a1936b5517c6f8babb59a32af03e2408b9e3bd59fceb88c6101785f38175e71026128df07c46b05aa34ad4519063b6e80e22e29f0b277106a3b7d7e3341d584
|
||||
DIST clifm-1.8.tar.gz 1302830 BLAKE2B 87e7dc41053af6ccbd819ec0403ca14aeb40865ea49ab87e8601765be771b5e447f593ffb9f94674dbc2afbdb67849a5a8a1d2b26ab524479c4edbfb2c4c79a6 SHA512 4b534f4c33462dd6571d69a5b0405295580d980f7c5c43f0893828c7ab624eb366f7e617a97b0357a26663df3c25b1cb2c175ee372f8c18e9b3f061186b76827
|
||||
|
||||
@@ -20,11 +20,11 @@ fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="archive +bleach emoji +highlight icons +lira +magic nerdfonts nls
|
||||
posix qsort +suggestions +tags"
|
||||
IUSE="archive +bleach emoji fzf +highlight icons +inotify +lira +magic
|
||||
nerdfonts nls posix +profiles qsort +suggestions +tags +trash"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gentoo-skip-manpage-compression.patch"
|
||||
"${FILESDIR}/${PN}-1.12-gentoo-skip-manpage-compression.patch"
|
||||
)
|
||||
|
||||
LIB="
|
||||
@@ -44,6 +44,7 @@ RDEPEND="
|
||||
app-arch/atool
|
||||
sys-fs/archivemount
|
||||
)
|
||||
fzf? ( app-shells/fzf )
|
||||
nls? ( virtual/libintl )
|
||||
"
|
||||
BDEPEND=""
|
||||
@@ -55,22 +56,25 @@ src_compile() {
|
||||
append-cflags "-D_NERD"
|
||||
elif use icons; then
|
||||
append-cflags "-D_ICONS_IN_TERMINAL"
|
||||
else
|
||||
append-cflags "-D_NO_ICONS"
|
||||
fi
|
||||
# do not append -D_NO_ICONS here, causes compilation error
|
||||
fi
|
||||
|
||||
use posix && append-cflags "-D_BE_POSIX"
|
||||
use archive || append-cflags "-D_NO_ARCHIVING"
|
||||
use bleach || append-cflags "-D_NO_BLEACH"
|
||||
use nls || append-cflags "-D_NO_GETTEXT"
|
||||
# -D_NO_FZF causes compile error
|
||||
use fzf || append-cflags "-D_NO_FZF"
|
||||
use highlight || append-cflags "-D_NO_HIGHLIGHT"
|
||||
use lira || append-cflags "-D_NO_LIRA"
|
||||
use magic || append-cflags "-D_NO_MAGIC"
|
||||
use suggestions || append-cflags "-D_NO_SUGGESTIONS"
|
||||
use tags || append-cflags "-D_NO_TAGS"
|
||||
# -D_NO_TRASH causes compile error
|
||||
use profiles || append-cflags "-D_NO_PROFILES"
|
||||
use trash || append-cflags "-D_NO_TRASH"
|
||||
use qsort && append-cflags "-D_TOURBIN_QSORT"
|
||||
use inotify || append-cflags "-DUSE_GENERIC_FS_MONITOR"
|
||||
|
||||
# makefile defaults to /usr/local
|
||||
emake PREFIX="/usr"
|
||||
@@ -89,13 +93,10 @@ pkg_postinst() {
|
||||
use icons && ewarn "Warning: Use flag 'icons' overridden by 'emoji'"
|
||||
elif use nerdfonts; then
|
||||
use icons && ewarn "Warning: Use flag 'icons' overridden by 'nerdfonts'"
|
||||
else
|
||||
use icons || ewarn "Warning: as none of 'emoji', 'nerdfonts', or 'icons' were selected, \
|
||||
'emoji' was implicitly enabled to prevent compilation error"
|
||||
fi
|
||||
use inotify && use posix && ewarn "Warning: Use flag 'inotify' overriden by 'posix'"
|
||||
optfeature_header "Install additional optional functionality:"
|
||||
optfeature "mounting/unmounting support" sys-apps/udevil sys-fs/udisks
|
||||
optfeature "fzf tab completion and more" app-shells/fzf
|
||||
if use archive; then
|
||||
optfeature_header "Install additional archive support:"
|
||||
optfeature "zstd support" app-arch/zstd
|
||||
@@ -20,11 +20,11 @@ fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="archive +bleach emoji fzf +highlight icons +lira +magic nerdfonts nls
|
||||
posix +profiles qsort +suggestions +tags +trash"
|
||||
IUSE="arc4random archive +bleach emoji fzf +highlight icons +inotify +lira +magic
|
||||
nerdfonts nls posix +profiles qsort +suggestions +tags +trash"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-gentoo-skip-manpage-compression.patch"
|
||||
"${FILESDIR}/${PN}-1.12-gentoo-skip-manpage-compression.patch"
|
||||
)
|
||||
|
||||
LIB="
|
||||
@@ -63,6 +63,7 @@ src_compile() {
|
||||
|
||||
use posix && append-cflags "-D_BE_POSIX"
|
||||
use archive || append-cflags "-D_NO_ARCHIVING"
|
||||
use arc4random || append-cflags "-D_NO_ARC4RANDOM"
|
||||
use bleach || append-cflags "-D_NO_BLEACH"
|
||||
use nls || append-cflags "-D_NO_GETTEXT"
|
||||
use fzf || append-cflags "-D_NO_FZF"
|
||||
@@ -74,6 +75,7 @@ src_compile() {
|
||||
use profiles || append-cflags "-D_NO_PROFILES"
|
||||
use trash || append-cflags "-D_NO_TRASH"
|
||||
use qsort && append-cflags "-D_TOURBIN_QSORT"
|
||||
use inotify || append-cflags "-DUSE_GENERIC_FS_MONITOR"
|
||||
|
||||
# makefile defaults to /usr/local
|
||||
emake PREFIX="/usr"
|
||||
@@ -93,6 +95,8 @@ pkg_postinst() {
|
||||
elif use nerdfonts; then
|
||||
use icons && ewarn "Warning: Use flag 'icons' overridden by 'nerdfonts'"
|
||||
fi
|
||||
use inotify && use posix && ewarn "Warning: Use flag 'inotify' overriden by 'posix'"
|
||||
use arc4random && use posix && ewarn "Warning: Use flag 'arc4random' overriden by 'posix'"
|
||||
optfeature_header "Install additional optional functionality:"
|
||||
optfeature "mounting/unmounting support" sys-apps/udevil sys-fs/udisks
|
||||
if use archive; then
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
Skip manpage compression in makefile.
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -53,7 +53,6 @@ install: $(BIN)
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(DATADIR)/zsh/site-functions
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(DESKTOPICONPREFIX)/scalable/apps
|
||||
$(INSTALL) -m 0644 misc/manpage $(DESTDIR)$(MANDIR)/man1/$(BIN).1
|
||||
- gzip -f -- $(DESTDIR)$(MANDIR)/man1/$(BIN).1
|
||||
$(INSTALL) -m 0644 misc/completions.bash $(DESTDIR)$(DATADIR)/bash-completion/completions/$(BIN)
|
||||
$(INSTALL) -m 0644 misc/completions.zsh $(DESTDIR)$(DATADIR)/zsh/site-functions/_$(BIN)
|
||||
$(INSTALL) -m 0644 misc/$(BIN).desktop $(DESTDIR)$(DESKTOPPREFIX)
|
||||
@@ -1,12 +0,0 @@
|
||||
Skip manpage compression in makefile.
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -55,7 +55,6 @@ install: $(BIN)
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(DESKTOPPREFIX)
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(DESKTOPICONPREFIX)/scalable/apps
|
||||
$(INSTALL) -m 0644 misc/manpage $(DESTDIR)$(MANDIR)/man1/$(BIN).1
|
||||
- gzip -f -- $(DESTDIR)$(MANDIR)/man1/$(BIN).1
|
||||
$(INSTALL) -m 0644 misc/completions.bash $(DESTDIR)$(DATADIR)/bash-completion/completions/$(BIN)
|
||||
$(INSTALL) -m 0644 misc/completions.zsh $(DESTDIR)$(DATADIR)/zsh/site-functions/_$(BIN)
|
||||
$(INSTALL) -m 0644 misc/completions.fish $(DESTDIR)$(DATADIR)/fish/vendor_completions.d/$(BIN).fish
|
||||
@@ -11,6 +11,9 @@
|
||||
<name>Michael Yang</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="arc4random">
|
||||
Use arc4random instead of random, requires 'posix' to be unset
|
||||
</flag>
|
||||
<flag name="archive">
|
||||
Archive manipulation support (extraction/decompression, listing, repacking, mounting)
|
||||
</flag>
|
||||
@@ -29,6 +32,9 @@
|
||||
<flag name="icons">
|
||||
Enable icons and set them to use icons-in-terminal (see https://github.com/sebastiencs/icons-in-terminal)
|
||||
</flag>
|
||||
<flag name="inotify">
|
||||
Use the inotify API for filesystem monitoring instead of a generic check, requires 'posix' to be unset
|
||||
</flag>
|
||||
<flag name="lira">
|
||||
Add Lira as the default built-in resource opener
|
||||
</flag>
|
||||
@@ -42,7 +48,7 @@
|
||||
Add translations support (via <pkg>sys-devel/gettext</pkg>)
|
||||
</flag>
|
||||
<flag name="posix">
|
||||
Force POSIX.1-2008 compliance, removing support for Linux-specific "file birth time" information
|
||||
Force POSIX.1-2008 compliance, removing support for Linux-specific "file birth time" information, inotify, and arc4random
|
||||
</flag>
|
||||
<flag name="profiles">
|
||||
Enable support for creating, switching, renaming, and deleting of user profiles
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_10 )
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
PYPI_NO_NORMALIZE=1
|
||||
inherit edo distutils-r1 optfeature pypi
|
||||
|
||||
@@ -19,18 +20,22 @@ SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/python-debian[${PYTHON_USEDEP}]
|
||||
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
||||
dev-vcs/breezy[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/python-debian[${PYTHON_USEDEP}]
|
||||
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
||||
')
|
||||
dev-vcs/breezy[${PYTHON_SINGLE_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/tomlkit[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/tomlkit[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
|
||||
@@ -48,6 +53,7 @@ python_test() {
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
doman man/*
|
||||
dodoc docs/*
|
||||
}
|
||||
@@ -46,7 +46,7 @@ RDEPEND="
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-libs/wayland-protocols
|
||||
>=dev-libs/wayland-protocols-1.32
|
||||
dev-util/wayland-scanner
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
@@ -2,3 +2,5 @@ DIST mpd-mpris-0.3.1-deps.tar.xz 208008 BLAKE2B a6dbe61c59710e78ffddba58dcab053b
|
||||
DIST mpd-mpris-0.3.1.tar.gz 12660 BLAKE2B d55aec721a79c9b05e66b2ced7c03181c12297ae09755458fa8363f052ad01e2a83cac8d882a658fd768d7e8c1fbd13ca1facaa798d8248fa362fca7936e943c SHA512 5b042e69abed15f05387ac99f3503af749041fdfc72f05c18c19be24050e1475f89e86db5900ea0384244ae2447ad1d17037f0496b799780c7d63fa8b23863d0
|
||||
DIST mpd-mpris-0.4.0-deps.tar.xz 481616 BLAKE2B 564a4ec99271fae4b96b31fa4d170c11618c1bb455f5de9e3f1134ad22994ee593b77823c433e4c32b53fcfe06639411619196aa449dfe01440042ce248b00f9 SHA512 dd9ce2e50e07f031c23c9fdd5fba92a558cb7220d7f873c1121bc9430b73ce9bd1426c974f007251a344b45ca2856067bdbdb67cae5f9d5af352e7014beae289
|
||||
DIST mpd-mpris-0.4.0.tar.gz 12845 BLAKE2B 0b8893fb1c02172685490f090c7bef68de0dc82e27b9028a39374913e5bd52fd4c99a4606d5786819e39691e4eddd182a34529a3f76574515d2f212ed65f48f0 SHA512 f83bfa6f78b3ac92fa5e7f78d24c82f9540248adebc9f08252339e09b9f31c2978d340e1532948e179de5eb6c2e62f8949c9fe57236e57e4d9761da0beeef1b1
|
||||
DIST mpd-mpris-0.4.1-deps.tar.xz 454676 BLAKE2B 7a36eaf0504fc16ae0b928b38c9f280eb6a54ac462f24955273818f3b570ea528a502f2f57b7c6c843f499e58a70162f45ad1f53ee9648d039c7ac2e0b171539 SHA512 34c790e3c61178f0d49917ec8880500150038934b8da4b1818a1545c542fefc0c87a5931ae765bbd72dee10a53f949f79bd2d47a95f47c6713e35cd4e387c4a6
|
||||
DIST mpd-mpris-0.4.1.tar.gz 17476 BLAKE2B 878ac776ed2f773a8692deef5b3353f9b549e44796eefcfe2a94d07384c7c01f24f5fcd75321f30646d330932a9f5ab86d92c3b00e9ecf6e318803f637f534be SHA512 8e7c4dd11acee6f3779e747271d51ad2ac387287046e454f767a6d5622fded0cdaa6af629160a349ca43e5196029364c1803eb98e3c39cefffd5818fa05b4fcc
|
||||
|
||||
30
media-sound/mpd-mpris/mpd-mpris-0.4.1.ebuild
Normal file
30
media-sound/mpd-mpris/mpd-mpris-0.4.1.ebuild
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop go-module multiprocessing systemd xdg
|
||||
|
||||
DESCRIPTION="An implementation of the MPRIS protocol for MPD."
|
||||
HOMEPAGE="https://github.com/natsukagami/mpd-mpris"
|
||||
LICENSE="MIT BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="media-sound/mpd"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SRC_URI="https://github.com/natsukagami/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/sevz17/go-deps/releases/download/${P}/${P}-deps.tar.xz"
|
||||
|
||||
src_compile() {
|
||||
ego build -v -x -p "$(makeopts_jobs)" -o "${PN}" cmd/mpd-mpris/*.go
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
|
||||
dobin "${PN}"
|
||||
domenu mpd-mpris.desktop
|
||||
systemd_douserunit mpd-mpris.service
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST maestral-1.7.3.gh.tar.gz 8124324 BLAKE2B 793ff423e356da1dd17fa9815a635b0d57e7665eb3024e9b2b8a30c3e37868b942de3ddeec66a5c76172c9c9635a5646f9ccb302397a5f318ed30df8898a24a5 SHA512 93d4ec06a0a612ecd270deb7b92a8d9e4895db0e835430569b46f09a2fd3a83af89dceffd52b3f2be2b0417a7a88700732412556ce1224a14d62226727daa0c1
|
||||
DIST maestral-1.8.0_rc0.gh.tar.gz 8125327 BLAKE2B e019b08b78bac352152dbddadadfa3da74db4d962ad83b7a4789999becdfc35c7aa6ec1af243a461207525bae8f207c5dcb8285e6f5c5f4c681b30998a65248e SHA512 bcea5b58fab9a1d78d8566fc8be0e6fd7fea2bc942d96659821ce3bdfd0edd6927826abbc46d717e971c612414919b5e8e6a21c57627780c13f932eae9cd35b4
|
||||
|
||||
54
net-misc/maestral/maestral-1.8.0_rc0.ebuild
Normal file
54
net-misc/maestral/maestral-1.8.0_rc0.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 2021-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
MY_PV=${PV/_rc/.dev}
|
||||
DESCRIPTION="Maestral is an open-source Dropbox client written in Python"
|
||||
HOMEPAGE="https://maestral.app"
|
||||
SRC_URI="https://github.com/samschott/maestral/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}"/${PN}-${MY_PV}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != *_rc* ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/click-8.0.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/desktop-notifier-3.3.0[${PYTHON_USEDEP}]
|
||||
=dev-python/dropbox-11*[${PYTHON_USEDEP}]
|
||||
>=dev-python/fasteners-0.15[${PYTHON_USEDEP}]
|
||||
dev-python/importlib-metadata[${PYTHON_USEDEP}]
|
||||
>=dev-python/keyring-22.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keyrings-alt-3.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
>=dev-python/pathspec-0.5.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/Pyro5-5.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.16.2[${PYTHON_USEDEP}]
|
||||
dev-python/rich[${PYTHON_USEDEP}]
|
||||
=dev-python/survey-4*[${PYTHON_USEDEP}]
|
||||
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||
>=dev-python/watchdog-2.0.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/build[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# requires dev-python/pytest-benchmark not available for py3.11
|
||||
tests/offline/test_clean_local_events.py::test_performance
|
||||
|
||||
# requires systemd
|
||||
tests/offline/test_cli.py::test_autostart
|
||||
|
||||
# requires network
|
||||
tests/offline/test_main.py::test_check_for_updates
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
@@ -1,2 +1,4 @@
|
||||
DIST gotosocial-0.10.0-source-code.tar.gz 55714610 BLAKE2B 5db1bb11d799cc85e7667c205a19df88b901598dfa64cb2b10c58ee6ea327cf5d2e74cba58312d5b7444200ca8a6866b6305008e41775f2906db8faddb078b92 SHA512 fc647e6fb35ef8a9969014d4e785f868e5c85fb2305f7ac204ba830d0774cf4fa7cbb25b7a47fed0b8f592e45299cb2bdbbf5f4a6ae45915a540e9c3ab92f3c4
|
||||
DIST gotosocial-0.9.0-source-code.tar.gz 55117728 BLAKE2B e9a02e3d6b27d242db3a239e95653973a498b67e606824d8a2ff141498b8bbf6be0f434d96abad2129e7ca4dab379b815ac04749e036caf0963d6160508768bd SHA512 7638a069a47d615264baa74d838052f913b6c71497396c2d2b877a870a5ad1639d218dd9877fb6b37c347d4e243524527260f48f983a68bb29c4b76ec3ce8c7c
|
||||
DIST gotosocial_0.10.0_web-assets.tar.gz 1362405 BLAKE2B 78168bcffbc5081cfb81ddcba314d3aa58e41fd115303997306495ad79c5d6fa3d2540b1d4da87e43cf7c4f62e737a859c5bdf2959d60371e25125dd21567f9e SHA512 4a6b2248969e9e254764e4b03fa6d7d884d74da8b25665feebca117eeeeae3aa3dc8fca995ca7c939f6437aa35b7d09dbd824727c7d0a7a4745db29916ab74be
|
||||
DIST gotosocial_0.9.0_web-assets.tar.gz 1357671 BLAKE2B aeab657eb72db5178287afd75b6c1d06238f8c769f3bfc21cf6249b8eed468b7009b2401c64aca22964ebd7a6554066a2c38d9d441a39789c731faa6e9c17c29 SHA512 0d83b093ab8f45ae8ed3eebcf1aed66b27a5d996e5c0dc30e16cc99a881b7e2b333ba4cf4fd78486c42b3bef9245d1ba89743a87ae0f969e8be6a756cf1dcfc6
|
||||
|
||||
88
www-apps/gotosocial/gotosocial-0.10.0.ebuild
Normal file
88
www-apps/gotosocial/gotosocial-0.10.0.ebuild
Normal file
@@ -0,0 +1,88 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Fast, fun, ActivityPub server, powered by Go"
|
||||
HOMEPAGE="
|
||||
https://gotosocial.org/
|
||||
https://github.com/superseriousbusiness/gotosocial
|
||||
"
|
||||
GH_RELEASE="https://github.com/superseriousbusiness/${PN}/releases/download/v${PV}"
|
||||
SRC_URI="
|
||||
${GH_RELEASE}/${P}-source-code.tar.gz
|
||||
${GH_RELEASE}/${PN}_${PV}_web-assets.tar.gz
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="|| ( WTFPL-2 CC0-1.0 ) AGPL-3 Apache-2.0 BSD BSD-2 CC0-1.0 GPL-3 MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="acct-user/gotosocial"
|
||||
|
||||
DOCS=( archive {CONTRIBUTING,README,ROADMAP}.md )
|
||||
|
||||
src_unpack() {
|
||||
# source code
|
||||
unpack ${P}-source-code.tar.gz
|
||||
rm -r web || die
|
||||
|
||||
# prebuilt web assets
|
||||
unpack ${PN}_${PV}_web-assets.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i example/config.yaml \
|
||||
-e "s|./web/template/|${EPREFIX}/usr/share/gotosocial/web/template/|g" \
|
||||
-e "s|./web/assets/|${EPREFIX}/usr/share/gotosocial/web/assets/|g" \
|
||||
-e "s|/gotosocial/storage|${EPREFIX}/var/lib/gotosocial/storage|g" \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
GOFLAGS+=" -tags=netgo,osusergo,static_build,kvformat"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myargs=(
|
||||
-trimpath
|
||||
-ldflags "-X main.Version=${PV}"
|
||||
)
|
||||
|
||||
ego build "${myargs[@]}" ./cmd/gotosocial
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local -x GTS_DB_TYPE="sqlite"
|
||||
local -x GTS_DB_ADDRESS=":memory:"
|
||||
|
||||
local -x GOFLAGS
|
||||
GOFLAGS="${GOFLAGS//-v/}"
|
||||
GOFLAGS="${GOFLAGS//-x/}"
|
||||
|
||||
ego test -vet off ./...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin gotosocial
|
||||
|
||||
newinitd "${FILESDIR}"/gotosocial.initd ${PN}
|
||||
newconfd "${FILESDIR}"/gotosocial.confd ${PN}
|
||||
systemd_dounit "${FILESDIR}"/gotosocial.service
|
||||
newtmpfiles "${FILESDIR}"/gotosocial.tmpfiles ${PN}.conf
|
||||
|
||||
insinto /usr/share/gotosocial
|
||||
doins -r web
|
||||
|
||||
insinto /etc/gotosocial
|
||||
doins example/config.yaml
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process ${PN}.conf
|
||||
}
|
||||
Reference in New Issue
Block a user