sci-chemistry/vesta: add powderplot USE flag
因为捆绑的 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 <zakk@gentoozh.org>
This commit is contained in:
1 parent
a1989df353
commit
96c0e20ebe
2 files changed
+10
-1
No files matched your search
@@ -5,4 +5,7 @@
|
||||
<email>chn@chn.moe</email>
|
||||
<name>Haonan Chen</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="powderplot">Install the bundled PowderPlot tool, which plots powder diffraction patterns produced by RIETAN</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user