public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-chemistry/xcrysden/
Date: Mon, 27 Jan 2025 09:57:23 +0000 (UTC)	[thread overview]
Message-ID: <1737893781.59301838fe9d17f44d4e14a449df1be32bdcc44b.davidroman@gentoo> (raw)

commit:     59301838fe9d17f44d4e14a449df1be32bdcc44b
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sun Jan 26 12:16:21 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Jan 26 12:16:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=59301838

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 <AT> gmail.com>

 ...den-1.6.2-r1.ebuild => xcrysden-1.6.2-r2.ebuild} | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/sci-chemistry/xcrysden/xcrysden-1.6.2-r1.ebuild b/sci-chemistry/xcrysden/xcrysden-1.6.2-r2.ebuild
similarity index 76%
rename from sci-chemistry/xcrysden/xcrysden-1.6.2-r1.ebuild
rename to sci-chemistry/xcrysden/xcrysden-1.6.2-r2.ebuild
index b1d099a31..8b5b27fb8 100644
--- a/sci-chemistry/xcrysden/xcrysden-1.6.2-r1.ebuild
+++ b/sci-chemistry/xcrysden/xcrysden-1.6.2-r2.ebuild
@@ -3,7 +3,7 @@
 
 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."
 
@@ -41,24 +41,27 @@ PATCHES=(
 src_prepare() {
 	default
 	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() {
 	append-cflags "-fcommon"
-	emake xcrysden
+	emake xcrysden \
+		CC="$(tc-getBUILD_CC)" \
+		FC="$(tc-getFC)"
 }
 
 src_install() {
 	emake \
-		prefix="${D}"/usr \
+		prefix="${ED}"/usr \
 		install
 
 	domenu "${FILESDIR}/${PN}.desktop"
 	doicon -s 32x32 "${FILESDIR}/icons/${PN}.png"
-	docompress -x /usr/share/doc/${P}/examples/GAUSSIAN_files/ \
-		/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/
+	docompress -x /usr/share/doc/${PF}/examples
 }


             reply	other threads:[~2025-01-27  9:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-27  9:57 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-09-12 14:21 [gentoo-commits] repo/proj/guru:master commit in: sci-chemistry/xcrysden/ Florian Schmaus
2022-09-12 14:21 Florian Schmaus
2022-09-09 23:55 Ronny Gutbrod
2022-09-09 23:55 Ronny Gutbrod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1737893781.59301838fe9d17f44d4e14a449df1be32bdcc44b.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox