dev-scheme/racket: only depend on gtk3

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2021-01-18 12:33:11 +01:00
parent 8e042b341b
commit 86a6386581
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
2 changed files with 10 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -46,9 +46,7 @@ RDEPEND="
readline? (
dev-libs/libedit
)
X? (
x11-libs/gtk+[X]
)
X? ( x11-libs/gtk+:3[X] )
"
DEPEND="
${RDEPEND}
@ -131,6 +129,7 @@ src_install() {
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
# Create missing desktop files
if use X
then
make_desktop_entry "gracket" "GRacket" \
@ -143,9 +142,9 @@ src_install() {
}
pkg_postinst() {
use X && xdg_desktop_database_update
use X && xdg_pkg_postinst
}
pkg_postrm() {
use X && xdg_desktop_database_update
use X && xdg_pkg_postrm
}

View File

@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -46,9 +46,7 @@ RDEPEND="
readline? (
dev-libs/libedit
)
X? (
x11-libs/gtk+[X]
)
X? ( x11-libs/gtk+:3[X] )
"
DEPEND="
${RDEPEND}
@ -131,6 +129,7 @@ src_install() {
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
# Create missing desktop files
if use X
then
make_desktop_entry "gracket" "GRacket" \
@ -143,9 +142,9 @@ src_install() {
}
pkg_postinst() {
use X && xdg_desktop_database_update
use X && xdg_pkg_postinst
}
pkg_postrm() {
use X && xdg_desktop_database_update
use X && xdg_pkg_postrm
}