mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sci-chemistry/xcrysden: fix build without native-symlinks
- fix build without native-symlinks - fix doc install path Closes: https://bugs.gentoo.org/869452 Closes: https://bugs.gentoo.org/869455 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit desktop flag-o-matic xdg
|
inherit desktop flag-o-matic toolchain-funcs xdg
|
||||||
|
|
||||||
DESCRIPTION="For the visualisation of molecular and crystal structures."
|
DESCRIPTION="For the visualisation of molecular and crystal structures."
|
||||||
|
|
||||||
@@ -41,24 +41,27 @@ PATCHES=(
|
|||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
cp "${S}/system/Make.sys-shared" "${S}/Make.sys" || die 'Copying Make.sys to build dir failed.'
|
cp "${S}/system/Make.sys-shared" "${S}/Make.sys" || die 'Copying Make.sys to build dir failed.'
|
||||||
|
|
||||||
|
# fix doc install path
|
||||||
|
sed -e "s|share/doc/\$(xcrysden)|share/doc/${PF}|" \
|
||||||
|
-e "/ln -sf .*doc/d" \
|
||||||
|
-e "/gzip/d" \
|
||||||
|
-i Makefile || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
append-cflags "-fcommon"
|
append-cflags "-fcommon"
|
||||||
emake xcrysden
|
emake xcrysden \
|
||||||
|
CC="$(tc-getBUILD_CC)" \
|
||||||
|
FC="$(tc-getFC)"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake \
|
emake \
|
||||||
prefix="${D}"/usr \
|
prefix="${ED}"/usr \
|
||||||
install
|
install
|
||||||
|
|
||||||
domenu "${FILESDIR}/${PN}.desktop"
|
domenu "${FILESDIR}/${PN}.desktop"
|
||||||
doicon -s 32x32 "${FILESDIR}/icons/${PN}.png"
|
doicon -s 32x32 "${FILESDIR}/icons/${PN}.png"
|
||||||
docompress -x /usr/share/doc/${P}/examples/GAUSSIAN_files/ \
|
docompress -x /usr/share/doc/${PF}/examples
|
||||||
/usr/share/doc/${P}/examples/Orca_files/ \
|
|
||||||
/usr/share/doc/${P}/examples/XSF_Files/ \
|
|
||||||
/usr/share/doc/${P}/examples/Scripting/ \
|
|
||||||
/usr/share/doc/${P}/examples/FermiSurface \
|
|
||||||
/usr/share/man/
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user