Initial Commit

This commit is contained in:
Tom Andrade 2024-09-26 14:56:25 +02:00
commit e7799b6a34
Signed by: wolvie
GPG Key ID: 31AAB07872E82669
11 changed files with 276 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST pass-import-3.5.tar.gz 259550 BLAKE2B 3bd0a2a09262d91d00c385264828dda3d728ec738fa30f0c678bdf028c777c71213e25e3d5158a4744a3dcdb9a40ba551f261a5151ad2d154ba56f6cc8b3c54d SHA512 6a71dfd4f4622978cf8e84a5ef930e3a25aa6691485bbbf8054becb8569b770675a664eae125e509b92a34705219bbceb7234e19c1454a3d842360ec79c44f75

View File

@ -0,0 +1,57 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..11} )
# pass-import makes only one Python implementation, needs PYTHON_SINGLE_TARGET.
inherit python-single-r1
DESCRIPTION="generic importer extension for password manager ZX2C4's pass"
HOMEPAGE="https://github.com/roddhjav/pass-import"
SRC_URI="https://github.com/roddhjav/pass-import/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
COMMON_DEPEND="app-shells/bash
dev-python/cryptography
dev-python/defusedxml
|| (
sys-apps/file[python]
dev-python/python-magic
)
dev-python/pyyaml
dev-python/secretstorage"
DEPEND="${COMMON_DEPEND}
dev-python/setuptools
"
RDEPEND="${COMMON_DEPEND}
>=app-admin/pass-1.7.0"
RESTRICT="mirror"
DOCS=( CHANGELOG.rst CONTRIBUTING.rst README.md )
pkg_setup() {
python_setup
}
src_prepare() {
eapply_user
python_fix_shebang .
sed -i -e 's:python3:'${EPYTHON}':g' scripts/import.bash scripts/pimport
}
src_install() {
default
python_domodule pass_import
}
pkg_postinst() {
elog "If you want to import passwords from KeePass, install pykeepass."
elog "https://pypi.org/project/pykeepass/"
}

3
metadata/layout.conf Normal file
View File

@ -0,0 +1,3 @@
masters = gentoo
thin-manifests = true
sign-manifests = false

View File

@ -0,0 +1,15 @@
DEFINED_PHASES=install postinst prepare setup
DEPEND=app-shells/bash dev-python/cryptography dev-python/defusedxml || ( sys-apps/file[python] dev-python/python-magic ) dev-python/pyyaml dev-python/secretstorage dev-python/setuptools
DESCRIPTION=generic importer extension for password manager ZX2C4's pass
EAPI=7
HOMEPAGE=https://github.com/roddhjav/pass-import
INHERIT=python-single-r1
IUSE=python_single_target_python3_10 python_single_target_python3_11
KEYWORDS=~amd64 ~x86
LICENSE=GPL-3+
RDEPEND=app-shells/bash dev-python/cryptography dev-python/defusedxml || ( sys-apps/file[python] dev-python/python-magic ) dev-python/pyyaml dev-python/secretstorage >=app-admin/pass-1.7.0
RESTRICT=mirror
SLOT=0
SRC_URI=https://github.com/roddhjav/pass-import/archive/v3.5.tar.gz -> pass-import-3.5.tar.gz
_eclasses_=eapi8-dosym 5ac4857ad078256d939c44f7c64197a9 multiprocessing e644caa6eb7ce7e5ab0864383ac13ad9 toolchain-funcs 948855ec7ad9f11351edf9066708dfa9 multilib 7e1347c006a76bb812f3a9f663b79991 python-utils-r1 6881b056477c23167d9a6b33e146374e python-single-r1 f7abe75c203a988aa9b5c460b6c7d0f1
_md5_=07a8fc9b3cd6e5d8ea3e63879d3349d7

View File

@ -0,0 +1,15 @@
DEFINED_PHASES=configure install postinst postrm preinst prepare setup unpack
DESCRIPTION=All-in-one voice and text chat for gamers
EAPI=8
HOMEPAGE=https://discord.com/
IDEPEND=dev-util/desktop-file-utils x11-misc/shared-mime-info
INHERIT=chromium-2 desktop linux-info optfeature unpacker xdg
IUSE=appindicator +seccomp wayland +l10n_af +l10n_am +l10n_ar +l10n_bg +l10n_bn +l10n_ca +l10n_cs +l10n_da +l10n_de +l10n_el +l10n_en-GB +l10n_en-US +l10n_es +l10n_es-419 +l10n_et +l10n_fa +l10n_fi +l10n_fil +l10n_fr +l10n_gu +l10n_he +l10n_hi +l10n_hr +l10n_hu +l10n_id +l10n_it +l10n_ja +l10n_kn +l10n_ko +l10n_lt +l10n_lv +l10n_ml +l10n_mr +l10n_ms +l10n_nb +l10n_nl +l10n_pl +l10n_pt-BR +l10n_pt-PT +l10n_ro +l10n_ru +l10n_sk +l10n_sl +l10n_sr +l10n_sv +l10n_sw +l10n_ta +l10n_te +l10n_th +l10n_tr +l10n_uk +l10n_ur +l10n_vi +l10n_zh-CN +l10n_zh-TW
KEYWORDS=amd64
LICENSE=all-rights-reserved
RDEPEND=>=app-accessibility/at-spi2-core-2.46.0:2 dev-libs/expat dev-libs/glib:2 dev-libs/nspr dev-libs/nss media-libs/alsa-lib media-libs/fontconfig media-libs/mesa[gbm(+)] net-print/cups sys-apps/dbus sys-apps/util-linux sys-libs/glibc x11-libs/cairo x11-libs/libdrm x11-libs/gdk-pixbuf:2 x11-libs/gtk+:3 x11-libs/libX11 x11-libs/libXScrnSaver x11-libs/libXcomposite x11-libs/libXdamage x11-libs/libXext x11-libs/libXfixes x11-libs/libXrandr x11-libs/libxcb x11-libs/libxkbcommon x11-libs/libxshmfence x11-libs/pango appindicator? ( dev-libs/libayatana-appindicator )
RESTRICT=bindist mirror strip test
SLOT=0
SRC_URI=https://dl.discordapp.net/apps/linux/0.0.69/discord-0.0.69.tar.gz
_eclasses_=toolchain-funcs 948855ec7ad9f11351edf9066708dfa9 multilib 7e1347c006a76bb812f3a9f663b79991 linux-info ea4122ba1d8791a12b78e53f9510a2e3 chromium-2 93690d770dc2e27deaa89794e2f9fe3f desktop 56973babb9c5f19cab0eeb53ece644c6 optfeature 222cb475c5a4f7ae7cfb0bf510a6fe54 multiprocessing e644caa6eb7ce7e5ab0864383ac13ad9 unpacker fb4b84181244b3b9990fa0bf40232dd2 xdg-utils 5465aed08f1dfc2a75f14cbea4272961 xdg 854eae304447322625df5991e20ed18f
_md5_=d2ea510878d35714eeefa40404f598cf

1
net-im/discord/Manifest Normal file
View File

@ -0,0 +1 @@
DIST discord-0.0.69.tar.gz 103541511 BLAKE2B 840c24703a92a1dad3ef8c23b679f23a273a2388b35f42d3b2c1eadb9642fd50a4e6bbc2ad53a08fa24b36adc111650dcfcb68e0a4834d89c8e28fa840e13f7f SHA512 b91cf295f7571ed0378f3759932e0144823ab0996ace1716169bb77fff0f8bdcb473b51c9eef7a1b93fc94d135cb7108441ec6a2fa7e718d0cd104670fac7d31

View File

@ -0,0 +1,146 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN/-bin/}"
MY_PV="${PV/-r*/}"
CHROMIUM_LANGS="
af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
sw ta te th tr uk ur vi zh-CN zh-TW
"
inherit chromium-2 desktop linux-info optfeature unpacker xdg
DESCRIPTION="All-in-one voice and text chat for gamers"
HOMEPAGE="https://discord.com/"
SRC_URI="https://dl.discordapp.net/apps/linux/${MY_PV}/${MY_PN}-${MY_PV}.tar.gz"
S="${WORKDIR}/${MY_PN^}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64"
IUSE="appindicator +seccomp wayland"
RESTRICT="bindist mirror strip test"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/fontconfig
media-libs/mesa[gbm(+)]
net-print/cups
sys-apps/dbus
sys-apps/util-linux
sys-libs/glibc
x11-libs/cairo
x11-libs/libdrm
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/libxshmfence
x11-libs/pango
appindicator? ( dev-libs/libayatana-appindicator )
"
DESTDIR="/opt/${MY_PN}"
QA_PREBUILT="*"
CONFIG_CHECK="~USER_NS"
src_unpack() {
unpack ${MY_PN}-${MY_PV}.tar.gz
}
src_configure() {
default
chromium_suid_sandbox_check_kernel_config
}
src_prepare() {
default
# remove post-install script
rm postinst.sh || die "the removal of the unneeded post-install script failed"
# cleanup languages
pushd "locales/" >/dev/null || die "location change for language cleanup failed"
chromium_remove_language_paks
popd >/dev/null || die "location reset for language cleanup failed"
# fix .desktop exec location
sed --in-place --expression "/^Exec=/s:/usr/share/discord/Discord:/usr/bin/${MY_PN}:" \
"${MY_PN}.desktop" ||
die "fixing of exec location on .desktop failed"
# Update exec location in launcher
sed --expression "s:@@DESTDIR@@:${DESTDIR}:" \
"${FILESDIR}/launcher.sh" > "${T}/launcher.sh" || die "updating of exec location in launcher failed"
# USE seccomp in launcher
if use seccomp; then
sed --in-place --expression '/^EBUILD_SECCOMP=/s/false/true/' \
"${T}/launcher.sh" || die "sed failed for seccomp"
fi
# USE wayland in launcher
if use wayland; then
sed --in-place --expression '/^EBUILD_WAYLAND=/s/false/true/' \
"${T}/launcher.sh" || die "sed failed for wayland"
fi
}
src_install() {
doicon -s 256 "${MY_PN}.png"
# install .desktop file
domenu "${MY_PN}.desktop"
exeinto "${DESTDIR}"
doexe "${MY_PN^}" chrome-sandbox libEGL.so libffmpeg.so libGLESv2.so libvk_swiftshader.so
insinto "${DESTDIR}"
doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin v8_context_snapshot.bin
insopts -m0755
doins -r locales resources
# Chrome-sandbox requires the setuid bit to be specifically set.
# see https://github.com/electron/electron/issues/17972
fowners root "${DESTDIR}/chrome-sandbox"
fperms 4711 "${DESTDIR}/chrome-sandbox"
# Crashpad is included in the package once in a while and when it does, it must be installed.
# See #903616 and #890595
[[ -x chrome_crashpad_handler ]] && doins chrome_crashpad_handler
exeinto "/usr/bin"
newexe "${T}/launcher.sh" "discord" || die "failing to install launcher"
# https://bugs.gentoo.org/898912
if use appindicator; then
dosym ../../usr/lib64/libayatana-appindicator3.so /opt/discord/libappindicator3.so
fi
}
pkg_postinst() {
xdg_pkg_postinst
optfeature_header "Install the following packages for additional support:"
optfeature "sound support" \
media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
optfeature "emoji support" media-fonts/noto-emoji
}

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# coding: UTF-8
declare -a discord_parameters
# Variables set during ebuild configuration
EBUILD_SECCOMP=false
EBUILD_WAYLAND=false
"${EBUILD_SECCOMP}" || discord_parameters+=( --disable-seccomp-filter-sandbox )
"${EBUILD_WAYLAND}" && \
[[ -n "${WAYLAND_DISPLAY}" ]] && discord_parameters+=(
--enable-features=UseOzonePlatform
--ozone-platform=wayland
--enable-wayland-ime
)
@@DESTDIR@@/Discord "${discord_parameters[@]}" "$@"

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>ran.dall@icloud.com</email>
<name>Randall T. Vasquez</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<maintainer type="person">
<email>sarnex@gentoo.org</email>
<name>Nick Sarnie</name>
</maintainer>
</pkgmetadata>

1
profiles/eapi Normal file
View File

@ -0,0 +1 @@
8

1
profiles/repo_name Normal file
View File

@ -0,0 +1 @@
wolvie