summaryrefslogtreecommitdiff
path: root/sci-chemistry/molmol
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-19 00:01:59 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-19 00:01:59 +0100
commit9d4810f84de876ec9d0ae03d0d44224500b41188 (patch)
tree1ca0866afdc949e405d20635d3d7f2115abb9ace /sci-chemistry/molmol
parent075fd1f8cabc5879c6eb42127fb84c3058677fde (diff)
gentoo auto-resync : 19:05:2024 - 00:01:59
Diffstat (limited to 'sci-chemistry/molmol')
-rw-r--r--sci-chemistry/molmol/Manifest2
-rw-r--r--sci-chemistry/molmol/files/molmol-2k_p2-gcc14-fix.patch12
-rw-r--r--sci-chemistry/molmol/molmol-2k_p2-r9.ebuild103
3 files changed, 117 insertions, 0 deletions
diff --git a/sci-chemistry/molmol/Manifest b/sci-chemistry/molmol/Manifest
index c89726c20774..5fdb76ae39ea 100644
--- a/sci-chemistry/molmol/Manifest
+++ b/sci-chemistry/molmol/Manifest
@@ -1,6 +1,8 @@
+AUX molmol-2k_p2-gcc14-fix.patch 357 BLAKE2B e7c1692e7a45ed2b83c38fa8b7ffe1a563f752660f3e2dc2098eb1de4491cd8919190d04cdc9d31f036b42a8fda6d6200fa347dfc7aed0fa46d75e1e3103e6cb SHA512 6138806de3222b073ce0f77c2c6d7060cbc9e3ba729553f61b93e44c671008da0e1ce64bc6fc0d9293dba203d71ae76cff1bea698e03a42d3e5a5901e6e8ccc0
DIST molmol-2k.2.0-doc.tar.gz 1062297 BLAKE2B 082d4eea5544bab52ffc1ff6364c50304348f76759dd3125cd74d02e629383d4a566f28ac77ab89ecf5e17a82617b8f61525e6f454689840b27899827399d866 SHA512 131f747a5762859398ebe9b676a07df56c82c8864ecc035ec914f1dea74dafcd67f87993421dfe5899c640470c7e1e1ef03ae262b04a9b360ae329eb19a331fe
DIST molmol-2k.2.0-src.tar.gz 1088805 BLAKE2B cd649604f6ee491d3a4485391ecdaa48dc1bc4bcd82865cd4a01ca460a6653f8cbba636050bfab9027b9b95dbefa28a8deeff7065b9b461f518001242af4a849 SHA512 6ab01a6fd3d19752634a2cf22919a20e43d195768bd4bdacd5f0bbe016c3058c94915bad4c7fa64dcd86576be39cad0ae112cb62f5e69ffb10041518101e7a9b
DIST molmol-patches.tbz2 17528 BLAKE2B b91270a980f290edc169be00639e86b3272281c9fe237750f5778eab1605ed482c09bdaf90660a5edf74bd04b3e31adc755e77e39aea6c75d88b6db9bf47a6d6 SHA512 bd94baf0a378f40f854f396963edd9b9e4afc5c56462ee6f8b68889290afdb4c5d9b10878aa5619d0a70153453fe6ee8e7540064522c6db0291ae9162bba9287
DIST molmol_256.png 22668 BLAKE2B c7d75b8e0d738b48790bea25e21ec60d57a8181253518c70d6f18d93c64eef3c9acf90213fdbdf2dde272e85a04a6442e4e4a9c375829f369380d88c9c0ca57c SHA512 5e7975f54a7462161dc630ee973e9a8126b9c120e0d8d6b62007384c970ce39792e52300edc25dc7a85209845801d749d9ecba02899f3e18b18f5a5fdbc28a97
EBUILD molmol-2k_p2-r8.ebuild 2284 BLAKE2B fa9954fca3dd8b52450beb1c0901abc71743672d7a76e2daa2bb05f52280ecf7dec5c401da24ce3e72f429cb69b27738117e33d41b49a96836b1b407efef67f0 SHA512 d813743572479b5eb0ed4181d42743402c4bd0a5a8e012f32bad03c4be68f38329722b749abc91845ba9c25642b19f5e2c4b5578ed9d3f7d03beaabbaa3345f5
+EBUILD molmol-2k_p2-r9.ebuild 2314 BLAKE2B f54b8793c88c3e5d14a128e922d9d22dcc5ad861c76a205b84a0a4d8f36ccdf8e6259955e71257689424ac48819fcd3350105e4472202681e8a9bc80c43d9d21 SHA512 56e0839d1f3d971d549c2bcde64115b17e3b7adccaf63b75e7221247684c7b7ee40df89d30c2b0d0acd28aa4e147523644f34ce496cf6a9e51ff540616123bda
MISC metadata.xml 272 BLAKE2B 531e98b72776bbe9126811b70943add0f6f43141b01cb75b17ac2c8d1cfb6a9b349022fd411894d2b8eeb0612a73db10aed4ba71f9624bd6dbd172a05fca2c76 SHA512 04f5575703aaaa95e575460ae3de428d3da173b3b741ab52b4aad31e381fef78b325f49f99622ec26a65024437759ea013fc525bd63ee553003c71afcc40d10c
diff --git a/sci-chemistry/molmol/files/molmol-2k_p2-gcc14-fix.patch b/sci-chemistry/molmol/files/molmol-2k_p2-gcc14-fix.patch
new file mode 100644
index 000000000000..7041ced28efe
--- /dev/null
+++ b/sci-chemistry/molmol/files/molmol-2k_p2-gcc14-fix.patch
@@ -0,0 +1,12 @@
+Bug: https://bugs.gentoo.org/923325
+--- a/src/motogl/MotOGLDump.c
++++ b/src/motogl/MotOGLDump.c
+@@ -245,7 +245,7 @@ jpegErrHand(j_common_ptr jpegInfoP)
+
+ #ifdef PNG_SUPPORT
+ static void
+-pngErrHand(png_structp pngStrucP, char *errMsg)
++pngErrHand(png_structp pngStrucP, const char *errMsg)
+ {
+ IORaiseError(errMsg);
+ longjmp(png_jmpbuf(pngStrucP), 1);
diff --git a/sci-chemistry/molmol/molmol-2k_p2-r9.ebuild b/sci-chemistry/molmol/molmol-2k_p2-r9.ebuild
new file mode 100644
index 000000000000..29769cede153
--- /dev/null
+++ b/sci-chemistry/molmol/molmol-2k_p2-r9.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit desktop toolchain-funcs
+
+MY_PV="${PV/_p/.}.0"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Publication-quality molecular visualization package"
+
+# Original page dead
+#HOMEPAGE="http://hugin.ethz.ch/wuthrich/software/molmol/index.html"
+HOMEPAGE="
+ http://www.csb.yale.edu/userguides/graphics/molmol/molmol_descrip.html
+ http://pjf.net/science/molmol.html
+"
+SRC_URI="
+ ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-src.tar.gz
+ ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-doc.tar.gz
+ https://dev.gentoo.org/~soap/distfiles/${PN}-patches.tbz2
+ https://dev.gentoo.org/~pacho/${PN}/${PN}_256.png
+"
+S="${WORKDIR}"
+
+LICENSE="molmol"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ || (
+ (
+ media-libs/mesa[X(+)]
+ x11-libs/libGLw
+ )
+ media-libs/mesa[motif(-),X(+)]
+ )
+ media-libs/libjpeg-turbo:=
+ media-libs/libpng:=
+ media-libs/tiff:=
+ sys-libs/zlib
+ virtual/glu
+ x11-libs/libXpm
+ x11-libs/motif:0
+ x11-apps/xdpyinfo
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc14-fix.patch
+)
+
+pkg_setup() {
+ MMDIR="/usr/$(get_libdir)/molmol"
+ MAKEOPTS="${MAKEOPTS} -j1" #880621
+}
+
+src_prepare() {
+ default
+
+ rm -rf tiff*
+ # Patch from http://pjf.net/science/molmol.html, where src.rpm is provided
+ eapply "${WORKDIR}"/patches/pjf_RH9_molmol2k2.diff
+
+ eapply "${WORKDIR}"/patches/ldflags.patch
+ eapply "${WORKDIR}"/patches/opengl.patch
+
+ ln -s makedef.lnx "${S}"/makedef || die
+
+ sed \
+ -e "s|ksh|sh|" \
+ -e "s|^MOLMOLHOME.*|MOLMOLHOME=${EPREFIX}/${MMDIR};MOLMOLDEV=\"Motif/OpenGL\"|" \
+ -i "${S}"/molmol || die
+ sed \
+ -e "s|^MCFLAGS.*|MCFLAGS = ${CFLAGS}|" \
+ -e "s|^CC.*|CC = $(tc-getCC)|" \
+ -i "${S}"/makedef || die
+
+ eapply "${WORKDIR}"/patches/cast.patch
+ eapply -p0 "${WORKDIR}"/patches/libpng15.patch
+
+ # patch from fink
+ # fixes numerous bad bracings and hopefully the OGL bug 429974
+ eapply "${WORKDIR}"/patches/${P}-fink.patch
+
+ eapply "${WORKDIR}"/patches/wild.patch
+ tc-export AR
+}
+
+src_install() {
+ dobin molmol
+
+ exeinto ${MMDIR}
+ doexe src/main/molmol
+ insinto ${MMDIR}
+ doins -r auxil help macros man setup tips
+
+ make_desktop_entry "${PN}" MOLMOL
+ newicon "${DISTDIR}/${PN}_256.png" "${PN}.png"
+
+ einstalldocs
+ dodoc HISTORY
+}