net-irc/thelounge: setup for python only if +sqlite

missed this one as I didn't know that python-single-r1 exports pkg_setup

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
This commit is contained in:
Rahil Bhimjiani
2024-03-12 11:55:40 +05:30
parent 785213f4ef
commit eaadd7954e
2 changed files with 8 additions and 0 deletions

View File

@@ -53,6 +53,10 @@ mooyarn() {
--ignore-scripts ${YARN_OPTS} "${@}" || die
}
pkg_setup() {
use sqlite && python-single-r1_pkg_setup
}
src_prepare() {
default
use !sqlite && { sed -i -e 's|\["sqlite", |\[|g;' defaults/config.js || die ; }

View File

@@ -53,6 +53,10 @@ mooyarn() {
--ignore-scripts ${YARN_OPTS} "${@}" || die
}
pkg_setup() {
use sqlite && python-single-r1_pkg_setup
}
src_prepare() {
default
use !sqlite && { sed -i -e 's|\["sqlite", |\[|g;' defaults/config.js || die ; }