mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
net-irc/thelounge: use python-any-r1 instead and tweak systemd unit
Upstream recommended to unset LimitNOFILE LimitNPROC Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
This commit is contained in:
@@ -36,9 +36,5 @@ NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/lib/%N
|
||||
|
||||
# Set reasonable connection and process limits
|
||||
LimitNOFILE=1048576
|
||||
LimitNPROC=64
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit python-single-r1 readme.gentoo-r1 systemd tmpfiles
|
||||
inherit python-any-r1 readme.gentoo-r1 systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Modern, responsive, cross-platform, self-hosted web IRC client"
|
||||
HOMEPAGE="https://thelounge.chat/"
|
||||
@@ -21,7 +21,6 @@ LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+sqlite"
|
||||
REQUIRED_USE="sqlite? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
@@ -54,7 +53,7 @@ mooyarn() {
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use sqlite && python-single-r1_pkg_setup
|
||||
use sqlite && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
@@ -78,7 +77,7 @@ src_compile() {
|
||||
export \
|
||||
npm_config_cache="${WORKDIR}"/npm-cache \
|
||||
npm_config_nodedir="${EPREFIX}"/usr \
|
||||
NODE_GYP_FORCE_PYTHON="$(command -v ${PYTHON_SINGLE_TARGET/_/.})" \
|
||||
NODE_GYP_FORCE_PYTHON="${PYTHON}" \
|
||||
|| die
|
||||
npm --verbose --offline install --build-from-source --sqlite="${EPREFIX}"/usr || die
|
||||
# sqlite3 cleanup
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit python-single-r1 readme.gentoo-r1 systemd tmpfiles
|
||||
inherit python-any-r1 readme.gentoo-r1 systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Modern, responsive, cross-platform, self-hosted web IRC client"
|
||||
HOMEPAGE="https://thelounge.chat/"
|
||||
@@ -21,7 +21,6 @@ LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+sqlite"
|
||||
REQUIRED_USE="sqlite? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}
|
||||
@@ -54,7 +53,7 @@ mooyarn() {
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use sqlite && python-single-r1_pkg_setup
|
||||
use sqlite && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
@@ -78,7 +77,7 @@ src_compile() {
|
||||
export \
|
||||
npm_config_cache="${WORKDIR}"/npm-cache \
|
||||
npm_config_nodedir="${EPREFIX}"/usr \
|
||||
NODE_GYP_FORCE_PYTHON="$(command -v ${PYTHON_SINGLE_TARGET/_/.})" \
|
||||
NODE_GYP_FORCE_PYTHON="${PYTHON}" \
|
||||
|| die
|
||||
npm --verbose --offline install --build-from-source --sqlite="${EPREFIX}"/usr || die
|
||||
# sqlite3 cleanup
|
||||
|
||||
Reference in New Issue
Block a user