From 96c0e20ebe9fe5c7e912612badfd0bf2de77cc53 Mon Sep 17 00:00:00 2001 From: Zakk Date: Sun, 2 Aug 2026 01:01:41 +1000 Subject: [PATCH] sci-chemistry/vesta: add powderplot USE flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 因为捆绑的 PowderPlot 只有配合 RIETAN 做粉末衍射精修才用得到,而它的 `libswt-atk-gtk-3346.so` 与 `libswt-pi- gtk-3346.so` 链接 `libgtk-x11-2.0.so.0`、是本包唯一需要 `x11-libs/gtk+:2` 与 `virtual/jdk` 的部分,所以改由 `powderplot` 控制、默认不安装。 Signed-off-by: Zakk --- sci-chemistry/vesta/metadata.xml | 3 +++ sci-chemistry/vesta/vesta-3.5.8.ebuild | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/sci-chemistry/vesta/metadata.xml b/sci-chemistry/vesta/metadata.xml index c906b5f267..b16329f73d 100644 --- a/sci-chemistry/vesta/metadata.xml +++ b/sci-chemistry/vesta/metadata.xml @@ -5,4 +5,7 @@ chn@chn.moe Haonan Chen + + Install the bundled PowderPlot tool, which plots powder diffraction patterns produced by RIETAN + diff --git a/sci-chemistry/vesta/vesta-3.5.8.ebuild b/sci-chemistry/vesta/vesta-3.5.8.ebuild index b99b798b09..bb98e6819c 100644 --- a/sci-chemistry/vesta/vesta-3.5.8.ebuild +++ b/sci-chemistry/vesta/vesta-3.5.8.ebuild @@ -15,6 +15,7 @@ LICENSE="VESTA" SLOT="0" KEYWORDS="~amd64" +IUSE="powderplot" RESTRICT="bindist mirror strip" RDEPEND=" @@ -22,12 +23,17 @@ RDEPEND=" virtual/glu dev-util/desktop-file-utils x11-libs/libXtst - virtual/jdk + powderplot? ( + virtual/jdk + x11-libs/gtk+:2 + ) ${DEPEND}" QA_PREBUILT="*" src_install() { + use powderplot || rm -r PowderPlot || die + insinto /opt/VESTA doins -r * fperms +x /opt/VESTA/VESTA