summaryrefslogtreecommitdiff
path: root/sci-visualization/grace
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization/grace')
-rw-r--r--sci-visualization/grace/Manifest2
-rw-r--r--sci-visualization/grace/grace-5.1.25_p9.ebuild112
2 files changed, 114 insertions, 0 deletions
diff --git a/sci-visualization/grace/Manifest b/sci-visualization/grace/Manifest
index 5049c12978c1..287af4748546 100644
--- a/sci-visualization/grace/Manifest
+++ b/sci-visualization/grace/Manifest
@@ -3,5 +3,7 @@ AUX grace-5.1.22-dlmodule.patch 355 BLAKE2B baee835ed77d6720f145a7973a5a1e58359d
AUX grace.desktop 161 BLAKE2B a401e23fc2ee22cd47c36becfa742f5acafd2359185a92f1156159c2ea480a17a82219182873aaf9da4e6582bce6ac1ef62b66b1330759214fc21a364c376ac6 SHA512 6d43de6f8d5f85c3fff36202320864ea3611d3ee842efa677ad59ae1390c6499f9f14aefd37345c0cec62024637b057e804efd26577c45b4f7a5bb6717952b2a
DIST grace-5.1.25.tar.gz 2957689 BLAKE2B f46032c92aa2ed2484ca05c0eb858f47adfa88517e7d06c0d95a6d23c044356edfc52b9a7566a625ef5f4a1a4b5450b0ce065a94ba15c59fb8395d53c85872c9 SHA512 9ea68483af1dfc98d217ae730b7a51b66deae5aaa8dfda29d5a3337ed4b5728b45aa03f561bf7d4173e73d6af8dee03cbabd95c0c8dd36999303c89451a3728a
DIST grace_5.1.25-7.debian.tar.xz 108904 BLAKE2B 17265969d0501e1b1306733178a680b93d1d5fa96d63df4c14e5b3cba70b68d44d90a77d6ec0aa5243c2a79048bb75aedefeae1a2bab551a6315d253ee831735 SHA512 2fa34337858454c8a28b666fccb7157e9c4895b828f25171c4c6b68316abbf6d4bc54032f1de01ccb6b86068f7059ae2462d18b4a273341f588f49fc35f1bb61
+DIST grace_5.1.25-9.debian.tar.xz 109764 BLAKE2B 0b32a7e08104c463cbd75bf022dfeffb967b5c828ab8866f123e8ed3bb8a0095876f8f3e54b3fc951ddff142561eef921a046fc59cee1ceb02a4643019b11071 SHA512 f2e7d68fc5f03450ea9c88260935f2cfab31cdc38f9a1f4c8a201c1c5172dcc27d521941d005ae13249c4df3aed8c1a9f3a63dad029988c6b2f25f6d177e1390
EBUILD grace-5.1.25_p7.ebuild 2793 BLAKE2B 07606b425149de775a1bbba59d5c4d5aac7f8fc7e151f6680bdc418bff2765741b9f40ca7274cf640d0cee204dc54e66847ed8d4bd129cc1cc1d2ad36678a35d SHA512 a4052a5875c804de320ac949496816b4897b136f6e632b86482d9085044dc1bb0b7fc054303007f36e804c78f8e6df61c9c82edf92ff346d4e4fd53e8da649b2
+EBUILD grace-5.1.25_p9.ebuild 2843 BLAKE2B c5fa3d8713b039049508558eb5c1d73a2c10000f02e6621e160111bbba1504e1fb35f74abea17180b44d7708d3db466b415f473f560a978dbacb90dbe6899c7b SHA512 646c38f624c2824e20589920439b8fde9f4b4a670b950f111a57eddc5ae2be9df68b0d4a3bcf69bd3ffe34ec2ab85cf5f78e5e679db038fdc69131edb9ffb267
MISC metadata.xml 728 BLAKE2B 087a570a2455d567a7ed9e78378b88fc84d5356e8a2daf2e7e465af2f430ea737314a811319c9712c0c43e11364c17738716ae70c5574382716da1642bb09fec SHA512 5016a02966ab7697fb9b3e2ff0a203ddec6eb901b168acf0641829c5a35c4618a32c104edd6ecb04beb097b29ffc1550a4af06a809cb5bdfe54dee4180cc24c3
diff --git a/sci-visualization/grace/grace-5.1.25_p9.ebuild b/sci-visualization/grace/grace-5.1.25_p9.ebuild
new file mode 100644
index 000000000000..f2ad5c47aa26
--- /dev/null
+++ b/sci-visualization/grace/grace-5.1.25_p9.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+FORTRAN_NEEDED=fortran
+
+inherit desktop fortran-2 toolchain-funcs
+
+DESCRIPTION="Motif based XY-plotting tool"
+HOMEPAGE="https://plasma-gate.weizmann.ac.il/Grace/"
+SRC_URI="
+ ftp://plasma-gate.weizmann.ac.il/pub/${PN}/src/stable/${P/_p*}.tar.gz
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz
+"
+
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="fftw fortran jpeg netcdf png"
+
+DEPEND="
+ media-libs/t1lib
+ media-libs/tiff:0
+ sys-libs/zlib
+ >=x11-libs/motif-2.3:0
+ x11-libs/xbae
+ fftw? ( sci-libs/fftw:3.0= )
+ jpeg? ( virtual/jpeg:0 )
+ netcdf? ( sci-libs/netcdf )
+ png? ( media-libs/libpng:0= )"
+RDEPEND="${DEPEND}
+ x11-misc/xdg-utils"
+
+S="${WORKDIR}/${P/_p*}"
+
+PATCHES=(
+ # fix for missing defines when fortran is disabled
+ "${FILESDIR}"/${PN}-5.1.21-fortran.patch
+ # fix a leak (from freebsd)
+ "${FILESDIR}"/${PN}-5.1.22-dlmodule.patch
+)
+
+pkg_setup() {
+ fortran-2_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Debian patches
+ for p in $(<"${WORKDIR}"/debian/patches/series) ; do
+ eapply -p1 "${WORKDIR}/debian/patches/${p}"
+ done
+
+ # don't strip if not asked for
+ sed -i \
+ -e 's:$(INSTALL_PROGRAM) -s:$(INSTALL_PROGRAM):g' \
+ {auxiliary,grconvert,src}/Makefile || die
+
+ sed -i \
+ -e 's:$(GRACE_HOME)/bin:$(PREFIX)/bin:g' \
+ -e "s:\$(GRACE_HOME)/lib:\$(PREFIX)/$(get_libdir):g" \
+ -e 's:$(GRACE_HOME)/include:$(PREFIX)/include:g' \
+ -e 's:$(PREFIX)/man:$(PREFIX)/share/man:g' \
+ Makefile */Makefile || die "sed failed"
+
+ sed -i \
+ -e 's:bin/grconvert:grconvert:' \
+ -e 's:auxiliary/fdf2fit:fdf2fit:' \
+ gracerc || die
+}
+
+src_configure() {
+ tc-export CC AR
+
+ # the configure script just produces a basic Make.conf
+ # and a config.h
+ econf \
+ --disable-pdfdrv \
+ --disable-xmhtml \
+ --without-bundled-xbae \
+ --without-bundled-t1lib \
+ --enable-grace-home="${EPREFIX}"/usr/share/${PN} \
+ --with-helpviewer="xdg-open %s" \
+ --with-editor="xdg-open %s" \
+ --with-printcmd="lpr" \
+ --x-includes="${EPREFIX}"/usr/include \
+ --x-libraries="${EPREFIX}"/usr/$(get_libdir) \
+ $(use_with fftw) \
+ $(use_enable fortran f77-wrapper) \
+ $(use_enable netcdf) \
+ $(use_enable jpeg jpegdrv) \
+ $(use_enable png pngdrv) \
+ $(use_with fortran f77 $(tc-getFC))
+}
+
+src_install() {
+ default
+
+ dosym ../../${PN}/examples /usr/share/doc/${PF}/examples
+ dosym ../../${PN}/doc /usr/share/doc/${PF}/html
+
+ doman "${ED}"/usr/share/doc/${PF}/html/*.1
+ rm -f "${ED}"/usr/share/doc/${PF}/html/*.1 || die
+
+ domenu "${FILESDIR}"/${PN}.desktop
+ for size in 16 22 24 32; do
+ newicon -s "${size}" "${WORKDIR}"/debian/icons/grace"${size}".png "${PN}.png"
+ done
+ doicon -s 48 "${WORKDIR}"/debian/icons/grace.png
+ doicon -s scalable "${WORKDIR}"/debian/grace.svg
+}